Documentation / @ripl/core / getPatternTileGeometry
Function: getPatternTileGeometry() ​
getPatternTileGeometry(
pattern):PatternTileGeometry
Defined in: packages/core/src/pattern/geometry.ts:90
Resolves the renderer-agnostic tile geometry for a pattern. Both the canvas and SVG backends draw the same primitive shapes, so a pattern renders identically across contexts. Diagonal lines extend beyond the tile bounds so the motif tiles seamlessly once clipped and repeated.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
pattern | Pattern | The parsed pattern to lay out. |
Returns ​
The tile size and the primitive shapes to draw within it.