Polyline

继承自 BaseLine

<Polyline
path={[
[x1, y1],
[x2, y2],
[xn, yn],
]}
/>

Source Code

Props

属性名类型备注
pathnumber[2][], number[2][][]
...继承的属性

Events

事件名备注
...继承的事件

PolylineEditor

<PolylineEditor enabled={enabled} onChange={target => {...}}>
<Polyline path={[...]} />
</PolylineEditor>

Props

属性名类型备注
enabledboolean

Events

事件名备注
change

Example

查看源代码: