Skip to content

Documentation / @ripl/core / PatternTileLine

Interface: PatternTileLine ​

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

A straight line segment within a pattern tile, stroked with the pattern's foreground color.

Properties ​

PropertyTypeDescriptionDefined in
kind"line"Discriminant identifying the shape as a line segment.packages/core/src/pattern/types.ts:19
widthnumberThe stroke width of the line, in tile-space pixels.packages/core/src/pattern/types.ts:29
x1numberThe x coordinate of the line's start point, in tile space.packages/core/src/pattern/types.ts:21
x2numberThe x coordinate of the line's end point, in tile space.packages/core/src/pattern/types.ts:25
y1numberThe y coordinate of the line's start point, in tile space.packages/core/src/pattern/types.ts:23
y2numberThe y coordinate of the line's end point, in tile space.packages/core/src/pattern/types.ts:27