Polygon

继承自 BasePlane

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

Source Code

Props

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

Events

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

PolygonEditor

<PolygonEditor enabled={enabled} onChange={target => {...}} opts={{ ... }}>
<Polygon path={[...]} />
</PolygonEditor>

Props

属性名类型备注
enabledboolean
optsobject可选

Events

事件名备注
change

Example

查看源代码: