PathSymbol3DLayer
关系
Extends
PathSymbol3DLayer Extends Symbol3DLayer
继承: Symbol3DLayer
构造函数
PathSymbol3DLayer
PathSymbol3DLayer 通过沿线拉伸 2D 轮廓来渲染 Polyline 几何体。
new PathSymbol3DLayer(properties?)
参数
- properties?:
PathSymbol3DLayerProperties
返回:PathSymbol3DLayer PathSymbol3DLayer对象
属性
anchor
定义路径横截面相对于 Polyline 几何体的偏移。
anchor: "center" | "top" | "bottom"
类型: "center" | "top" | "bottom"
cap
控制路径起点和终点的形状。
cap: "none" | "square" | "butt" | "round"
类型: "none" | "square" | "butt" | "round"
castShadows
指示符号图层几何体是否在场景中投射阴影。
castShadows: boolean
类型: boolean
declaredClass
声明的类名
declaredClass: string
类型: string
destroyed
指示对象是否已被销毁
destroyed: boolean
类型: boolean
height
路径横截面的垂直尺寸,以米为单位。
height: number
类型: number
initialized
指示对象是否已初始化
initialized: boolean
类型: boolean
join
控制路径两个线段之间连接的形状。
join: "round" | "miter" | "bevel"
类型: "round" | "miter" | "bevel"
profile
路径几何体的横截面轮廓。
profile: "circle" | "quad"
类型: "circle" | "quad"
profileRotation
定义轮廓沿 Polyline 几何体拉伸时的旋转方式。
profileRotation: "heading" | "all"
类型: "heading" | "all"
type
符号类型,固定值为 "path"。
type: "path"
类型: "path"
width
路径横截面的水平尺寸,以米为单位。
width: number
类型: number
访问器
material
用于着色路径的材质。
get material(): PathSymbol3DLayerMaterial
返回: PathSymbol3DLayerMaterial 用于着色路径的材质。
set material(value: PathSymbol3DLayerMaterialProperties): void
参数
返回: void
方法
addHandles
添加事件句柄到指定组
addHandles(handles, groupKey?): void
返回:void
clone
创建符号图层的深度克隆。
clone(): PathSymbol3DLayer
返回:PathSymbol3DLayer
destroy
销毁对象实例
destroy(): void
返回:void
hasHandles
检查是否存在指定组的句柄
hasHandles(groupKey?): boolean
参数
- groupKey?:
Exclude<T> 组标识键
返回:boolean
removeHandles
移除指定组的所有句柄
removeHandles(groupKey?): void
参数
- groupKey?:
Exclude<T> 组标识键,如果不指定则移除默认组的句柄
返回:void
set
设置单个属性值
set(propertyName, value): this
参数
propertyName:
stringT属性名称 ###### value 属性值
返回:this
toJSON
将此类的实例转换为 JSON 表示形式。
toJSON(): any
返回:any
watch
监听属性变化
watch(path, callback, sync?): WatchHandle
参数
- path:
string|string要监听的属性路径,可以是字符串或字符串数组 - callback:
WatchCallback属性变化时的回调函数 - sync?:
boolean是否同步执行回调,默认为false
返回:WatchHandle

BIMFlux AI
