@realsee/dnalogel 0.1.2 → 0.1.3

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 (53) hide show
  1. package/data/XJ6NMLWnkAY3Rdx8.d.ts +843 -0
  2. package/data/XJ6NMLWnkAY3Rdx8.js +7987 -0
  3. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +85 -0
  4. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +509 -0
  5. package/data/vLykj3NWrllMrG06.d.ts +2 -0
  6. package/data/vLykj3NWrllMrG06.js +197 -2
  7. package/data/zxMawr9raSg8LYjG.d.ts +53 -0
  8. package/data/zxMawr9raSg8LYjG.js +588 -0
  9. package/package.json +2 -2
  10. package/plugins/AutoPreloadPlugin/index.d.ts +23 -0
  11. package/plugins/AutoPreloadPlugin/index.js +85 -0
  12. package/plugins/CSS3DRenderPlugin/index.d.ts +3 -2
  13. package/plugins/CSS3DRenderPlugin/index.js +49 -44
  14. package/plugins/ModelChassisCompassPlugin/index.d.ts +7 -3
  15. package/plugins/ModelChassisCompassPlugin/index.js +13 -26
  16. package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +13 -1
  17. package/plugins/ModelEntryDoorGuidePlugin/index.js +212 -2
  18. package/plugins/ModelRoomLabelPlugin/Controller.d.ts +35 -0
  19. package/plugins/ModelRoomLabelPlugin/Controller.js +147 -0
  20. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +8 -0
  21. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +48 -0
  22. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +7 -0
  23. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +149 -0
  24. package/plugins/ModelRoomLabelPlugin/index.d.ts +8 -0
  25. package/plugins/ModelRoomLabelPlugin/index.js +16 -0
  26. package/plugins/ModelRoomLabelPlugin/typings.d.ts +35 -0
  27. package/plugins/ModelRoomLabelPlugin/typings.js +5 -0
  28. package/plugins/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
  29. package/plugins/ModelRoomLabelPlugin/utils/parseData.js +29 -0
  30. package/plugins/PanoMaskSelectorPlugin/compare.d.ts +1 -0
  31. package/plugins/PanoMaskSelectorPlugin/compare.js +15 -0
  32. package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +7 -0
  33. package/plugins/PanoMaskSelectorPlugin/createBox.js +61 -0
  34. package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +3 -0
  35. package/plugins/PanoMaskSelectorPlugin/createTextures.js +29 -0
  36. package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +1 -0
  37. package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +8 -0
  38. package/plugins/PanoMaskSelectorPlugin/index.d.ts +49 -0
  39. package/plugins/PanoMaskSelectorPlugin/index.js +262 -0
  40. package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +1 -0
  41. package/plugins/PanoMaskSelectorPlugin/vertexShader.js +8 -0
  42. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +4 -2
  43. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +2 -1
  44. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +5 -2
  45. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +1 -1
  46. package/shared-utils/createCanvasTextTexture.d.ts +8 -0
  47. package/shared-utils/createCanvasTextTexture.js +29 -0
  48. package/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
  49. package/shared-utils/three/transfromToMeshBasicMaterial.js +27 -0
  50. package/typedoc/plugins.d.ts +2 -0
  51. package/typedoc/plugins.js +39 -1
  52. package/data/wYnRjQ4KZoV1yPoG.d.ts +0 -114
  53. package/data/wYnRjQ4KZoV1yPoG.js +0 -512
@@ -0,0 +1,588 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.work = void 0;
7
+ var work = {
8
+ _signature: 'Iv4jcu7I+3QvAYeBWqnZChWh9w9nJG0apU27ntqmIZL1Rsjc4AQe7jpkBNslizvKfbHlRPJ4DbCjCn1pw2irDamSgNoewZzSUK8VAPcfmzvb4ZWcsoEzOqfIHT1u61p4MTkpoPnMzNtN6GILe/1TfnDhDqla7SSXchTXoNVEnMs=',
9
+ allow_hosts: ['*'],
10
+ base_url: 'https://vrlab-public.ljcdn.com/release/ue4/9e1a3645f16cf467bda0bd3490c995ac/ue4_result/',
11
+ certificate: '-----BEGIN CERTIFICATE-----\nMIIEMzCCAhsCCQDYAS/7ATZRmTANBgkqhkiG9w0BAQsFADCBkzELMAkGA1UEBhMC\nQ04xEDAOBgNVBAgMB0JlaWppbmcxEDAOBgNVBAcMB0JlaWppbmcxFDASBgNVBAoM\nC2xpYW5qaWEuY29tMRAwDgYDVQQLDAdSZWFsc2VlMREwDwYDVQQDDAhIYXJkd2Fy\nZTElMCMGCSqGSIb3DQEJARYWbml1aGFpcWluZ0BsaWFuamlhLmNvbTAeFw0yMTA5\nMTAwNTIwMDBaFw0zMTA5MDgwNTIwMDBaMIGmMQswCQYDVQQGEwJDTjEQMA4GA1UE\nCAwHQmVpSmluZzEQMA4GA1UEBwwHQmVpSmluZzEQMA4GA1UECgwHUmVhbHNlZTEZ\nMBcGA1UECwwQUmVhbHNlZUFwcEdldHdheTEgMB4GA1UEAwwXYXBwLWdhdGV3YXku\ncmVhbHNlZS5jb20xJDAiBgkqhkiG9w0BCQEWFWRldmVsb3BlckByZWFsc2VlLmNv\nbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuv/y3Ezsy/wh3LCA8vomPbgI\nSO9iO5kyR+oAetklD+epMU6J/ZbvTDEomZxuS5iyyKGBupzAh2ZFLIy7tsE71Vx1\nIIvT7Kdyq66lMU4YzdrpKUcxv7oOQnO8DA1orKluNa4jkyXBywHKs/Q+20LVc+RD\ngKXqFGJUdo8mAxEScs0CAwEAATANBgkqhkiG9w0BAQsFAAOCAgEAkMxsU4VLPd4J\n0rElBNBIyqPtvnlTs6VkhIK0l4oM58wtDKc1uG9UPSX5j29NguZM6LOe0jCsU2Vg\nEpUseMWQjx4o2yBg7MokQyjWc1zu6PppKhQ+RqHQy/biJ2zsIMpX3oMASXffvnW5\nn4Bjyo1JdDJiLm1fLvLlVVxQoraJD+rtpqWDEYixGVREUo5OIL5Y5dVjkHG2r9RQ\nQuu3yEiyr9gAW8yhz3YR6/sJ6boyGK8NC0v8Jih7NnCdT+9ML+3jn3P5F3TeXdSf\nVeYIm5oWAOTe3AjjKP8ARMb2RYACjg80/AcowD/dvRRjbwQmyucUNug2pXJynXpD\nNfx1IBmUmzSAT1Z5yNuY/f3VRBJvmIQ6Jpmef+g0/wUJpyS4SObguItyYlFPLqRH\nK1oKqNX/uV0GWWEQl6Lml986TzlHxc4ljtHBhjzlKYIYYZLWWipk4JiB8hxJcTK+\ncrgvclEQSxFlmAyoqxYFClrOOsPqZJdBhDTvoUWnnWuJLQt7DLHpyInp+S75Gg3o\n0zgHpt9m26B3YbjQGYMQlYmhl2VLQa+Ey0W8UZQXLcTvoRT4p+8crqr6cNNsxCyZ\nm08vBbEMIMvhBeLQvpM75oaMBmelegipFl2eelxVIHdGJWoyJSZQUdXN0uSidhZp\nI7AIgzhqK1Ku/IXK0OSXJonn+/9X/VI=\n-----END CERTIFICATE-----',
12
+ create_time: '0001-01-01T00:00:00Z',
13
+ expire_at: '1954987440248',
14
+ initial: {
15
+ fov: 110,
16
+ latitude: 0,
17
+ longitude: 1.499647315445733,
18
+ pano: 9,
19
+ pano_index: 9,
20
+ recordVideo: false
21
+ },
22
+ model: {
23
+ file_url: 'https://vrlab-public.ljcdn.com/vrframework/release/ue4_decoration_plan/zxMawr9raSg8LYjG/vrproc-ue4/render/model.at3d',
24
+ material_base_url: 'https://test-vr-public.realsee-cdn.com/test/ue4/065c48487d2370aedf1eb397d01b2614/at3d_results/',
25
+ material_textures: ['texture_0.jpg', 'texture_1.jpg', 'texture_2.jpg', 'texture_3.jpg', 'texture_4.jpg', 'texture_5.jpg', 'texture_6.jpg', 'texture_7.jpg', 'texture_8.jpg', 'texture_9.jpg', 'texture_10.jpg', 'texture_11.jpg', 'texture_12.jpg', 'texture_13.jpg', 'texture_14.jpg', 'texture_15.jpg', 'texture_16.jpg', 'texture_17.jpg', 'texture_18.jpg', 'texture_19.jpg', 'texture_20.jpg', 'texture_21.jpg', 'texture_22.jpg', 'texture_23.jpg', 'texture_24.jpg', 'texture_25.jpg', 'texture_26.jpg', 'texture_27.jpg', 'texture_28.jpg', 'texture_29.jpg', 'texture_30.jpg', 'texture_31.jpg', 'texture_32.jpg', 'texture_33.jpg', 'texture_34.jpg', 'texture_35.jpg', 'texture_36.jpg', 'texture_37.jpg', 'texture_38.jpg', 'texture_39.jpg', 'texture_40.jpg', 'texture_41.jpg'],
26
+ modify_time: '0001-01-01T00:00:00Z',
27
+ type: 0
28
+ },
29
+ observers: [{
30
+ accessible_nodes: [6, 10, 14, 19, 20, 23],
31
+ floor_index: 0,
32
+ index: 0,
33
+ offset_point_count: 0,
34
+ position: [-0.947504, 1.2, -1.398092],
35
+ quaternion: {
36
+ w: 0.7071067811865475,
37
+ x: 0,
38
+ y: 0.7071067811865475,
39
+ z: 0
40
+ },
41
+ standing_position: [-0.947504, 0, -1.398092],
42
+ visible_nodes: [6, 10, 14, 19, 20, 23]
43
+ }, {
44
+ accessible_nodes: [5, 6, 9, 11, 13, 15, 16, 19, 22, 23],
45
+ floor_index: 0,
46
+ index: 1,
47
+ offset_point_count: 0,
48
+ position: [-2.052143, 1.2, -1.614287],
49
+ quaternion: {
50
+ w: 0.7071067811865475,
51
+ x: 0,
52
+ y: 0.7071067811865475,
53
+ z: 0
54
+ },
55
+ standing_position: [-2.052143, 0, -1.614287],
56
+ visible_nodes: [5, 6, 9, 11, 13, 15, 16, 19, 22, 23]
57
+ }, {
58
+ accessible_nodes: [4, 5, 9, 15, 16, 17, 18, 24],
59
+ floor_index: 0,
60
+ index: 2,
61
+ offset_point_count: 0,
62
+ position: [-0.375493, 1.2, -5.37362],
63
+ quaternion: {
64
+ w: 0.7071067811865475,
65
+ x: 0,
66
+ y: 0.7071067811865475,
67
+ z: 0
68
+ },
69
+ standing_position: [-0.375493, 0, -5.37362],
70
+ visible_nodes: [4, 5, 9, 15, 16, 17, 18, 24]
71
+ }, {
72
+ accessible_nodes: [11, 21],
73
+ floor_index: 0,
74
+ index: 3,
75
+ offset_point_count: 0,
76
+ position: [0.298587, 1.2, -2.606489],
77
+ quaternion: {
78
+ w: 0.7071067811865475,
79
+ x: 0,
80
+ y: 0.7071067811865475,
81
+ z: 0
82
+ },
83
+ standing_position: [0.298587, 0, -2.606489],
84
+ visible_nodes: [11, 21]
85
+ }, {
86
+ accessible_nodes: [2, 9, 11, 15, 16, 17, 18],
87
+ floor_index: 0,
88
+ index: 4,
89
+ offset_point_count: 0,
90
+ position: [-3.950001, 1.2, -6.150001],
91
+ quaternion: {
92
+ w: 0.7071067811865475,
93
+ x: 0,
94
+ y: 0.7071067811865475,
95
+ z: 0
96
+ },
97
+ standing_position: [-3.950001, 0, -6.150001],
98
+ visible_nodes: [2, 9, 11, 15, 16, 17, 18]
99
+ }, {
100
+ accessible_nodes: [1, 2, 7, 8, 9, 11, 15, 16, 17, 18, 22, 24],
101
+ floor_index: 0,
102
+ index: 5,
103
+ offset_point_count: 0,
104
+ position: [-0.913477, 1.2, -7.694327],
105
+ quaternion: {
106
+ w: 0.7071067811865475,
107
+ x: 0,
108
+ y: 0.7071067811865475,
109
+ z: 0
110
+ },
111
+ standing_position: [-0.913477, 0, -7.694327],
112
+ visible_nodes: [1, 2, 7, 8, 9, 11, 15, 16, 17, 18, 22, 24]
113
+ }, {
114
+ accessible_nodes: [0, 1, 5, 11, 15, 16, 19, 22],
115
+ floor_index: 0,
116
+ index: 6,
117
+ offset_point_count: 0,
118
+ position: [-2.308512, 1.2, 0.638652],
119
+ quaternion: {
120
+ w: 0.7071067811865475,
121
+ x: 0,
122
+ y: 0.7071067811865475,
123
+ z: 0
124
+ },
125
+ standing_position: [-2.308512, 0, 0.638652],
126
+ visible_nodes: [0, 1, 5, 11, 15, 16, 19, 22]
127
+ }, {
128
+ accessible_nodes: [5, 8, 24],
129
+ floor_index: 0,
130
+ index: 7,
131
+ offset_point_count: 0,
132
+ position: [-2.940375, 1.2, -7.585725],
133
+ quaternion: {
134
+ w: 0.7071067811865475,
135
+ x: 0,
136
+ y: 0.7071067811865475,
137
+ z: 0
138
+ },
139
+ standing_position: [-2.940375, 0, -7.585725],
140
+ visible_nodes: [5, 8, 24]
141
+ }, {
142
+ accessible_nodes: [5, 7, 24],
143
+ floor_index: 0,
144
+ index: 8,
145
+ offset_point_count: 0,
146
+ position: [-4.270881, 1.2, -7.561524],
147
+ quaternion: {
148
+ w: 0.7071067811865475,
149
+ x: 0,
150
+ y: 0.7071067811865475,
151
+ z: 0
152
+ },
153
+ standing_position: [-4.270881, 0, -7.561524],
154
+ visible_nodes: [5, 7, 24]
155
+ }, {
156
+ accessible_nodes: [2, 4, 5, 11, 15, 16, 17, 18, 24],
157
+ floor_index: 0,
158
+ index: 9,
159
+ offset_point_count: 0,
160
+ position: [-1.003104, 1.2, -6.182765],
161
+ quaternion: {
162
+ w: 0.7071067811865475,
163
+ x: 0,
164
+ y: 0.7071067811865475,
165
+ z: 0
166
+ },
167
+ standing_position: [-1.003104, 0, -6.182765],
168
+ visible_nodes: [2, 4, 5, 11, 15, 16, 17, 18, 24]
169
+ }, {
170
+ accessible_nodes: [0, 4, 14, 20, 23],
171
+ floor_index: 0,
172
+ index: 10,
173
+ offset_point_count: 0,
174
+ position: [0.734041, 1.2, 3.298226],
175
+ quaternion: {
176
+ w: 0.7071067811865475,
177
+ x: 0,
178
+ y: 0.7071067811865475,
179
+ z: 0
180
+ },
181
+ standing_position: [0.734041, 0, 3.298226],
182
+ visible_nodes: [0, 4, 14, 20, 23]
183
+ }, {
184
+ accessible_nodes: [1, 2, 3, 4, 5, 6, 9, 15, 16, 19, 21, 22],
185
+ floor_index: 0,
186
+ index: 11,
187
+ offset_point_count: 0,
188
+ position: [-2.056818, 1.2, -2.788902],
189
+ quaternion: {
190
+ w: 0.7071067811865475,
191
+ x: 0,
192
+ y: 0.7071067811865475,
193
+ z: 0
194
+ },
195
+ standing_position: [-2.056818, 0, -2.788902],
196
+ visible_nodes: [1, 2, 3, 4, 5, 6, 9, 15, 16, 19, 21, 22]
197
+ }, {
198
+ accessible_nodes: [1, 13, 20],
199
+ floor_index: 0,
200
+ index: 12,
201
+ offset_point_count: 0,
202
+ position: [-4.693264, 1.2, -1.01454],
203
+ quaternion: {
204
+ w: 0.7071067811865475,
205
+ x: 0,
206
+ y: 0.7071067811865475,
207
+ z: 0
208
+ },
209
+ standing_position: [-4.693264, 0, -1.01454],
210
+ visible_nodes: [1, 13, 20]
211
+ }, {
212
+ accessible_nodes: [1, 12, 19, 20, 21],
213
+ floor_index: 0,
214
+ index: 13,
215
+ offset_point_count: 0,
216
+ position: [-3.316796, 1.2, -1.028055],
217
+ quaternion: {
218
+ w: 0.7071067811865475,
219
+ x: 0,
220
+ y: 0.7071067811865475,
221
+ z: 0
222
+ },
223
+ standing_position: [-3.316796, 0, -1.028055],
224
+ visible_nodes: [1, 12, 19, 20, 21]
225
+ }, {
226
+ accessible_nodes: [0, 10, 20, 23],
227
+ floor_index: 0,
228
+ index: 14,
229
+ offset_point_count: 0,
230
+ position: [-0.473445, 1.2, 1.394685],
231
+ quaternion: {
232
+ w: 0.7071067811865475,
233
+ x: 0,
234
+ y: 0.7071067811865475,
235
+ z: 0
236
+ },
237
+ standing_position: [-0.473445, 0, 1.394685],
238
+ visible_nodes: [0, 10, 20, 23]
239
+ }, {
240
+ accessible_nodes: [1, 2, 4, 5, 6, 9, 11, 16, 17, 18, 19, 22],
241
+ floor_index: 0,
242
+ index: 15,
243
+ offset_point_count: 0,
244
+ position: [-2.04216, 1.2, -5.190287],
245
+ quaternion: {
246
+ w: 0.7071067811865475,
247
+ x: 0,
248
+ y: 0.7071067811865475,
249
+ z: 0
250
+ },
251
+ standing_position: [-2.04216, 0, -5.190287],
252
+ visible_nodes: [1, 2, 4, 5, 6, 9, 11, 16, 17, 18, 19, 22]
253
+ }, {
254
+ accessible_nodes: [1, 2, 4, 5, 6, 9, 11, 15, 17, 18, 19, 22],
255
+ floor_index: 0,
256
+ index: 16,
257
+ offset_point_count: 0,
258
+ position: [-2.04216, 1.2, -4.140287],
259
+ quaternion: {
260
+ w: 0.7071067811865475,
261
+ x: 0,
262
+ y: 0.7071067811865475,
263
+ z: 0
264
+ },
265
+ standing_position: [-2.04216, 0, -4.140287],
266
+ visible_nodes: [1, 2, 4, 5, 6, 9, 11, 15, 17, 18, 19, 22]
267
+ }, {
268
+ accessible_nodes: [2, 4, 7, 9, 15, 16, 18, 24],
269
+ floor_index: 0,
270
+ index: 17,
271
+ offset_point_count: 0,
272
+ position: [1.374507, 1.2, -6.42362],
273
+ quaternion: {
274
+ w: 0.7071067811865475,
275
+ x: 0,
276
+ y: 0.7071067811865475,
277
+ z: 0
278
+ },
279
+ standing_position: [1.374507, 0, -6.42362],
280
+ visible_nodes: [2, 4, 7, 9, 15, 16, 18, 24]
281
+ }, {
282
+ accessible_nodes: [2, 4, 5, 9, 15, 16, 17, 24],
283
+ floor_index: 0,
284
+ index: 18,
285
+ offset_point_count: 0,
286
+ position: [1.374507, 1.2, -5.37362],
287
+ quaternion: {
288
+ w: 0.7071067811865475,
289
+ x: 0,
290
+ y: 0.7071067811865475,
291
+ z: 0
292
+ },
293
+ standing_position: [1.374507, 0, -5.37362],
294
+ visible_nodes: [2, 4, 5, 9, 15, 16, 17, 24]
295
+ }, {
296
+ accessible_nodes: [0, 1, 6, 11, 13, 15, 16, 20, 22],
297
+ floor_index: 0,
298
+ index: 19,
299
+ offset_point_count: 0,
300
+ position: [-2.102217, 1.2, -0.49989],
301
+ quaternion: {
302
+ w: 0.7071067811865475,
303
+ x: 0,
304
+ y: 0.7071067811865475,
305
+ z: 0
306
+ },
307
+ standing_position: [-2.102217, 0, -0.49989],
308
+ visible_nodes: [0, 1, 6, 11, 13, 15, 16, 20, 22]
309
+ }, {
310
+ accessible_nodes: [0, 1, 10, 13, 14, 19, 23],
311
+ floor_index: 0,
312
+ index: 20,
313
+ offset_point_count: 0,
314
+ position: [-0.532618, 1.2, -0.235537],
315
+ quaternion: {
316
+ w: 0.7071067811865475,
317
+ x: 0,
318
+ y: 0.7071067811865475,
319
+ z: 0
320
+ },
321
+ standing_position: [-0.532618, 0, -0.235537],
322
+ visible_nodes: [0, 1, 10, 13, 14, 19, 23]
323
+ }, {
324
+ accessible_nodes: [1, 3, 11, 13],
325
+ floor_index: 0,
326
+ index: 21,
327
+ offset_point_count: 0,
328
+ position: [-0.915097, 1.2, -2.567557],
329
+ quaternion: {
330
+ w: 0.7071067811865475,
331
+ x: 0,
332
+ y: 0.7071067811865475,
333
+ z: 0
334
+ },
335
+ standing_position: [-0.915097, 0, -2.567557],
336
+ visible_nodes: [1, 3, 11, 13]
337
+ }, {
338
+ accessible_nodes: [1, 5, 6, 11, 15, 16, 19],
339
+ floor_index: 0,
340
+ index: 22,
341
+ offset_point_count: 0,
342
+ position: [-2.600988, 1.2, 1.673792],
343
+ quaternion: {
344
+ w: 0.7071067811865475,
345
+ x: 0,
346
+ y: 0.7071067811865475,
347
+ z: 0
348
+ },
349
+ standing_position: [-2.600988, 0, 1.673792],
350
+ visible_nodes: [1, 5, 6, 11, 15, 16, 19]
351
+ }, {
352
+ accessible_nodes: [0, 1, 10, 14, 20],
353
+ floor_index: 0,
354
+ index: 23,
355
+ offset_point_count: 0,
356
+ position: [0.451363, 1.2, 2.277164],
357
+ quaternion: {
358
+ w: 0.7071067811865475,
359
+ x: 0,
360
+ y: 0.7071067811865475,
361
+ z: 0
362
+ },
363
+ standing_position: [0.451363, 0, 2.277164],
364
+ visible_nodes: [0, 1, 10, 14, 20]
365
+ }, {
366
+ accessible_nodes: [2, 5, 7, 8, 9, 17, 18],
367
+ floor_index: 0,
368
+ index: 24,
369
+ offset_point_count: 0,
370
+ position: [-2.119771, 1.2, -8.1661],
371
+ quaternion: {
372
+ w: 0.7071067811865475,
373
+ x: 0,
374
+ y: 0.7071067811865475,
375
+ z: 0
376
+ },
377
+ standing_position: [-2.119771, 0, -8.1661],
378
+ visible_nodes: [2, 5, 7, 8, 9, 17, 18]
379
+ }],
380
+ panorama: {
381
+ count: 25,
382
+ list: [{
383
+ back: '0/0_b.jpg',
384
+ down: '0/0_d.jpg',
385
+ front: '0/0_f.jpg',
386
+ index: 0,
387
+ left: '0/0_l.jpg',
388
+ right: '0/0_r.jpg',
389
+ up: '0/0_u.jpg'
390
+ }, {
391
+ back: '1/1_b.jpg',
392
+ down: '1/1_d.jpg',
393
+ front: '1/1_f.jpg',
394
+ index: 1,
395
+ left: '1/1_l.jpg',
396
+ right: '1/1_r.jpg',
397
+ up: '1/1_u.jpg'
398
+ }, {
399
+ back: '2/2_b.jpg',
400
+ down: '2/2_d.jpg',
401
+ front: '2/2_f.jpg',
402
+ index: 2,
403
+ left: '2/2_l.jpg',
404
+ right: '2/2_r.jpg',
405
+ up: '2/2_u.jpg'
406
+ }, {
407
+ back: '3/3_b.jpg',
408
+ down: '3/3_d.jpg',
409
+ front: '3/3_f.jpg',
410
+ index: 3,
411
+ left: '3/3_l.jpg',
412
+ right: '3/3_r.jpg',
413
+ up: '3/3_u.jpg'
414
+ }, {
415
+ back: '4/4_b.jpg',
416
+ down: '4/4_d.jpg',
417
+ front: '4/4_f.jpg',
418
+ index: 4,
419
+ left: '4/4_l.jpg',
420
+ right: '4/4_r.jpg',
421
+ up: '4/4_u.jpg'
422
+ }, {
423
+ back: '5/5_b.jpg',
424
+ down: '5/5_d.jpg',
425
+ front: '5/5_f.jpg',
426
+ index: 5,
427
+ left: '5/5_l.jpg',
428
+ right: '5/5_r.jpg',
429
+ up: '5/5_u.jpg'
430
+ }, {
431
+ back: '6/6_b.jpg',
432
+ down: '6/6_d.jpg',
433
+ front: '6/6_f.jpg',
434
+ index: 6,
435
+ left: '6/6_l.jpg',
436
+ right: '6/6_r.jpg',
437
+ up: '6/6_u.jpg'
438
+ }, {
439
+ back: '7/7_b.jpg',
440
+ down: '7/7_d.jpg',
441
+ front: '7/7_f.jpg',
442
+ index: 7,
443
+ left: '7/7_l.jpg',
444
+ right: '7/7_r.jpg',
445
+ up: '7/7_u.jpg'
446
+ }, {
447
+ back: '8/8_b.jpg',
448
+ down: '8/8_d.jpg',
449
+ front: '8/8_f.jpg',
450
+ index: 8,
451
+ left: '8/8_l.jpg',
452
+ right: '8/8_r.jpg',
453
+ up: '8/8_u.jpg'
454
+ }, {
455
+ back: '9/9_b.jpg',
456
+ down: '9/9_d.jpg',
457
+ front: '9/9_f.jpg',
458
+ index: 9,
459
+ left: '9/9_l.jpg',
460
+ right: '9/9_r.jpg',
461
+ up: '9/9_u.jpg'
462
+ }, {
463
+ back: '10/10_b.jpg',
464
+ down: '10/10_d.jpg',
465
+ front: '10/10_f.jpg',
466
+ index: 10,
467
+ left: '10/10_l.jpg',
468
+ right: '10/10_r.jpg',
469
+ up: '10/10_u.jpg'
470
+ }, {
471
+ back: '11/11_b.jpg',
472
+ down: '11/11_d.jpg',
473
+ front: '11/11_f.jpg',
474
+ index: 11,
475
+ left: '11/11_l.jpg',
476
+ right: '11/11_r.jpg',
477
+ up: '11/11_u.jpg'
478
+ }, {
479
+ back: '12/12_b.jpg',
480
+ down: '12/12_d.jpg',
481
+ front: '12/12_f.jpg',
482
+ index: 12,
483
+ left: '12/12_l.jpg',
484
+ right: '12/12_r.jpg',
485
+ up: '12/12_u.jpg'
486
+ }, {
487
+ back: '13/13_b.jpg',
488
+ down: '13/13_d.jpg',
489
+ front: '13/13_f.jpg',
490
+ index: 13,
491
+ left: '13/13_l.jpg',
492
+ right: '13/13_r.jpg',
493
+ up: '13/13_u.jpg'
494
+ }, {
495
+ back: '14/14_b.jpg',
496
+ down: '14/14_d.jpg',
497
+ front: '14/14_f.jpg',
498
+ index: 14,
499
+ left: '14/14_l.jpg',
500
+ right: '14/14_r.jpg',
501
+ up: '14/14_u.jpg'
502
+ }, {
503
+ back: '15/15_b.jpg',
504
+ down: '15/15_d.jpg',
505
+ front: '15/15_f.jpg',
506
+ index: 15,
507
+ left: '15/15_l.jpg',
508
+ right: '15/15_r.jpg',
509
+ up: '15/15_u.jpg'
510
+ }, {
511
+ back: '16/16_b.jpg',
512
+ down: '16/16_d.jpg',
513
+ front: '16/16_f.jpg',
514
+ index: 16,
515
+ left: '16/16_l.jpg',
516
+ right: '16/16_r.jpg',
517
+ up: '16/16_u.jpg'
518
+ }, {
519
+ back: '17/17_b.jpg',
520
+ down: '17/17_d.jpg',
521
+ front: '17/17_f.jpg',
522
+ index: 17,
523
+ left: '17/17_l.jpg',
524
+ right: '17/17_r.jpg',
525
+ up: '17/17_u.jpg'
526
+ }, {
527
+ back: '18/18_b.jpg',
528
+ down: '18/18_d.jpg',
529
+ front: '18/18_f.jpg',
530
+ index: 18,
531
+ left: '18/18_l.jpg',
532
+ right: '18/18_r.jpg',
533
+ up: '18/18_u.jpg'
534
+ }, {
535
+ back: '19/19_b.jpg',
536
+ down: '19/19_d.jpg',
537
+ front: '19/19_f.jpg',
538
+ index: 19,
539
+ left: '19/19_l.jpg',
540
+ right: '19/19_r.jpg',
541
+ up: '19/19_u.jpg'
542
+ }, {
543
+ back: '20/20_b.jpg',
544
+ down: '20/20_d.jpg',
545
+ front: '20/20_f.jpg',
546
+ index: 20,
547
+ left: '20/20_l.jpg',
548
+ right: '20/20_r.jpg',
549
+ up: '20/20_u.jpg'
550
+ }, {
551
+ back: '21/21_b.jpg',
552
+ down: '21/21_d.jpg',
553
+ front: '21/21_f.jpg',
554
+ index: 21,
555
+ left: '21/21_l.jpg',
556
+ right: '21/21_r.jpg',
557
+ up: '21/21_u.jpg'
558
+ }, {
559
+ back: '22/22_b.jpg',
560
+ down: '22/22_d.jpg',
561
+ front: '22/22_f.jpg',
562
+ index: 22,
563
+ left: '22/22_l.jpg',
564
+ right: '22/22_r.jpg',
565
+ up: '22/22_u.jpg'
566
+ }, {
567
+ back: '23/23_b.jpg',
568
+ down: '23/23_d.jpg',
569
+ front: '23/23_f.jpg',
570
+ index: 23,
571
+ left: '23/23_l.jpg',
572
+ right: '23/23_r.jpg',
573
+ up: '23/23_u.jpg'
574
+ }, {
575
+ back: '24/24_b.jpg',
576
+ down: '24/24_d.jpg',
577
+ front: '24/24_f.jpg',
578
+ index: 24,
579
+ left: '24/24_l.jpg',
580
+ right: '24/24_r.jpg',
581
+ up: '24/24_u.jpg'
582
+ }]
583
+ },
584
+ picture_url: 'https://vrlab-public.ljcdn.com/vrframework/release/ue4_decoration_plan/zxMawr9raSg8LYjG/vrproc-ue4/render/picture.jpg',
585
+ title_picture_url: '',
586
+ vr_type: 'virtual'
587
+ };
588
+ exports.work = work;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Realsee Components(React) & Plugins(Five).",
5
5
  "author": "BEIKE REALSEE TECHNOLOGY (HK) LIMITED",
6
6
  "peerDependencies": {
7
- "@realsee/five": "^5.0.0-alpha.47",
7
+ "@realsee/five": "^5.0.0-alpha.52",
8
8
  "@tweenjs/tween.js": "^18.6.4",
9
9
  "@types/styled-jsx": "^2.2.9",
10
10
  "react": "^16.14.0",
@@ -0,0 +1,23 @@
1
+ import { FivePlugin } from '@realsee/five';
2
+ export declare type AutoPreloadPluginParameterType = {
3
+ /** 预加载使用的图片质量 */
4
+ preloadImageSize?: number;
5
+ /** 走点时,预加载的点位个数 */
6
+ preloadPanoIndexNumber?: number;
7
+ /** 走点时,是否使用预加载功能 */
8
+ shouldPreloadAroundPanoImage?: (panoIndex: number) => boolean | void;
9
+ };
10
+ export interface AutoPreloadPluginReturnType {
11
+ dispose: () => void;
12
+ }
13
+ /** 优化首点位加载的逻辑
14
+ *
15
+ * 1.进入 VR 时,如果 Five 默认的配置图片像素超过了 1024,先用 1024 加载
16
+ * 第一个点位加载完成之后,再使用业务上配置的图片像素重复加载一遍当前点位
17
+ *
18
+ * 2.在走点时,会预载距离当前点位最近的 preloadPanoIndexNumber 个数的点
19
+ * @description
20
+ * 预载周围的点时,不会一次性全部预载。而是每隔1s,预载其中的一个点
21
+ */
22
+ declare const AutoPreloadPlugin: FivePlugin<AutoPreloadPluginParameterType, AutoPreloadPluginReturnType>;
23
+ export default AutoPreloadPlugin;
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _nextFrame = require("../../shared-utils/nextFrame");
9
+
10
+ /** 优化首点位加载的逻辑
11
+ *
12
+ * 1.进入 VR 时,如果 Five 默认的配置图片像素超过了 1024,先用 1024 加载
13
+ * 第一个点位加载完成之后,再使用业务上配置的图片像素重复加载一遍当前点位
14
+ *
15
+ * 2.在走点时,会预载距离当前点位最近的 preloadPanoIndexNumber 个数的点
16
+ * @description
17
+ * 预载周围的点时,不会一次性全部预载。而是每隔1s,预载其中的一个点
18
+ */
19
+ var AutoPreloadPlugin = function AutoPreloadPlugin(five, parameters) {
20
+ var _parameters$preloadIm, _parameters$preloadPa;
21
+
22
+ var preloadImageSize = (_parameters$preloadIm = parameters === null || parameters === void 0 ? void 0 : parameters.preloadImageSize) !== null && _parameters$preloadIm !== void 0 ? _parameters$preloadIm : 1024;
23
+ var preloadPanoIndexNumber = (_parameters$preloadPa = parameters === null || parameters === void 0 ? void 0 : parameters.preloadPanoIndexNumber) !== null && _parameters$preloadPa !== void 0 ? _parameters$preloadPa : 4;
24
+ var lastSize = five.imageOptions.size;
25
+ var timer = void 0;
26
+
27
+ var doPreload = function doPreload(quene) {
28
+ if (quene.length === 0) return;
29
+ five.preloadPano(quene[0]);
30
+ if (quene.length === 1) return;
31
+ timer = setTimeout(function () {
32
+ return doPreload(quene.splice(1));
33
+ }, 1000);
34
+ };
35
+
36
+ var onPanoArrived = function onPanoArrived(panoIndex) {
37
+ if (parameters !== null && parameters !== void 0 && parameters.shouldPreloadAroundPanoImage) {
38
+ var shouldPreload = parameters.shouldPreloadAroundPanoImage(panoIndex);
39
+ if (!shouldPreload) return;
40
+ }
41
+
42
+ if (timer) clearTimeout(timer);
43
+ var currentIndex = panoIndex;
44
+ var currentObserver = five.work.observers[currentIndex];
45
+ var preloadIndexArray = Array.from(new Set(five.work.observers.filter(function (observer) {
46
+ return observer.floorIndex === currentObserver.floorIndex;
47
+ }).map(function (observer) {
48
+ var distance = observer.standingPosition.clone().distanceTo(currentObserver.standingPosition);
49
+ return {
50
+ observer: observer,
51
+ distance: distance
52
+ };
53
+ }).sort(function (a, b) {
54
+ return a.distance - b.distance;
55
+ }).slice(0, preloadPanoIndexNumber).map(function (_ref) {
56
+ var observer = _ref.observer;
57
+ return observer.panoIndex;
58
+ })));
59
+ doPreload(preloadIndexArray);
60
+ };
61
+
62
+ var onFirstPanoArrived = function onFirstPanoArrived(panoIndex) {
63
+ // 在第一次点位加载之后再做周围点位的预载,防止第一个点位周围的点预载两次
64
+ // 同时也防止阻塞第一个点的低分辨率图快速加载
65
+ five.on('panoArrived', onPanoArrived);
66
+ var shouldPreloadFirstPanoImage = five.imageOptions.size !== lastSize;
67
+ if (!shouldPreloadFirstPanoImage) return;
68
+ (0, _nextFrame.nextFrame)(function () {
69
+ five.imageOptions.size = lastSize;
70
+ five.moveToPano(panoIndex);
71
+ }, 5);
72
+ };
73
+
74
+ five.imageOptions.size = lastSize && lastSize > preloadImageSize ? preloadImageSize : lastSize;
75
+ if (five.imageOptions.size !== lastSize) five.once('panoArrived', onFirstPanoArrived);
76
+ return {
77
+ dispose: function dispose() {
78
+ five.off('panoArrived', onFirstPanoArrived);
79
+ five.off('panoArrived', onPanoArrived);
80
+ }
81
+ };
82
+ };
83
+
84
+ var _default = AutoPreloadPlugin;
85
+ exports["default"] = _default;