@isentropic/dim-si 0.0.0 → 0.4.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.
Files changed (144) hide show
  1. package/LICENSE +21 -0
  2. package/esm/_dnt.test_shims.d.ts.map +1 -0
  3. package/esm/deps/jsr.io/@std/assert/1.0.18/almost_equals.d.ts.map +1 -0
  4. package/esm/deps/jsr.io/@std/assert/1.0.18/array_includes.d.ts.map +1 -0
  5. package/esm/deps/jsr.io/@std/assert/1.0.18/assert.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@std/assert/1.0.18/assertion_error.d.ts.map +1 -0
  7. package/esm/deps/jsr.io/@std/assert/1.0.18/equal.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@std/assert/1.0.18/equals.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@std/assert/1.0.18/exists.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@std/assert/1.0.18/fail.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@std/assert/1.0.18/false.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@std/assert/1.0.18/greater.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/assert/1.0.18/greater_or_equal.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@std/assert/1.0.18/instance_of.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/1.0.18/is_error.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/assert/1.0.18/less.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@std/assert/1.0.18/less_or_equal.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@std/assert/1.0.18/match.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/assert/1.0.18/mod.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@std/assert/1.0.18/not_equals.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/assert/1.0.18/not_instance_of.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/assert/1.0.18/not_match.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@std/assert/1.0.18/not_strict_equals.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/assert/1.0.18/object_match.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/assert/1.0.18/rejects.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@std/assert/1.0.18/strict_equals.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/assert/1.0.18/string_includes.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/assert/1.0.18/throws.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/assert/1.0.18/unimplemented.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/assert/1.0.18/unreachable.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
  37. package/esm/package.json +3 -0
  38. package/esm/src/absorbed-dose.d.ts +29 -0
  39. package/esm/src/absorbed-dose.d.ts.map +1 -0
  40. package/esm/src/absorbed-dose.js +24 -0
  41. package/esm/src/acceleration.d.ts +23 -0
  42. package/esm/src/acceleration.d.ts.map +1 -0
  43. package/esm/src/acceleration.js +18 -0
  44. package/esm/src/amount.d.ts +29 -0
  45. package/esm/src/amount.d.ts.map +1 -0
  46. package/esm/src/amount.js +25 -0
  47. package/esm/src/area.d.ts +27 -0
  48. package/esm/src/area.d.ts.map +1 -0
  49. package/esm/src/area.js +22 -0
  50. package/esm/src/capacitance.d.ts +32 -0
  51. package/esm/src/capacitance.d.ts.map +1 -0
  52. package/esm/src/capacitance.js +28 -0
  53. package/esm/src/catalytic-activity.d.ts +23 -0
  54. package/esm/src/catalytic-activity.d.ts.map +1 -0
  55. package/esm/src/catalytic-activity.js +18 -0
  56. package/esm/src/charge.d.ts +27 -0
  57. package/esm/src/charge.d.ts.map +1 -0
  58. package/esm/src/charge.js +22 -0
  59. package/esm/src/conductance.d.ts +23 -0
  60. package/esm/src/conductance.d.ts.map +1 -0
  61. package/esm/src/conductance.js +18 -0
  62. package/esm/src/current.d.ts +29 -0
  63. package/esm/src/current.d.ts.map +1 -0
  64. package/esm/src/current.js +25 -0
  65. package/esm/src/energy.d.ts +32 -0
  66. package/esm/src/energy.d.ts.map +1 -0
  67. package/esm/src/energy.js +31 -0
  68. package/esm/src/force.d.ts +27 -0
  69. package/esm/src/force.d.ts.map +1 -0
  70. package/esm/src/force.js +22 -0
  71. package/esm/src/frequency.d.ts +37 -0
  72. package/esm/src/frequency.d.ts.map +1 -0
  73. package/esm/src/frequency.js +33 -0
  74. package/esm/src/illuminance.d.ts +23 -0
  75. package/esm/src/illuminance.d.ts.map +1 -0
  76. package/esm/src/illuminance.js +18 -0
  77. package/esm/src/inductance.d.ts +30 -0
  78. package/esm/src/inductance.d.ts.map +1 -0
  79. package/esm/src/inductance.js +26 -0
  80. package/esm/src/length.d.ts +38 -0
  81. package/esm/src/length.d.ts.map +1 -0
  82. package/esm/src/length.js +34 -0
  83. package/esm/src/luminosity.d.ts +23 -0
  84. package/esm/src/luminosity.d.ts.map +1 -0
  85. package/esm/src/luminosity.js +18 -0
  86. package/esm/src/luminous-flux.d.ts +23 -0
  87. package/esm/src/luminous-flux.d.ts.map +1 -0
  88. package/esm/src/luminous-flux.js +18 -0
  89. package/esm/src/magnetic-flux-density.d.ts +23 -0
  90. package/esm/src/magnetic-flux-density.d.ts.map +1 -0
  91. package/esm/src/magnetic-flux-density.js +18 -0
  92. package/esm/src/magnetic-flux.d.ts +23 -0
  93. package/esm/src/magnetic-flux.d.ts.map +1 -0
  94. package/esm/src/magnetic-flux.js +18 -0
  95. package/esm/src/mass.d.ts +36 -0
  96. package/esm/src/mass.d.ts.map +1 -0
  97. package/esm/src/mass.js +32 -0
  98. package/esm/src/mod.d.ts +19 -0
  99. package/esm/src/mod.d.ts.map +1 -0
  100. package/esm/src/mod.js +18 -0
  101. package/esm/src/ops.d.ts +83 -0
  102. package/esm/src/ops.d.ts.map +1 -0
  103. package/esm/src/ops.js +81 -0
  104. package/esm/src/power.d.ts +36 -0
  105. package/esm/src/power.d.ts.map +1 -0
  106. package/esm/src/power.js +32 -0
  107. package/esm/src/prefixes.d.ts +65 -0
  108. package/esm/src/prefixes.d.ts.map +1 -0
  109. package/esm/src/prefixes.js +66 -0
  110. package/esm/src/pressure.d.ts +30 -0
  111. package/esm/src/pressure.d.ts.map +1 -0
  112. package/esm/src/pressure.js +26 -0
  113. package/esm/src/resistance.d.ts +31 -0
  114. package/esm/src/resistance.d.ts.map +1 -0
  115. package/esm/src/resistance.js +27 -0
  116. package/esm/src/scalar.d.ts +13 -0
  117. package/esm/src/scalar.d.ts.map +1 -0
  118. package/esm/src/scalar.js +8 -0
  119. package/esm/src/system.d.ts +12 -0
  120. package/esm/src/system.d.ts.map +1 -0
  121. package/esm/src/system.js +9 -0
  122. package/esm/src/temperature.d.ts +59 -0
  123. package/esm/src/temperature.d.ts.map +1 -0
  124. package/esm/src/temperature.js +55 -0
  125. package/esm/src/thermal-conductance.d.ts +27 -0
  126. package/esm/src/thermal-conductance.d.ts.map +1 -0
  127. package/esm/src/thermal-conductance.js +25 -0
  128. package/esm/src/time.d.ts +40 -0
  129. package/esm/src/time.d.ts.map +1 -0
  130. package/esm/src/time.js +36 -0
  131. package/esm/src/types.d.ts +10 -0
  132. package/esm/src/types.d.ts.map +1 -0
  133. package/esm/src/types.js +4 -0
  134. package/esm/src/velocity.d.ts +27 -0
  135. package/esm/src/velocity.d.ts.map +1 -0
  136. package/esm/src/velocity.js +22 -0
  137. package/esm/src/voltage.d.ts +29 -0
  138. package/esm/src/voltage.d.ts.map +1 -0
  139. package/esm/src/voltage.js +25 -0
  140. package/esm/src/volume.d.ts +31 -0
  141. package/esm/src/volume.d.ts.map +1 -0
  142. package/esm/src/volume.js +27 -0
  143. package/esm/test.d.ts.map +1 -0
  144. package/package.json +125 -1
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Electric current units (I).
3
+ *
4
+ * SI base unit: ampere (A).
5
+ *
6
+ * @example Converting milliamperes to amperes
7
+ * ```ts
8
+ * import { ampere, milliampere } from "@isentropic/dim-si/current";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const draw = milliampere(500);
12
+ * valueIn(draw, ampere); // 0.5
13
+ * ```
14
+ *
15
+ * @module
16
+ */
17
+ import type { Current as CurrentDim } from "@isentropic/dim-isq";
18
+ import type { Linear } from "@isentropic/dim-unit";
19
+ import type { BaseUnit, ScaledUnit } from "./types.js";
20
+ import type { Si } from "./system.js";
21
+ /** An SI current quantity. */
22
+ export type Current = Linear<CurrentDim, Si>;
23
+ /** Ampere (A) — SI unit of electric current. */
24
+ export declare const ampere: BaseUnit<CurrentDim>;
25
+ /** Milliampere (mA) — 10⁻³ amperes. */
26
+ export declare const milliampere: ScaledUnit<CurrentDim>;
27
+ /** Microampere (μA) — 10⁻⁶ amperes. */
28
+ export declare const microampere: ScaledUnit<CurrentDim>;
29
+ //# sourceMappingURL=current.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current.d.ts","sourceRoot":"","sources":["../../src/src/current.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,8BAA8B;AAC9B,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;AAE7C,gDAAgD;AAChD,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAoB,CAAC;AAE7D,uCAAuC;AACvC,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,UAAU,CAAwB,CAAC;AAExE,uCAAuC;AACvC,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,UAAU,CAAwB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Electric current units (I).
3
+ *
4
+ * SI base unit: ampere (A).
5
+ *
6
+ * @example Converting milliamperes to amperes
7
+ * ```ts
8
+ * import { ampere, milliampere } from "@isentropic/dim-si/current";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const draw = milliampere(500);
12
+ * valueIn(draw, ampere); // 0.5
13
+ * ```
14
+ *
15
+ * @module
16
+ */
17
+ import { current } from "@isentropic/dim-isq";
18
+ import { si } from "./system.js";
19
+ import { MICRO, MILLI } from "./prefixes.js";
20
+ /** Ampere (A) — SI unit of electric current. */
21
+ export const ampere = si.unit(current);
22
+ /** Milliampere (mA) — 10⁻³ amperes. */
23
+ export const milliampere = ampere.scaled(MILLI);
24
+ /** Microampere (μA) — 10⁻⁶ amperes. */
25
+ export const microampere = ampere.scaled(MICRO);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Energy units (M·L²·T⁻²).
3
+ *
4
+ * SI unit: joule (J).
5
+ *
6
+ * @example Converting between energy units
7
+ * ```ts
8
+ * import { joule, kilowattHour, megajoule } from "@isentropic/dim-si/energy";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const energy = kilowattHour(1);
12
+ * valueIn(energy, joule); // 3_600_000
13
+ * valueIn(energy, megajoule); // 3.6
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import type { Energy as EnergyDim } from "@isentropic/dim-isq";
19
+ import type { Linear } from "@isentropic/dim-unit";
20
+ import type { BaseUnit, ScaledUnit } from "./types.js";
21
+ import type { Si } from "./system.js";
22
+ /** An SI energy quantity. */
23
+ export type Energy = Linear<EnergyDim, Si>;
24
+ /** Joule (J) — SI unit of energy. */
25
+ export declare const joule: BaseUnit<EnergyDim>;
26
+ /** Kilojoule (kJ) — 1000 joules. */
27
+ export declare const kilojoule: ScaledUnit<EnergyDim>;
28
+ /** Megajoule (MJ) — 10⁶ joules. */
29
+ export declare const megajoule: ScaledUnit<EnergyDim>;
30
+ /** Kilowatt-hour (kWh) — 3.6 megajoules. */
31
+ export declare const kilowattHour: ScaledUnit<EnergyDim>;
32
+ //# sourceMappingURL=energy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energy.d.ts","sourceRoot":"","sources":["../../src/src/energy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAMtC,6BAA6B;AAC7B,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAE3C,qCAAqC;AACrC,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAmB,CAAC;AAE1D,oCAAoC;AACpC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAsB,CAAC;AAEnE,mCAAmC;AACnC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAsB,CAAC;AAEnE,4CAA4C;AAE5C,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,SAAS,CAE9C,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Energy units (M·L²·T⁻²).
3
+ *
4
+ * SI unit: joule (J).
5
+ *
6
+ * @example Converting between energy units
7
+ * ```ts
8
+ * import { joule, kilowattHour, megajoule } from "@isentropic/dim-si/energy";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const energy = kilowattHour(1);
12
+ * valueIn(energy, joule); // 3_600_000
13
+ * valueIn(energy, megajoule); // 3.6
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import { energy } from "@isentropic/dim-isq";
19
+ import { si } from "./system.js";
20
+ import { KILO, MEGA } from "./prefixes.js";
21
+ import { kilowatt } from "./power.js";
22
+ import { hour } from "./time.js";
23
+ /** Joule (J) — SI unit of energy. */
24
+ export const joule = si.unit(energy);
25
+ /** Kilojoule (kJ) — 1000 joules. */
26
+ export const kilojoule = joule.scaled(KILO);
27
+ /** Megajoule (MJ) — 10⁶ joules. */
28
+ export const megajoule = joule.scaled(MEGA);
29
+ /** Kilowatt-hour (kWh) — 3.6 megajoules. */
30
+ // 1 kWh = 1 kW × 1 hour = 3.6 MJ
31
+ export const kilowattHour = joule.scaled(kilowatt.scale * hour.scale);
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Force units (M·L·T⁻²).
3
+ *
4
+ * SI unit: newton (N).
5
+ *
6
+ * @example Computing force from mass and acceleration
7
+ * ```ts
8
+ * import { newton } from "@isentropic/dim-si/force";
9
+ * import { kilogram } from "@isentropic/dim-si/mass";
10
+ * import { meterPerSecondSquared } from "@isentropic/dim-si/acceleration";
11
+ * import { multiply, valueIn } from "@isentropic/dim-si/ops";
12
+ *
13
+ * const force = multiply(kilogram(10), meterPerSecondSquared(9.81));
14
+ * valueIn(force, newton); // 98.1
15
+ * ```
16
+ *
17
+ * @module
18
+ */
19
+ import type { Force as ForceDim } from "@isentropic/dim-isq";
20
+ import type { Linear } from "@isentropic/dim-unit";
21
+ import type { BaseUnit } from "./types.js";
22
+ import type { Si } from "./system.js";
23
+ /** An SI force quantity. */
24
+ export type Force = Linear<ForceDim, Si>;
25
+ /** Newton (N) — SI unit of force. */
26
+ export declare const newton: BaseUnit<ForceDim>;
27
+ //# sourceMappingURL=force.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"force.d.ts","sourceRoot":"","sources":["../../src/src/force.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,4BAA4B;AAC5B,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAEzC,qCAAqC;AACrC,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAkB,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Force units (M·L·T⁻²).
3
+ *
4
+ * SI unit: newton (N).
5
+ *
6
+ * @example Computing force from mass and acceleration
7
+ * ```ts
8
+ * import { newton } from "@isentropic/dim-si/force";
9
+ * import { kilogram } from "@isentropic/dim-si/mass";
10
+ * import { meterPerSecondSquared } from "@isentropic/dim-si/acceleration";
11
+ * import { multiply, valueIn } from "@isentropic/dim-si/ops";
12
+ *
13
+ * const force = multiply(kilogram(10), meterPerSecondSquared(9.81));
14
+ * valueIn(force, newton); // 98.1
15
+ * ```
16
+ *
17
+ * @module
18
+ */
19
+ import { force } from "@isentropic/dim-isq";
20
+ import { si } from "./system.js";
21
+ /** Newton (N) — SI unit of force. */
22
+ export const newton = si.unit(force);
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Frequency units (T⁻¹).
3
+ *
4
+ * SI unit: hertz (Hz).
5
+ *
6
+ * Note: becquerel (radioactive decay rate) shares this dimension
7
+ * with hertz (cycles per second). This is intentional per SI.
8
+ *
9
+ * @example Converting between frequency units
10
+ * ```ts
11
+ * import { gigahertz, hertz, megahertz } from "@isentropic/dim-si/frequency";
12
+ * import { valueIn } from "@isentropic/dim-si/ops";
13
+ *
14
+ * const clock = gigahertz(3.2);
15
+ * valueIn(clock, megahertz); // 3200
16
+ * valueIn(clock, hertz); // 3_200_000_000
17
+ * ```
18
+ *
19
+ * @module
20
+ */
21
+ import type { Frequency as FrequencyDim } from "@isentropic/dim-isq";
22
+ import type { Linear } from "@isentropic/dim-unit";
23
+ import type { BaseUnit, ScaledUnit } from "./types.js";
24
+ import type { Si } from "./system.js";
25
+ /** An SI frequency quantity. */
26
+ export type Frequency = Linear<FrequencyDim, Si>;
27
+ /** Hertz (Hz) — SI unit of frequency. */
28
+ export declare const hertz: BaseUnit<FrequencyDim>;
29
+ /** Becquerel (Bq) — SI unit of radioactivity (same dimension as hertz). */
30
+ export declare const becquerel: BaseUnit<FrequencyDim>;
31
+ /** Kilohertz (kHz) — 1000 hertz. */
32
+ export declare const kilohertz: ScaledUnit<FrequencyDim>;
33
+ /** Megahertz (MHz) — 10⁶ hertz. */
34
+ export declare const megahertz: ScaledUnit<FrequencyDim>;
35
+ /** Gigahertz (GHz) — 10⁹ hertz. */
36
+ export declare const gigahertz: ScaledUnit<FrequencyDim>;
37
+ //# sourceMappingURL=frequency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frequency.d.ts","sourceRoot":"","sources":["../../src/src/frequency.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,gCAAgC;AAChC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAEjD,yCAAyC;AACzC,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAsB,CAAC;AAEhE,2EAA2E;AAC3E,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,YAAY,CAAsB,CAAC;AAEpE,oCAAoC;AACpC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC;AAEtE,mCAAmC;AACnC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC;AAEtE,mCAAmC;AACnC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Frequency units (T⁻¹).
3
+ *
4
+ * SI unit: hertz (Hz).
5
+ *
6
+ * Note: becquerel (radioactive decay rate) shares this dimension
7
+ * with hertz (cycles per second). This is intentional per SI.
8
+ *
9
+ * @example Converting between frequency units
10
+ * ```ts
11
+ * import { gigahertz, hertz, megahertz } from "@isentropic/dim-si/frequency";
12
+ * import { valueIn } from "@isentropic/dim-si/ops";
13
+ *
14
+ * const clock = gigahertz(3.2);
15
+ * valueIn(clock, megahertz); // 3200
16
+ * valueIn(clock, hertz); // 3_200_000_000
17
+ * ```
18
+ *
19
+ * @module
20
+ */
21
+ import { frequency } from "@isentropic/dim-isq";
22
+ import { si } from "./system.js";
23
+ import { GIGA, KILO, MEGA } from "./prefixes.js";
24
+ /** Hertz (Hz) — SI unit of frequency. */
25
+ export const hertz = si.unit(frequency);
26
+ /** Becquerel (Bq) — SI unit of radioactivity (same dimension as hertz). */
27
+ export const becquerel = si.unit(frequency);
28
+ /** Kilohertz (kHz) — 1000 hertz. */
29
+ export const kilohertz = hertz.scaled(KILO);
30
+ /** Megahertz (MHz) — 10⁶ hertz. */
31
+ export const megahertz = hertz.scaled(MEGA);
32
+ /** Gigahertz (GHz) — 10⁹ hertz. */
33
+ export const gigahertz = hertz.scaled(GIGA);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Illuminance units (J·L⁻²).
3
+ *
4
+ * SI unit: lux (lx).
5
+ *
6
+ * @example Creating an illuminance
7
+ * ```ts
8
+ * import { lux } from "@isentropic/dim-si/illuminance";
9
+ *
10
+ * const brightness = lux(500);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { Illuminance as IlluminanceDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI illuminance quantity. */
20
+ export type Illuminance = Linear<IlluminanceDim, Si>;
21
+ /** Lux (lx) — SI unit of illuminance. */
22
+ export declare const lux: BaseUnit<IlluminanceDim>;
23
+ //# sourceMappingURL=illuminance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"illuminance.d.ts","sourceRoot":"","sources":["../../src/src/illuminance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,kCAAkC;AAClC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;AAErD,yCAAyC;AACzC,eAAO,MAAM,GAAG,EAAE,QAAQ,CAAC,cAAc,CAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Illuminance units (J·L⁻²).
3
+ *
4
+ * SI unit: lux (lx).
5
+ *
6
+ * @example Creating an illuminance
7
+ * ```ts
8
+ * import { lux } from "@isentropic/dim-si/illuminance";
9
+ *
10
+ * const brightness = lux(500);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { illuminance } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Lux (lx) — SI unit of illuminance. */
18
+ export const lux = si.unit(illuminance);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Electrical inductance units (M·L²·T⁻²·I⁻²).
3
+ *
4
+ * SI unit: henry (H).
5
+ *
6
+ * @example Converting between inductance units
7
+ * ```ts
8
+ * import { henry, microhenry, millihenry } from "@isentropic/dim-si/inductance";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const coil = millihenry(10);
12
+ * valueIn(coil, microhenry); // 10000
13
+ * valueIn(coil, henry); // 0.01
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import type { Inductance as InductanceDim } from "@isentropic/dim-isq";
19
+ import type { Linear } from "@isentropic/dim-unit";
20
+ import type { BaseUnit, ScaledUnit } from "./types.js";
21
+ import type { Si } from "./system.js";
22
+ /** An SI inductance quantity. */
23
+ export type Inductance = Linear<InductanceDim, Si>;
24
+ /** Henry (H) — SI unit of inductance. */
25
+ export declare const henry: BaseUnit<InductanceDim>;
26
+ /** Millihenry (mH) — 10⁻³ henrys. */
27
+ export declare const millihenry: ScaledUnit<InductanceDim>;
28
+ /** Microhenry (μH) — 10⁻⁶ henrys. */
29
+ export declare const microhenry: ScaledUnit<InductanceDim>;
30
+ //# sourceMappingURL=inductance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inductance.d.ts","sourceRoot":"","sources":["../../src/src/inductance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,iCAAiC;AACjC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AAEnD,yCAAyC;AACzC,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAuB,CAAC;AAElE,qCAAqC;AACrC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,aAAa,CAAuB,CAAC;AAEzE,qCAAqC;AACrC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,aAAa,CAAuB,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Electrical inductance units (M·L²·T⁻²·I⁻²).
3
+ *
4
+ * SI unit: henry (H).
5
+ *
6
+ * @example Converting between inductance units
7
+ * ```ts
8
+ * import { henry, microhenry, millihenry } from "@isentropic/dim-si/inductance";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const coil = millihenry(10);
12
+ * valueIn(coil, microhenry); // 10000
13
+ * valueIn(coil, henry); // 0.01
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import { inductance } from "@isentropic/dim-isq";
19
+ import { si } from "./system.js";
20
+ import { MICRO, MILLI } from "./prefixes.js";
21
+ /** Henry (H) — SI unit of inductance. */
22
+ export const henry = si.unit(inductance);
23
+ /** Millihenry (mH) — 10⁻³ henrys. */
24
+ export const millihenry = henry.scaled(MILLI);
25
+ /** Microhenry (μH) — 10⁻⁶ henrys. */
26
+ export const microhenry = henry.scaled(MICRO);
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Length units (L).
3
+ *
4
+ * SI base unit: meter (m).
5
+ *
6
+ * @example Converting between length units
7
+ * ```ts
8
+ * import { kilometer, meter, millimeter } from "@isentropic/dim-si/length";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const distance = kilometer(5);
12
+ * valueIn(distance, meter); // 5000
13
+ * valueIn(distance, millimeter); // 5_000_000
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import type { Length as LengthDim } from "@isentropic/dim-isq";
19
+ import type { Linear } from "@isentropic/dim-unit";
20
+ import type { BaseUnit, ScaledUnit } from "./types.js";
21
+ import type { Si } from "./system.js";
22
+ /** An SI length quantity. */
23
+ export type Length = Linear<LengthDim, Si>;
24
+ /** Meter (m) — SI unit of length. */
25
+ export declare const meter: BaseUnit<LengthDim>;
26
+ /** Kilometer (km) — 1000 meters. */
27
+ export declare const kilometer: ScaledUnit<LengthDim>;
28
+ /** Centimeter (cm) — 0.01 meters. */
29
+ export declare const centimeter: ScaledUnit<LengthDim>;
30
+ /** Millimeter (mm) — 0.001 meters. */
31
+ export declare const millimeter: ScaledUnit<LengthDim>;
32
+ /** Micrometer (μm) — 10⁻⁶ meters. */
33
+ export declare const micrometer: ScaledUnit<LengthDim>;
34
+ /** Nanometer (nm) — 10⁻⁹ meters. */
35
+ export declare const nanometer: ScaledUnit<LengthDim>;
36
+ /** Picometer (pm) — 10⁻¹² meters. */
37
+ export declare const picometer: ScaledUnit<LengthDim>;
38
+ //# sourceMappingURL=length.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"length.d.ts","sourceRoot":"","sources":["../../src/src/length.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,6BAA6B;AAC7B,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAE3C,qCAAqC;AACrC,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAmB,CAAC;AAE1D,oCAAoC;AACpC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAsB,CAAC;AAEnE,qCAAqC;AACrC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,SAAS,CAAuB,CAAC;AAErE,sCAAsC;AACtC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,SAAS,CAAuB,CAAC;AAErE,qCAAqC;AACrC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,SAAS,CAAuB,CAAC;AAErE,oCAAoC;AACpC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAsB,CAAC;AAEnE,qCAAqC;AACrC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAsB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Length units (L).
3
+ *
4
+ * SI base unit: meter (m).
5
+ *
6
+ * @example Converting between length units
7
+ * ```ts
8
+ * import { kilometer, meter, millimeter } from "@isentropic/dim-si/length";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const distance = kilometer(5);
12
+ * valueIn(distance, meter); // 5000
13
+ * valueIn(distance, millimeter); // 5_000_000
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import { length } from "@isentropic/dim-isq";
19
+ import { si } from "./system.js";
20
+ import { CENTI, KILO, MICRO, MILLI, NANO, PICO } from "./prefixes.js";
21
+ /** Meter (m) — SI unit of length. */
22
+ export const meter = si.unit(length);
23
+ /** Kilometer (km) — 1000 meters. */
24
+ export const kilometer = meter.scaled(KILO);
25
+ /** Centimeter (cm) — 0.01 meters. */
26
+ export const centimeter = meter.scaled(CENTI);
27
+ /** Millimeter (mm) — 0.001 meters. */
28
+ export const millimeter = meter.scaled(MILLI);
29
+ /** Micrometer (μm) — 10⁻⁶ meters. */
30
+ export const micrometer = meter.scaled(MICRO);
31
+ /** Nanometer (nm) — 10⁻⁹ meters. */
32
+ export const nanometer = meter.scaled(NANO);
33
+ /** Picometer (pm) — 10⁻¹² meters. */
34
+ export const picometer = meter.scaled(PICO);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Luminous intensity units (J).
3
+ *
4
+ * SI base unit: candela (cd).
5
+ *
6
+ * @example Creating a luminous intensity
7
+ * ```ts
8
+ * import { candela } from "@isentropic/dim-si/luminosity";
9
+ *
10
+ * const intensity = candela(100);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { Luminosity as LuminosityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI luminosity quantity. */
20
+ export type Luminosity = Linear<LuminosityDim, Si>;
21
+ /** Candela (cd) — SI unit of luminous intensity. */
22
+ export declare const candela: BaseUnit<LuminosityDim>;
23
+ //# sourceMappingURL=luminosity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"luminosity.d.ts","sourceRoot":"","sources":["../../src/src/luminosity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,iCAAiC;AACjC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AAEnD,oDAAoD;AACpD,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,aAAa,CAAuB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Luminous intensity units (J).
3
+ *
4
+ * SI base unit: candela (cd).
5
+ *
6
+ * @example Creating a luminous intensity
7
+ * ```ts
8
+ * import { candela } from "@isentropic/dim-si/luminosity";
9
+ *
10
+ * const intensity = candela(100);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { luminosity } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Candela (cd) — SI unit of luminous intensity. */
18
+ export const candela = si.unit(luminosity);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Luminous flux units (J).
3
+ *
4
+ * SI unit: lumen (lm).
5
+ *
6
+ * @example Creating a luminous flux
7
+ * ```ts
8
+ * import { lumen } from "@isentropic/dim-si/luminous-flux";
9
+ *
10
+ * const output = lumen(800);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { LuminousFlux as LuminousFluxDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI luminous flux quantity. */
20
+ export type LuminousFlux = Linear<LuminousFluxDim, Si>;
21
+ /** Lumen (lm) — SI unit of luminous flux. */
22
+ export declare const lumen: BaseUnit<LuminousFluxDim>;
23
+ //# sourceMappingURL=luminous-flux.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"luminous-flux.d.ts","sourceRoot":"","sources":["../../src/src/luminous-flux.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAEvD,6CAA6C;AAC7C,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Luminous flux units (J).
3
+ *
4
+ * SI unit: lumen (lm).
5
+ *
6
+ * @example Creating a luminous flux
7
+ * ```ts
8
+ * import { lumen } from "@isentropic/dim-si/luminous-flux";
9
+ *
10
+ * const output = lumen(800);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { luminousFlux } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Lumen (lm) — SI unit of luminous flux. */
18
+ export const lumen = si.unit(luminousFlux);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Magnetic flux density units (M·T⁻²·I⁻¹).
3
+ *
4
+ * SI unit: tesla (T).
5
+ *
6
+ * @example Creating a magnetic flux density
7
+ * ```ts
8
+ * import { tesla } from "@isentropic/dim-si/magnetic-flux-density";
9
+ *
10
+ * const field = tesla(1.5);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { MagneticFluxDensity as MagneticFluxDensityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI magnetic flux density quantity. */
20
+ export type MagneticFluxDensity = Linear<MagneticFluxDensityDim, Si>;
21
+ /** Tesla (T) — SI unit of magnetic flux density. */
22
+ export declare const tesla: BaseUnit<MagneticFluxDensityDim>;
23
+ //# sourceMappingURL=magnetic-flux-density.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"magnetic-flux-density.d.ts","sourceRoot":"","sources":["../../src/src/magnetic-flux-density.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,4CAA4C;AAC5C,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;AAErE,oDAAoD;AACpD,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAElD,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Magnetic flux density units (M·T⁻²·I⁻¹).
3
+ *
4
+ * SI unit: tesla (T).
5
+ *
6
+ * @example Creating a magnetic flux density
7
+ * ```ts
8
+ * import { tesla } from "@isentropic/dim-si/magnetic-flux-density";
9
+ *
10
+ * const field = tesla(1.5);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { magneticFluxDensity } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Tesla (T) — SI unit of magnetic flux density. */
18
+ export const tesla = si.unit(magneticFluxDensity);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Magnetic flux units (M·L²·T⁻²·I⁻¹).
3
+ *
4
+ * SI unit: weber (Wb).
5
+ *
6
+ * @example Creating a magnetic flux
7
+ * ```ts
8
+ * import { weber } from "@isentropic/dim-si/magnetic-flux";
9
+ *
10
+ * const flux = weber(0.5);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { MagneticFlux as MagneticFluxDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI magnetic flux quantity. */
20
+ export type MagneticFlux = Linear<MagneticFluxDim, Si>;
21
+ /** Weber (Wb) — SI unit of magnetic flux. */
22
+ export declare const weber: BaseUnit<MagneticFluxDim>;
23
+ //# sourceMappingURL=magnetic-flux.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"magnetic-flux.d.ts","sourceRoot":"","sources":["../../src/src/magnetic-flux.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAEvD,6CAA6C;AAC7C,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Magnetic flux units (M·L²·T⁻²·I⁻¹).
3
+ *
4
+ * SI unit: weber (Wb).
5
+ *
6
+ * @example Creating a magnetic flux
7
+ * ```ts
8
+ * import { weber } from "@isentropic/dim-si/magnetic-flux";
9
+ *
10
+ * const flux = weber(0.5);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { magneticFlux } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Weber (Wb) — SI unit of magnetic flux. */
18
+ export const weber = si.unit(magneticFlux);