weasel API - v0.8.0
    Preparing search index...

    Interface ToolPrefPaint

    A whole FillStyle, not a color inside one. Use it wherever the value is the tagged paint union — a solid color, a pattern, a gradient — rather than a hex string.

    Addressing …fill.color instead reads undefined off a gradient (so the control shows its default and claims the text is black) and writes a hybrid { fill: 'gradient', stops, color } that the renderer's structural 'color' in paint checks then paint flat solid. The union has to be edited as a union.

    interface ToolPrefPaint {
        alpha?: boolean;
        block?: boolean;
        default: unknown;
        description: string;
        hidden?: boolean;
        kind: "paint";
        name: string;
        pair?: string;
    }

    Hierarchy

    • ToolPrefBase<"paint", unknown>
      • ToolPrefPaint
    Index

    Properties

    alpha?: boolean

    Offer an opacity control alongside the color.

    block?: boolean

    Render full-width with no label row in schema-driven settings UIs (weasel-ui PrefsForm honors this for leaves whose control brings its own chrome).

    default: unknown

    Fallback when nothing is persisted.

    description: string

    Longer help text — shown in tooltips / a settings pane.

    hidden?: boolean

    Hide from a host app's settings UI by default.

    kind: "paint"
    name: string

    Human-readable label.

    pair?: string

    Row-pairing hint for compact property UIs (weasel-ui SelectionPanel): leaves sharing a pair id render side-by-side on one row labeled with the pair string (e.g. 'Position' for pose.x / pose.y). Purely presentational.