@inweb/viewer-visualize 26.11.0 → 26.12.0
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/dist/viewer-visualize.js +47 -0
- package/dist/viewer-visualize.js.map +1 -1
- package/dist/viewer-visualize.min.js +1 -1
- package/dist/viewer-visualize.module.js +2 -1
- package/dist/viewer-visualize.module.js.map +1 -1
- package/lib/Viewer/Viewer.d.ts +2 -1
- package/package.json +5 -5
- package/src/Viewer/Viewer.ts +4 -0
package/dist/viewer-visualize.js
CHANGED
|
@@ -536,6 +536,51 @@
|
|
|
536
536
|
"wheel",
|
|
537
537
|
];
|
|
538
538
|
const CANVAS_EVENTS = CanvasEvents;
|
|
539
|
+
class Info {
|
|
540
|
+
constructor() {
|
|
541
|
+
this.performance = {
|
|
542
|
+
fps: 0,
|
|
543
|
+
frameTime: 0,
|
|
544
|
+
timeToFirstRender: 0,
|
|
545
|
+
loadTime: 0,
|
|
546
|
+
};
|
|
547
|
+
this.render = {
|
|
548
|
+
viewport: { width: 0, height: 0 },
|
|
549
|
+
antialiasing: "",
|
|
550
|
+
drawCalls: 0,
|
|
551
|
+
triangles: 0,
|
|
552
|
+
points: 0,
|
|
553
|
+
lines: 0,
|
|
554
|
+
};
|
|
555
|
+
this.scene = {
|
|
556
|
+
objects: 0,
|
|
557
|
+
triangles: 0,
|
|
558
|
+
points: 0,
|
|
559
|
+
lines: 0,
|
|
560
|
+
edges: 0,
|
|
561
|
+
};
|
|
562
|
+
this.optimizedScene = {
|
|
563
|
+
objects: 0,
|
|
564
|
+
triangles: 0,
|
|
565
|
+
points: 0,
|
|
566
|
+
lines: 0,
|
|
567
|
+
edges: 0,
|
|
568
|
+
};
|
|
569
|
+
this.memory = {
|
|
570
|
+
geometries: 0,
|
|
571
|
+
geometryBytes: 0,
|
|
572
|
+
textures: 0,
|
|
573
|
+
textureBytes: 0,
|
|
574
|
+
materials: 0,
|
|
575
|
+
totalEstimatedGpuBytes: 0,
|
|
576
|
+
usedJSHeapSize: 0,
|
|
577
|
+
};
|
|
578
|
+
this.system = {
|
|
579
|
+
webglRenderer: "",
|
|
580
|
+
webglVendor: "",
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
}
|
|
539
584
|
|
|
540
585
|
class OdaGeAction {
|
|
541
586
|
constructor(module) {
|
|
@@ -17941,6 +17986,7 @@ js: import "konva/skia-backend";
|
|
|
17941
17986
|
this.options = new Options(this);
|
|
17942
17987
|
this.loaders = [];
|
|
17943
17988
|
this.models = [];
|
|
17989
|
+
this.info = new Info();
|
|
17944
17990
|
this.canvasEvents = CANVAS_EVENTS.slice();
|
|
17945
17991
|
this.canvaseventlistener = (event) => this.emit(event);
|
|
17946
17992
|
this._activeDragger = null;
|
|
@@ -18696,6 +18742,7 @@ js: import "konva/skia-backend";
|
|
|
18696
18742
|
exports.Component = Component;
|
|
18697
18743
|
exports.Dragger = Dragger;
|
|
18698
18744
|
exports.FileLoader = FileLoader;
|
|
18745
|
+
exports.Info = Info;
|
|
18699
18746
|
exports.Loader = Loader;
|
|
18700
18747
|
exports.Markup = KonvaMarkup;
|
|
18701
18748
|
exports.OdBaseDragger = OdBaseDragger;
|