Skip to main content

Line

Straight line component.

Properties

PropertyTypeDescription
pointsSignal<PossibleVector2[], Vector2[], this>Points of the line

Examples

import {Line} from '@wangyaoshen/locus';

const line = new Line({
points: [new Vector2(-100, 0), new Vector2(100, 0)],
stroke: 'white',
lineWidth: 4,
});