Skip to content

editorGlobalsDashedLineHelper

Class: DashedLineHelper

This class helps generating dashed lines.

Hierarchy

  • DashedLineHelper

Index

Methods

Methods

Static generate

generate(line: Line3, dashLength: number, gapLength: number, offsetStart: number, offsetEnd: number, align: boolean, startDrawing: number, endDrawing: number): Line3[]

Defined in src/util/DashedLineHelper.ts:20

Generates a dashed line with the given parameters

Parameters:

Name Type Default Description
line Line3 - Line to dash
dashLength number - Length of the dashes
gapLength number - Length of the gaps between the dashes
offsetStart number - How much after the start of the line the dashed line should (conceptually) start
offsetEnd number - How much before the end of the line the dashed line should (conceptually) end
align boolean false If true, the dashed line will begin and end with a line
startDrawing number offsetStart How much after the start of the line the dashed line should be started to draw.
endDrawing number offsetEnd How much before the end of the line the dashed line drawing should stop.

Returns: Line3[]

The lines as two-element arrays containing start and end points of the dashes