Rectangle

继承自 BasePlane

<Rectangle
bounds={[
[swx, swy],
[nex, ney],
]}
/>

Source Code

Props

属性名类型备注
boundsnumber[2][2]
...继承的属性

Events

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

RectangleEditor

<RectangleEditor enabled={enablld} onChange={target => {...}} opts={{ ... }}>
<Rectangle bounds={[...]} />
</RectangleEditor>

Props

属性名类型备注
enabledboolean
optsobject可选

Events

事件名备注
change

Example

查看源代码: