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 position
module:base~Position 泄露位置
options
* Name Type Description radiusArr
Array 半径数组
distanceArr
Array 距离数组
angle
Number 方向
isGuide
Boolean 辅助线
style
Object 模拟style
Name Type Description material
Color 填充颜色
outline
Boolean 是否有轮廓
outlineColor
Color 轮廓颜色
outlineWidth
Number 轮廓宽度
lineStyle
Object 辅助线style
Name Type Description material
Color 辅助线颜色
width
Color 辅助线宽
labelStyle
Object 注记style
Name Type Description outlineColor
Color 注记轮廓颜色
fillColor
Color 注记填充颜色
font
String 注记字体
-
clear()
app/business/InstantLeak.js, line 148 -
清空模拟图形,清空后可添加
-
remove()
app/business/InstantLeak.js, line 137 -
移除模拟图形,移除后不可添加