Creates a pattern with a line segment shape that is parallel to the base line.
Sample code snippet to make a parallelLine:
const parallelLine1 = parallelLine({length: 20, offset: 10, line: {width: 3}}); const parallelLine2 = parallelLine({length: 20, offset: -10, line: {width: 3}}); const complexStrokedLineStyle = { decorations: [{ location: 0.5, pattern: append([parallelLine1, parallelLine2]) }], fallback: parallelLine() }; Copy
const parallelLine1 = parallelLine({length: 20, offset: 10, line: {width: 3}}); const parallelLine2 = parallelLine({length: 20, offset: -10, line: {width: 3}}); const complexStrokedLineStyle = { decorations: [{ location: 0.5, pattern: append([parallelLine1, parallelLine2]) }], fallback: parallelLine() };
Results in:
Optional
An object literal describing the configuration of the pattern.
A pattern that is shaped as a line segment, parallel to the base line.
Creates a pattern with a line segment shape that is parallel to the base line.
Sample code snippet to make a parallelLine:
Results in: