zzz-pc-view 0.0.111 → 0.0.113
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/package.json +1 -1
- package/src/index.es.js +2 -2
- package/src/index.umd.js +1 -1
- package/src/utils/math/unitConvertor.d.ts +8 -1
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设置摩尔体积常数 MOL 的值
|
|
3
|
+
* 用于在标准温度(22.4 L/mol)和常温(24.45 L/mol)下的摩尔体积之间切换
|
|
4
|
+
*
|
|
5
|
+
* @param mol - 摩尔体积常数,仅接受 22.4(标准状况下的摩尔体积)或 24.45(常温下的摩尔体积)
|
|
6
|
+
*/
|
|
7
|
+
export declare const setMOL: (mol: 22.4 | 24.45) => void;
|
|
1
8
|
/**
|
|
2
9
|
* 基本单位配置对象,包含单位列表、正转换函数和负转换函数。
|
|
3
10
|
*/
|
|
@@ -17,7 +24,7 @@ type BaseUnitConfigListValue = BaseUnitConfig['list'][number][number];
|
|
|
17
24
|
/**
|
|
18
25
|
* 单位键类型,从基本单位配置列表中提取的单位字符串。
|
|
19
26
|
*/
|
|
20
|
-
export type UnitKey = Exclude<BaseUnitConfigListValue, number> | 'K' | '℃';
|
|
27
|
+
export type UnitKey = Exclude<BaseUnitConfigListValue, number> | 'K' | 'k' | '℃';
|
|
21
28
|
/**
|
|
22
29
|
* 单位转换函数,根据输入单位和输出单位进行数值转换。
|
|
23
30
|
*
|