Line
绘制横线、斜线、竖线、折线、平滑曲线。
用法
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| x | number | —— | x 轴起点 |
| y | number | —— | y 轴起点 |
| width | number | —— | 线的长度 |
| strokeWidth | number | 1 | 线的宽度 |
| stroke | string | —— | 线的颜色 |
| rotation | number | —— | 旋转角度, 取值范围: -180 ~ 180 |
| toPoint | {x:^[number], y:^[number]} | —— | 画到某一点 setter(相对于元素起点的坐标), 自动换算出 width 与 rotation |
详情查看Line |🌿 Leafer UI。
事件请查看事件处理 |🌿 Leafer Vue
