Skip to content

Documentation / @ripl/core / Pattern

Interface: Pattern ​

Defined in: packages/core/src/pattern/types.ts:5

A parsed repeating pattern (decal) fill, used to keep series distinguishable without relying on color alone.

Properties ​

PropertyTypeDescriptionDefined in
backgroundstringThe CSS color painted behind the motif; 'transparent' leaves the tile see-through.packages/core/src/pattern/types.ts:11
foregroundstringThe CSS color used to draw the pattern's lines or dots.packages/core/src/pattern/types.ts:9
sizenumberThe width and height of the square repeating tile, in user-space pixels.packages/core/src/pattern/types.ts:13
typePatternTypeThe built-in tile motif drawn by the pattern.packages/core/src/pattern/types.ts:7