Properties

    • x Number

    默认值:0

    • Number

    矩形左上角的 y 坐标

    默认值:0

    矩形的宽度。

    默认值:0

    默认值:0

    • Number

    圆角半径配置。当值为数值类型时,表示四个圆角的半径。当值为数组时,可以分别设置左上、右上、右下、左下四个圆角的半径。

    默认值:0

    矩形 click 事件的回调函数。

    • Function optional

    矩形 mousedown 事件的回调函数。

    矩形 mousemove 事件的回调函数。

    • Function optional

    矩形 mouseover 事件的回调函数。

    矩形 mouseout 事件的回调函数。

    • Function optional

    矩形 moustenter 事件的回调函数。

    矩形 mouseleave 事件的回调函数。