@inweb/viewer-visualize 26.11.0 → 26.12.1

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.
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter2 } from "@inweb/eventemitter2";
2
2
  import { Assembly, Client, File, Model } from "@inweb/client";
3
- import { CanvasEventMap, Dragger, FileSource, IComponent, IDragger, ILoader, IOptions, IViewer, IViewpoint, OptionsEventMap, ViewerEventMap } from "@inweb/viewer-core";
3
+ import { CanvasEventMap, Dragger, FileSource, IComponent, IDragger, IInfo, ILoader, IOptions, IViewer, IViewpoint, OptionsEventMap, ViewerEventMap } from "@inweb/viewer-core";
4
4
  import { IMarkup, IWorldTransform } from "@inweb/markup";
5
5
  import { IModelImpl } from "./Models/IModelImpl";
6
6
  import { MarkupType } from "./Markup/MarkupFactory";
@@ -14,6 +14,7 @@ export declare class Viewer extends EventEmitter2<ViewerEventMap & CanvasEventMa
14
14
  canvasEvents: string[];
15
15
  loaders: ILoader[];
16
16
  models: IModelImpl[];
17
+ info: IInfo;
17
18
  private canvaseventlistener;
18
19
  private _visualizeJsUrl;
19
20
  private _visualizeJs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/viewer-visualize",
3
- "version": "26.11.0",
3
+ "version": "26.12.1",
4
4
  "description": "JavaScript library for rendering CAD and BIM files in a browser using VisualizeJS",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -29,10 +29,10 @@
29
29
  "docs": "typedoc"
30
30
  },
31
31
  "dependencies": {
32
- "@inweb/client": "~26.11.0",
33
- "@inweb/eventemitter2": "~26.11.0",
34
- "@inweb/markup": "~26.11.0",
35
- "@inweb/viewer-core": "~26.11.0"
32
+ "@inweb/client": "~26.12.1",
33
+ "@inweb/eventemitter2": "~26.12.1",
34
+ "@inweb/markup": "~26.12.1",
35
+ "@inweb/viewer-core": "~26.12.1"
36
36
  },
37
37
  "visualizeJS": "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/master/Visualize.js"
38
38
  }
@@ -32,7 +32,9 @@ import {
32
32
  IComponent,
33
33
  IDragger,
34
34
  IEntity,
35
+ IInfo,
35
36
  ILoader,
37
+ Info,
36
38
  IOrthogonalCamera,
37
39
  IOptions,
38
40
  IPerspectiveCamera,
@@ -71,6 +73,7 @@ export class Viewer
71
73
  public canvasEvents: string[];
72
74
  public loaders: ILoader[];
73
75
  public models: IModelImpl[];
76
+ public info: IInfo;
74
77
 
75
78
  private canvaseventlistener: (event: Event) => void;
76
79
 
@@ -121,6 +124,7 @@ export class Viewer
121
124
  this.options = new Options(this);
122
125
  this.loaders = [];
123
126
  this.models = [];
127
+ this.info = new Info();
124
128
 
125
129
  this.canvasEvents = CANVAS_EVENTS.slice();
126
130
  this.canvaseventlistener = (event: Event) => this.emit(event);