@itwin/core-quantity 4.0.0-dev.52 → 4.0.0-dev.55

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 (66) hide show
  1. package/lib/cjs/Constants.d.ts +27 -27
  2. package/lib/cjs/Constants.js +52 -52
  3. package/lib/cjs/Constants.js.map +1 -1
  4. package/lib/cjs/Exception.d.ts +26 -26
  5. package/lib/cjs/Exception.js +38 -38
  6. package/lib/cjs/Formatter/Format.d.ts +91 -91
  7. package/lib/cjs/Formatter/Format.js +328 -328
  8. package/lib/cjs/Formatter/FormatEnums.d.ts +133 -133
  9. package/lib/cjs/Formatter/FormatEnums.js +318 -318
  10. package/lib/cjs/Formatter/Formatter.d.ts +44 -44
  11. package/lib/cjs/Formatter/Formatter.js +371 -371
  12. package/lib/cjs/Formatter/Formatter.js.map +1 -1
  13. package/lib/cjs/Formatter/FormatterSpec.d.ts +39 -39
  14. package/lib/cjs/Formatter/FormatterSpec.js +101 -101
  15. package/lib/cjs/Formatter/Interfaces.d.ts +62 -62
  16. package/lib/cjs/Formatter/Interfaces.js +17 -17
  17. package/lib/cjs/Interfaces.d.ts +86 -86
  18. package/lib/cjs/Interfaces.d.ts.map +1 -1
  19. package/lib/cjs/Interfaces.js +9 -9
  20. package/lib/cjs/Parser.d.ts +93 -93
  21. package/lib/cjs/Parser.d.ts.map +1 -1
  22. package/lib/cjs/Parser.js +592 -592
  23. package/lib/cjs/Parser.js.map +1 -1
  24. package/lib/cjs/ParserSpec.d.ts +34 -34
  25. package/lib/cjs/ParserSpec.js +47 -47
  26. package/lib/cjs/Quantity.d.ts +27 -27
  27. package/lib/cjs/Quantity.js +46 -46
  28. package/lib/cjs/Quantity.js.map +1 -1
  29. package/lib/cjs/Unit.d.ts +25 -25
  30. package/lib/cjs/Unit.js +44 -44
  31. package/lib/cjs/core-quantity.d.ts +19 -19
  32. package/lib/cjs/core-quantity.js +39 -35
  33. package/lib/cjs/core-quantity.js.map +1 -1
  34. package/lib/esm/Constants.d.ts +27 -27
  35. package/lib/esm/Constants.js +49 -48
  36. package/lib/esm/Constants.js.map +1 -1
  37. package/lib/esm/Exception.d.ts +26 -26
  38. package/lib/esm/Exception.js +34 -34
  39. package/lib/esm/Formatter/Format.d.ts +91 -91
  40. package/lib/esm/Formatter/Format.js +323 -323
  41. package/lib/esm/Formatter/FormatEnums.d.ts +133 -133
  42. package/lib/esm/Formatter/FormatEnums.js +302 -302
  43. package/lib/esm/Formatter/Formatter.d.ts +44 -44
  44. package/lib/esm/Formatter/Formatter.js +368 -367
  45. package/lib/esm/Formatter/Formatter.js.map +1 -1
  46. package/lib/esm/Formatter/FormatterSpec.d.ts +39 -39
  47. package/lib/esm/Formatter/FormatterSpec.js +97 -97
  48. package/lib/esm/Formatter/Interfaces.d.ts +62 -62
  49. package/lib/esm/Formatter/Interfaces.js +13 -13
  50. package/lib/esm/Interfaces.d.ts +86 -86
  51. package/lib/esm/Interfaces.d.ts.map +1 -1
  52. package/lib/esm/Interfaces.js +8 -8
  53. package/lib/esm/Parser.d.ts +93 -93
  54. package/lib/esm/Parser.d.ts.map +1 -1
  55. package/lib/esm/Parser.js +589 -588
  56. package/lib/esm/Parser.js.map +1 -1
  57. package/lib/esm/ParserSpec.d.ts +34 -34
  58. package/lib/esm/ParserSpec.js +43 -43
  59. package/lib/esm/Quantity.d.ts +27 -27
  60. package/lib/esm/Quantity.js +42 -42
  61. package/lib/esm/Quantity.js.map +1 -1
  62. package/lib/esm/Unit.d.ts +25 -25
  63. package/lib/esm/Unit.js +39 -39
  64. package/lib/esm/core-quantity.d.ts +19 -19
  65. package/lib/esm/core-quantity.js +23 -23
  66. package/package.json +6 -6
@@ -1,45 +1,45 @@
1
- /** @packageDocumentation
2
- * @module Quantity
3
- */
4
- import { FormatterSpec } from "./FormatterSpec";
5
- /** A helper class that contains methods used to format quantity values based on a format that are defined via the Format class.
6
- * @beta
7
- */
8
- export declare class Formatter {
9
- private static FPV_MINTHRESHOLD;
10
- private static isNegligible;
11
- /** Return floating point value rounded by specific rounding factor.
12
- * @param value Value to be rounded.
13
- * @param roundTo Rounding factor.
14
- */
15
- private static roundDouble;
16
- /** Generate a formatted text string integer value insert 1000 separators if appropriate.
17
- * @param wholePart Integer value to be formatted.
18
- */
19
- private static integerPartToText;
20
- /** Trim trailing "0" from the text that represent the fractional part of a floating point value.
21
- * @param strVal The value string.
22
- */
23
- private static trimTrailingZeroes;
24
- /** Format a quantity value into a composite format such as ft-in or deg-min-sec.
25
- * @param compositeValue The value for this part of the composite
26
- * @param isLastPart If false the composite value should be a whole value, if true then the value should be formatted as a floating point value.
27
- * @param label Label for this part of the composite. This will be either the default unit label or a custom label specified the format specification.
28
- */
29
- private static formatCompositePart;
30
- /** Format a quantity value into a composite format such as ft-in or deg-min-sec.
31
- * @param magnitude quantity value
32
- * @param fromUnit quantity unit
33
- */
34
- private static formatComposite;
35
- /** Format a quantity value into a single text string. Imitate how formatting done by server method NumericFormatSpec::FormatDouble.
36
- * @param magnitude quantity value
37
- */
38
- private static formatMagnitude;
39
- /** Format a quantity value into a single text string based on the current format specification of this class.
40
- * @param magnitude defines the value to spec.format.
41
- * @param spec A FormatterSpec object the defines specification for the magnitude and unit conversions for the formatter.
42
- */
43
- static formatQuantity(magnitude: number, spec: FormatterSpec): string;
44
- }
1
+ /** @packageDocumentation
2
+ * @module Quantity
3
+ */
4
+ import { FormatterSpec } from "./FormatterSpec";
5
+ /** A helper class that contains methods used to format quantity values based on a format that are defined via the Format class.
6
+ * @beta
7
+ */
8
+ export declare class Formatter {
9
+ private static FPV_MINTHRESHOLD;
10
+ private static isNegligible;
11
+ /** Return floating point value rounded by specific rounding factor.
12
+ * @param value Value to be rounded.
13
+ * @param roundTo Rounding factor.
14
+ */
15
+ private static roundDouble;
16
+ /** Generate a formatted text string integer value insert 1000 separators if appropriate.
17
+ * @param wholePart Integer value to be formatted.
18
+ */
19
+ private static integerPartToText;
20
+ /** Trim trailing "0" from the text that represent the fractional part of a floating point value.
21
+ * @param strVal The value string.
22
+ */
23
+ private static trimTrailingZeroes;
24
+ /** Format a quantity value into a composite format such as ft-in or deg-min-sec.
25
+ * @param compositeValue The value for this part of the composite
26
+ * @param isLastPart If false the composite value should be a whole value, if true then the value should be formatted as a floating point value.
27
+ * @param label Label for this part of the composite. This will be either the default unit label or a custom label specified the format specification.
28
+ */
29
+ private static formatCompositePart;
30
+ /** Format a quantity value into a composite format such as ft-in or deg-min-sec.
31
+ * @param magnitude quantity value
32
+ * @param fromUnit quantity unit
33
+ */
34
+ private static formatComposite;
35
+ /** Format a quantity value into a single text string. Imitate how formatting done by server method NumericFormatSpec::FormatDouble.
36
+ * @param magnitude quantity value
37
+ */
38
+ private static formatMagnitude;
39
+ /** Format a quantity value into a single text string based on the current format specification of this class.
40
+ * @param magnitude defines the value to spec.format.
41
+ * @param spec A FormatterSpec object the defines specification for the magnitude and unit conversions for the formatter.
42
+ */
43
+ static formatQuantity(magnitude: number, spec: FormatterSpec): string;
44
+ }
45
45
  //# sourceMappingURL=Formatter.d.ts.map