Chartbreaker
    Preparing search index...

    Variable createTextStyleOptionConst

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

    Creates a text-style option including the ENUM_TEXTSTYLE flag and using "Text style" as the default label.

    The returned option object will:

    • OR your flags with ENUM_TEXTSTYLE
    • Provide a human‑readable name (customizable)
    • Expose a mapping of canvas font values to (translated) labels: normal → "Normal" bold → "Bold" italic → "Italic" italic bold → "Italic bold"
    • Delegate getting and setting of the current style via your callbacks

    Type Declaration