new InstantLeak(viewer)
app/business/InstantLeak.js, line 76
| Name | Type | Description |
|---|---|---|
viewer |
Viewer |
视图 |
Classes
Methods
-
add(position, options)
app/business/InstantLeak.js, line 118 -
添加模型
Name Type Description positionmodule:base~Position 泄露位置
options* Name Type Description radiusArrArray 半径数组
distanceArrArray 距离数组
angleNumber 方向
isGuideBoolean 辅助线
styleObject 模拟style
Name Type Description materialColor 填充颜色
outlineBoolean 是否有轮廓
outlineColorColor 轮廓颜色
outlineWidthNumber 轮廓宽度
lineStyleObject 辅助线style
Name Type Description materialColor 辅助线颜色
widthColor 辅助线宽
labelStyleObject 注记style
Name Type Description outlineColorColor 注记轮廓颜色
fillColorColor 注记填充颜色
fontString 注记字体
-
clear()
app/business/InstantLeak.js, line 148 -
清空模拟图形,清空后可添加
-
remove()
app/business/InstantLeak.js, line 137 -
移除模拟图形,移除后不可添加