@anov/3d 0.0.4-alpha24 → 0.0.4-alpha26

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.
Files changed (72) hide show
  1. package/dist/applicationApi.js +1 -1
  2. package/dist/applicationApi.js.map +1 -1
  3. package/dist/factory/3d.d.ts +51 -0
  4. package/dist/factory/3d.js +203 -0
  5. package/dist/factory/3d.js.map +1 -0
  6. package/dist/factory/globalData.d.ts +1 -0
  7. package/dist/factory/globalData.js +2 -0
  8. package/dist/factory/globalData.js.map +1 -0
  9. package/dist/factory/regionData.d.ts +28 -0
  10. package/dist/factory/regionData.js +447 -0
  11. package/dist/factory/regionData.js.map +1 -0
  12. package/dist/factory/unit/areaBoundingBox.d.ts +7 -0
  13. package/dist/factory/unit/areaBoundingBox.js +28 -0
  14. package/dist/factory/unit/areaBoundingBox.js.map +1 -0
  15. package/dist/factory/unit/circle.d.ts +15 -0
  16. package/dist/factory/unit/circle.js +88 -0
  17. package/dist/factory/unit/circle.js.map +1 -0
  18. package/dist/factory/unit/cylinder.d.ts +18 -0
  19. package/dist/factory/unit/cylinder.js +160 -0
  20. package/dist/factory/unit/cylinder.js.map +1 -0
  21. package/dist/factory/unit/glsl/wall/fragmentShader.glsl +30 -0
  22. package/dist/factory/unit/glsl/wall/vertexShader.glsl +6 -0
  23. package/dist/factory/unit/index.d.ts +2 -0
  24. package/dist/factory/unit/index.js +61 -0
  25. package/dist/factory/unit/index.js.map +1 -0
  26. package/dist/factory/unit/line.d.ts +13 -0
  27. package/dist/factory/unit/line.js +96 -0
  28. package/dist/factory/unit/line.js.map +1 -0
  29. package/dist/factory/unit/poi copy.d.ts +15 -0
  30. package/dist/factory/unit/poi copy.js +144 -0
  31. package/dist/factory/unit/poi copy.js.map +1 -0
  32. package/dist/factory/unit/poi.d.ts +15 -0
  33. package/dist/factory/unit/poi.js +140 -0
  34. package/dist/factory/unit/poi.js.map +1 -0
  35. package/dist/factory/unit/point.d.ts +10 -0
  36. package/dist/factory/unit/point.js +71 -0
  37. package/dist/factory/unit/point.js.map +1 -0
  38. package/dist/factory/unit/wall.d.ts +14 -0
  39. package/dist/factory/unit/wall.js +113 -0
  40. package/dist/factory/unit/wall.js.map +1 -0
  41. package/dist/factory/utils/areaBoundingBox.d.ts +14 -0
  42. package/dist/factory/utils/areaBoundingBox.js +39 -0
  43. package/dist/factory/utils/areaBoundingBox.js.map +1 -0
  44. package/dist/factory/utils/base64.d.ts +1 -0
  45. package/dist/factory/utils/base64.js +2 -0
  46. package/dist/factory/utils/base64.js.map +1 -0
  47. package/dist/factory/utils/finirMaterial.d.ts +3 -0
  48. package/dist/factory/utils/finirMaterial.js +39 -0
  49. package/dist/factory/utils/finirMaterial.js.map +1 -0
  50. package/dist/factory/utils/fontMesh.d.ts +10 -0
  51. package/dist/factory/utils/fontMesh.js +48 -0
  52. package/dist/factory/utils/fontMesh.js.map +1 -0
  53. package/dist/factory/utils/index.d.ts +2 -0
  54. package/dist/factory/utils/index.js +24 -0
  55. package/dist/factory/utils/index.js.map +1 -0
  56. package/dist/factory/utils/switchMaterial.d.ts +17 -0
  57. package/dist/factory/utils/switchMaterial.js +108 -0
  58. package/dist/factory/utils/switchMaterial.js.map +1 -0
  59. package/dist/module/environment/index.d.ts +4 -1
  60. package/dist/module/environment/index.js +7 -2
  61. package/dist/module/environment/index.js.map +1 -1
  62. package/dist/module/environment/time/index.d.ts +3 -1
  63. package/dist/module/environment/time/index.js.map +1 -1
  64. package/dist/module/model/index.js +6 -0
  65. package/dist/module/model/index.js.map +1 -1
  66. package/dist/module/scene/index.d.ts +7 -3
  67. package/dist/module/scene/index.js +66 -36
  68. package/dist/module/scene/index.js.map +1 -1
  69. package/dist/sdkEntry.d.ts +5 -2
  70. package/dist/sdkEntry.js +85 -65
  71. package/dist/sdkEntry.js.map +1 -1
  72. package/package.json +3 -3
@@ -0,0 +1,447 @@
1
+ /**
2
+ * todo: 各个单元数据需要统一
3
+ * 当前demo area可以用直线绘制
4
+ */
5
+
6
+ export var regionMap = {
7
+ reform: {
8
+ id: '1',
9
+ title: '重整装置区',
10
+ area: [[-483.562, 0, -225.624], [-145.997, 0, -225.624], [-145.997, 0, -59.401], [-483.562, 0, -59.401]],
11
+ poi: {
12
+ id: '1',
13
+ position: [-314.01113070, 0.55000000, -146.54350582],
14
+ content: '通过直馏汽油和加氢石脑油,在催化剂存在的前提下,将原料的烷烃和环烷烃重构成为芳烃。并采用半再生固定床重整工艺,催化剂分段装填及两段混氢技术,装置采用了RIPP的粗汽油制氢技术。'
15
+ },
16
+ people: [{
17
+ id: '7',
18
+ name: '耿笑',
19
+ dep: '设备运维',
20
+ online: true,
21
+ position: [-352.00000000, 0.62500079, -177.20000000]
22
+ }, {
23
+ id: '2',
24
+ name: '李连贵',
25
+ dep: '工艺操作',
26
+ online: true,
27
+ position: [-275.70000000, 0.62500079, -137.10000000]
28
+ }, {
29
+ id: '8',
30
+ name: '吕萌',
31
+ dep: '质量检测',
32
+ online: true,
33
+ position: [-365.40000000, 0.62500079, -80.60000000]
34
+ }, {
35
+ id: '1',
36
+ name: '宋玉',
37
+ dep: '质量检测',
38
+ online: true,
39
+ position: [-436.90000000, 0.62500079, -121.50000000]
40
+ }, {
41
+ id: '5',
42
+ name: '王小雨',
43
+ dep: '运输装卸',
44
+ online: true,
45
+ position: [-238.70000000, 0.62500079, -205.10000000]
46
+ }, {
47
+ id: '6',
48
+ name: '张建国',
49
+ dep: '原料加工',
50
+ online: true,
51
+ position: [-436.50000000, 0.62500079, -182.30000000]
52
+ }, {
53
+ id: '3',
54
+ name: '张小萌',
55
+ dep: '生产技术',
56
+ online: true,
57
+ position: [-204.80000000, 0.62500079, -150.10000000]
58
+ }, {
59
+ id: '4',
60
+ name: '朱正',
61
+ dep: '设备运维',
62
+ online: true,
63
+ position: [-302.20000000, 0.62500079, -117.90000000]
64
+ }]
65
+ },
66
+ reduction: {
67
+ id: '2',
68
+ title: '常减压装置区',
69
+ area: [[-140.123, 0, -225.604], [206.547, 0, -225.624], [206.547, 0, -59.401], [-140.123, 0, -59.401]],
70
+ poi: {
71
+ id: '2',
72
+ position: [28.89784048, 0.55000000, -144.28157517],
73
+ content: '主要包括三个工序:原油的脱盐、脱水;常压蒸馏;减压蒸馏。从油田送往炼油厂的原油往往含盐(主要是氧化物)带水(溶于油或呈乳化状态),可导致设备的腐蚀,在设备内壁结垢和影响成品油的组成,需在加工前脱除。'
74
+ },
75
+ people: [{
76
+ id: '12',
77
+ name: '才新梁',
78
+ dep: '运输装卸',
79
+ online: true,
80
+ position: [26.50000000, 0.62500079, -155.00000000]
81
+ }, {
82
+ id: '13',
83
+ name: '何超盈',
84
+ dep: '生产技术',
85
+ online: true,
86
+ position: [198.50000000, 0.62500079, -169.20000000]
87
+ }, {
88
+ id: '11',
89
+ name: '李大为',
90
+ dep: '质量检测',
91
+ online: true,
92
+ position: [-79.80000000, 0.62500079, -218.20000000]
93
+ }, {
94
+ id: '15',
95
+ name: '孙建连',
96
+ dep: '工艺操作',
97
+ online: true,
98
+ position: [-19.50000000, 0.62500079, -174.60000000]
99
+ }, {
100
+ id: '9',
101
+ name: '孙强',
102
+ dep: '工艺操作',
103
+ online: true,
104
+ position: [-114.10000000, 0.62500079, -114.60000000]
105
+ }, {
106
+ id: '10',
107
+ name: '佟丽英',
108
+ dep: '运输装卸',
109
+ online: true,
110
+ position: [26.10000000, 0.62500079, -202.30000000]
111
+ }, {
112
+ id: '14',
113
+ name: '王超',
114
+ dep: '设备运维',
115
+ online: true,
116
+ position: [-14.90000000, 0.62500079, -116.90000000]
117
+ }]
118
+ },
119
+ crudeOil: {
120
+ id: '3',
121
+ title: '原油装置区',
122
+ area: [[240.584, 0, -225.624], [475.523, 0, -225.624], [475.543, 0, -59.401], [240.584, 0, -59.401]],
123
+ poi: {
124
+ id: '3',
125
+ position: [359.58372139, 0.55000000, -144.28157517],
126
+ content: '原油罐区应靠近相应的加工装置区,并利用地形将液体物料自留输送,性质相近的液体物料储物罐宜布置较近。原油罐区的占地面积较大,原油罐区应注意火灾防范,存储量大一旦发生火灾,如不及时处置,扑救十分困难。'
127
+ },
128
+ people: [{
129
+ id: '19',
130
+ name: '牛小灵',
131
+ dep: '生产技术',
132
+ online: true,
133
+ position: [404.70000000, 0.62500079, -190.30000000]
134
+ }, {
135
+ id: '17',
136
+ name: '彭旭',
137
+ dep: '运输装卸',
138
+ online: true,
139
+ position: [294.10000000, 0.62500079, -125.90000000]
140
+ }, {
141
+ id: '16',
142
+ name: '宋麒麟',
143
+ dep: '设备运维',
144
+ online: true,
145
+ position: [445.70000000, 0.62500079, -119.20000000]
146
+ }, {
147
+ id: '18',
148
+ name: '赵佳慧',
149
+ dep: '生产技术',
150
+ online: true,
151
+ position: [344.50000000, 0.62500079, -127.10000000]
152
+ }]
153
+ },
154
+ catalyticCracking: {
155
+ id: '4',
156
+ title: '催化裂化装置区',
157
+ area: [[-483.562, 0, -49.812], [-145.997, 0, -49.812], [-145.997, 0, 115.799], [-483.562, 0, 115.799]],
158
+ poi: {
159
+ id: '4',
160
+ position: [-322.57300372, 0.55000000, 31.81516361],
161
+ content: '该区域主要危险因素为高温,重点部位:1. 催化剂循环系统磨穿泄漏着火;2. 再生器及沉降器油气互串爆炸;3. 高位管线及设备泄漏着火。同时催化裂化工艺过程需注意对环境造成的影响,生产过程中烟气会带走较多热烈造成热能浪费和污染,'
162
+ },
163
+ people: [{
164
+ id: '20',
165
+ name: '李刚',
166
+ dep: '运输装卸',
167
+ online: true,
168
+ position: [-339.40000000, 0.62500079, -1.90000000]
169
+ }, {
170
+ id: '24',
171
+ name: '李天一',
172
+ dep: '工艺操作',
173
+ online: true,
174
+ position: [-394.80000000, 0.62500079, 16.80000000]
175
+ }, {
176
+ id: '26',
177
+ name: '吕方',
178
+ dep: '设备运维',
179
+ online: true,
180
+ position: [-363.10000000, 0.62500079, 73.30000000]
181
+ }, {
182
+ id: '29',
183
+ name: '路笑',
184
+ dep: '运输装卸',
185
+ online: true,
186
+ position: [-214.00000000, 0.62500079, 39.10000000]
187
+ }, {
188
+ id: '22',
189
+ name: '淼杉',
190
+ dep: '运输装卸',
191
+ online: true,
192
+ position: [-175.10000000, 0.62500079, -12.80000000]
193
+ }, {
194
+ id: '25',
195
+ name: '孙江',
196
+ dep: '运输装卸',
197
+ online: true,
198
+ position: [-175.80000000, 0.62500079, 8.90000000]
199
+ }, {
200
+ id: '27',
201
+ name: '王衣衣',
202
+ dep: '运输装卸',
203
+ online: true,
204
+ position: [-394.60000000, 0.62500079, -37.80000000]
205
+ }, {
206
+ id: '28',
207
+ name: '张含义',
208
+ dep: '质量检测',
209
+ online: true,
210
+ position: [-436.90000000, 0.62500079, 69.40000000]
211
+ }, {
212
+ id: '21',
213
+ name: '张山一',
214
+ dep: '生产技术',
215
+ online: true,
216
+ position: [-325.30000000, 0.62500079, 86.20000000]
217
+ }, {
218
+ id: '23',
219
+ name: '张时柳',
220
+ dep: '运输装卸',
221
+ online: true,
222
+ position: [-211.20000000, 0.62500079, 95.80000000]
223
+ }]
224
+ },
225
+ hydrocrackingUnit: {
226
+ id: '5',
227
+ title: '加氢裂化装置区',
228
+ area: [[-483.562, 0, 124.634], [-145.997, 0, 124.634], [-145.997, 0, 218.589], [-483.562, 0, 218.589]],
229
+ poi: {
230
+ id: '5',
231
+ position: [-307.04992341, 0.55000000, 168.90578924],
232
+ content: '该区域主要注意器材的腐蚀,腐蚀类型主要有:氢损伤(包括高温氢腐蚀、氢脆、氢致剥离)、高温H2+H2S腐蚀、连多硫酸腐蚀、Cr-Mo钢的回火脆性、高温S腐蚀、低温部位的H2S+H2O腐蚀、H2S+NH3+H2O腐蚀。'
233
+ },
234
+ people: [{
235
+ id: '30',
236
+ name: '李梦雅',
237
+ dep: '生产技术',
238
+ online: true,
239
+ position: [-203.90000000, 0.62500079, -4.70000000]
240
+ }, {
241
+ id: '31',
242
+ name: '张连营',
243
+ dep: '运输装卸',
244
+ online: true,
245
+ position: [-428.40000000, 0.62500079, 96.90000000]
246
+ }, {
247
+ id: '32',
248
+ name: '张子成',
249
+ dep: '运输装卸',
250
+ online: true,
251
+ position: [-408.30000000, 0.62500079, -37.20000000]
252
+ }]
253
+ },
254
+ cokingUnit: {
255
+ id: '6',
256
+ title: '焦化装置区',
257
+ area: [[-140.100, 0, -49.802], [316.508, 0, -49.802], [316.508, 0, 218.847], [-140.100, 0, 218.847]],
258
+ poi: {
259
+ id: '6',
260
+ position: [76.84192138, 0.55000332, 95.89826158],
261
+ content: '该区域采用的延迟焦化装置是厂区能耗大户,其中,其燃料油、循环水两者的能耗占整个装置能耗的54%左右,其中,燃料气主要用于原料的加热、升温;循环水、新鲜水、软化水主要用于装置机泵降温、焦炭塔冷却等等。'
262
+ },
263
+ people: [{
264
+ id: '38',
265
+ name: '毕贵元',
266
+ dep: '工艺操作',
267
+ online: true,
268
+ position: [247.30000000, 0.62500079, 166.20000000]
269
+ }, {
270
+ id: '39',
271
+ name: '何晴',
272
+ dep: '设备运维',
273
+ online: true,
274
+ position: [-83.70000000, 0.62500079, 177.50000000]
275
+ }, {
276
+ id: '33',
277
+ name: '杨东利',
278
+ dep: '工艺操作',
279
+ online: true,
280
+ position: [68.20000000, 0.62500079, 5.20000000]
281
+ }, {
282
+ id: '36',
283
+ name: '杨晓月',
284
+ dep: '质量检测',
285
+ online: true,
286
+ position: [258.00000000, 0.62500079, 99.00000000]
287
+ }, {
288
+ id: '40',
289
+ name: '杨一真',
290
+ dep: '质量检测',
291
+ online: true,
292
+ position: [107.90000000, 0.62500079, 95.30000000]
293
+ }, {
294
+ id: '37',
295
+ name: '张飞',
296
+ dep: '运输装卸',
297
+ online: true,
298
+ position: [-69.60000000, 0.62500079, 29.30000000]
299
+ }, {
300
+ id: '35',
301
+ name: '张一天',
302
+ dep: '运输装卸',
303
+ online: true,
304
+ position: [271.20000000, 0.62500079, 24.70000000]
305
+ }, {
306
+ id: '34',
307
+ name: '张泽宇',
308
+ dep: '设备运维',
309
+ online: true,
310
+ position: [175.00000000, 0.62500079, 74.60000000]
311
+ }]
312
+ },
313
+ administrative: {
314
+ id: '7',
315
+ title: '办公区',
316
+ area: [[340.501, 0, -44.710], [482.570, 0, -44.710], [482.570, 0, 227.641], [340.501, 0, 227.641]],
317
+ maxHigh: 100,
318
+ people: [{
319
+ id: '49',
320
+ name: '毕古元',
321
+ dep: '运输装卸',
322
+ online: true,
323
+ position: [431.60000000, 0.62500079, 94.90000000]
324
+ }, {
325
+ id: '50',
326
+ name: '陈红',
327
+ dep: '设备运维',
328
+ online: true,
329
+ position: [374.20000000, 0.62500079, 14.80000000]
330
+ }, {
331
+ id: '58',
332
+ name: '陈静娴',
333
+ dep: '质量检测',
334
+ online: true,
335
+ position: [352.40000000, 0.62500079, 138.30000000]
336
+ }, {
337
+ id: '54',
338
+ name: '高红雷',
339
+ dep: '运输装卸',
340
+ online: true,
341
+ position: [435.20000000, 0.62500079, 172.90000000]
342
+ }, {
343
+ id: '57',
344
+ name: '葛强',
345
+ dep: '设备运维',
346
+ online: true,
347
+ position: [379.10000000, 0.62500079, 193.40000000]
348
+ }, {
349
+ id: '46',
350
+ name: '宫京',
351
+ dep: '运输装卸',
352
+ online: true,
353
+ position: [441.30000000, 0.62500079, 80.70000000]
354
+ }, {
355
+ id: '53',
356
+ name: '匡青一',
357
+ dep: '运输装卸',
358
+ online: true,
359
+ position: [379.10000000, 0.62500079, 173.80000000]
360
+ }, {
361
+ id: '55',
362
+ name: '李丽颖',
363
+ dep: '质量检测',
364
+ online: true,
365
+ position: [357.50000000, 0.62500079, 221.40000000]
366
+ }, {
367
+ id: '48',
368
+ name: '李同一',
369
+ dep: '工艺操作',
370
+ online: true,
371
+ position: [467.80000000, 0.62500079, 108.10000000]
372
+ }, {
373
+ id: '56',
374
+ name: '李晓阳',
375
+ dep: '运输装卸',
376
+ online: true,
377
+ position: [444.20000000, 0.62500079, 191.80000000]
378
+ }, {
379
+ id: '41',
380
+ name: '刘超',
381
+ dep: '运输装卸',
382
+ online: true,
383
+ position: [354.20000000, 0.62500079, -22.70000000]
384
+ }, {
385
+ id: '42',
386
+ name: '刘凤林',
387
+ dep: '工艺操作',
388
+ online: true,
389
+ position: [368.50000000, 0.62500079, 40.30000000]
390
+ }, {
391
+ id: '44',
392
+ name: '卢灵',
393
+ dep: '运输装卸',
394
+ online: true,
395
+ position: [368.00000000, 0.62500079, 79.90000000]
396
+ }, {
397
+ id: '45',
398
+ name: '苏丁',
399
+ dep: '质量检测',
400
+ online: true,
401
+ position: [440.30000000, 0.62500079, 72.90000000]
402
+ }, {
403
+ id: '50',
404
+ name: '王林缘',
405
+ dep: '工艺操作',
406
+ online: true,
407
+ position: [360.40000000, 0.62500079, 103.20000000]
408
+ }, {
409
+ id: '51',
410
+ name: '汪泉',
411
+ dep: '运输装卸',
412
+ online: true,
413
+ position: [394.30000000, 0.62500079, 142.00000000]
414
+ }, {
415
+ id: '43',
416
+ name: '徐刚',
417
+ dep: '运输装卸',
418
+ online: true,
419
+ position: [442.70000000, 0.62500079, -19.0000000]
420
+ }, {
421
+ id: '52',
422
+ name: '薛友',
423
+ dep: '质量检测',
424
+ online: true,
425
+ position: [444.40000000, 0.62500079, 147.80000000]
426
+ }, {
427
+ id: '60',
428
+ name: '章虎泉',
429
+ dep: '工艺操作',
430
+ online: true,
431
+ position: [467.80000000, 0.62500079, 21.90000000]
432
+ }, {
433
+ id: '47',
434
+ name: '张山峰',
435
+ dep: '设备运维',
436
+ online: true,
437
+ position: [459.90000000, 0.62500079, 90.10000000]
438
+ }],
439
+ poi: {
440
+ id: '7',
441
+ position: [404.24348058, 0.55000000, 85.00566808],
442
+ content: '提供对工厂办公人员的休息和休闲区域,包括食堂,休息室,员工宿舍,休闲楼等场地,且该区域需较远离生产区,保证员工休息质量。'
443
+ }
444
+ }
445
+ };
446
+ export default regionMap;
447
+ //# sourceMappingURL=regionData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["regionMap","reform","id","title","area","poi","position","content","people","name","dep","online","reduction","crudeOil","catalyticCracking","hydrocrackingUnit","cokingUnit","administrative","maxHigh"],"sources":["../../src/factory/regionData.ts"],"sourcesContent":["/**\n * todo: 各个单元数据需要统一\n * 当前demo area可以用直线绘制\n */\n\nexport interface IPeople {\n id: string\n name: string\n dep?: string\n online?: boolean\n position: Array<number>\n}\n\nexport interface IPoi {\n id: string\n position: Array<number>\n content?: string\n}\n\nexport type RegionMap = {\n [k: string]: {\n id: string\n title: string\n area: number[][]\n maxHigh?: number\n poi?: IPoi\n people?: Array<IPeople>\n }\n}\n\nexport const regionMap: RegionMap = {\n reform: {\n id: '1',\n title: '重整装置区',\n area: [\n [\n -483.562,\n 0,\n -225.624,\n ],\n [\n -145.997,\n 0,\n -225.624,\n ],\n [\n -145.997,\n 0,\n -59.401,\n ],\n [\n -483.562,\n 0,\n -59.401,\n ],\n ],\n poi: {\n id: '1',\n position: [-314.01113070, 0.55000000, -146.54350582],\n content: '通过直馏汽油和加氢石脑油,在催化剂存在的前提下,将原料的烷烃和环烷烃重构成为芳烃。并采用半再生固定床重整工艺,催化剂分段装填及两段混氢技术,装置采用了RIPP的粗汽油制氢技术。',\n },\n people: [\n {\n id: '7',\n name: '耿笑',\n dep: '设备运维',\n online: true,\n position: [-352.00000000, 0.62500079, -177.20000000],\n },\n {\n id: '2',\n name: '李连贵',\n dep: '工艺操作',\n online: true,\n position: [-275.70000000, 0.62500079, -137.10000000],\n },\n {\n id: '8',\n name: '吕萌',\n dep: '质量检测',\n online: true,\n position: [-365.40000000, 0.62500079, -80.60000000],\n },\n {\n id: '1',\n name: '宋玉',\n dep: '质量检测',\n online: true,\n position: [-436.90000000, 0.62500079, -121.50000000],\n },\n {\n id: '5',\n name: '王小雨',\n dep: '运输装卸',\n online: true,\n position: [-238.70000000, 0.62500079, -205.10000000],\n },\n {\n id: '6',\n name: '张建国',\n dep: '原料加工',\n online: true,\n position: [-436.50000000, 0.62500079, -182.30000000],\n },\n {\n id: '3',\n name: '张小萌',\n dep: '生产技术',\n online: true,\n position: [-204.80000000, 0.62500079, -150.10000000],\n },\n {\n id: '4',\n name: '朱正',\n dep: '设备运维',\n online: true,\n position: [-302.20000000, 0.62500079, -117.90000000],\n },\n ],\n },\n reduction: {\n id: '2',\n title: '常减压装置区',\n area: [\n [-140.123, 0, -225.604],\n [206.547, 0, -225.624],\n [206.547, 0, -59.401],\n [-140.123, 0, -59.401],\n ],\n poi: {\n id: '2',\n position: [28.89784048, 0.55000000, -144.28157517],\n content: '主要包括三个工序:原油的脱盐、脱水;常压蒸馏;减压蒸馏。从油田送往炼油厂的原油往往含盐(主要是氧化物)带水(溶于油或呈乳化状态),可导致设备的腐蚀,在设备内壁结垢和影响成品油的组成,需在加工前脱除。',\n },\n people: [\n {\n id: '12',\n name: '才新梁',\n dep: '运输装卸',\n online: true,\n position: [26.50000000, 0.62500079, -155.00000000],\n },\n {\n id: '13',\n name: '何超盈',\n dep: '生产技术',\n online: true,\n position: [198.50000000, 0.62500079, -169.20000000],\n },\n {\n id: '11',\n name: '李大为',\n dep: '质量检测',\n online: true,\n position: [-79.80000000, 0.62500079, -218.20000000],\n },\n {\n id: '15',\n name: '孙建连',\n dep: '工艺操作',\n online: true,\n position: [-19.50000000, 0.62500079, -174.60000000],\n },\n {\n id: '9',\n name: '孙强',\n dep: '工艺操作',\n online: true,\n position: [-114.10000000, 0.62500079, -114.60000000],\n },\n {\n id: '10',\n name: '佟丽英',\n dep: '运输装卸',\n online: true,\n position: [26.10000000, 0.62500079, -202.30000000],\n },\n {\n id: '14',\n name: '王超',\n dep: '设备运维',\n online: true,\n position: [-14.90000000, 0.62500079, -116.90000000],\n },\n ],\n },\n crudeOil: {\n id: '3',\n title: '原油装置区',\n area: [\n [240.584, 0, -225.624],\n [475.523, 0, -225.624],\n [475.543, 0, -59.401],\n [240.584, 0, -59.401],\n ],\n poi: {\n id: '3',\n position: [359.58372139, 0.55000000, -144.28157517],\n content: '原油罐区应靠近相应的加工装置区,并利用地形将液体物料自留输送,性质相近的液体物料储物罐宜布置较近。原油罐区的占地面积较大,原油罐区应注意火灾防范,存储量大一旦发生火灾,如不及时处置,扑救十分困难。',\n },\n people: [\n {\n id: '19',\n name: '牛小灵',\n dep: '生产技术',\n online: true,\n position: [404.70000000, 0.62500079, -190.30000000],\n },\n {\n id: '17',\n name: '彭旭',\n dep: '运输装卸',\n online: true,\n position: [294.10000000, 0.62500079, -125.90000000],\n },\n {\n id: '16',\n name: '宋麒麟',\n dep: '设备运维',\n online: true,\n position: [445.70000000, 0.62500079, -119.20000000],\n },\n {\n id: '18',\n name: '赵佳慧',\n dep: '生产技术',\n online: true,\n position: [344.50000000, 0.62500079, -127.10000000],\n },\n ],\n },\n catalyticCracking: {\n id: '4',\n title: '催化裂化装置区',\n area: [\n [\n -483.562,\n 0,\n -49.812,\n ],\n [\n -145.997,\n 0,\n -49.812,\n ],\n [\n -145.997,\n 0,\n 115.799,\n ],\n [\n -483.562,\n 0,\n 115.799,\n ],\n ],\n poi: {\n id: '4',\n position: [-322.57300372, 0.55000000, 31.81516361],\n content: '该区域主要危险因素为高温,重点部位:1. 催化剂循环系统磨穿泄漏着火;2. 再生器及沉降器油气互串爆炸;3. 高位管线及设备泄漏着火。同时催化裂化工艺过程需注意对环境造成的影响,生产过程中烟气会带走较多热烈造成热能浪费和污染,',\n },\n people: [\n {\n id: '20',\n name: '李刚',\n dep: '运输装卸',\n online: true,\n position: [-339.40000000, 0.62500079, -1.90000000],\n },\n {\n id: '24',\n name: '李天一',\n dep: '工艺操作',\n online: true,\n position: [-394.80000000, 0.62500079, 16.80000000],\n },\n {\n id: '26',\n name: '吕方',\n dep: '设备运维',\n online: true,\n position: [-363.10000000, 0.62500079, 73.30000000],\n },\n {\n id: '29',\n name: '路笑',\n dep: '运输装卸',\n online: true,\n position: [-214.00000000, 0.62500079, 39.10000000],\n },\n {\n id: '22',\n name: '淼杉',\n dep: '运输装卸',\n online: true,\n position: [-175.10000000, 0.62500079, -12.80000000],\n },\n {\n id: '25',\n name: '孙江',\n dep: '运输装卸',\n online: true,\n position: [-175.80000000, 0.62500079, 8.90000000],\n },\n {\n id: '27',\n name: '王衣衣',\n dep: '运输装卸',\n online: true,\n position: [-394.60000000, 0.62500079, -37.80000000],\n },\n {\n id: '28',\n name: '张含义',\n dep: '质量检测',\n online: true,\n position: [-436.90000000, 0.62500079, 69.40000000],\n },\n {\n id: '21',\n name: '张山一',\n dep: '生产技术',\n online: true,\n position: [-325.30000000, 0.62500079, 86.20000000],\n },\n {\n id: '23',\n name: '张时柳',\n dep: '运输装卸',\n online: true,\n position: [-211.20000000, 0.62500079, 95.80000000],\n },\n ],\n },\n hydrocrackingUnit: {\n id: '5',\n title: '加氢裂化装置区',\n area: [\n [-483.562, 0, 124.634],\n [-145.997, 0, 124.634],\n [-145.997, 0, 218.589],\n [\n -483.562, 0, 218.589,\n ],\n ],\n poi: {\n id: '5',\n position: [-307.04992341, 0.55000000, 168.90578924],\n content: '该区域主要注意器材的腐蚀,腐蚀类型主要有:氢损伤(包括高温氢腐蚀、氢脆、氢致剥离)、高温H2+H2S腐蚀、连多硫酸腐蚀、Cr-Mo钢的回火脆性、高温S腐蚀、低温部位的H2S+H2O腐蚀、H2S+NH3+H2O腐蚀。',\n },\n people: [\n {\n id: '30',\n name: '李梦雅',\n dep: '生产技术',\n online: true,\n position: [-203.90000000, 0.62500079, -4.70000000],\n },\n {\n id: '31',\n name: '张连营',\n dep: '运输装卸',\n online: true,\n position: [-428.40000000, 0.62500079, 96.90000000],\n },\n {\n id: '32',\n name: '张子成',\n dep: '运输装卸',\n online: true,\n position: [-408.30000000, 0.62500079, -37.20000000],\n },\n ],\n },\n cokingUnit: {\n id: '6',\n title: '焦化装置区',\n area: [\n [-140.100, 0, -49.802],\n [316.508, 0, -49.802],\n [316.508, 0, 218.847],\n [-140.100, 0, 218.847],\n ],\n poi: {\n id: '6',\n position: [76.84192138, 0.55000332, 95.89826158],\n content: '该区域采用的延迟焦化装置是厂区能耗大户,其中,其燃料油、循环水两者的能耗占整个装置能耗的54%左右,其中,燃料气主要用于原料的加热、升温;循环水、新鲜水、软化水主要用于装置机泵降温、焦炭塔冷却等等。',\n },\n people: [\n {\n id: '38',\n name: '毕贵元',\n dep: '工艺操作',\n online: true,\n position: [247.30000000, 0.62500079, 166.20000000],\n },\n {\n id: '39',\n name: '何晴',\n dep: '设备运维',\n online: true,\n position: [-83.70000000, 0.62500079, 177.50000000],\n },\n {\n id: '33',\n name: '杨东利',\n dep: '工艺操作',\n online: true,\n position: [68.20000000, 0.62500079, 5.20000000],\n },\n {\n id: '36',\n name: '杨晓月',\n dep: '质量检测',\n online: true,\n position: [258.00000000, 0.62500079, 99.00000000],\n },\n {\n id: '40',\n name: '杨一真',\n dep: '质量检测',\n online: true,\n position: [107.90000000, 0.62500079, 95.30000000],\n },\n {\n id: '37',\n name: '张飞',\n dep: '运输装卸',\n online: true,\n position: [-69.60000000, 0.62500079, 29.30000000],\n },\n {\n id: '35',\n name: '张一天',\n dep: '运输装卸',\n online: true,\n position: [271.20000000, 0.62500079, 24.70000000],\n },\n {\n id: '34',\n name: '张泽宇',\n dep: '设备运维',\n online: true,\n position: [175.00000000, 0.62500079, 74.60000000],\n },\n ],\n },\n administrative: {\n id: '7',\n title: '办公区',\n area: [\n [340.501, 0, -44.710],\n [482.570, 0, -44.710],\n [482.570, 0, 227.641],\n [340.501, 0, 227.641],\n ],\n maxHigh: 100,\n people: [{\n id: '49',\n name: '毕古元',\n dep: '运输装卸',\n online: true,\n position: [431.60000000, 0.62500079, 94.90000000],\n },\n {\n id: '50',\n name: '陈红',\n dep: '设备运维',\n online: true,\n position: [374.20000000, 0.62500079, 14.80000000],\n },\n {\n id: '58',\n name: '陈静娴',\n dep: '质量检测',\n online: true,\n position: [352.40000000, 0.62500079, 138.30000000],\n },\n {\n id: '54',\n name: '高红雷',\n dep: '运输装卸',\n online: true,\n position: [435.20000000, 0.62500079, 172.90000000],\n },\n {\n id: '57',\n name: '葛强',\n dep: '设备运维',\n online: true,\n position: [379.10000000, 0.62500079, 193.40000000],\n },\n {\n id: '46',\n name: '宫京',\n dep: '运输装卸',\n online: true,\n position: [441.30000000, 0.62500079, 80.70000000],\n },\n {\n id: '53',\n name: '匡青一',\n dep: '运输装卸',\n online: true,\n position: [379.10000000, 0.62500079, 173.80000000],\n },\n {\n id: '55',\n name: '李丽颖',\n dep: '质量检测',\n online: true,\n position: [357.50000000, 0.62500079, 221.40000000],\n },\n {\n id: '48',\n name: '李同一',\n dep: '工艺操作',\n online: true,\n position: [467.80000000, 0.62500079, 108.10000000],\n },\n {\n id: '56',\n name: '李晓阳',\n dep: '运输装卸',\n online: true,\n position: [444.20000000, 0.62500079, 191.80000000],\n },\n {\n id: '41',\n name: '刘超',\n dep: '运输装卸',\n online: true,\n position: [354.20000000, 0.62500079, -22.70000000],\n },\n {\n id: '42',\n name: '刘凤林',\n dep: '工艺操作',\n online: true,\n position: [368.50000000, 0.62500079, 40.30000000],\n },\n {\n id: '44',\n name: '卢灵',\n dep: '运输装卸',\n online: true,\n position: [368.00000000, 0.62500079, 79.90000000],\n },\n {\n id: '45',\n name: '苏丁',\n dep: '质量检测',\n online: true,\n position: [440.30000000, 0.62500079, 72.90000000],\n },\n {\n id: '50',\n name: '王林缘',\n dep: '工艺操作',\n online: true,\n position: [360.40000000, 0.62500079, 103.20000000],\n },\n {\n id: '51',\n name: '汪泉',\n dep: '运输装卸',\n online: true,\n position: [394.30000000, 0.62500079, 142.00000000],\n },\n {\n id: '43',\n name: '徐刚',\n dep: '运输装卸',\n online: true,\n position: [442.70000000, 0.62500079, -19.0000000],\n },\n {\n id: '52',\n name: '薛友',\n dep: '质量检测',\n online: true,\n position: [444.40000000, 0.62500079, 147.80000000],\n },\n {\n id: '60',\n name: '章虎泉',\n dep: '工艺操作',\n online: true,\n position: [467.80000000, 0.62500079, 21.90000000],\n },\n {\n id: '47',\n name: '张山峰',\n dep: '设备运维',\n online: true,\n position: [459.90000000, 0.62500079, 90.10000000],\n },\n ],\n poi: {\n id: '7',\n position: [404.24348058, 0.55000000, 85.00566808],\n content: '提供对工厂办公人员的休息和休闲区域,包括食堂,休息室,员工宿舍,休闲楼等场地,且该区域需较远离生产区,保证员工休息质量。',\n },\n },\n}\n\nexport default regionMap"],"mappings":"AAAA;AACA;AACA;AACA;;AA2BA,OAAO,IAAMA,SAAoB,GAAG;EAClCC,MAAM,EAAE;IACNC,EAAE,EAAE,GAAG;IACPC,KAAK,EAAE,OAAO;IACdC,IAAI,EAAE,CACJ,CACE,CAAC,OAAO,EACR,CAAC,EACD,CAAC,OAAO,CACT,EACD,CACE,CAAC,OAAO,EACR,CAAC,EACD,CAAC,OAAO,CACT,EACD,CACE,CAAC,OAAO,EACR,CAAC,EACD,CAAC,MAAM,CACR,EACD,CACE,CAAC,OAAO,EACR,CAAC,EACD,CAAC,MAAM,CACR,CACF;IACDC,GAAG,EAAE;MACHH,EAAE,EAAE,GAAG;MACPI,QAAQ,EAAE,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,CAAC,YAAY,CAAC;MACpDC,OAAO,EAAE;IACX,CAAC;IACDC,MAAM,EAAE,CACN;MACEN,EAAE,EAAE,GAAG;MACPO,IAAI,EAAE,IAAI;MACVC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,IAAI;MACZL,QAAQ,EAAE,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,CAAC,YAAY;IACrD,CAAC,EACD;MACEJ,EAAE,EAAE,GAAG;MACPO,IAAI,EAAE,KAAK;MACXC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,IAAI;MACZL,QAAQ,EAAE,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,CAAC,YAAY;IACrD,CAAC,EACD;MACEJ,EAAE,EAAE,GAAG;MACPO,IAAI,EAAE,IAAI;MACVC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,IAAI;MACZL,QAAQ,EAAE,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,CAAC,WAAW;IACpD,CAAC,EACD;MACEJ,EAAE,EAAE,GAAG;MACPO,IAAI,EAAE,IAAI;MACV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O,IAAI,EAAE,KAAK;MACXC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,IAAI;MACZL,QAAQ,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,WAAW;IAClD,CAAC,EACD;MACEJ,EAAE,EAAE,IAAI;MACRO,IAAI,EAAE,KAAK;MACXC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,IAAI;MACZL,QAAQ,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,WAAW;IAClD,CAAC,CACA;IACDD,GAAG,EAAE;MACHH,EAAE,EAAE,GAAG;MACPI,QAAQ,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,WAAW,CAAC;MACjDC,OAAO,EAAE;IACX;EACF;AACF,CAAC;AAED,eAAeP,SAAS"}
@@ -0,0 +1,7 @@
1
+ import type { Box3 } from 'three';
2
+ declare class AreaBoundingBoxManage {
3
+ readonly boundingBoxMap: Map<string, Box3>;
4
+ constructor();
5
+ generateBoundingBox(): void;
6
+ }
7
+ export default AreaBoundingBoxManage;
@@ -0,0 +1,28 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import { createAreaBoundingBox } from "../utils/areaBoundingBox";
9
+ import regionMap from "../regionData";
10
+ var AreaBoundingBoxManage = /*#__PURE__*/function () {
11
+ function AreaBoundingBoxManage() {
12
+ _classCallCheck(this, AreaBoundingBoxManage);
13
+ _defineProperty(this, "boundingBoxMap", new Map());
14
+ }
15
+ _createClass(AreaBoundingBoxManage, [{
16
+ key: "generateBoundingBox",
17
+ value: function generateBoundingBox() {
18
+ for (var key in regionMap) {
19
+ var currentArea = regionMap[key];
20
+ var box = createAreaBoundingBox(currentArea.area, currentArea.maxHigh || 100);
21
+ this.boundingBoxMap.set(currentArea.id, box);
22
+ }
23
+ }
24
+ }]);
25
+ return AreaBoundingBoxManage;
26
+ }();
27
+ export default AreaBoundingBoxManage;
28
+ //# sourceMappingURL=areaBoundingBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAreaBoundingBox","regionMap","AreaBoundingBoxManage","Map","key","currentArea","box","area","maxHigh","boundingBoxMap","set","id"],"sources":["../../../src/factory/unit/areaBoundingBox.ts"],"sourcesContent":["import type { Box3 } from 'three'\nimport { createAreaBoundingBox } from '../utils/areaBoundingBox'\nimport regionMap from '../regionData'\n\nclass AreaBoundingBoxManage {\n readonly boundingBoxMap: Map<string, Box3> = new Map()\n constructor() {}\n\n generateBoundingBox() {\n for (const key in regionMap) {\n const currentArea = regionMap[key]\n\n const box = createAreaBoundingBox(currentArea.area, currentArea.maxHigh || 100)\n this.boundingBoxMap.set(currentArea.id, box)\n }\n }\n}\n\nexport default AreaBoundingBoxManage\n"],"mappings":";;;;;;;AACA,SAASA,qBAAqB;AAC9B,OAAOC,SAAS;AAAqB,IAE/BC,qBAAqB;EAEzB,iCAAc;IAAA;IAAA,wCAD+B,IAAIC,GAAG,EAAE;EACvC;EAAC;IAAA;IAAA,OAEhB,+BAAsB;MACpB,KAAK,IAAMC,GAAG,IAAIH,SAAS,EAAE;QAC3B,IAAMI,WAAW,GAAGJ,SAAS,CAACG,GAAG,CAAC;QAElC,IAAME,GAAG,GAAGN,qBAAqB,CAACK,WAAW,CAACE,IAAI,EAAEF,WAAW,CAACG,OAAO,IAAI,GAAG,CAAC;QAC/E,IAAI,CAACC,cAAc,CAACC,GAAG,CAACL,WAAW,CAACM,EAAE,EAAEL,GAAG,CAAC;MAC9C;IACF;EAAC;EAAA;AAAA;AAGH,eAAeJ,qBAAqB"}
@@ -0,0 +1,15 @@
1
+ import type { Object3D } from '@anov/3d-core';
2
+ import type Factory3D from '../3d';
3
+ declare class CircleManage {
4
+ private scene;
5
+ readonly circleMesh: Map<string, Object3D>;
6
+ private interactionManager;
7
+ private peoplePoi;
8
+ constructor(gobal: Factory3D);
9
+ generateCircle(belongTo: string): void;
10
+ remove(): void;
11
+ setVisible(visible?: boolean): void;
12
+ private bindEvent;
13
+ private getData;
14
+ }
15
+ export default CircleManage;
@@ -0,0 +1,88 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import { Mesh, MeshBasicMaterial, SphereGeometry, Vector3, utils } from '@anov/3d-core';
9
+ import { EPoiType, Poi } from '@anov/3d-ability';
10
+ import { regionMap } from "../regionData";
11
+ var CircleManage = /*#__PURE__*/function () {
12
+ function CircleManage(gobal) {
13
+ _classCallCheck(this, CircleManage);
14
+ _defineProperty(this, "scene", void 0);
15
+ _defineProperty(this, "circleMesh", new Map());
16
+ _defineProperty(this, "interactionManager", void 0);
17
+ _defineProperty(this, "peoplePoi", void 0);
18
+ this.scene = gobal.scene.scene;
19
+ this.interactionManager = utils.storeManagement.get('interactionManager');
20
+ }
21
+ _createClass(CircleManage, [{
22
+ key: "generateCircle",
23
+ value: function generateCircle(belongTo) {
24
+ var _this = this;
25
+ var geometry = new SphereGeometry(2, 32, 16);
26
+ var material = new MeshBasicMaterial({
27
+ color: 0xFED602
28
+ });
29
+ var circle = new Mesh(geometry, material);
30
+ var data = this.getData(belongTo);
31
+ data.forEach(function (people) {
32
+ var mesh = circle.clone();
33
+ mesh.position.fromArray(people.position);
34
+ _this.scene.add(mesh);
35
+ _this.bindEvent(mesh, people);
36
+ _this.circleMesh.set(people.id, mesh);
37
+ });
38
+ }
39
+ }, {
40
+ key: "remove",
41
+ value: function remove() {
42
+ this.circleMesh.forEach(function (mesh) {
43
+ mesh.removeFromParent();
44
+ });
45
+ this.circleMesh.clear();
46
+ }
47
+ }, {
48
+ key: "setVisible",
49
+ value: function setVisible() {
50
+ var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
51
+ // 控制CYCLE的隐藏、显示
52
+ this.circleMesh.forEach(function (poi) {
53
+ poi.visible = visible;
54
+ });
55
+ }
56
+ }, {
57
+ key: "bindEvent",
58
+ value: function bindEvent(mesh, data) {
59
+ var _this2 = this;
60
+ this.interactionManager.add(mesh);
61
+ var skewing = new Vector3(0, 1.5, -1.5); // 偏移量
62
+ mesh.addEventListener('mouseover', function () {
63
+ if (_this2.peoplePoi) return;
64
+ var poi = new Poi(EPoiType.Base);
65
+ _this2.peoplePoi = poi.create(data.name);
66
+ _this2.peoplePoi.position.copy(mesh.position.clone().add(skewing));
67
+ _this2.scene.add(_this2.peoplePoi);
68
+ });
69
+ mesh.addEventListener('mouseout', function () {
70
+ if (_this2.peoplePoi) {
71
+ _this2.peoplePoi.removeFromParent();
72
+ _this2.peoplePoi = null;
73
+ }
74
+ });
75
+ }
76
+ }, {
77
+ key: "getData",
78
+ value: function getData(belongTo) {
79
+ var regionKey = Object.keys(regionMap).find(function (key) {
80
+ return regionMap[key].id === belongTo;
81
+ });
82
+ return regionMap[regionKey] && regionMap[regionKey].people;
83
+ }
84
+ }]);
85
+ return CircleManage;
86
+ }();
87
+ export default CircleManage;
88
+ //# sourceMappingURL=circle.js.map