Skip to main content

Path

Path component supporting SVG path syntax.

Properties

PropertyTypeDescription
pathSignal<string, string, this>SVG path string

Examples

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

const path = new Path({
path: 'M 0 0 L 100 100 L 200 0',
stroke: 'white',
lineWidth: 4,
});