Staquia API
    Preparing search index...

    Interface IPresetOptions

    The options of a preset (Staquia.alphabet(), Staquia.urlSafe()...): the preset sets the characters, these change the lengths and the threshold, and the classes of IStaquiaOptions.

    import Staquia from "staquia";

    // The URL safe characters with a longer `N` section
    const system = Staquia.urlSafe({ ln: 6 });
    interface IPresetOptions {
        "fϰ"?: number;
        ln?: number;
        lz?: number;
        number?: new () => IDigits;
        position?: new () => IPosition;
    }

    Hierarchy (View Summary)

    Index

    Properties

    "fϰ"?: number

    The threshold factor from 0 to 1 (0.15 by default).

    ln?: number

    The fixed length of the N section (5 by default).

    lz?: number

    The max length of the Z section (15 by default).

    number?: new () => IDigits

    The class of the numbers (Digits by default). The system creates its instances with new and then initializes their digits, bounds and map.

    position?: new () => IPosition

    The class of the positions (Position by default). The system creates its instances with new and then sets their n, z and length.