LuciadRIA (2026.0.07)
    Preparing search index...
    • 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()
      };

      Results in:

      PatternFactory.parallelLine illustration

      Parameters

      Returns Pattern

      A pattern that is shaped as a line segment, parallel to the base line.