@sciexpr/presets 0.1.0 → 0.1.1

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/dist/index.d.cts CHANGED
@@ -31,6 +31,8 @@ declare function getTemplateById(id: string): FormulaTemplate | undefined;
31
31
  declare const COMPOUND_TEMPLATES: FormulaTemplate[];
32
32
  declare const REACTION_TEMPLATES: FormulaTemplate[];
33
33
  declare const ELECTROCHEM_TEMPLATES: FormulaTemplate[];
34
+ declare const ION_TEMPLATES: FormulaTemplate[];
35
+ declare const ELEMENT_TEMPLATES: FormulaTemplate[];
34
36
  /** 所有化学模板 */
35
37
  declare const ALL_CHEM_TEMPLATES: FormulaTemplate[];
36
38
  /** 按标签搜索化合物 */
@@ -39,6 +41,18 @@ declare function searchCompounds(query: string): FormulaTemplate[];
39
41
  declare function getAcids(): FormulaTemplate[];
40
42
  /** 获取常见碱 */
41
43
  declare function getBases(): FormulaTemplate[];
44
+ /** 按名称/化学式搜索离子 */
45
+ declare function searchIons(query: string): FormulaTemplate[];
46
+ /** 获取所有阳离子 */
47
+ declare function getCations(): FormulaTemplate[];
48
+ /** 获取所有阴离子 */
49
+ declare function getAnions(): FormulaTemplate[];
50
+ /** 按名称/符号搜索元素 */
51
+ declare function searchElements(query: string): FormulaTemplate[];
52
+ /** 按周期获取元素 (1-7) */
53
+ declare function getElementsByPeriod(period: number): FormulaTemplate[];
54
+ /** 按族获取元素 (1-18) */
55
+ declare function getElementsByGroup(group: number): FormulaTemplate[];
42
56
 
43
57
  /** 希腊字母分组 */
44
58
  interface GreekGroup {
@@ -69,4 +83,4 @@ declare function searchGreek(query: string): GreekLetter[];
69
83
  /** 扩展搜索(含变体)*/
70
84
  declare function searchGreekWithVariants(query: string): GreekLetter[];
71
85
 
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 };
86
+ export { ALGEBRA_TEMPLATES, ALL_CHEM_TEMPLATES, ALL_GREEK, ALL_MATH_TEMPLATES, CALCULUS_TEMPLATES, COMPOUND_TEMPLATES, 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
@@ -31,6 +31,8 @@ declare function getTemplateById(id: string): FormulaTemplate | undefined;
31
31
  declare const COMPOUND_TEMPLATES: FormulaTemplate[];
32
32
  declare const REACTION_TEMPLATES: FormulaTemplate[];
33
33
  declare const ELECTROCHEM_TEMPLATES: FormulaTemplate[];
34
+ declare const ION_TEMPLATES: FormulaTemplate[];
35
+ declare const ELEMENT_TEMPLATES: FormulaTemplate[];
34
36
  /** 所有化学模板 */
35
37
  declare const ALL_CHEM_TEMPLATES: FormulaTemplate[];
36
38
  /** 按标签搜索化合物 */
@@ -39,6 +41,18 @@ declare function searchCompounds(query: string): FormulaTemplate[];
39
41
  declare function getAcids(): FormulaTemplate[];
40
42
  /** 获取常见碱 */
41
43
  declare function getBases(): FormulaTemplate[];
44
+ /** 按名称/化学式搜索离子 */
45
+ declare function searchIons(query: string): FormulaTemplate[];
46
+ /** 获取所有阳离子 */
47
+ declare function getCations(): FormulaTemplate[];
48
+ /** 获取所有阴离子 */
49
+ declare function getAnions(): FormulaTemplate[];
50
+ /** 按名称/符号搜索元素 */
51
+ declare function searchElements(query: string): FormulaTemplate[];
52
+ /** 按周期获取元素 (1-7) */
53
+ declare function getElementsByPeriod(period: number): FormulaTemplate[];
54
+ /** 按族获取元素 (1-18) */
55
+ declare function getElementsByGroup(group: number): FormulaTemplate[];
42
56
 
43
57
  /** 希腊字母分组 */
44
58
  interface GreekGroup {
@@ -69,4 +83,4 @@ declare function searchGreek(query: string): GreekLetter[];
69
83
  /** 扩展搜索(含变体)*/
70
84
  declare function searchGreekWithVariants(query: string): GreekLetter[];
71
85
 
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 };
86
+ export { ALGEBRA_TEMPLATES, ALL_CHEM_TEMPLATES, ALL_GREEK, ALL_MATH_TEMPLATES, CALCULUS_TEMPLATES, COMPOUND_TEMPLATES, 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 };