Skip to content

Line

绘制横线、斜线、竖线、折线、平滑曲线。

用法

核心属性

名称类型默认值说明
xnumber——x 轴起点
ynumber——y 轴起点
widthnumber——线的长度
strokeWidthnumber1线的宽度
strokestring——线的颜色
rotationnumber——旋转角度, 取值范围: -180 ~ 180
toPoint{x:^[number], y:^[number]}——画到某一点 setter(相对于元素起点的坐标), 自动换算出 width 与 rotation

详情查看Line |🌿 Leafer UI

事件请查看事件处理 |🌿 Leafer Vue

Released under the MIT License.