supervision-js
    Preparing search index...

    Class BaseMaskStyle

    Default compressed-RLE mask style.

    Static color/stroke options can reuse prepared mask artifacts by key. Dynamic color or stroke resolvers intentionally do not expose an artifact key, so new style objects rebuild prepared palettes instead of reusing stale ones.

    Implements

    Index
    artifactKey: string | undefined

    Stable identity for the prepared mask pixels. Exclude presentation-only controls such as global opacity so cached mask artifacts can be reused.

    opacity: number

    Presentation opacity applied by the renderer after the mask artifact is prepared. Use this for cheap live opacity updates.