@sciexpr/presets 0.1.0

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.
@@ -0,0 +1,72 @@
1
+ /** 公式模板 */
2
+ interface FormulaTemplate {
3
+ /** 模板唯一 ID */
4
+ id: string;
5
+ /** 名称 */
6
+ name: string;
7
+ /** LaTeX 源码 */
8
+ latex: string;
9
+ /** 分类 */
10
+ category: string;
11
+ /** 描述 */
12
+ description: string;
13
+ /** 标签 */
14
+ tags: string[];
15
+ }
16
+ declare const CALCULUS_TEMPLATES: FormulaTemplate[];
17
+ declare const ALGEBRA_TEMPLATES: FormulaTemplate[];
18
+ declare const TRIG_TEMPLATES: FormulaTemplate[];
19
+ declare const LINEAR_ALGEBRA_TEMPLATES: FormulaTemplate[];
20
+ declare const STATS_TEMPLATES: FormulaTemplate[];
21
+ declare const PHYSICS_TEMPLATES: FormulaTemplate[];
22
+ /** 所有数学模板 */
23
+ declare const ALL_MATH_TEMPLATES: FormulaTemplate[];
24
+ /** 按分类获取模板 */
25
+ declare function getTemplatesByCategory(category: string): FormulaTemplate[];
26
+ /** 按标签搜索 */
27
+ declare function searchTemplates(query: string): FormulaTemplate[];
28
+ /** 按 ID 获取模板 */
29
+ declare function getTemplateById(id: string): FormulaTemplate | undefined;
30
+
31
+ declare const COMPOUND_TEMPLATES: FormulaTemplate[];
32
+ declare const REACTION_TEMPLATES: FormulaTemplate[];
33
+ declare const ELECTROCHEM_TEMPLATES: FormulaTemplate[];
34
+ /** 所有化学模板 */
35
+ declare const ALL_CHEM_TEMPLATES: FormulaTemplate[];
36
+ /** 按标签搜索化合物 */
37
+ declare function searchCompounds(query: string): FormulaTemplate[];
38
+ /** 获取常见酸 */
39
+ declare function getAcids(): FormulaTemplate[];
40
+ /** 获取常见碱 */
41
+ declare function getBases(): FormulaTemplate[];
42
+
43
+ /** 希腊字母分组 */
44
+ interface GreekGroup {
45
+ id: string;
46
+ label: string;
47
+ letters: GreekLetter[];
48
+ }
49
+ /** 希腊字母 */
50
+ interface GreekLetter {
51
+ latex: string;
52
+ unicode: string;
53
+ name: string;
54
+ englishName: string;
55
+ variants?: {
56
+ latex: string;
57
+ unicode: string;
58
+ name: string;
59
+ }[];
60
+ }
61
+ declare const GREEK_LOWERCASE_GROUP: GreekGroup;
62
+ declare const GREEK_UPPERCASE_GROUP: GreekGroup;
63
+ /** 所有希腊字母分组 */
64
+ declare const GREEK_GROUPS: GreekGroup[];
65
+ /** 所有希腊字母扁平列表 */
66
+ declare const ALL_GREEK: GreekLetter[];
67
+ /** 按名称搜索希腊字母 */
68
+ declare function searchGreek(query: string): GreekLetter[];
69
+ /** 扩展搜索(含变体)*/
70
+ declare function searchGreekWithVariants(query: string): GreekLetter[];
71
+
72
+ export { ALGEBRA_TEMPLATES, ALL_CHEM_TEMPLATES, ALL_GREEK, ALL_MATH_TEMPLATES, CALCULUS_TEMPLATES, COMPOUND_TEMPLATES, ELECTROCHEM_TEMPLATES, type FormulaTemplate, GREEK_GROUPS, GREEK_LOWERCASE_GROUP, GREEK_UPPERCASE_GROUP, type GreekGroup, type GreekLetter, LINEAR_ALGEBRA_TEMPLATES, PHYSICS_TEMPLATES, REACTION_TEMPLATES, STATS_TEMPLATES, TRIG_TEMPLATES, getAcids, getBases, getTemplateById, getTemplatesByCategory, searchCompounds, searchGreek, searchGreekWithVariants, searchTemplates };
@@ -0,0 +1,72 @@
1
+ /** 公式模板 */
2
+ interface FormulaTemplate {
3
+ /** 模板唯一 ID */
4
+ id: string;
5
+ /** 名称 */
6
+ name: string;
7
+ /** LaTeX 源码 */
8
+ latex: string;
9
+ /** 分类 */
10
+ category: string;
11
+ /** 描述 */
12
+ description: string;
13
+ /** 标签 */
14
+ tags: string[];
15
+ }
16
+ declare const CALCULUS_TEMPLATES: FormulaTemplate[];
17
+ declare const ALGEBRA_TEMPLATES: FormulaTemplate[];
18
+ declare const TRIG_TEMPLATES: FormulaTemplate[];
19
+ declare const LINEAR_ALGEBRA_TEMPLATES: FormulaTemplate[];
20
+ declare const STATS_TEMPLATES: FormulaTemplate[];
21
+ declare const PHYSICS_TEMPLATES: FormulaTemplate[];
22
+ /** 所有数学模板 */
23
+ declare const ALL_MATH_TEMPLATES: FormulaTemplate[];
24
+ /** 按分类获取模板 */
25
+ declare function getTemplatesByCategory(category: string): FormulaTemplate[];
26
+ /** 按标签搜索 */
27
+ declare function searchTemplates(query: string): FormulaTemplate[];
28
+ /** 按 ID 获取模板 */
29
+ declare function getTemplateById(id: string): FormulaTemplate | undefined;
30
+
31
+ declare const COMPOUND_TEMPLATES: FormulaTemplate[];
32
+ declare const REACTION_TEMPLATES: FormulaTemplate[];
33
+ declare const ELECTROCHEM_TEMPLATES: FormulaTemplate[];
34
+ /** 所有化学模板 */
35
+ declare const ALL_CHEM_TEMPLATES: FormulaTemplate[];
36
+ /** 按标签搜索化合物 */
37
+ declare function searchCompounds(query: string): FormulaTemplate[];
38
+ /** 获取常见酸 */
39
+ declare function getAcids(): FormulaTemplate[];
40
+ /** 获取常见碱 */
41
+ declare function getBases(): FormulaTemplate[];
42
+
43
+ /** 希腊字母分组 */
44
+ interface GreekGroup {
45
+ id: string;
46
+ label: string;
47
+ letters: GreekLetter[];
48
+ }
49
+ /** 希腊字母 */
50
+ interface GreekLetter {
51
+ latex: string;
52
+ unicode: string;
53
+ name: string;
54
+ englishName: string;
55
+ variants?: {
56
+ latex: string;
57
+ unicode: string;
58
+ name: string;
59
+ }[];
60
+ }
61
+ declare const GREEK_LOWERCASE_GROUP: GreekGroup;
62
+ declare const GREEK_UPPERCASE_GROUP: GreekGroup;
63
+ /** 所有希腊字母分组 */
64
+ declare const GREEK_GROUPS: GreekGroup[];
65
+ /** 所有希腊字母扁平列表 */
66
+ declare const ALL_GREEK: GreekLetter[];
67
+ /** 按名称搜索希腊字母 */
68
+ declare function searchGreek(query: string): GreekLetter[];
69
+ /** 扩展搜索(含变体)*/
70
+ declare function searchGreekWithVariants(query: string): GreekLetter[];
71
+
72
+ export { ALGEBRA_TEMPLATES, ALL_CHEM_TEMPLATES, ALL_GREEK, ALL_MATH_TEMPLATES, CALCULUS_TEMPLATES, COMPOUND_TEMPLATES, ELECTROCHEM_TEMPLATES, type FormulaTemplate, GREEK_GROUPS, GREEK_LOWERCASE_GROUP, GREEK_UPPERCASE_GROUP, type GreekGroup, type GreekLetter, LINEAR_ALGEBRA_TEMPLATES, PHYSICS_TEMPLATES, REACTION_TEMPLATES, STATS_TEMPLATES, TRIG_TEMPLATES, getAcids, getBases, getTemplateById, getTemplatesByCategory, searchCompounds, searchGreek, searchGreekWithVariants, searchTemplates };