Chartbreaker
    Preparing search index...

    Variable createLineWidthOptionConst

    createLineWidthOption: <T extends ChartbreakerObject>(
        { name, _set, _get, flags, }: {
            _get: LineWidthOption<T>["_get"];
            _set: LineWidthOption<T>["_set"];
            flags?: LineWidthOption<T>["flags"];
            name?: LineWidthOption<T>["name"];
        },
    ) => LineWidthOption<T>

    Creates a line‑width option including the ENUM_LINEWIDTH flag and using "Line width" as the default label.

    The returned option object will:

    • OR your flags with ENUM_LINEWIDTH
    • Provide a human‑readable name (customizable)
    • Expose a mapping of numeric values to (translated) labels: 1 → "Thin" 2 → "Normal" 3 → "Thick" 4 → "Thicker" 5 → "Extra thick"
    • Delegate getting and setting of the current width via your callbacks

    Type Declaration