@inweb/viewer-core 25.3.23 → 25.3.25
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.
|
@@ -181,7 +181,7 @@ export interface GeometryErrorEvent {
|
|
|
181
181
|
buffer?: Uint8Array | ArrayBuffer;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
|
-
* Event
|
|
184
|
+
* Event that measures the progress of the model loading.
|
|
185
185
|
*
|
|
186
186
|
* @event
|
|
187
187
|
*/
|
|
@@ -222,6 +222,43 @@ export interface GeometryStartEvent {
|
|
|
222
222
|
*/
|
|
223
223
|
buffer?: Uint8Array | ArrayBuffer;
|
|
224
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Event that fires after the viewer initialized.
|
|
227
|
+
*
|
|
228
|
+
* @event
|
|
229
|
+
*/
|
|
230
|
+
export interface InitializeEvent {
|
|
231
|
+
/**
|
|
232
|
+
* Event type.
|
|
233
|
+
*/
|
|
234
|
+
type: "initialize";
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Event that measures the progress of the viewer's initialization.
|
|
238
|
+
*
|
|
239
|
+
* @event
|
|
240
|
+
*/
|
|
241
|
+
export interface InitializeProgressEvent {
|
|
242
|
+
/**
|
|
243
|
+
* Event type.
|
|
244
|
+
*/
|
|
245
|
+
type: "initializeprogress";
|
|
246
|
+
/**
|
|
247
|
+
* The non-rounded progress value from 0 to 1. To get a percentage (%), multiply the `data` by 100.
|
|
248
|
+
*/
|
|
249
|
+
data: number;
|
|
250
|
+
/**
|
|
251
|
+
* A 64-bit unsigned integer value indicating the amount of work already performed by the
|
|
252
|
+
* underlying process. The ratio of work done can be calculated by dividing total by the
|
|
253
|
+
* value of this property.
|
|
254
|
+
*/
|
|
255
|
+
loaded: number;
|
|
256
|
+
/**
|
|
257
|
+
* A 64-bit unsigned integer representing the total amount of work that the underlying
|
|
258
|
+
* process is in the progress of performing.
|
|
259
|
+
*/
|
|
260
|
+
total: number;
|
|
261
|
+
}
|
|
225
262
|
/**
|
|
226
263
|
* Event that fires before model opens.
|
|
227
264
|
*
|
|
@@ -318,7 +355,7 @@ export interface UpdateEvent {
|
|
|
318
355
|
data: boolean;
|
|
319
356
|
}
|
|
320
357
|
/**
|
|
321
|
-
*
|
|
358
|
+
* Deprecated since `25.4`. Use `initializeprogress` instead.
|
|
322
359
|
*
|
|
323
360
|
* @event
|
|
324
361
|
*/
|
|
@@ -482,17 +519,29 @@ export interface ViewerEventMap extends CanvasEventMap {
|
|
|
482
519
|
*/
|
|
483
520
|
geometryerror: GeometryErrorEvent;
|
|
484
521
|
/**
|
|
485
|
-
* Event
|
|
522
|
+
* Event that measures the progress of the model loading.
|
|
486
523
|
*/
|
|
487
524
|
geometryprogress: GeometryProgressEvent;
|
|
488
525
|
/**
|
|
489
526
|
* Event that fires before the model opens.
|
|
490
527
|
*/
|
|
491
528
|
geometrystart: GeometryStartEvent;
|
|
529
|
+
/**
|
|
530
|
+
* Event that fires after the viewer initialized.
|
|
531
|
+
*/
|
|
532
|
+
initialize: InitializeEvent;
|
|
533
|
+
/**
|
|
534
|
+
* Event that measures the progress of the viewer's initialization.
|
|
535
|
+
*/
|
|
536
|
+
initializeprogress: InitializeProgressEvent;
|
|
492
537
|
/**
|
|
493
538
|
* Event that fires before model opens.
|
|
494
539
|
*/
|
|
495
540
|
open: OpenEvent;
|
|
541
|
+
/**
|
|
542
|
+
* Event that fires when camera panning.
|
|
543
|
+
*/
|
|
544
|
+
pan: PanEvent;
|
|
496
545
|
/**
|
|
497
546
|
* Event that fires when an rendering occurs.
|
|
498
547
|
*/
|
|
@@ -510,7 +559,7 @@ export interface ViewerEventMap extends CanvasEventMap {
|
|
|
510
559
|
*/
|
|
511
560
|
update: UpdateEvent;
|
|
512
561
|
/**
|
|
513
|
-
*
|
|
562
|
+
* Deprecated since `25.4`. Use `initializeprogress` instead.
|
|
514
563
|
*/
|
|
515
564
|
visualizeprogress: VisualizeProgressEvent;
|
|
516
565
|
/**
|
|
@@ -521,10 +570,6 @@ export interface ViewerEventMap extends CanvasEventMap {
|
|
|
521
570
|
* Event that fires when walk started.
|
|
522
571
|
*/
|
|
523
572
|
walkstart: WalkStartEvent;
|
|
524
|
-
/**
|
|
525
|
-
* Event that fires when camera panning.
|
|
526
|
-
*/
|
|
527
|
-
pan: PanEvent;
|
|
528
573
|
/**
|
|
529
574
|
* Event that fires when zooming of the camera.
|
|
530
575
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/viewer-core",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.25",
|
|
4
4
|
"description": "3D CAD and BIM data Viewer core",
|
|
5
5
|
"homepage": "https://cloud.opendesign.com/docs/index.html",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"test": "karma start karma.conf.js"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@inweb/eventemitter2": "^25.3.
|
|
29
|
+
"@inweb/eventemitter2": "^25.3.25"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@inweb/eventemitter2": "^25.3.
|
|
32
|
+
"@inweb/eventemitter2": "^25.3.25"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -204,7 +204,7 @@ export interface GeometryErrorEvent {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
* Event
|
|
207
|
+
* Event that measures the progress of the model loading.
|
|
208
208
|
*
|
|
209
209
|
* @event
|
|
210
210
|
*/
|
|
@@ -252,6 +252,48 @@ export interface GeometryStartEvent {
|
|
|
252
252
|
buffer?: Uint8Array | ArrayBuffer;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Event that fires after the viewer initialized.
|
|
257
|
+
*
|
|
258
|
+
* @event
|
|
259
|
+
*/
|
|
260
|
+
export interface InitializeEvent {
|
|
261
|
+
/**
|
|
262
|
+
* Event type.
|
|
263
|
+
*/
|
|
264
|
+
type: "initialize";
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Event that measures the progress of the viewer's initialization.
|
|
269
|
+
*
|
|
270
|
+
* @event
|
|
271
|
+
*/
|
|
272
|
+
export interface InitializeProgressEvent {
|
|
273
|
+
/**
|
|
274
|
+
* Event type.
|
|
275
|
+
*/
|
|
276
|
+
type: "initializeprogress";
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* The non-rounded progress value from 0 to 1. To get a percentage (%), multiply the `data` by 100.
|
|
280
|
+
*/
|
|
281
|
+
data: number;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* A 64-bit unsigned integer value indicating the amount of work already performed by the
|
|
285
|
+
* underlying process. The ratio of work done can be calculated by dividing total by the
|
|
286
|
+
* value of this property.
|
|
287
|
+
*/
|
|
288
|
+
loaded: number;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* A 64-bit unsigned integer representing the total amount of work that the underlying
|
|
292
|
+
* process is in the progress of performing.
|
|
293
|
+
*/
|
|
294
|
+
total: number;
|
|
295
|
+
}
|
|
296
|
+
|
|
255
297
|
/**
|
|
256
298
|
* Event that fires before model opens.
|
|
257
299
|
*
|
|
@@ -363,7 +405,7 @@ export interface UpdateEvent {
|
|
|
363
405
|
}
|
|
364
406
|
|
|
365
407
|
/**
|
|
366
|
-
*
|
|
408
|
+
* Deprecated since `25.4`. Use `initializeprogress` instead.
|
|
367
409
|
*
|
|
368
410
|
* @event
|
|
369
411
|
*/
|
|
@@ -551,7 +593,7 @@ export interface ViewerEventMap extends CanvasEventMap {
|
|
|
551
593
|
geometryerror: GeometryErrorEvent;
|
|
552
594
|
|
|
553
595
|
/**
|
|
554
|
-
* Event
|
|
596
|
+
* Event that measures the progress of the model loading.
|
|
555
597
|
*/
|
|
556
598
|
geometryprogress: GeometryProgressEvent;
|
|
557
599
|
|
|
@@ -560,11 +602,26 @@ export interface ViewerEventMap extends CanvasEventMap {
|
|
|
560
602
|
*/
|
|
561
603
|
geometrystart: GeometryStartEvent;
|
|
562
604
|
|
|
605
|
+
/**
|
|
606
|
+
* Event that fires after the viewer initialized.
|
|
607
|
+
*/
|
|
608
|
+
initialize: InitializeEvent;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Event that measures the progress of the viewer's initialization.
|
|
612
|
+
*/
|
|
613
|
+
initializeprogress: InitializeProgressEvent;
|
|
614
|
+
|
|
563
615
|
/**
|
|
564
616
|
* Event that fires before model opens.
|
|
565
617
|
*/
|
|
566
618
|
open: OpenEvent;
|
|
567
619
|
|
|
620
|
+
/**
|
|
621
|
+
* Event that fires when camera panning.
|
|
622
|
+
*/
|
|
623
|
+
pan: PanEvent;
|
|
624
|
+
|
|
568
625
|
/**
|
|
569
626
|
* Event that fires when an rendering occurs.
|
|
570
627
|
*/
|
|
@@ -586,7 +643,7 @@ export interface ViewerEventMap extends CanvasEventMap {
|
|
|
586
643
|
update: UpdateEvent;
|
|
587
644
|
|
|
588
645
|
/**
|
|
589
|
-
*
|
|
646
|
+
* Deprecated since `25.4`. Use `initializeprogress` instead.
|
|
590
647
|
*/
|
|
591
648
|
visualizeprogress: VisualizeProgressEvent;
|
|
592
649
|
|
|
@@ -600,11 +657,6 @@ export interface ViewerEventMap extends CanvasEventMap {
|
|
|
600
657
|
*/
|
|
601
658
|
walkstart: WalkStartEvent;
|
|
602
659
|
|
|
603
|
-
/**
|
|
604
|
-
* Event that fires when camera panning.
|
|
605
|
-
*/
|
|
606
|
-
pan: PanEvent;
|
|
607
|
-
|
|
608
660
|
/**
|
|
609
661
|
* Event that fires when zooming of the camera.
|
|
610
662
|
*/
|