Documentation
    Preparing search index...

    Interface ResolvedSolidPaint

    A SolidPaint with every optional field resolved — what a shape stores and hands back, as opposed to what it accepts.

    Two types for one paint, and deliberately: shape.fill = { kind: "solid", color } should be writable without naming an opacity, and shape.fill.opacity should read 1 rather than undefined. Splitting the accessor's two halves says that in the type system instead of in a sentence nobody reads.

    interface ResolvedSolidPaint {
        color: ColorRGBA;
        kind: "solid";
        opacity: number;
    }
    Index
    color: ColorRGBA

    See SolidPaint.color; a copy of the authored tuple.

    kind: "solid"
    opacity: number

    See SolidPaint.opacity; 1 when none was authored.