Path 路径
基本用法
与Line不同的区别在于,路径可以配合贴图实现例如疏散路径示意图之类的功能
如果你希望箭头的长度较长,可以尝试设置repeat来控制长度,当然前提是你的素材也是长箭头
Options
IGeneratePathVertexDataOption
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
width | 线条宽度 | number | 0.1 |
progress | 间隔 | number | 1 |
arrow | 是否绘制箭头 | boolean | false |
side | 朝向 | left |right |both | both |
IBasicLineConstructorOption
继承自IBasicLine
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
points | 线条拐点合集 | RTHREE.Vector3[] | - |
IStandardLine
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
containerWidth | 容器宽度 | number | - |
containerHeight | 容器高度 | number | - |
lineWidth | 线条宽度 | number | 2 |
isDash | 是否为虚线 | boolean | false |
dashSize | 虚线段长度 | number | .5 |
gapSize | 虚线段间距 | number | .25 |
IStandardConstructorOption
继承自IStandardLine
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
lineColor | 线条颜色 | RTHREE.Color | 0xFFFFFF |
points | 线条拐点合集 | RTHREE.Vector3[] | - |
RBasicLine
Methods
updateMaterial(options: IBasicLine)
更新线条材质
RStandardLine
Methods
updateMaterial(options: IStandardLine)
更新线条材质