Interface: PathPattern
A pattern which can be drawn along a path.
Properties
anchor
• Readonly
anchor: number
The anchor point of each repeating unit of this pattern along its length, as a fraction of the total length. The orientation of each pattern unit is determined by the direction of the path at its anchor point.
Defined in
src/sdk/graphics/path/PatternPathStream.ts:17
length
• Readonly
length: number
The along-path length of each repeating unit of this pattern.
Defined in
src/sdk/graphics/path/PatternPathStream.ts:11
Methods
draw
▸ draw(stream
): void
Draws a single unit of this pattern to a path stream. The coordinate system of the path stream is set such that the anchor point of the pattern unit is located at the origin (0, 0), and the positive x-axis points in the direction of the path on which the pattern unit is placed.
Parameters
Name | Type | Description |
---|---|---|
stream | PathStream | The path stream to which to draw this pattern. |
Returns
void
Defined in
src/sdk/graphics/path/PatternPathStream.ts:25