From 61b47b0a527e777548d482e0a2e1d893510e3f03 Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Thu, 30 Nov 2023 11:48:45 -0700 Subject: [PATCH] Regenerate docs --- docs/functions/formatQuantity-1.html | 2 +- docs/interfaces/FormatQuantity.html | 2 +- docs/interfaces/FormatQuantityOptions.html | 10 +++++----- docs/types/SimpleFraction.html | 2 +- docs/types/Sixteenth.html | 2 +- docs/types/VulgarFraction.html | 2 +- docs/variables/defaultOptions.html | 2 +- docs/variables/defaultTolerance.html | 2 +- docs/variables/fractionDecimalMatches.html | 2 +- docs/variables/vulgarToAsciiMap.html | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/functions/formatQuantity-1.html b/docs/functions/formatQuantity-1.html index 505e3f7..eb41c6f 100644 --- a/docs/functions/formatQuantity-1.html +++ b/docs/functions/formatQuantity-1.html @@ -6,4 +6,4 @@ "1 1/2" instead of "1.5". To use vulgar fraction characters like "½", pass true as the second argument. For other options see FormatQuantityOptions.

-

Parameters

Returns null | string

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns null | string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/FormatQuantity.html b/docs/interfaces/FormatQuantity.html index 224c096..248e33e 100644 --- a/docs/interfaces/FormatQuantity.html +++ b/docs/interfaces/FormatQuantity.html @@ -2,4 +2,4 @@ window.__typeDocPluginKatexOptions={"delimiters":[{"left":"$$","right":"$$","display":true},{"left":"$","right":"$","display":false}]}; window.addEventListener('load', () => window.renderMathInElement(document.body, window.__typeDocPluginKatexOptions));

Interface FormatQuantity

Function signature of formatQuantity.

-
interface FormatQuantity ((qty, options?) => null | string)
  • Parameters

    Returns null | string

Generated using TypeDoc

\ No newline at end of file +
interface FormatQuantity ((qty, options?) => null | string)

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/FormatQuantityOptions.html b/docs/interfaces/FormatQuantityOptions.html index aab7f8d..5022f12 100644 --- a/docs/interfaces/FormatQuantityOptions.html +++ b/docs/interfaces/FormatQuantityOptions.html @@ -1,23 +1,23 @@ FormatQuantityOptions | format-quantity - v2.1.0

Interface FormatQuantityOptions

interface FormatQuantityOptions {
    fractionSlash?: boolean;
    romanNumerals?: boolean;
    tolerance?: number;
    vulgarFractions?: boolean;
}

Properties

fractionSlash? +

Interface FormatQuantityOptions

interface FormatQuantityOptions {
    fractionSlash?: boolean;
    romanNumerals?: boolean;
    tolerance?: number;
    vulgarFractions?: boolean;
}

Properties

fractionSlash?: boolean

Output the fraction slash character (⁄) instead of the "solidus" slash (/) for fractions. Results appear like "1⁄2" instead of "1/2". Overridden by the vulgarFractions option.

-
romanNumerals?: boolean

Output in Roman numerals. Provided value must be between 1 and 3999, inclusive. +

romanNumerals?: boolean

Output in Roman numerals. Provided value must be between 1 and 3999, inclusive. Decimal values will be ignored (Math.floor is used to remove them). Overrides all other options.

-
tolerance?: number

Amount by which a number can deviate from the calculated quotient to be +

tolerance?: number

Amount by which a number can deviate from the calculated quotient to be considered a match. For example, 0.66 is close enough to 2 ÷ 3 (which is 0.66666... repeating) to be considered equivalent so the function will return "2/3". The smaller this number, the higher the likelihood that the function will return a decimal instead of a fraction or mixed number.

Default

0.0075
 
-
vulgarFractions?: boolean

Output vulgar fractions, like "½" instead of "1/2", when appropriate. +

vulgarFractions?: boolean

Output vulgar fractions, like "½" instead of "1/2", when appropriate. Overrides the fractionSlash option.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/SimpleFraction.html b/docs/types/SimpleFraction.html index 2c4c98b..12ce054 100644 --- a/docs/types/SimpleFraction.html +++ b/docs/types/SimpleFraction.html @@ -4,4 +4,4 @@

Type alias SimpleFraction

SimpleFraction: `${NonZeroDigit}/${NonZeroDigit}` | `${NonZeroDigit}/${NonZeroDigit}${Digit}` | `${NonZeroDigit}${Digit}/${NonZeroDigit}${Digit}`

Fraction string with either one or two numeric characters in both the numerator and denominator (but not two characters in the numerator while the denominator only has one).

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/Sixteenth.html b/docs/types/Sixteenth.html index a293f5b..f39220c 100644 --- a/docs/types/Sixteenth.html +++ b/docs/types/Sixteenth.html @@ -2,4 +2,4 @@ window.__typeDocPluginKatexOptions={"delimiters":[{"left":"$$","right":"$$","display":true},{"left":"$","right":"$","display":false}]}; window.addEventListener('load', () => window.renderMathInElement(document.body, window.__typeDocPluginKatexOptions));

Type alias Sixteenth

Sixteenth: `${"1" | "3" | "5" | "7" | "9" | "11" | "13" | "15"}/16`

Odd numerator sixteenth fraction strings.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/VulgarFraction.html b/docs/types/VulgarFraction.html index acc8f29..11a6aae 100644 --- a/docs/types/VulgarFraction.html +++ b/docs/types/VulgarFraction.html @@ -2,4 +2,4 @@ window.__typeDocPluginKatexOptions={"delimiters":[{"left":"$$","right":"$$","display":true},{"left":"$","right":"$","display":false}]}; window.addEventListener('load', () => window.renderMathInElement(document.body, window.__typeDocPluginKatexOptions));

Type alias VulgarFraction

VulgarFraction: "¼" | "½" | "¾" | "⅐" | "⅑" | "⅒" | "⅓" | "⅔" | "⅕" | "⅖" | "⅗" | "⅘" | "⅙" | "⅚" | "⅛" | "⅜" | "⅝" | "⅞"

Unicode vulgar fraction code points.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/defaultOptions.html b/docs/variables/defaultOptions.html index a0c3474..aba0551 100644 --- a/docs/variables/defaultOptions.html +++ b/docs/variables/defaultOptions.html @@ -2,4 +2,4 @@ window.__typeDocPluginKatexOptions={"delimiters":[{"left":"$$","right":"$$","display":true},{"left":"$","right":"$","display":false}]}; window.addEventListener('load', () => window.renderMathInElement(document.body, window.__typeDocPluginKatexOptions));

Variable defaultOptionsConst

defaultOptions: {
    fractionSlash: false;
    romanNumerals: false;
    tolerance: 0.0075;
    vulgarFractions: false;
} = ...

Default options for formatQuantity.

-

Type declaration

  • fractionSlash: false
  • romanNumerals: false
  • tolerance: 0.0075
  • vulgarFractions: false

Generated using TypeDoc

\ No newline at end of file +

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/defaultTolerance.html b/docs/variables/defaultTolerance.html index 46cfa7a..50576c8 100644 --- a/docs/variables/defaultTolerance.html +++ b/docs/variables/defaultTolerance.html @@ -3,4 +3,4 @@ window.addEventListener('load', () => window.renderMathInElement(document.body, window.__typeDocPluginKatexOptions));

Variable defaultToleranceConst

defaultTolerance: 0.0075 = ...

Default tolerance used by formatQuantity when determining if a number is close enough to a fraction value to be considered equivalent.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/fractionDecimalMatches.html b/docs/variables/fractionDecimalMatches.html index 18d20e7..780715b 100644 --- a/docs/variables/fractionDecimalMatches.html +++ b/docs/variables/fractionDecimalMatches.html @@ -3,4 +3,4 @@ window.addEventListener('load', () => window.renderMathInElement(document.body, window.__typeDocPluginKatexOptions));

Variable fractionDecimalMatchesConst

fractionDecimalMatches: ([number, "⅓"] | [number, "⅔"] | [number, "⅕"] | [number, "⅖"] | [number, "⅗"] | [number, "⅘"] | [number, "⅙"] | [number, "⅚"] | [number, "⅐"] | [number, "⅑"] | [number, "⅒"] | [number, "⅛"] | [number, "¼"] | [number, "⅜"] | [number, "½"] | [number, "⅝"] | [number, "¾"] | [number, "⅞"] | [number, "1/16"] | [number, "3/16"] | [number, "5/16"] | [number, "7/16"] | [number, "9/16"] | [number, "11/16"] | [number, "13/16"] | [number, "15/16"])[] = ...

Map of "close enough" decimal values to the VulgarFraction or Sixteenth fraction string matches.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/vulgarToAsciiMap.html b/docs/variables/vulgarToAsciiMap.html index 22a9e5d..18f64cf 100644 --- a/docs/variables/vulgarToAsciiMap.html +++ b/docs/variables/vulgarToAsciiMap.html @@ -2,4 +2,4 @@ window.__typeDocPluginKatexOptions={"delimiters":[{"left":"$$","right":"$$","display":true},{"left":"$","right":"$","display":false}]}; window.addEventListener('load', () => window.renderMathInElement(document.body, window.__typeDocPluginKatexOptions));

Variable vulgarToAsciiMapConst

vulgarToAsciiMap: {
    ¼: "1/4";
    ½: "1/2";
    ¾: "3/4";
    : "1/7";
    : "1/9";
    : "1/10";
    : "1/3";
    : "2/3";
    : "1/5";
    : "2/5";
    : "3/5";
    : "4/5";
    : "1/6";
    : "5/6";
    : "1/8";
    : "3/8";
    : "5/8";
    : "7/8";
} = ...

Map of vulgar fractions to their traditional ASCII equivalents.

-

Type declaration

  • ¼: "1/4"
  • ½: "1/2"
  • ¾: "3/4"
  • : "1/7"
  • : "1/9"
  • : "1/10"
  • : "1/3"
  • : "2/3"
  • : "1/5"
  • : "2/5"
  • : "3/5"
  • : "4/5"
  • : "1/6"
  • : "5/6"
  • : "1/8"
  • : "3/8"
  • : "5/8"
  • : "7/8"

Generated using TypeDoc

\ No newline at end of file +

Type declaration

Generated using TypeDoc

\ No newline at end of file