gs-bim-air 0.0.3-0.27 → 0.0.3-0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/READMEBETA.md +68 -0
- package/READMEBETA2.md +38 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//350/247/206/347/202/271/347/256/241/347/220/206.html +0 -2
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//351/242/234/350/211/262/345/222/214/345/212/250/347/224/273/346/214/211/351/222/256.html +0 -2
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//345/210/233/345/273/272/346/211/253/347/225/245.html +108 -78
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//351/200/232/350/247/206/345/210/206/346/236/220.html +72 -0
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/232/224/347/246/273/346/214/211/351/222/256.html +0 -2
- package/demo//347/273/223/346/236/204/346/240/221/344/270/216/346/236/204/344/273/266//351/242/234/350/211/262/346/214/211/351/222/256.html +0 -4
- package/docs/README.md +1 -0
- package/docs/classes/AnimationManager.md +87 -15
- package/docs/classes/PanelManager.md +11 -0
- package/docs/classes/PathRoam.md +203 -0
- package/docs/classes/ViewPointPanel.md +131 -23
- package/docs/classes/Viewer.md +90 -6
- package/docs/interfaces/ToolbarVisible.md +7 -0
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +234 -110
- package/lib/BimAir.css +667 -544
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +234 -110
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +234 -110
- package/lib/fonts/iconfont.6f9f8b97.woff2 +0 -0
- package/lib/fonts/{iconfont.864cead3.ttf → iconfont.b729ac50.ttf} +0 -0
- package/lib/fonts/iconfont.d1fcc80d.woff +0 -0
- package/lib/undefined.gzundefined +0 -0
- package/package.json +1 -1
- package/public/js/longan/longan.js +530 -506
- package/public/js/longan/longan.wasm +0 -0
- package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
- package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
- package/lib/fonts/iconfont.84ed7d57.woff +0 -0
- package/lib/fonts/iconfont.d27373d5.woff2 +0 -0
package/READMEBETA.md
CHANGED
|
@@ -249,3 +249,71 @@ viewer.camera.projection = BimAir.Longan.ProjectionType.Perspective; //透视投
|
|
|
249
249
|
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
250
250
|
- 解决模型碰撞卡死问题
|
|
251
251
|
- 解决加载模型时剖切出错的问题
|
|
252
|
+
- 添加只通过构件 Id 获取构件的接口
|
|
253
|
+
|
|
254
|
+
```js
|
|
255
|
+
viewer.getComponents(componentId);
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### 0.0.30.28
|
|
259
|
+
|
|
260
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
261
|
+
- 增加添加视点的接口 [viewer.panelManager.viewPointPanel.addViewPoint](docs/classes/ViewPointPanel.md#addViewPoint)
|
|
262
|
+
- 增加通过 Id 获取视点的接口 [viewer.panelManager.viewPointPanel.getViewPointById](docs/classes/ViewPointPanel.md#getViewPointById)
|
|
263
|
+
- 增加通过 Id 删除视点的接口 [viewer.panelManager.viewPointPanel.deleteViewPointById](docs/classes/ViewPointPanel.md#deleteViewPointById)
|
|
264
|
+
- 增加通过 Id 恢复视点的接口 [viewer.panelManager.viewPointPanel.restoreViewPointById](docs/classes/ViewPointPanel.md#restoreViewPointById)
|
|
265
|
+
|
|
266
|
+
### 0.0.30.29
|
|
267
|
+
|
|
268
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
269
|
+
- 修复 noShareArrayBuffer 版本的 wasm 无法显示模型
|
|
270
|
+
- 修复接口恢复视点时事件被批注功能的事件覆盖的问题
|
|
271
|
+
- 添加路径漫游相关接口 [viewer.animationManager.pathRoam](docs/classes/PathRoam.md),基本用法如下:
|
|
272
|
+
|
|
273
|
+
```js
|
|
274
|
+
// 获取当前Camera信息
|
|
275
|
+
let camera = viewer.animationManager.pathRoam.getRoamPoint();
|
|
276
|
+
console.log("camera", camera);
|
|
277
|
+
|
|
278
|
+
let points = [
|
|
279
|
+
[
|
|
280
|
+
380416.0671187355,
|
|
281
|
+
38786.28087566431,
|
|
282
|
+
4155.782292435952,
|
|
283
|
+
]
|
|
284
|
+
[ 380730.74617450393,
|
|
285
|
+
38801.12997364584,
|
|
286
|
+
4404.750407980944,
|
|
287
|
+
]
|
|
288
|
+
];
|
|
289
|
+
let targets = [
|
|
290
|
+
[
|
|
291
|
+
379975.34973484656,
|
|
292
|
+
39356.55973798728,
|
|
293
|
+
2473.4870208851316,
|
|
294
|
+
],
|
|
295
|
+
[
|
|
296
|
+
380290.028790615,
|
|
297
|
+
39371.4088359688,
|
|
298
|
+
2722.455136430124,
|
|
299
|
+
]
|
|
300
|
+
];
|
|
301
|
+
// 创建动画
|
|
302
|
+
let animationId = viewer.animationManager.pathRoam.addRoamPathAnime(
|
|
303
|
+
10,
|
|
304
|
+
points,
|
|
305
|
+
targets
|
|
306
|
+
);
|
|
307
|
+
// 播放动画
|
|
308
|
+
viewer.animationManager.pathRoam.run([animationId]);
|
|
309
|
+
|
|
310
|
+
setTimeout(() => {
|
|
311
|
+
// 暂停播放
|
|
312
|
+
viewer.animationManager.pathRoam.pauseAnime(animationId);
|
|
313
|
+
}, 3000);
|
|
314
|
+
|
|
315
|
+
setTimeout(() => {
|
|
316
|
+
// 继续播放
|
|
317
|
+
viewer.animationManager.pathRoam.run([animationId]);
|
|
318
|
+
}, 6000);
|
|
319
|
+
```
|
package/READMEBETA2.md
CHANGED
|
@@ -133,3 +133,41 @@ this.viewer.panelManager.collisionPanel
|
|
|
133
133
|
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
134
134
|
- 解决模型碰撞卡死问题
|
|
135
135
|
- 解决加载模型时剖切出错的问题
|
|
136
|
+
|
|
137
|
+
### 0.1.30.19
|
|
138
|
+
|
|
139
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
140
|
+
- 添加清除模型数据缓存的接口:viewer.clearCache()
|
|
141
|
+
|
|
142
|
+
### 0.1.30.20
|
|
143
|
+
|
|
144
|
+
- viewer.loadLocalModel 不自动设置视角
|
|
145
|
+
- 结构树节点 isShow 设 false 后隐藏勾选框
|
|
146
|
+
|
|
147
|
+
### 0.1.30.21
|
|
148
|
+
|
|
149
|
+
- 重新打包更新
|
|
150
|
+
- 修复临时对象管理器 BUG 导致无法设置颜色
|
|
151
|
+
- 修复加载本地模型在结构树显示节点问题
|
|
152
|
+
|
|
153
|
+
### 0.1.30.22
|
|
154
|
+
|
|
155
|
+
- 修复 segmentObject.nodeKey 报错
|
|
156
|
+
|
|
157
|
+
### 0.1.30.23
|
|
158
|
+
|
|
159
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
160
|
+
- 修复加载本地模型结构树上不会出现节点问题
|
|
161
|
+
- 修复 viewer.dispose 后再次加载模型会出现贴图丢失问题
|
|
162
|
+
|
|
163
|
+
### 0.1.30.24
|
|
164
|
+
|
|
165
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
166
|
+
- 在写入缓存时与模型写入冲突导致模型丢失的问题
|
|
167
|
+
- 添加面板和命令显示隐藏的回调函数,如结构树面板设置:
|
|
168
|
+
|
|
169
|
+
```js
|
|
170
|
+
viewer.panelManager.structureTree.toggleCallback = (visible) => {
|
|
171
|
+
console.log("visible", visible);
|
|
172
|
+
};
|
|
173
|
+
```
|
|
@@ -50,8 +50,6 @@
|
|
|
50
50
|
<button onclick="addView1()">添加视点1</button>
|
|
51
51
|
<button onclick="addView2()">添加视点2</button>
|
|
52
52
|
<button onclick="deleteView()">删除视点</button>
|
|
53
|
-
<!-- <button onclick="isExistWall()">判断是否存在围栏</button>
|
|
54
|
-
<button onclick="isInside()">判断点是否在围栏内</button> -->
|
|
55
53
|
</div>
|
|
56
54
|
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
57
55
|
</div>
|
|
@@ -52,8 +52,6 @@
|
|
|
52
52
|
<button onclick="stopAnimation()">结束动画</button>
|
|
53
53
|
<button onclick="restartAnimation()">重启动画</button>
|
|
54
54
|
|
|
55
|
-
<!-- <button onclick="isExistWall()">判断是否存在围栏</button>
|
|
56
|
-
<button onclick="isInside()">判断点是否在围栏内</button> -->
|
|
57
55
|
</div>
|
|
58
56
|
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
59
57
|
|
|
@@ -1,91 +1,121 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>创建扫略</title>
|
|
6
|
+
<link
|
|
7
|
+
rel="stylesheet"
|
|
8
|
+
href="https://static.graphicstone.com/bimAir/BimAir.css"
|
|
9
|
+
/>
|
|
10
|
+
<script src="https://static.graphicstone.com/vue.min.js"></script>
|
|
11
|
+
<script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
|
|
12
|
+
</head>
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
<body>
|
|
15
|
+
<style>
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
height: 100vh;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
#app {
|
|
23
|
+
height: 100vh;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
27
|
+
<div id="app">
|
|
28
|
+
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
29
|
+
</div>
|
|
27
30
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
<script type="text/javascript">
|
|
32
|
+
new Vue({
|
|
33
|
+
el: "#app",
|
|
34
|
+
});
|
|
35
|
+
let options = {
|
|
36
|
+
// viewerType: "model",
|
|
37
|
+
elementId: "viewer",
|
|
35
38
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
modelService: "https://static.graphicstone.com/modelApi",
|
|
40
|
+
fileService: "https://static.graphicstone.com/fileApi",
|
|
41
|
+
background: "linear-gradient(#e3fcfc, #f6ffff)",
|
|
42
|
+
};
|
|
43
|
+
BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
|
|
44
|
+
() => {
|
|
45
|
+
let viewer = new BimAir.Viewer(options);
|
|
46
|
+
viewer
|
|
47
|
+
.loadModels(["626b4d1ebfe39e58ae7b66a2"])
|
|
48
|
+
.then((lightModels) => {
|
|
49
|
+
let points = [
|
|
50
|
+
-2, 3, 0, -2, 0, 0, -2, 0, 0, 2, 0, 0, 2, 0, 0, 2, 3, 0,
|
|
51
|
+
];
|
|
52
|
+
let circle_points =
|
|
53
|
+
BimAir.Longan.GeometryOperators.createRingPoints(
|
|
54
|
+
new Float32Array([0, 3, 0]),
|
|
55
|
+
new Float32Array([1, 0, 0]),
|
|
56
|
+
new Float32Array([0, 1, 0]),
|
|
57
|
+
new Float32Array([
|
|
58
|
+
0,
|
|
59
|
+
Math.PI / 4,
|
|
60
|
+
Math.PI / 2,
|
|
61
|
+
(Math.PI * 3) / 4,
|
|
62
|
+
Math.PI,
|
|
63
|
+
]),
|
|
64
|
+
2
|
|
65
|
+
);
|
|
66
|
+
for (let i = 0; i < circle_points.length; i++) {
|
|
67
|
+
points.push(circle_points[i]);
|
|
68
|
+
}
|
|
54
69
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
let indexes = [points.length / 3];
|
|
71
|
+
for (let i = 0; i < points.length / 3; i++) {
|
|
72
|
+
indexes.push(i);
|
|
73
|
+
}
|
|
74
|
+
// 重复点显示转折
|
|
75
|
+
let inner_points = [
|
|
76
|
+
1.8, 3, 0, 1.8, 0.2, 0, 1.8, 0.2, 0, -1.8, 0.2, 0, -1.8, 0.2, 0,
|
|
77
|
+
-1.8, 3, 0,
|
|
78
|
+
];
|
|
79
|
+
circle_points = BimAir.Longan.GeometryOperators.createRingPoints(
|
|
80
|
+
new Float32Array([0, 3, 0]),
|
|
81
|
+
new Float32Array([1, 0, 0]),
|
|
82
|
+
new Float32Array([0, 1, 0]),
|
|
83
|
+
new Float32Array([
|
|
84
|
+
Math.PI,
|
|
85
|
+
(Math.PI * 3) / 4,
|
|
86
|
+
Math.PI / 2,
|
|
87
|
+
Math.PI / 4,
|
|
88
|
+
0,
|
|
89
|
+
]),
|
|
90
|
+
1.8
|
|
91
|
+
);
|
|
92
|
+
for (let i = 0; i < circle_points.length; i++) {
|
|
93
|
+
inner_points.push(circle_points[i]);
|
|
94
|
+
}
|
|
71
95
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
96
|
+
indexes.push(-inner_points.length / 3);
|
|
97
|
+
for (let i = 0; i < inner_points.length / 3; i++) {
|
|
98
|
+
indexes.push(i + points.length / 3);
|
|
99
|
+
}
|
|
76
100
|
|
|
77
|
-
|
|
101
|
+
console.log("indexes", indexes);
|
|
78
102
|
|
|
79
|
-
|
|
103
|
+
points = points.concat(inner_points);
|
|
80
104
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
105
|
+
console.log("points", points);
|
|
106
|
+
// 重复点显示转折
|
|
107
|
+
let path = [1, 1, 0, 1, 1, 10, 1, 1, 10, 2, 1, 20];
|
|
84
108
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
109
|
+
viewer.utilitySegment.sweepByShell(
|
|
110
|
+
points,
|
|
111
|
+
indexes,
|
|
112
|
+
path,
|
|
113
|
+
"normal=(0,0,1)"
|
|
114
|
+
);
|
|
115
|
+
viewer.updateDisplay();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
</script>
|
|
120
|
+
</body>
|
|
91
121
|
</html>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>通视分析</title>
|
|
6
|
+
<link
|
|
7
|
+
rel="stylesheet"
|
|
8
|
+
href="https://static.graphicstone.com/bimAir/BimAir.css"
|
|
9
|
+
/>
|
|
10
|
+
<script src="https://static.graphicstone.com/vue.min.js"></script>
|
|
11
|
+
<script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
|
|
12
|
+
</head>
|
|
13
|
+
|
|
14
|
+
<body>
|
|
15
|
+
<style>
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
height: 100vh;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#app {
|
|
23
|
+
height: 100vh;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
27
|
+
<div id="app">
|
|
28
|
+
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<script type="text/javascript">
|
|
32
|
+
new Vue({
|
|
33
|
+
el: "#app",
|
|
34
|
+
});
|
|
35
|
+
let options = {
|
|
36
|
+
// viewerType: "model",
|
|
37
|
+
elementId: "viewer",
|
|
38
|
+
|
|
39
|
+
modelService: "https://static.graphicstone.com/modelApi",
|
|
40
|
+
fileService: "https://static.graphicstone.com/fileApi",
|
|
41
|
+
background: "linear-gradient(#e3fcfc, #f6ffff)",
|
|
42
|
+
};
|
|
43
|
+
BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(
|
|
44
|
+
() => {
|
|
45
|
+
let viewer = new BimAir.Viewer(options);
|
|
46
|
+
viewer.loadModels("626b4d1ebfe39e58ae7b66a2").then((lightModels) => {
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
let viewPos = new Float32Array([24.65, -8.09, 15]);
|
|
49
|
+
let targetPos = new Float32Array([
|
|
50
|
+
-7.06, 18.7, 2.41, 17.03, 23.73, -0.72, -20.01, 9.76, 3.99,
|
|
51
|
+
]);
|
|
52
|
+
let visibleColor = new Float32Array([50, 211, 166]);
|
|
53
|
+
let invisibleColor = new Float32Array([235, 0, 29]);
|
|
54
|
+
|
|
55
|
+
let sightlineAnalysisConfig = new SightlineAnalysisConfig(
|
|
56
|
+
viewer,
|
|
57
|
+
viewPos,
|
|
58
|
+
targetPos,
|
|
59
|
+
visibleColor,
|
|
60
|
+
invisibleColor
|
|
61
|
+
);
|
|
62
|
+
let sightlineAnalysisEffect = new SightlineAnalysisEffect(
|
|
63
|
+
sightlineAnalysisConfig
|
|
64
|
+
);
|
|
65
|
+
}, 2000);
|
|
66
|
+
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
</script>
|
|
71
|
+
</body>
|
|
72
|
+
</html>
|
|
@@ -53,8 +53,6 @@
|
|
|
53
53
|
<button onclick="cancelColor()">取消颜色</button>
|
|
54
54
|
<button onclick="cancelIsolation()">取消隔离</button>
|
|
55
55
|
|
|
56
|
-
<!-- <button onclick="isExistWall()">判断是否存在围栏</button>
|
|
57
|
-
<button onclick="isInside()">判断点是否在围栏内</button> -->
|
|
58
56
|
</div>
|
|
59
57
|
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
60
58
|
|
|
@@ -51,10 +51,6 @@
|
|
|
51
51
|
<button onclick="setAllColor()">设置模型颜色</button>
|
|
52
52
|
<button onclick="setComponentsColor()">设置构件颜色</button>
|
|
53
53
|
<button onclick="cancelAllColor()">取消颜色</button>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<!-- <button onclick="isExistWall()">判断是否存在围栏</button>
|
|
57
|
-
<button onclick="isInside()">判断点是否在围栏内</button> -->
|
|
58
54
|
</div>
|
|
59
55
|
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
60
56
|
|
package/docs/README.md
CHANGED
|
@@ -34,6 +34,7 @@ gs-bim-air
|
|
|
34
34
|
- [PanelManager](classes/PanelManager.md)
|
|
35
35
|
- [PathEffect](classes/PathEffect.md)
|
|
36
36
|
- [PathEffectConfig](classes/PathEffectConfig.md)
|
|
37
|
+
- [PathRoam](classes/PathRoam.md)
|
|
37
38
|
- [PropertyManager](classes/PropertyManager.md)
|
|
38
39
|
- [SegmentObject](classes/SegmentObject.md)
|
|
39
40
|
- [SelectionManager](classes/SelectionManager.md)
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
### Accessors
|
|
25
25
|
|
|
26
26
|
- [isRunning](AnimationManager.md#isrunning)
|
|
27
|
+
- [pathRoam](AnimationManager.md#pathroam)
|
|
27
28
|
- [process](AnimationManager.md#process)
|
|
28
29
|
|
|
29
30
|
### Methods
|
|
@@ -31,6 +32,8 @@
|
|
|
31
32
|
- [cameraRoamPath](AnimationManager.md#cameraroampath)
|
|
32
33
|
- [drawPointsCurve](AnimationManager.md#drawpointscurve)
|
|
33
34
|
- [drawStraight](AnimationManager.md#drawstraight)
|
|
35
|
+
- [existAnime](AnimationManager.md#existanime)
|
|
36
|
+
- [getPlayingPercent](AnimationManager.md#getplayingpercent)
|
|
34
37
|
- [objectRoamWithoutRotate](AnimationManager.md#objectroamwithoutrotate)
|
|
35
38
|
- [pauseAnime](AnimationManager.md#pauseanime)
|
|
36
39
|
- [removeAnime](AnimationManager.md#removeanime)
|
|
@@ -113,6 +116,16 @@ Longan.AnimationManager.isRunning
|
|
|
113
116
|
|
|
114
117
|
___
|
|
115
118
|
|
|
119
|
+
### pathRoam
|
|
120
|
+
|
|
121
|
+
• `get` **pathRoam**(): [`PathRoam`](PathRoam.md)
|
|
122
|
+
|
|
123
|
+
#### Returns
|
|
124
|
+
|
|
125
|
+
[`PathRoam`](PathRoam.md)
|
|
126
|
+
|
|
127
|
+
___
|
|
128
|
+
|
|
116
129
|
### process
|
|
117
130
|
|
|
118
131
|
• `get` **process**(): `Process`
|
|
@@ -129,20 +142,23 @@ Longan.AnimationManager.process
|
|
|
129
142
|
|
|
130
143
|
### cameraRoamPath
|
|
131
144
|
|
|
132
|
-
▸ **cameraRoamPath**(`camera`, `points`, `targets
|
|
145
|
+
▸ **cameraRoamPath**(`camera`, `roamTime`, `points`, `targets?`, `finishEvent?`): `string`
|
|
146
|
+
|
|
147
|
+
添加镜头动画.
|
|
133
148
|
|
|
134
149
|
#### Parameters
|
|
135
150
|
|
|
136
|
-
| Name | Type |
|
|
137
|
-
| :------ | :------ |
|
|
138
|
-
| `camera` | `Camera` |
|
|
139
|
-
| `
|
|
140
|
-
| `
|
|
141
|
-
| `
|
|
151
|
+
| Name | Type | Description |
|
|
152
|
+
| :------ | :------ | :------ |
|
|
153
|
+
| `camera` | `Camera` | 镜头 |
|
|
154
|
+
| `roamTime` | `number` | 漫游时间 |
|
|
155
|
+
| `points` | `Point`[] | 漫游路径点 |
|
|
156
|
+
| `targets?` | `Point`[] | 缺省则镜头指向前进方向 |
|
|
157
|
+
| `finishEvent?` | () => `void` | 动画播放结束时的回调 |
|
|
142
158
|
|
|
143
159
|
#### Returns
|
|
144
160
|
|
|
145
|
-
`
|
|
161
|
+
`string`
|
|
146
162
|
|
|
147
163
|
___
|
|
148
164
|
|
|
@@ -180,6 +196,50 @@ ___
|
|
|
180
196
|
|
|
181
197
|
___
|
|
182
198
|
|
|
199
|
+
### existAnime
|
|
200
|
+
|
|
201
|
+
▸ **existAnime**(`id`): `boolean`
|
|
202
|
+
|
|
203
|
+
是否存在某段动画.
|
|
204
|
+
|
|
205
|
+
#### Parameters
|
|
206
|
+
|
|
207
|
+
| Name | Type |
|
|
208
|
+
| :------ | :------ |
|
|
209
|
+
| `id` | `any` |
|
|
210
|
+
|
|
211
|
+
#### Returns
|
|
212
|
+
|
|
213
|
+
`boolean`
|
|
214
|
+
|
|
215
|
+
#### Inherited from
|
|
216
|
+
|
|
217
|
+
Longan.AnimationManager.existAnime
|
|
218
|
+
|
|
219
|
+
___
|
|
220
|
+
|
|
221
|
+
### getPlayingPercent
|
|
222
|
+
|
|
223
|
+
▸ **getPlayingPercent**(`id`): `number`
|
|
224
|
+
|
|
225
|
+
获取播放进度.
|
|
226
|
+
|
|
227
|
+
#### Parameters
|
|
228
|
+
|
|
229
|
+
| Name | Type |
|
|
230
|
+
| :------ | :------ |
|
|
231
|
+
| `id` | `string` |
|
|
232
|
+
|
|
233
|
+
#### Returns
|
|
234
|
+
|
|
235
|
+
`number`
|
|
236
|
+
|
|
237
|
+
#### Inherited from
|
|
238
|
+
|
|
239
|
+
Longan.AnimationManager.getPlayingPercent
|
|
240
|
+
|
|
241
|
+
___
|
|
242
|
+
|
|
183
243
|
### objectRoamWithoutRotate
|
|
184
244
|
|
|
185
245
|
▸ **objectRoamWithoutRotate**(`viewer`, `segmentObject`, `points`, `roamTime`, `pathType`, `finishEvent?`): `string`
|
|
@@ -209,6 +269,8 @@ ___
|
|
|
209
269
|
|
|
210
270
|
▸ **pauseAnime**(`id`): `number`
|
|
211
271
|
|
|
272
|
+
暂停某段动画
|
|
273
|
+
|
|
212
274
|
#### Parameters
|
|
213
275
|
|
|
214
276
|
| Name | Type |
|
|
@@ -219,6 +281,8 @@ ___
|
|
|
219
281
|
|
|
220
282
|
`number`
|
|
221
283
|
|
|
284
|
+
返回播放进度
|
|
285
|
+
|
|
222
286
|
#### Inherited from
|
|
223
287
|
|
|
224
288
|
Longan.AnimationManager.pauseAnime
|
|
@@ -229,6 +293,8 @@ ___
|
|
|
229
293
|
|
|
230
294
|
▸ **removeAnime**(`id`): `void`
|
|
231
295
|
|
|
296
|
+
删除某段动画
|
|
297
|
+
|
|
232
298
|
#### Parameters
|
|
233
299
|
|
|
234
300
|
| Name | Type |
|
|
@@ -269,9 +335,9 @@ ___
|
|
|
269
335
|
|
|
270
336
|
#### Parameters
|
|
271
337
|
|
|
272
|
-
| Name | Type |
|
|
273
|
-
| :------ | :------ |
|
|
274
|
-
| `id` | `string` |
|
|
338
|
+
| Name | Type | Description |
|
|
339
|
+
| :------ | :------ | :------ |
|
|
340
|
+
| `id` | `string` | 从头播放某段动画. |
|
|
275
341
|
|
|
276
342
|
#### Returns
|
|
277
343
|
|
|
@@ -287,12 +353,14 @@ ___
|
|
|
287
353
|
|
|
288
354
|
▸ **run**(`ids?`, `keepRunning?`): `void`
|
|
289
355
|
|
|
356
|
+
播放一个或多段动画.
|
|
357
|
+
|
|
290
358
|
#### Parameters
|
|
291
359
|
|
|
292
|
-
| Name | Type |
|
|
293
|
-
| :------ | :------ |
|
|
294
|
-
| `ids?` | `string`[] |
|
|
295
|
-
| `keepRunning?` | `boolean` |
|
|
360
|
+
| Name | Type | Description |
|
|
361
|
+
| :------ | :------ | :------ |
|
|
362
|
+
| `ids?` | `string`[] | 缺省/null/undefined则为播放全部. |
|
|
363
|
+
| `keepRunning?` | `boolean` | 保持不在ids的动画继续播放 |
|
|
296
364
|
|
|
297
365
|
#### Returns
|
|
298
366
|
|
|
@@ -308,6 +376,8 @@ ___
|
|
|
308
376
|
|
|
309
377
|
▸ **segmentObjectRoamPath**(`degreed`, `segmentObject`, `points`, `roamTime`, `datumPoint`, `finishEvent?`): `string`
|
|
310
378
|
|
|
379
|
+
物体朝向对准路径前进方向的动画(主要用于汽车等物体的运动).
|
|
380
|
+
|
|
311
381
|
#### Parameters
|
|
312
382
|
|
|
313
383
|
| Name | Type | Description |
|
|
@@ -331,6 +401,8 @@ ___
|
|
|
331
401
|
|
|
332
402
|
▸ **stop**(): `void`
|
|
333
403
|
|
|
404
|
+
停止全部动画播放
|
|
405
|
+
|
|
334
406
|
#### Returns
|
|
335
407
|
|
|
336
408
|
`void`
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
- [collisionPanel](PanelManager.md#collisionpanel)
|
|
20
20
|
- [drawingPanel](PanelManager.md#drawingpanel)
|
|
21
21
|
- [propertyPanel](PanelManager.md#propertypanel)
|
|
22
|
+
- [setting](PanelManager.md#setting)
|
|
22
23
|
- [snapshoot](PanelManager.md#snapshoot)
|
|
23
24
|
- [structureTree](PanelManager.md#structuretree)
|
|
24
25
|
- [viewPlanPanel](PanelManager.md#viewplanpanel)
|
|
@@ -73,6 +74,16 @@ ___
|
|
|
73
74
|
|
|
74
75
|
___
|
|
75
76
|
|
|
77
|
+
### setting
|
|
78
|
+
|
|
79
|
+
• `get` **setting**(): `default`
|
|
80
|
+
|
|
81
|
+
#### Returns
|
|
82
|
+
|
|
83
|
+
`default`
|
|
84
|
+
|
|
85
|
+
___
|
|
86
|
+
|
|
76
87
|
### snapshoot
|
|
77
88
|
|
|
78
89
|
• `get` **snapshoot**(): `default`
|