@sciexpr/presets 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.cjs +770 -64
- package/dist/index.d.cts +26 -9
- package/dist/index.d.ts +26 -9
- package/dist/index.js +775 -64
- package/package.json +8 -7
package/dist/index.d.cts
CHANGED
|
@@ -54,13 +54,7 @@ declare function getElementsByPeriod(period: number): FormulaTemplate[];
|
|
|
54
54
|
/** 按族获取元素 (1-18) */
|
|
55
55
|
declare function getElementsByGroup(group: number): FormulaTemplate[];
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
interface GreekGroup {
|
|
59
|
-
id: string;
|
|
60
|
-
label: string;
|
|
61
|
-
letters: GreekLetter[];
|
|
62
|
-
}
|
|
63
|
-
/** 希腊字母 */
|
|
57
|
+
/** 希腊字母(UI 展示用) */
|
|
64
58
|
interface GreekLetter {
|
|
65
59
|
latex: string;
|
|
66
60
|
unicode: string;
|
|
@@ -72,6 +66,12 @@ interface GreekLetter {
|
|
|
72
66
|
name: string;
|
|
73
67
|
}[];
|
|
74
68
|
}
|
|
69
|
+
/** 希腊字母分组 */
|
|
70
|
+
interface GreekGroup {
|
|
71
|
+
id: string;
|
|
72
|
+
label: string;
|
|
73
|
+
letters: GreekLetter[];
|
|
74
|
+
}
|
|
75
75
|
declare const GREEK_LOWERCASE_GROUP: GreekGroup;
|
|
76
76
|
declare const GREEK_UPPERCASE_GROUP: GreekGroup;
|
|
77
77
|
/** 所有希腊字母分组 */
|
|
@@ -80,7 +80,24 @@ declare const GREEK_GROUPS: GreekGroup[];
|
|
|
80
80
|
declare const ALL_GREEK: GreekLetter[];
|
|
81
81
|
/** 按名称搜索希腊字母 */
|
|
82
82
|
declare function searchGreek(query: string): GreekLetter[];
|
|
83
|
-
/**
|
|
83
|
+
/** 扩展搜索(含变体) */
|
|
84
84
|
declare function searchGreekWithVariants(query: string): GreekLetter[];
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
/** Palette 符号条目(用于 Chemistry palette) */
|
|
87
|
+
interface ChemPaletteEntry {
|
|
88
|
+
latex: string;
|
|
89
|
+
unicode: string;
|
|
90
|
+
name: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
isCommon?: boolean;
|
|
93
|
+
}
|
|
94
|
+
/** 子分类 palette */
|
|
95
|
+
interface ChemSubCategoryPalette {
|
|
96
|
+
id: string;
|
|
97
|
+
label: string;
|
|
98
|
+
symbols: ChemPaletteEntry[];
|
|
99
|
+
}
|
|
100
|
+
/** 化学分类的 palette 子分类数据 */
|
|
101
|
+
declare const CHEM_PALETTE_CATEGORIES: ChemSubCategoryPalette[];
|
|
102
|
+
|
|
103
|
+
export { ALGEBRA_TEMPLATES, ALL_CHEM_TEMPLATES, ALL_GREEK, ALL_MATH_TEMPLATES, CALCULUS_TEMPLATES, CHEM_PALETTE_CATEGORIES, COMPOUND_TEMPLATES, type ChemPaletteEntry, type ChemSubCategoryPalette, ELECTROCHEM_TEMPLATES, ELEMENT_TEMPLATES, type FormulaTemplate, GREEK_GROUPS, GREEK_LOWERCASE_GROUP, GREEK_UPPERCASE_GROUP, type GreekGroup, type GreekLetter, ION_TEMPLATES, LINEAR_ALGEBRA_TEMPLATES, PHYSICS_TEMPLATES, REACTION_TEMPLATES, STATS_TEMPLATES, TRIG_TEMPLATES, getAcids, getAnions, getBases, getCations, getElementsByGroup, getElementsByPeriod, getTemplateById, getTemplatesByCategory, searchCompounds, searchElements, searchGreek, searchGreekWithVariants, searchIons, searchTemplates };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,13 +54,7 @@ declare function getElementsByPeriod(period: number): FormulaTemplate[];
|
|
|
54
54
|
/** 按族获取元素 (1-18) */
|
|
55
55
|
declare function getElementsByGroup(group: number): FormulaTemplate[];
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
interface GreekGroup {
|
|
59
|
-
id: string;
|
|
60
|
-
label: string;
|
|
61
|
-
letters: GreekLetter[];
|
|
62
|
-
}
|
|
63
|
-
/** 希腊字母 */
|
|
57
|
+
/** 希腊字母(UI 展示用) */
|
|
64
58
|
interface GreekLetter {
|
|
65
59
|
latex: string;
|
|
66
60
|
unicode: string;
|
|
@@ -72,6 +66,12 @@ interface GreekLetter {
|
|
|
72
66
|
name: string;
|
|
73
67
|
}[];
|
|
74
68
|
}
|
|
69
|
+
/** 希腊字母分组 */
|
|
70
|
+
interface GreekGroup {
|
|
71
|
+
id: string;
|
|
72
|
+
label: string;
|
|
73
|
+
letters: GreekLetter[];
|
|
74
|
+
}
|
|
75
75
|
declare const GREEK_LOWERCASE_GROUP: GreekGroup;
|
|
76
76
|
declare const GREEK_UPPERCASE_GROUP: GreekGroup;
|
|
77
77
|
/** 所有希腊字母分组 */
|
|
@@ -80,7 +80,24 @@ declare const GREEK_GROUPS: GreekGroup[];
|
|
|
80
80
|
declare const ALL_GREEK: GreekLetter[];
|
|
81
81
|
/** 按名称搜索希腊字母 */
|
|
82
82
|
declare function searchGreek(query: string): GreekLetter[];
|
|
83
|
-
/**
|
|
83
|
+
/** 扩展搜索(含变体) */
|
|
84
84
|
declare function searchGreekWithVariants(query: string): GreekLetter[];
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
/** Palette 符号条目(用于 Chemistry palette) */
|
|
87
|
+
interface ChemPaletteEntry {
|
|
88
|
+
latex: string;
|
|
89
|
+
unicode: string;
|
|
90
|
+
name: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
isCommon?: boolean;
|
|
93
|
+
}
|
|
94
|
+
/** 子分类 palette */
|
|
95
|
+
interface ChemSubCategoryPalette {
|
|
96
|
+
id: string;
|
|
97
|
+
label: string;
|
|
98
|
+
symbols: ChemPaletteEntry[];
|
|
99
|
+
}
|
|
100
|
+
/** 化学分类的 palette 子分类数据 */
|
|
101
|
+
declare const CHEM_PALETTE_CATEGORIES: ChemSubCategoryPalette[];
|
|
102
|
+
|
|
103
|
+
export { ALGEBRA_TEMPLATES, ALL_CHEM_TEMPLATES, ALL_GREEK, ALL_MATH_TEMPLATES, CALCULUS_TEMPLATES, CHEM_PALETTE_CATEGORIES, COMPOUND_TEMPLATES, type ChemPaletteEntry, type ChemSubCategoryPalette, ELECTROCHEM_TEMPLATES, ELEMENT_TEMPLATES, type FormulaTemplate, GREEK_GROUPS, GREEK_LOWERCASE_GROUP, GREEK_UPPERCASE_GROUP, type GreekGroup, type GreekLetter, ION_TEMPLATES, LINEAR_ALGEBRA_TEMPLATES, PHYSICS_TEMPLATES, REACTION_TEMPLATES, STATS_TEMPLATES, TRIG_TEMPLATES, getAcids, getAnions, getBases, getCations, getElementsByGroup, getElementsByPeriod, getTemplateById, getTemplatesByCategory, searchCompounds, searchElements, searchGreek, searchGreekWithVariants, searchIons, searchTemplates };
|