@danielsimonjr/mathts-core 0.15.5 → 0.17.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.
- package/dist/{chunk-L5MWGOLB.js → chunk-YS7US6LQ.js} +4657 -5388
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +225 -133
- package/dist/internal.js +2 -2
- package/dist/types/si-dimension-vector.d.ts +58 -0
- package/dist/types/si-dimension-vector.d.ts.map +1 -0
- package/dist/types/unit/Unit.d.ts.map +1 -1
- package/dist/types/unit/exact-scale.d.ts +65 -0
- package/dist/types/unit/exact-scale.d.ts.map +1 -0
- package/dist/types/unit/index.d.ts +4 -0
- package/dist/types/unit/index.d.ts.map +1 -1
- package/dist/types/unit/unit-table.d.ts +100 -0
- package/dist/types/unit/unit-table.d.ts.map +1 -0
- package/dist/types/unit/unit-types.d.ts +12 -3
- package/dist/types/unit/unit-types.d.ts.map +1 -1
- package/dist/types/unit-definitions.d.ts +4 -0
- package/dist/types/unit-definitions.d.ts.map +1 -1
- package/dist/types/unit-prefixes.d.ts +4 -2
- package/dist/types/unit-prefixes.d.ts.map +1 -1
- package/dist/types/unit.d.ts +4 -0
- package/dist/types/unit.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,10 @@ import type { UnitConstructor } from './unit-types.js';
|
|
|
2
2
|
export { createUnitClass } from './Unit.js';
|
|
3
3
|
export { unitDependencies } from './dependencies.js';
|
|
4
4
|
export type * from './unit-types.js';
|
|
5
|
+
export { UNIT_EXACT_SCALE, PI_EXACT_SCALE, decimalExactScale, exactScaleOf, binaryExactScale, ratioExactScale, multiplyExactScales, divideExactScales, powerExactScale, addExactScales, exactScalesEqual, exactScaleToNumber, formatExactScale, readScaleExpression, } from './exact-scale.js';
|
|
6
|
+
export type { ExactScale } from './exact-scale.js';
|
|
7
|
+
export { NAMED_SCALES, UNIT_ROWS, UNIT_ROW_ALIASES, namedExactScale, readUnitScale, getUnitRow, unitRowExactScale, unitRowValue, unitRowExactOffset, UNIT_PREFIX_SETS, unitPrefixExactScale, getUnitPrefix, } from './unit-table.js';
|
|
8
|
+
export type { UnitRow, UnitBaseKey, UnitPrefixSetKey, UnitPrefix } from './unit-table.js';
|
|
5
9
|
/** The core `Unit` class, pre-wired to core's numeric primitives. */
|
|
6
10
|
export declare const Unit: UnitConstructor;
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/unit/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,mBAAmB,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/unit/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,mBAAmB,iBAAiB,CAAC;AACrC,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1F,qEAAqE;AACrE,eAAO,MAAM,IAAI,EAAE,eAEC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The built-in unit table: one row per unit, each stating its scale to SI as an
|
|
3
|
+
* exact expression, plus the aliases that copy a row under another name.
|
|
4
|
+
*
|
|
5
|
+
* This is the only place a built-in unit's size is written. `Unit` builds its
|
|
6
|
+
* `UNITS` from these rows, the flat registry in `unit-definitions.ts` reads its
|
|
7
|
+
* multipliers from them, and every row's double is the exact scale rounded
|
|
8
|
+
* once (`exact-scale.ts`). A unit defined in terms of others says so
|
|
9
|
+
* (`psi: 'lbf/inch^2'`, `hp: '550*foot*lbf'`), so no hand-rounded literal can
|
|
10
|
+
* drift from its definition.
|
|
11
|
+
*
|
|
12
|
+
* Scale expressions: factors joined by `*`, optionally `/` and the
|
|
13
|
+
* denominator's factors (everything after the first `/` is the denominator);
|
|
14
|
+
* each factor is a decimal literal, `pi`, or a name in {@link NAMED_SCALES},
|
|
15
|
+
* with an optional integer power `^n`.
|
|
16
|
+
*
|
|
17
|
+
* Sources: the SI Brochure (9th ed., 2019); NIST SP 811 (2008) Appendix B and
|
|
18
|
+
* NIST SP 330 (2019); the International Yard and Pound Agreement (1959);
|
|
19
|
+
* IAU 2012 Resolution B2 (astronomical unit) and IAU 2015 Resolution B2
|
|
20
|
+
* (parsec); the Fifth International Conference on the Properties of Steam
|
|
21
|
+
* (1956) for the International Table calorie.
|
|
22
|
+
*
|
|
23
|
+
* @module @danielsimonjr/mathts-core/types/unit/unit-table
|
|
24
|
+
*/
|
|
25
|
+
import { type ExactScale } from './exact-scale.js';
|
|
26
|
+
/** The base-dimension keys a row may name (the `BASE_UNITS` of the Unit class). */
|
|
27
|
+
export type UnitBaseKey = 'MASS' | 'LENGTH' | 'TIME' | 'CURRENT' | 'TEMPERATURE' | 'LUMINOUS_INTENSITY' | 'AMOUNT_OF_SUBSTANCE' | 'FORCE' | 'SURFACE' | 'VOLUME' | 'ENERGY' | 'POWER' | 'PRESSURE' | 'ELECTRIC_CHARGE' | 'ELECTRIC_CAPACITANCE' | 'ELECTRIC_POTENTIAL' | 'ELECTRIC_RESISTANCE' | 'ELECTRIC_INDUCTANCE' | 'ELECTRIC_CONDUCTANCE' | 'MAGNETIC_FLUX' | 'MAGNETIC_FLUX_DENSITY' | 'FREQUENCY' | 'ANGLE' | 'BIT' | 'SOLID_ANGLE';
|
|
28
|
+
/** The prefix-set keys a row may name (the `PREFIXES` of the Unit class). */
|
|
29
|
+
export type UnitPrefixSetKey = 'NONE' | 'SHORT' | 'LONG' | 'SHORTLONG' | 'SQUARED' | 'CUBIC' | 'BINARY_SHORT' | 'BINARY_LONG' | 'BTU' | 'SHORT_UP_ONLY';
|
|
30
|
+
/** One built-in unit. */
|
|
31
|
+
export interface UnitRow {
|
|
32
|
+
/** The base dimension. */
|
|
33
|
+
readonly base: UnitBaseKey;
|
|
34
|
+
/** The prefixes the unit takes. */
|
|
35
|
+
readonly prefixes: UnitPrefixSetKey;
|
|
36
|
+
/** The exact scale to SI, as a scale expression. */
|
|
37
|
+
readonly scale: string;
|
|
38
|
+
/** Additive offset in the unit's own degrees, for an affine scale: SI = (x + offset) × scale. */
|
|
39
|
+
readonly offset?: string;
|
|
40
|
+
/** The unit's display name, when it differs from its key. */
|
|
41
|
+
readonly name?: string;
|
|
42
|
+
/** Prefer this unit in the reciprocal of its base (Hz for 1/s). */
|
|
43
|
+
readonly reciprocal?: true;
|
|
44
|
+
/** The value is the imaginary unit times the scale (reactive power, VAR). */
|
|
45
|
+
readonly imaginary?: true;
|
|
46
|
+
}
|
|
47
|
+
/** One prefix: the factor `radix^power`, and whether `toBest` may pick it. */
|
|
48
|
+
export interface UnitPrefix {
|
|
49
|
+
/** 10 for an SI prefix, 1024 for an IEC binary prefix. */
|
|
50
|
+
readonly radix: 10 | 1024;
|
|
51
|
+
/** The power of the radix. */
|
|
52
|
+
readonly power: number;
|
|
53
|
+
/** Whether automatic prefix selection may use it (false for da, h, d, c). */
|
|
54
|
+
readonly scientific: boolean;
|
|
55
|
+
}
|
|
56
|
+
type PrefixSet = Readonly<Record<string, UnitPrefix>>;
|
|
57
|
+
/**
|
|
58
|
+
* The prefix sets a row's `prefixes` names, each prefix stated as `radix^power`.
|
|
59
|
+
* `SQUARED` and `CUBIC` are the SI prefixes applied to an area or volume unit
|
|
60
|
+
* (cm² = 10⁻⁴ m²). The binary sets are the SI prefixes from kilo to yotta
|
|
61
|
+
* plus the IEC prefixes; `SHORT_UP_ONLY` (ly, pc) is the SI prefixes from k up.
|
|
62
|
+
*/
|
|
63
|
+
export declare const UNIT_PREFIX_SETS: Readonly<Record<UnitPrefixSetKey, PrefixSet>>;
|
|
64
|
+
/** The exact factor of a prefix (`radix^power`). */
|
|
65
|
+
export declare function unitPrefixExactScale(prefix: UnitPrefix): ExactScale;
|
|
66
|
+
/**
|
|
67
|
+
* The prefix `name` in the set a built-in unit takes, or undefined when the
|
|
68
|
+
* unit is unknown or does not take that prefix. `''` is the unprefixed unit.
|
|
69
|
+
*/
|
|
70
|
+
export declare function getUnitPrefix(unit: string, name: string): UnitPrefix | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Named exact scales the rows share. Each is a defining value or follows from
|
|
73
|
+
* named ones, so a derived unit cites its definition instead of a decimal.
|
|
74
|
+
*/
|
|
75
|
+
export declare const NAMED_SCALES: Readonly<Record<string, string>>;
|
|
76
|
+
/** The built-in units, keyed by the name a unit text spells. */
|
|
77
|
+
export declare const UNIT_ROWS: Readonly<Record<string, UnitRow>>;
|
|
78
|
+
/**
|
|
79
|
+
* Further spellings of a row (plurals, long names, symbols). Each copies the
|
|
80
|
+
* row it names, so it has that row's scale, dimension and prefixes.
|
|
81
|
+
*/
|
|
82
|
+
export declare const UNIT_ROW_ALIASES: Readonly<Record<string, string>>;
|
|
83
|
+
/** The exact value of a name in {@link NAMED_SCALES}, or undefined for an unknown name. */
|
|
84
|
+
export declare function namedExactScale(name: string): ExactScale | undefined;
|
|
85
|
+
/** The exact value of a scale expression over {@link NAMED_SCALES}. */
|
|
86
|
+
export declare function readUnitScale(expression: string): ExactScale;
|
|
87
|
+
/** The table row a built-in name or alias spells, or undefined. */
|
|
88
|
+
export declare function getUnitRow(name: string): UnitRow | undefined;
|
|
89
|
+
/** The exact scale of a built-in unit name or alias (no prefix), or undefined. */
|
|
90
|
+
export declare function unitRowExactScale(name: string): ExactScale | undefined;
|
|
91
|
+
/** The double a built-in unit's scale rounds to, or undefined for an unknown name. */
|
|
92
|
+
export declare function unitRowValue(name: string): number | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* The additive offset of a built-in affine unit, exactly, in the unit's own
|
|
95
|
+
* degrees: SI = (x + offset) × scale (`degF`: 459.67, `degC`: 273.15). Zero
|
|
96
|
+
* for a unit with no offset; undefined for an unknown name.
|
|
97
|
+
*/
|
|
98
|
+
export declare function unitRowExactOffset(name: string): ExactScale | undefined;
|
|
99
|
+
export {};
|
|
100
|
+
//# sourceMappingURL=unit-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-table.d.ts","sourceRoot":"","sources":["../../../src/types/unit/unit-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,kBAAkB,CAAC;AAE1B,mFAAmF;AACnF,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,QAAQ,GACR,MAAM,GACN,SAAS,GACT,aAAa,GACb,oBAAoB,GACpB,qBAAqB,GACrB,OAAO,GACP,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,UAAU,GACV,iBAAiB,GACjB,sBAAsB,GACtB,oBA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B,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEnE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAKhF;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAyBxD,CAAC;AAEH,gEAAgE;AAChE,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyKtD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA2H5D,CAAC;AAIH,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAOpE;AAED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAE5D;AAED,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAK5D;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAGtE;AAED,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAIvE"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module @danielsimonjr/mathts-core/types/unit/unit-types
|
|
10
10
|
*/
|
|
11
|
+
import type { ExactScale } from './exact-scale.js';
|
|
11
12
|
import type { Complex } from '../../is.js';
|
|
12
13
|
/** A complex number value (re/im pair), as produced by the `Complex` type. */
|
|
13
14
|
export type ComplexValue = Complex;
|
|
@@ -49,8 +50,8 @@ export interface BaseUnitDef {
|
|
|
49
50
|
/**
|
|
50
51
|
* A unit definition entry in the UNITS table. `dimensions` and `base.key` are
|
|
51
52
|
* populated after the literal is created (see the module-init loops), hence
|
|
52
|
-
* optional
|
|
53
|
-
*
|
|
53
|
+
* optional. A built-in unit's `value` is its exact scale (`exact`) rounded
|
|
54
|
+
* once; a unit made with `createUnit` has no `exact` and converts by floats.
|
|
54
55
|
*/
|
|
55
56
|
export interface UnitDef {
|
|
56
57
|
name: string;
|
|
@@ -60,6 +61,10 @@ export interface UnitDef {
|
|
|
60
61
|
offset: number;
|
|
61
62
|
dimensions?: number[];
|
|
62
63
|
reciprocal?: boolean;
|
|
64
|
+
/** The exact scale to SI, from the unit table. Absent for a `createUnit` unit and for VAR. */
|
|
65
|
+
exact?: ExactScale;
|
|
66
|
+
/** The exact `offset`, present whenever `exact` is. */
|
|
67
|
+
exactOffset?: ExactScale;
|
|
63
68
|
}
|
|
64
69
|
/** A single component of a Unit's unit list (e.g. the `m` in `m/s^2`). */
|
|
65
70
|
export interface UnitComponent {
|
|
@@ -128,7 +133,7 @@ export interface BigNumberConstructor {
|
|
|
128
133
|
}
|
|
129
134
|
/** Constructor for Fraction values. */
|
|
130
135
|
export interface FractionConstructor {
|
|
131
|
-
new (value: Numeric | string, denominator?: number): FractionValue;
|
|
136
|
+
new (value: Numeric | string | bigint, denominator?: number | bigint): FractionValue;
|
|
132
137
|
}
|
|
133
138
|
/** `subtractScalar` is polymorphic: it also subtracts two Units (in splitUnit). */
|
|
134
139
|
export interface SubtractScalar {
|
|
@@ -179,6 +184,8 @@ export interface UnitInstance {
|
|
|
179
184
|
clone(): UnitInstance;
|
|
180
185
|
valueType(): string;
|
|
181
186
|
_isDerived(): boolean;
|
|
187
|
+
/** The exact SI scale of the unit list, or null when a component has none. */
|
|
188
|
+
exactScale(): ExactScale | null;
|
|
182
189
|
_normalize(value: Numeric | null | undefined): Numeric | null;
|
|
183
190
|
_denormalize(value: Numeric | null, prefixValue?: Numeric): Numeric | null;
|
|
184
191
|
hasBase(base: BaseUnitDef | string | undefined): boolean;
|
|
@@ -218,6 +225,8 @@ export interface UnitConstructor {
|
|
|
218
225
|
setUnitSystem(name: string): void;
|
|
219
226
|
getUnitSystem(): string | undefined;
|
|
220
227
|
createUnit(obj: Record<string, unknown>, options?: CreateUnitOptions): UnitInstance | undefined;
|
|
228
|
+
/** The exact SI scale of a valueless unit text, or null when it has none. */
|
|
229
|
+
exactScale(valuelessUnit: string): ExactScale | null;
|
|
221
230
|
createUnitSingle(name: string, obj?: unknown): UnitInstance;
|
|
222
231
|
deleteUnit(name: string): void;
|
|
223
232
|
_getNumberConverter(type: string): ConverterFn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-types.d.ts","sourceRoot":"","sources":["../../../src/types/unit/unit-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,8EAA8E;AAC9E,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;IAC7D,KAAK,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;CAChE;AAED,wEAAwE;AACxE,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,aAAa,GAAG,YAAY,CAAC;AAEhG,iFAAiF;AACjF,MAAM,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* conversions.
|
|
8
8
|
*
|
|
9
|
+
* The factors and offsets are not written here: each derived entry reads the
|
|
10
|
+
* row of the one built-in unit table (`unit/unit-table.ts`) that `Unit` also
|
|
11
|
+
* builds from, so this flat registry and `Unit` cannot disagree.
|
|
12
|
+
*
|
|
9
13
|
* @module @danielsimonjr/mathts-core/types/unit-definitions
|
|
10
14
|
*/
|
|
11
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-definitions.d.ts","sourceRoot":"","sources":["../../src/types/unit-definitions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"unit-definitions.d.ts","sourceRoot":"","sources":["../../src/types/unit-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,UAQ1B,CAAC;AAEH;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,CAU5D;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,4EAA4E;IAC5E,UAAU,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAU9C,CAAC;AAmBF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAwFjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAuC,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAM/C,CAAC;AAEF;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAE5D"}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
* SI prefixes for the Unit type.
|
|
3
3
|
*
|
|
4
4
|
* Maps single- and double-letter prefixes to their multiplicative factor in
|
|
5
|
-
* base units. The full SI prefix range (from
|
|
5
|
+
* base units. The full SI prefix range (from q = 1e-30 to Q = 1e30) is
|
|
6
6
|
* supported, plus the binary prefixes used for digital information units.
|
|
7
7
|
*
|
|
8
8
|
* @module @danielsimonjr/mathts-core/types/unit-prefixes
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
|
-
* Standard SI prefixes (mass/length/energy/etc.)
|
|
11
|
+
* Standard SI prefixes (mass/length/energy/etc.), from quecto (q, 1e-30) to
|
|
12
|
+
* quetta (Q, 1e30), read from the unit table's `SHORT` prefix set, plus `µ`
|
|
13
|
+
* as the Unicode spelling of micro beside the ASCII `u`.
|
|
12
14
|
*
|
|
13
15
|
* Note the ambiguity-resolution priority: longer prefixes (e.g. `da`)
|
|
14
16
|
* must be tried before single-letter ones (`d`, `a`) in parsers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-prefixes.d.ts","sourceRoot":"","sources":["../../src/types/unit-prefixes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"unit-prefixes.d.ts","sourceRoot":"","sources":["../../src/types/unit-prefixes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAS3C,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,MAAM,CAkB/C,CAAC;AAEF;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE1D"}
|
package/dist/types/unit.d.ts
CHANGED
|
@@ -21,8 +21,12 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export { Unit, createUnitClass, unitDependencies } from './unit/index.js';
|
|
23
23
|
export type { UnitInstance } from './unit/index.js';
|
|
24
|
+
export { UNIT_EXACT_SCALE, PI_EXACT_SCALE, decimalExactScale, exactScaleOf, binaryExactScale, ratioExactScale, multiplyExactScales, divideExactScales, powerExactScale, addExactScales, exactScalesEqual, exactScaleToNumber, formatExactScale, readScaleExpression, NAMED_SCALES, UNIT_ROWS, UNIT_ROW_ALIASES, namedExactScale, readUnitScale, getUnitRow, unitRowExactScale, unitRowValue, unitRowExactOffset, UNIT_PREFIX_SETS, unitPrefixExactScale, getUnitPrefix, } from './unit/index.js';
|
|
25
|
+
export type { ExactScale, UnitRow, UnitBaseKey, UnitPrefixSetKey, UnitPrefix, } from './unit/index.js';
|
|
24
26
|
export { DimensionMismatchError, UnitParseError } from './unit/errors.js';
|
|
25
27
|
export { isUnit } from '../is.js';
|
|
26
28
|
export { DIMENSIONLESS, dim } from './unit-definitions.js';
|
|
27
29
|
export type { Dimensions, UnitDef } from './unit-definitions.js';
|
|
30
|
+
export { UNIT_DIMENSION_LENGTH, SI_DIMENSION_LENGTH, toSiDimensions, toSiDimensionVector, fromSiDimensions, fromSiDimensionVector, } from './si-dimension-vector.js';
|
|
31
|
+
export type { SiDimensionVector, SiDimensionOptions } from './si-dimension-vector.js';
|
|
28
32
|
//# sourceMappingURL=unit.d.ts.map
|
package/dist/types/unit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../src/types/unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../src/types/unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,gBA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