Line
Straight line component.
Properties
| Property | Type | Description |
|---|---|---|
points | Signal<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,
});