@xeokit/xeokit-sdk 2.3.0-beta-20 → 2.3.0-beta-21
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/xeokit-sdk.cjs.js
CHANGED
|
@@ -45089,18 +45089,33 @@ const tempVec3c$6 = math.vec3();
|
|
|
45089
45089
|
/**
|
|
45090
45090
|
* {@link Viewer} plugin that saves and loads BCF viewpoints as JSON objects.
|
|
45091
45091
|
*
|
|
45092
|
-
*
|
|
45093
|
-
*
|
|
45092
|
+
* [<img src="http://xeokit.github.io/xeokit-sdk/assets/images/BCFViewpointsPlugin.png">](http://xeokit.github.io/xeokit-sdk/examples/#BCF_SaveViewpoint)
|
|
45093
|
+
*
|
|
45094
|
+
* * [[Example 1: Saving viewer state to a BCF viewpoint](https://xeokit.github.io/xeokit-sdk/examples/#BCF_SaveViewpoint)]
|
|
45095
|
+
* * [[Example 2: Loading viewer state from a BCF viewpoint](https://xeokit.github.io/xeokit-sdk/examples/#BCF_LoadViewpoint)]
|
|
45096
|
+
*
|
|
45097
|
+
* ## Overview
|
|
45098
|
+
*
|
|
45099
|
+
* BCF is an open standard that enables workflow communications between BIM software tools. An XML schema, called
|
|
45100
|
+
* Building Collaboration Format (BCF), encodes messages that inform one BIM tool of issues found by another.
|
|
45101
|
+
*
|
|
45102
|
+
* A BCF viewpoint captures a viewpoint of a model that highlights an issue. The viewpoint can then be loaded by another
|
|
45103
|
+
* viewer to examine the issue.
|
|
45104
|
+
*
|
|
45105
|
+
* Using this plugin, a xeokit {@link Viewer} can exchange BCF-encoded viewpoints with other BIM software,
|
|
45106
|
+
* allowing us to use the Viewer to report and view issues in BIM models.
|
|
45107
|
+
*
|
|
45108
|
+
* This plugin's viewpoints conform to the <a href="https://github.com/buildingSMART/BCF-API">BCF Version 2.1</a> specification.
|
|
45094
45109
|
*
|
|
45095
45110
|
* ## Supported BCF Elements
|
|
45096
45111
|
*
|
|
45097
|
-
*
|
|
45112
|
+
* BCFViewpointsPlugin saves and loads the following state in BCF viewpoints:
|
|
45098
45113
|
*
|
|
45099
45114
|
* * {@link Camera} position, orientation and projection
|
|
45115
|
+
* * {@link Entity} visibilities and selection states
|
|
45100
45116
|
* * {@link SectionPlane}s to slice the model
|
|
45101
45117
|
* * {@link LineSet}s to show 3D lines
|
|
45102
45118
|
* * {@link Bitmap}s to show images
|
|
45103
|
-
* * {@link Entity} visibilities and selection states
|
|
45104
45119
|
*
|
|
45105
45120
|
* ## Saving a BCF Viewpoint
|
|
45106
45121
|
*
|
|
@@ -45109,7 +45124,7 @@ const tempVec3c$6 = math.vec3();
|
|
|
45109
45124
|
* plan view using a {@link Bitmap}, then use a {@link BCFViewpointsPlugin#getViewpoint}
|
|
45110
45125
|
* to save a viewpoint to JSON, which we'll log to the JavaScript developer console.
|
|
45111
45126
|
*
|
|
45112
|
-
* * [[Run this example](
|
|
45127
|
+
* * [[Run this example](https://xeokit.github.io/xeokit-sdk/examples/#BCF_SaveViewpoint)]
|
|
45113
45128
|
*
|
|
45114
45129
|
* ````javascript
|
|
45115
45130
|
* import {Viewer, XKTLoaderPlugin, SectionPlanesPlugin,
|
|
@@ -155933,8 +155948,9 @@ class MousePanRotateDollyHandler {
|
|
|
155933
155948
|
// Scaling drag-rotate to canvas boundary
|
|
155934
155949
|
|
|
155935
155950
|
const canvasBoundary = scene.canvas.boundary;
|
|
155936
|
-
|
|
155937
|
-
const
|
|
155951
|
+
|
|
155952
|
+
const canvasWidth = canvasBoundary[2];
|
|
155953
|
+
const canvasHeight = canvasBoundary[3];
|
|
155938
155954
|
const x = states.pointerCanvasPos[0];
|
|
155939
155955
|
const y = states.pointerCanvasPos[1];
|
|
155940
155956
|
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -45085,18 +45085,33 @@ const tempVec3c$6 = math.vec3();
|
|
|
45085
45085
|
/**
|
|
45086
45086
|
* {@link Viewer} plugin that saves and loads BCF viewpoints as JSON objects.
|
|
45087
45087
|
*
|
|
45088
|
-
*
|
|
45089
|
-
*
|
|
45088
|
+
* [<img src="http://xeokit.github.io/xeokit-sdk/assets/images/BCFViewpointsPlugin.png">](http://xeokit.github.io/xeokit-sdk/examples/#BCF_SaveViewpoint)
|
|
45089
|
+
*
|
|
45090
|
+
* * [[Example 1: Saving viewer state to a BCF viewpoint](https://xeokit.github.io/xeokit-sdk/examples/#BCF_SaveViewpoint)]
|
|
45091
|
+
* * [[Example 2: Loading viewer state from a BCF viewpoint](https://xeokit.github.io/xeokit-sdk/examples/#BCF_LoadViewpoint)]
|
|
45092
|
+
*
|
|
45093
|
+
* ## Overview
|
|
45094
|
+
*
|
|
45095
|
+
* BCF is an open standard that enables workflow communications between BIM software tools. An XML schema, called
|
|
45096
|
+
* Building Collaboration Format (BCF), encodes messages that inform one BIM tool of issues found by another.
|
|
45097
|
+
*
|
|
45098
|
+
* A BCF viewpoint captures a viewpoint of a model that highlights an issue. The viewpoint can then be loaded by another
|
|
45099
|
+
* viewer to examine the issue.
|
|
45100
|
+
*
|
|
45101
|
+
* Using this plugin, a xeokit {@link Viewer} can exchange BCF-encoded viewpoints with other BIM software,
|
|
45102
|
+
* allowing us to use the Viewer to report and view issues in BIM models.
|
|
45103
|
+
*
|
|
45104
|
+
* This plugin's viewpoints conform to the <a href="https://github.com/buildingSMART/BCF-API">BCF Version 2.1</a> specification.
|
|
45090
45105
|
*
|
|
45091
45106
|
* ## Supported BCF Elements
|
|
45092
45107
|
*
|
|
45093
|
-
*
|
|
45108
|
+
* BCFViewpointsPlugin saves and loads the following state in BCF viewpoints:
|
|
45094
45109
|
*
|
|
45095
45110
|
* * {@link Camera} position, orientation and projection
|
|
45111
|
+
* * {@link Entity} visibilities and selection states
|
|
45096
45112
|
* * {@link SectionPlane}s to slice the model
|
|
45097
45113
|
* * {@link LineSet}s to show 3D lines
|
|
45098
45114
|
* * {@link Bitmap}s to show images
|
|
45099
|
-
* * {@link Entity} visibilities and selection states
|
|
45100
45115
|
*
|
|
45101
45116
|
* ## Saving a BCF Viewpoint
|
|
45102
45117
|
*
|
|
@@ -45105,7 +45120,7 @@ const tempVec3c$6 = math.vec3();
|
|
|
45105
45120
|
* plan view using a {@link Bitmap}, then use a {@link BCFViewpointsPlugin#getViewpoint}
|
|
45106
45121
|
* to save a viewpoint to JSON, which we'll log to the JavaScript developer console.
|
|
45107
45122
|
*
|
|
45108
|
-
* * [[Run this example](
|
|
45123
|
+
* * [[Run this example](https://xeokit.github.io/xeokit-sdk/examples/#BCF_SaveViewpoint)]
|
|
45109
45124
|
*
|
|
45110
45125
|
* ````javascript
|
|
45111
45126
|
* import {Viewer, XKTLoaderPlugin, SectionPlanesPlugin,
|
|
@@ -155929,8 +155944,9 @@ class MousePanRotateDollyHandler {
|
|
|
155929
155944
|
// Scaling drag-rotate to canvas boundary
|
|
155930
155945
|
|
|
155931
155946
|
const canvasBoundary = scene.canvas.boundary;
|
|
155932
|
-
|
|
155933
|
-
const
|
|
155947
|
+
|
|
155948
|
+
const canvasWidth = canvasBoundary[2];
|
|
155949
|
+
const canvasHeight = canvasBoundary[3];
|
|
155934
155950
|
const x = states.pointerCanvasPos[0];
|
|
155935
155951
|
const y = states.pointerCanvasPos[1];
|
|
155936
155952
|
|