@vertexvis/viewer 0.13.2-canary.6 → 0.13.2-canary.7
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/cjs/vertex-viewer-dom-element_3.cjs.entry.js +4 -6
- package/dist/collection/components/viewer-dom-renderer/renderer3d.js +4 -2
- package/dist/collection/components/viewer-dom-renderer/viewer-dom-renderer.js +2 -6
- package/dist/custom-elements/index.js +4 -6
- package/dist/esm/vertex-viewer-dom-element_3.entry.js +4 -6
- package/dist/viewer/{p-3c3d7fe6.entry.js → p-b0ac6b3c.entry.js} +1 -1
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +7 -7
|
@@ -445,7 +445,9 @@ function getScreenPosition(pt, projectionViewMatrix, viewport) {
|
|
|
445
445
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
446
446
|
const Renderer3d = ({ camera, viewport }, children) => {
|
|
447
447
|
const pMatrix = bundle_esm.matrix4.toObject(camera.projectionMatrix);
|
|
448
|
-
const fovY =
|
|
448
|
+
const fovY = camera.isOrthographic()
|
|
449
|
+
? ((camera.far * 2) / (camera.fovHeight * 2)) * (viewport.height / 2)
|
|
450
|
+
: pMatrix.m22 * (viewport.height / 2);
|
|
449
451
|
const cameraTransform = [
|
|
450
452
|
`translateZ(${fovY}px)`,
|
|
451
453
|
getCameraCssMatrix(camera.viewMatrix),
|
|
@@ -623,14 +625,10 @@ let ViewerDomRenderer = class {
|
|
|
623
625
|
this.invalidateFrame();
|
|
624
626
|
}
|
|
625
627
|
async updatePropsFromViewer() {
|
|
626
|
-
var _a;
|
|
627
628
|
const { frame, depthBuffers } = this.viewer || {};
|
|
628
629
|
this.depthBuffer =
|
|
629
630
|
depthBuffers === 'all' ? await (frame === null || frame === void 0 ? void 0 : frame.depthBuffer()) : undefined;
|
|
630
|
-
this.camera =
|
|
631
|
-
(frame === null || frame === void 0 ? void 0 : frame.scene.camera) != null && frame.scene.camera.isOrthographic()
|
|
632
|
-
? frame.scene.camera.toPerspective(frame.scene.boundingBox)
|
|
633
|
-
: (_a = frame === null || frame === void 0 ? void 0 : frame.scene) === null || _a === void 0 ? void 0 : _a.camera;
|
|
631
|
+
this.camera = frame === null || frame === void 0 ? void 0 : frame.scene.camera;
|
|
634
632
|
}
|
|
635
633
|
get hostEl() { return index.getElement(this); }
|
|
636
634
|
static get watchers() { return {
|
|
@@ -5,7 +5,9 @@ import { isVertexViewerDomElement } from '../viewer-dom-element/utils';
|
|
|
5
5
|
import { isVertexViewerDomGroup } from '../viewer-dom-group/utils';
|
|
6
6
|
export const Renderer3d = ({ camera, viewport }, children) => {
|
|
7
7
|
const pMatrix = Matrix4.toObject(camera.projectionMatrix);
|
|
8
|
-
const fovY =
|
|
8
|
+
const fovY = camera.isOrthographic()
|
|
9
|
+
? ((camera.far * 2) / (camera.fovHeight * 2)) * (viewport.height / 2)
|
|
10
|
+
: pMatrix.m22 * (viewport.height / 2);
|
|
9
11
|
const cameraTransform = [
|
|
10
12
|
`translateZ(${fovY}px)`,
|
|
11
13
|
getCameraCssMatrix(camera.viewMatrix),
|
|
@@ -95,4 +97,4 @@ function getElementCssMatrix(matrix) {
|
|
|
95
97
|
function epsilon(value) {
|
|
96
98
|
return Math.abs(value) < 1e-10 ? 0 : value;
|
|
97
99
|
}
|
|
98
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
100
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyZXIzZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL3ZpZXdlci1kb20tcmVuZGVyZXIvcmVuZGVyZXIzZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNkRBQTZEO0FBQzdELE9BQU8sRUFBdUIsQ0FBQyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZELE9BQU8sRUFBRSxPQU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PLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ2xCLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDbEIsT0FBTyxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNuQixPQUFPLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ25CLE9BQU8sQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDbkIsT0FBTyxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNuQixPQUFPLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ25CLE9BQU8sQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLENBQUM7R0FDcEIsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7RUFFYixPQUFPLENBQUMsdUJBQXVCLEVBQUUsWUFBWSxNQUFNLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNwRSxDQUFDO0FBRUQsU0FBUyxPQUFPLENBQUMsS0FBYTtFQUM1QixPQUFPLElBQUksQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQztBQUM3QyxDQUFDIn0=
|
|
@@ -96,14 +96,10 @@ export class ViewerDomRenderer {
|
|
|
96
96
|
this.invalidateFrame();
|
|
97
97
|
}
|
|
98
98
|
async updatePropsFromViewer() {
|
|
99
|
-
var _a;
|
|
100
99
|
const { frame, depthBuffers } = this.viewer || {};
|
|
101
100
|
this.depthBuffer =
|
|
102
101
|
depthBuffers === 'all' ? await (frame === null || frame === void 0 ? void 0 : frame.depthBuffer()) : undefined;
|
|
103
|
-
this.camera =
|
|
104
|
-
(frame === null || frame === void 0 ? void 0 : frame.scene.camera) != null && frame.scene.camera.isOrthographic()
|
|
105
|
-
? frame.scene.camera.toPerspective(frame.scene.boundingBox)
|
|
106
|
-
: (_a = frame === null || frame === void 0 ? void 0 : frame.scene) === null || _a === void 0 ? void 0 : _a.camera;
|
|
102
|
+
this.camera = frame === null || frame === void 0 ? void 0 : frame.scene.camera;
|
|
107
103
|
}
|
|
108
104
|
static get is() { return "vertex-viewer-dom-renderer"; }
|
|
109
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -213,4 +209,4 @@ export class ViewerDomRenderer {
|
|
|
213
209
|
"passive": false
|
|
214
210
|
}]; }
|
|
215
211
|
}
|
|
216
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
212
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld2VyLWRvbS1yZW5kZXJlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL3ZpZXdlci1kb20tcmVuZGVyZXIvdmlld2VyLWRvbS1yZW5kZXJlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxPQUFPLEVBQ1AsQ0FBQyxFQUNELElBQUksRUFDSixNQUFNLEVBQ04sSUFBSSxFQUNKLEtBQUssRUFDTCxLQUFLLEdBQ04sTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRTlDLE9BQU8sRUFBZSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV4RCxPQUFPLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNwRCxPQUFPLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUlwRDs7OztHQUlHO0FBTUgsTUFBTSx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FLEtBQUssQ0FBQyxNQUFNLENBQUM7RUFDcEMsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBQ0YifQ==
|
|
@@ -103771,7 +103771,9 @@ function getScreenPosition(pt, projectionViewMatrix, viewport) {
|
|
|
103771
103771
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
103772
103772
|
const Renderer3d = ({ camera, viewport }, children) => {
|
|
103773
103773
|
const pMatrix = matrix4.toObject(camera.projectionMatrix);
|
|
103774
|
-
const fovY =
|
|
103774
|
+
const fovY = camera.isOrthographic()
|
|
103775
|
+
? ((camera.far * 2) / (camera.fovHeight * 2)) * (viewport.height / 2)
|
|
103776
|
+
: pMatrix.m22 * (viewport.height / 2);
|
|
103775
103777
|
const cameraTransform = [
|
|
103776
103778
|
`translateZ(${fovY}px)`,
|
|
103777
103779
|
getCameraCssMatrix(camera.viewMatrix),
|
|
@@ -103951,14 +103953,10 @@ let ViewerDomRenderer = class extends HTMLElement$1 {
|
|
|
103951
103953
|
this.invalidateFrame();
|
|
103952
103954
|
}
|
|
103953
103955
|
async updatePropsFromViewer() {
|
|
103954
|
-
var _a;
|
|
103955
103956
|
const { frame, depthBuffers } = this.viewer || {};
|
|
103956
103957
|
this.depthBuffer =
|
|
103957
103958
|
depthBuffers === 'all' ? await (frame === null || frame === void 0 ? void 0 : frame.depthBuffer()) : undefined;
|
|
103958
|
-
this.camera =
|
|
103959
|
-
(frame === null || frame === void 0 ? void 0 : frame.scene.camera) != null && frame.scene.camera.isOrthographic()
|
|
103960
|
-
? frame.scene.camera.toPerspective(frame.scene.boundingBox)
|
|
103961
|
-
: (_a = frame === null || frame === void 0 ? void 0 : frame.scene) === null || _a === void 0 ? void 0 : _a.camera;
|
|
103959
|
+
this.camera = frame === null || frame === void 0 ? void 0 : frame.scene.camera;
|
|
103962
103960
|
}
|
|
103963
103961
|
get hostEl() { return this; }
|
|
103964
103962
|
static get watchers() { return {
|
|
@@ -441,7 +441,9 @@ function getScreenPosition(pt, projectionViewMatrix, viewport) {
|
|
|
441
441
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
442
442
|
const Renderer3d = ({ camera, viewport }, children) => {
|
|
443
443
|
const pMatrix = matrix4.toObject(camera.projectionMatrix);
|
|
444
|
-
const fovY =
|
|
444
|
+
const fovY = camera.isOrthographic()
|
|
445
|
+
? ((camera.far * 2) / (camera.fovHeight * 2)) * (viewport.height / 2)
|
|
446
|
+
: pMatrix.m22 * (viewport.height / 2);
|
|
445
447
|
const cameraTransform = [
|
|
446
448
|
`translateZ(${fovY}px)`,
|
|
447
449
|
getCameraCssMatrix(camera.viewMatrix),
|
|
@@ -619,14 +621,10 @@ let ViewerDomRenderer = class {
|
|
|
619
621
|
this.invalidateFrame();
|
|
620
622
|
}
|
|
621
623
|
async updatePropsFromViewer() {
|
|
622
|
-
var _a;
|
|
623
624
|
const { frame, depthBuffers } = this.viewer || {};
|
|
624
625
|
this.depthBuffer =
|
|
625
626
|
depthBuffers === 'all' ? await (frame === null || frame === void 0 ? void 0 : frame.depthBuffer()) : undefined;
|
|
626
|
-
this.camera =
|
|
627
|
-
(frame === null || frame === void 0 ? void 0 : frame.scene.camera) != null && frame.scene.camera.isOrthographic()
|
|
628
|
-
? frame.scene.camera.toPerspective(frame.scene.boundingBox)
|
|
629
|
-
: (_a = frame === null || frame === void 0 ? void 0 : frame.scene) === null || _a === void 0 ? void 0 : _a.camera;
|
|
627
|
+
this.camera = frame === null || frame === void 0 ? void 0 : frame.scene.camera;
|
|
630
628
|
}
|
|
631
629
|
get hostEl() { return getElement(this); }
|
|
632
630
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
2
|
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as n,H as s,g as i}from"./p-cafa57a6.js";import{v as e,t as o,m as h,u as a}from"./p-661f0612.js";import"./p-77be081a.js";import{V as r}from"./p-a93a63a9.js";import"./p-e75bba97.js";import"./p-112455b1.js";let l=class{constructor(n){t(this,n),this.position=e.origin(),this.positionJson="",this.quaternion=o.create(),this.quaternionJson="",this.scale=e.create(1,1,1),this.scaleJson="",this.matrix=h.makeIdentity(),this.occlusionOff=!1,this.occluded=!1,this.billboardOff=!1,this.interactionsOff=!1}handlePositionChange(){this.syncMatrix()}handlePositionJsonChanged(){this.syncPosition()}handleRotationChanged(){this.syncQuaternionWithRotation()}handleRotationJsonChanged(){this.syncRotation()}handleQuaternionChange(){this.syncMatrix()}handleQuaternionJsonChanged(){this.syncQuaternion()}handleScaleChange(){this.syncMatrix()}handleScaleJsonChanged(){this.syncScale()}connectedCallback(){this.syncProperties()}componentShouldUpdate(t,n,s){return"occluded"===s}syncProperties(){this.syncPosition(),this.syncRotation(),this.syncQuaternion(),this.syncScale(),this.syncMatrix()}syncPosition(){this.position=this.positionJson.length>0?this.parseJson("positionJson",this.positionJson,e.fromJson):this.position}syncRotation(){this.rotation=null!=this.rotationJson&&this.rotationJson.length>0?this.parseJson("rotationJson",this.rotationJson,a.fromJson):this.rotation,this.syncQuaternionWithRotation()}syncQuaternionWithRotation(){this.quaternion=null!=this.rotation?o.fromEuler(this.rotation):this.quaternion}syncQuaternion(){this.quaternion=this.quaternionJson.length>0?this.parseJson("quaternionJson",this.quaternionJson,o.fromJson):this.quaternion}syncScale(){this.scale=this.scaleJson.length>0?this.parseJson("scaleJson",this.scaleJson,e.fromJson):this.scale}syncMatrix(){this.matrix=h.makeTRS(this.position,this.quaternion,this.scale)}parseJson(t,n,s){try{return s(n)}catch(n){throw console.warn(`Could not parse \`${t}\`. Invalid JSON.`),n}}render(){return n(s,null,n("slot",null))}static get watchers(){return{position:["handlePositionChange"],positionJson:["handlePositionJsonChanged"],rotation:["handleRotationChanged"],rotationJson:["handleRotationJsonChanged"],quaternion:["handleQuaternionChange"],quaternionJson:["handleQuaternionJsonChanged"],scale:["handleScaleChange"],scaleJson:["handleScaleJsonChanged"]}}};l.style=":host{position:absolute;pointer-events:none}:host(:not([interactions-off]))>*{pointer-events:auto}";let d=class{constructor(n){t(this,n),this.position=e.origin(),this.positionJson="",this.quaternion=o.create(),this.quaternionJson="",this.scale=e.create(1,1,1),this.scaleJson="",this.matrix=h.makeIdentity()}handlePositionChange(){this.syncMatrix()}handlePositionJsonChanged(){this.syncPosition()}handleRotationChanged(){this.syncQuaternionWithRotation()}handleRotationJsonChanged(){this.syncRotation()}handleQuaternionChange(){this.syncMatrix()}handleQuaternionJsonChanged(){this.syncQuaternion()}handleScaleChange(){this.syncMatrix()}handleScaleJsonChanged(){this.syncScale()}componentWillLoad(){this.syncProperties()}componentShouldUpdate(){return!1}syncProperties(){this.syncPosition(),this.syncRotation(),this.syncQuaternion(),this.syncScale(),this.syncMatrix()}syncPosition(){this.position=this.positionJson.length>0?this.parseJson("positionJson",this.positionJson,e.fromJson):this.position}syncRotation(){this.rotation=null!=this.rotationJson&&this.rotationJson.length>0?this.parseJson("rotationJson",this.rotationJson,a.fromJson):this.rotation,this.syncQuaternionWithRotation()}syncQuaternionWithRotation(){this.quaternion=null!=this.rotation?o.fromEuler(this.rotation):this.quaternion}syncQuaternion(){this.quaternion=this.quaternionJson.length>0?this.parseJson("quaternionJson",this.quaternionJson,o.fromJson):this.quaternion}syncScale(){this.scale=this.scaleJson.length>0?this.parseJson("scaleJson",this.scaleJson,e.fromJson):this.scale}syncMatrix(){this.matrix=h.makeTRS(this.position,this.quaternion,this.scale)}parseJson(t,n,s){try{return s(n)}catch(n){throw console.warn(`Could not parse \`${t}\`. Invalid JSON.`),n}}render(){return n(s,null,n("slot",null))}static get watchers(){return{position:["handlePositionChange"],positionJson:["handlePositionJsonChanged"],rotation:["handleRotationChanged"],rotationJson:["handleRotationJsonChanged"],quaternion:["handleQuaternionChange"],quaternionJson:["handleQuaternionJsonChanged"],scale:["handleScaleChange"],scaleJson:["handleScaleJsonChanged"]}}};function c(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-DOM-ELEMENT"===t.nodeName}function u(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-DOM-GROUP"===t.nodeName}d.style=":host{display:block;transform-style:preserve-3d}";const p=(t,s)=>n("div",{class:"root-2d"},s);function g(t,n,s,i,e){const o=m(t,n,i).sort(((t,n)=>t.distanceToCamera-n.distanceToCamera));for(let t=0;t<o.length;t++){const{element:n,worldMatrix:h,worldPosition:a}=o[t],r=!n.occlusionOff&&(null==e?void 0:e.isOccluded(a,s));n.occluded=null!=r&&r,C(n,
|
|
4
|
+
import{r as t,h as n,H as s,g as i}from"./p-cafa57a6.js";import{v as e,t as o,m as h,u as a}from"./p-661f0612.js";import"./p-77be081a.js";import{V as r}from"./p-a93a63a9.js";import"./p-e75bba97.js";import"./p-112455b1.js";let l=class{constructor(n){t(this,n),this.position=e.origin(),this.positionJson="",this.quaternion=o.create(),this.quaternionJson="",this.scale=e.create(1,1,1),this.scaleJson="",this.matrix=h.makeIdentity(),this.occlusionOff=!1,this.occluded=!1,this.billboardOff=!1,this.interactionsOff=!1}handlePositionChange(){this.syncMatrix()}handlePositionJsonChanged(){this.syncPosition()}handleRotationChanged(){this.syncQuaternionWithRotation()}handleRotationJsonChanged(){this.syncRotation()}handleQuaternionChange(){this.syncMatrix()}handleQuaternionJsonChanged(){this.syncQuaternion()}handleScaleChange(){this.syncMatrix()}handleScaleJsonChanged(){this.syncScale()}connectedCallback(){this.syncProperties()}componentShouldUpdate(t,n,s){return"occluded"===s}syncProperties(){this.syncPosition(),this.syncRotation(),this.syncQuaternion(),this.syncScale(),this.syncMatrix()}syncPosition(){this.position=this.positionJson.length>0?this.parseJson("positionJson",this.positionJson,e.fromJson):this.position}syncRotation(){this.rotation=null!=this.rotationJson&&this.rotationJson.length>0?this.parseJson("rotationJson",this.rotationJson,a.fromJson):this.rotation,this.syncQuaternionWithRotation()}syncQuaternionWithRotation(){this.quaternion=null!=this.rotation?o.fromEuler(this.rotation):this.quaternion}syncQuaternion(){this.quaternion=this.quaternionJson.length>0?this.parseJson("quaternionJson",this.quaternionJson,o.fromJson):this.quaternion}syncScale(){this.scale=this.scaleJson.length>0?this.parseJson("scaleJson",this.scaleJson,e.fromJson):this.scale}syncMatrix(){this.matrix=h.makeTRS(this.position,this.quaternion,this.scale)}parseJson(t,n,s){try{return s(n)}catch(n){throw console.warn(`Could not parse \`${t}\`. Invalid JSON.`),n}}render(){return n(s,null,n("slot",null))}static get watchers(){return{position:["handlePositionChange"],positionJson:["handlePositionJsonChanged"],rotation:["handleRotationChanged"],rotationJson:["handleRotationJsonChanged"],quaternion:["handleQuaternionChange"],quaternionJson:["handleQuaternionJsonChanged"],scale:["handleScaleChange"],scaleJson:["handleScaleJsonChanged"]}}};l.style=":host{position:absolute;pointer-events:none}:host(:not([interactions-off]))>*{pointer-events:auto}";let d=class{constructor(n){t(this,n),this.position=e.origin(),this.positionJson="",this.quaternion=o.create(),this.quaternionJson="",this.scale=e.create(1,1,1),this.scaleJson="",this.matrix=h.makeIdentity()}handlePositionChange(){this.syncMatrix()}handlePositionJsonChanged(){this.syncPosition()}handleRotationChanged(){this.syncQuaternionWithRotation()}handleRotationJsonChanged(){this.syncRotation()}handleQuaternionChange(){this.syncMatrix()}handleQuaternionJsonChanged(){this.syncQuaternion()}handleScaleChange(){this.syncMatrix()}handleScaleJsonChanged(){this.syncScale()}componentWillLoad(){this.syncProperties()}componentShouldUpdate(){return!1}syncProperties(){this.syncPosition(),this.syncRotation(),this.syncQuaternion(),this.syncScale(),this.syncMatrix()}syncPosition(){this.position=this.positionJson.length>0?this.parseJson("positionJson",this.positionJson,e.fromJson):this.position}syncRotation(){this.rotation=null!=this.rotationJson&&this.rotationJson.length>0?this.parseJson("rotationJson",this.rotationJson,a.fromJson):this.rotation,this.syncQuaternionWithRotation()}syncQuaternionWithRotation(){this.quaternion=null!=this.rotation?o.fromEuler(this.rotation):this.quaternion}syncQuaternion(){this.quaternion=this.quaternionJson.length>0?this.parseJson("quaternionJson",this.quaternionJson,o.fromJson):this.quaternion}syncScale(){this.scale=this.scaleJson.length>0?this.parseJson("scaleJson",this.scaleJson,e.fromJson):this.scale}syncMatrix(){this.matrix=h.makeTRS(this.position,this.quaternion,this.scale)}parseJson(t,n,s){try{return s(n)}catch(n){throw console.warn(`Could not parse \`${t}\`. Invalid JSON.`),n}}render(){return n(s,null,n("slot",null))}static get watchers(){return{position:["handlePositionChange"],positionJson:["handlePositionJsonChanged"],rotation:["handleRotationChanged"],rotationJson:["handleRotationJsonChanged"],quaternion:["handleQuaternionChange"],quaternionJson:["handleQuaternionJsonChanged"],scale:["handleScaleChange"],scaleJson:["handleScaleJsonChanged"]}}};function c(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-DOM-ELEMENT"===t.nodeName}function u(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-DOM-GROUP"===t.nodeName}d.style=":host{display:block;transform-style:preserve-3d}";const p=(t,s)=>n("div",{class:"root-2d"},s);function g(t,n,s,i,e){const o=m(t,n,i).sort(((t,n)=>t.distanceToCamera-n.distanceToCamera));for(let t=0;t<o.length;t++){const{element:n,worldMatrix:h,worldPosition:a}=o[t],r=!n.occlusionOff&&(null==e?void 0:e.isOccluded(a,s));n.occluded=null!=r&&r,C(n,J(a,i.projectionViewMatrix,s)),f(n,t,o.length),g(n,h,s,i,e)}}function m(t,n,s){const i=[];for(let o=0;o<t.children.length;o++){const a=t.children[o];if(u(a)){const t=h.multiply(n,a.matrix);i.push(...m(a,t,s))}else if(c(a)){const t=h.multiply(n,a.matrix),o=e.fromMatrixPosition(t),r=e.distanceSquared(s.position,o);i.push({element:a,worldMatrix:t,worldPosition:o,distanceToCamera:r})}}return i}function C(t,n){t.style.transform=["translate(-50%, -50%)",`translate(${n.x}px, ${n.y}px)`].join(" ")}function f(t,n,s){t.style.zIndex=""+(s-n)}function J(t,n,s){const i=e.transformMatrix(t,n);return s.transformVectorToViewport(i)}const v=({camera:t,viewport:s},i)=>{const e=h.toObject(t.projectionMatrix),o=t.isOrthographic()?2*t.far/(2*t.fovHeight)*(s.height/2):e.m22*(s.height/2),a=[`translateZ(${o}px)`,(r=t.viewMatrix,`matrix3d(${[x(r[0]),x(-r[1]),x(r[2]),x(r[3]),x(r[4]),x(-r[5]),x(r[6]),x(r[7]),x(r[8]),x(-r[9]),x(r[10]),x(r[11]),x(r[12]),x(-r[13]),x(r[14]),x(r[15])].join(", ")})`),`translate(${s.width/2}px, ${s.height/2}px)`].join(" ");var r;return n("div",{class:"root-3d",style:{perspective:`${o}px`}},n("div",{class:"camera",style:{transform:a}},i))};function w(t,n,s,i,e){for(let o=0;o<t.children.length;o++){const h=t.children[o];c(h)?y(h,n,s,i,e):u(h)&&R(h,n,s,i,e)}}function y(t,n,s,i,o){const a=h.multiply(n,t.matrix),r=e.fromMatrixPosition(a),l=!t.occlusionOff&&(null==o?void 0:o.isOccluded(r,s));if(t.occluded=null!=l&&l,t.billboardOff)t.style.transform=P(a);else{let n=i.viewMatrix;n=h.transpose(n),n=h.position(n,a),n=h.scale(n,t.scale),n[3]=0,n[7]=0,n[11]=0,n[15]=1,t.style.transform=P(n)}w(t,a,s,i,o)}function R(t,n,s,i,e){w(t,h.multiply(n,t.matrix),s,i,e)}function P(t){return["translate(-50%, -50%)",`matrix3d(${[x(t[0]),x(t[1]),x(t[2]),x(t[3]),x(-t[4]),x(-t[5]),x(-t[6]),x(-t[7]),x(t[8]),x(t[9]),x(t[10]),x(t[11]),x(t[12]),x(t[13]),x(t[14]),x(t[15])].join(", ")})`].join(" ")}function x(t){return Math.abs(t)<1e-10?0:t}let E=class{constructor(n){t(this,n),this.drawMode="3d",this.viewport=new r(0,0),this.invalidateFrameCounter=0,this.handleViewerFrameDrawn=async()=>{this.updatePropsFromViewer()}}componentWillLoad(){new ResizeObserver((()=>this.handleResize())).observe(this.hostEl),new MutationObserver((()=>this.handleChildrenChange())).observe(this.hostEl,{childList:!0}),this.handleViewerChange(this.viewer,void 0)}render(){return null!=this.camera?n(s,null,"2d"===this.drawMode?n(p,null,n("slot",null)):n(v,{camera:this.camera,viewport:this.viewport},n("slot",null))):n(s,null)}componentDidRender(){this.updateElements()}handleViewerChange(t,n){null==n||n.removeEventListener("frameDrawn",this.handleViewerFrameDrawn),null==t||t.addEventListener("frameDrawn",this.handleViewerFrameDrawn)}handlePropertyChange(){this.invalidateFrame()}invalidateFrame(){this.invalidateFrameCounter=this.invalidateFrameCounter+1}async updateElements(){const{viewport:t,camera:n}=this,s=h.makeIdentity();null!=n&&("3d"===this.drawMode?w(this.hostEl,s,t,n,this.depthBuffer):g(this.hostEl,s,t,n,this.depthBuffer))}handleResize(){const t=this.hostEl.getBoundingClientRect();this.viewport=new r(t.width,t.height)}handleChildrenChange(){this.invalidateFrame()}async updatePropsFromViewer(){const{frame:t,depthBuffers:n}=this.viewer||{};this.depthBuffer="all"===n?await(null==t?void 0:t.depthBuffer()):void 0,this.camera=null==t?void 0:t.scene.camera}get hostEl(){return i(this)}static get watchers(){return{viewer:["handleViewerChange"]}}};E.style=":host{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none}.root-3d{width:100%;height:100%;pointer-events:inherit}.camera{transform-style:preserve-3d;pointer-events:inherit;width:100%;height:100%}";export{l as vertex_viewer_dom_element,d as vertex_viewer_dom_group,E as vertex_viewer_dom_renderer}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
2
|
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{d as e,N as t,w as a,p as r,b as i}from"./p-cafa57a6.js";import{g as n}from"./p-7e0328aa.js";import"./p-112455b1.js";(()=>{const i=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),n={};return n.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((r,i)=>{const n=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[n]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const o=new Map;a[n]=t=>{const s=new URL(t,r).href;let l=o.get(s);if(!l){const t=e.createElement("script");t.type="module",t.crossOrigin=i.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${n}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{t.onload=()=>{e(a[n].m),t.remove()}})),o.set(s,l),e.head.appendChild(t)}return l}}})(n.resourcesUrl,i),a.customElements?r(n):__sc_import_viewer("./p-ac0761c3.js").then((()=>n))})().then((e=>(n(),i([["p-a455ae02",[[1,"vertex-viewer-default-toolbar",{viewer:[16],placement:[1],direction:[1],animationsDisabled:[4,"animations-disabled"],animationMs:[2,"animation-ms"]}]]],["p-73a5eacc",[[1,"vertex-scene-tree",{overScanCount:[2,"over-scan-count"],viewerSelector:[1,"viewer-selector"],viewer:[1040],rowData:[16],config:[16],configEnv:[1,"config-env"],controller:[1040],filterOnMetadata:[1028,"filter-on-metadata"],metadataKeys:[16],rows:[32],totalRows:[32],stateMap:[32],connectionErrorDetails:[32],attemptingRetry:[32],invalidateRows:[64],scrollToIndex:[64],scrollToItem:[64],expandAll:[64],collapseAll:[64],expandItem:[64],collapseItem:[64],toggleExpandItem:[64],toggleItemVisibility:[64],hideItem:[64],showItem:[64],selectItem:[64],deselectItem:[64],getRowAtIndex:[64],getRowForEvent:[64],getRowAtClientY:[64],filterItems:[64],fetchMetadataKeys:[64]},[[0,"search","handleSearch"]]]]],["p-0a189e62",[[1,"vertex-viewer-measurement-tool",{distanceTemplateId:[1,"distance-template-id"],tool:[1],units:[1],fractionalDigits:[2,"fractional-digits"],disabled:[4],viewer:[16],isMeasuring:[1540,"is-measuring"],snapDistance:[2,"snap-distance"],stateMap:[32]}]]],["p-1ca95f9a",[[1,"vertex-viewer-markup",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],selectedMarkupId:[1025,"selected-markup-id"],selectNew:[4,"select-new"],toSelectMarkupId:[32],pointerDownPosition:[32],addMarkup:[64],removeMarkup:[64],getMarkupElements:[64],getMarkupElement:[64]},[[0,"markupEnd","handleMarkupEnd"],[1,"pointerdown","handleMarkupPointerDown"]]]]],["p-41028d3b",[[1,"vertex-viewer-markup-tool",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],stateMap:[32],reset:[64]}]]],["p-f0411993",[[1,"vertex-viewer-measurements",{distanceTemplateId:[1,"distance-template-id"],tool:[1],units:[1],fractionalDigits:[2,"fractional-digits"],disabled:[4],viewer:[16],selectedMeasurementId:[1025,"selected-measurement-id"],snapDistance:[2,"snap-distance"],showAxisReferenceLines:[4,"show-axis-reference-lines"],measurementModel:[16],addMeasurement:[64],removeMeasurement:[64],getMeasurementElement:[64],getMeasurementElements:[64]},[[0,"measureEnd","handleMeasureEnd"],[1,"pointerdown","handleMeasurementPointerDown"]]]]],["p-858bd2c7",[[1,"vertex-viewer-view-cube",{xPositiveLabel:[1,"x-positive-label"],xNegativeLabel:[1,"x-negative-label"],yPositiveLabel:[1,"y-positive-label"],yNegativeLabel:[1,"y-negative-label"],zPositiveLabel:[1,"z-positive-label"],zNegativeLabel:[1,"z-negative-label"],standardViewsOff:[4,"standard-views-off"],animationDuration:[2,"animation-duration"],triadOff:[4,"triad-off"],worldOrientation:[1040],camera:[1040],viewer:[16],boxLength:[32],triadPosition:[32]}]]],["p-ebd55df7",[[1,"vertex-viewer-measurement-precise",{measurementModel:[16],measurementOverlays:[16],measurementController:[1040],measurableEntityTypes:[16],viewer:[16],configEnv:[1,"config-env"],config:[16],overlays:[32]}]]],["p-fec1a8d0",[[1,"vertex-scene-tree-table-cell",{node:[16],tree:[16],value:[1],placeholder:[1],hoveredNodeId:[1,"hovered-node-id"],expandToggle:[4,"expand-toggle"],visibilityToggle:[4,"visibility-toggle"],interactionsDisabled:[4,"interactions-disabled"],recurseParentSelectionDisabled:[4,"recurse-parent-selection-disabled"]}]]],["p-70ca1ea7",[[1,"vertex-scene-tree-table-column",{initialWidth:[2,"initial-width"],minWidth:[2,"min-width"],maxWidth:[2,"max-width"]}]]],["p-d2bcf788",[[1,"vertex-scene-tree-table-header"]]],["p-61b1097b",[[1,"vertex-scene-tree-table-resize-divider",{dragging:[32]}]]],["p-099fe6ca",[[1,"vertex-scene-tree-toolbar-group"]]],["p-5212dd2b",[[1,"vertex-viewer",{src:[1],clientId:[1,"client-id"],deviceId:[1,"device-id"],config:[1],configEnv:[1,"config-env"],resolvedConfig:[1040],cameraControls:[4,"camera-controls"],cameraType:[1,"camera-type"],keyboardControls:[4,"keyboard-controls"],rotateAroundTapPoint:[4,"rotate-around-tap-point"],token:[1025],depthBuffers:[1,"depth-buffers"],experimentalGhostingOpacity:[2,"experimental-ghosting-opacity"],featureLines:[16],featureHighlighting:[16],featureMaps:[1,"feature-maps"],selectionMaterial:[1,"selection-material"],resizeDebounce:[2,"resize-debounce"],frame:[1040],stream:[1040],stencilBuffer:[1040],viewport:[1040],dimensions:[32],hostDimensions:[32],errorMessage:[32],cursor:[32],stateMap:[32],dispatchFrameDrawn:[64],registerInteractionHandler:[64],registerTapKeyInteraction:[64],getInteractionTarget:[64],addCursor:[64],getInteractionHandlers:[64],getBaseInteractionHandler:[64],getJwt:[64],load:[64],unload:[64],scene:[64],isSceneReady:[64]},[[0,"tap","handleTapEvent"]]]]],["p-89b66838",[[1,"vertex-viewer-measurement-details",{measurementModel:[16],measurementOverlays:[16],measurementOutcome:[1040],distanceUnits:[1,"distance-units"],angleUnits:[1,"angle-units"],fractionalDigits:[2,"fractional-digits"],distanceFormatter:[16],angleFormatter:[16],areaFormatter:[16],resultTypes:[16],overlay:[32],distanceMeasurementUnits:[32],angleMeasurementUnits:[32],areaMeasurementUnits:[32]}]]],["p-bcde5521",[[1,"vertex-viewer-measurement-distance",{start:[1040],startJson:[1,"start-json"],end:[1040],endJson:[1,"end-json"],distance:[1026],showAxisReferenceLines:[4,"show-axis-reference-lines"],snapDistance:[2,"snap-distance"],units:[1],fractionalDigits:[2,"fractional-digits"],labelFormatter:[16],anchorLabelOffset:[2,"anchor-label-offset"],lineCapLength:[2,"line-cap-length"],mode:[513],interactingAnchor:[1537,"interacting-anchor"],invalid:[1540],camera:[16],hitProvider:[16],indicatorPt:[1040],viewer:[16],measurementModel:[16],viewport:[32],elementBounds:[32],interactionCount:[32],internalCamera:[32],invalidateStateCounter:[32],stateMap:[32],measurementUnits:[32],computeElementMetrics:[64]}]]],["p-b043b076",[[1,"vertex-scene-tree-search",{debounce:[2],disabled:[4],placeholder:[1],value:[1025],focused:[32],setFocus:[64]}],[1,"vertex-scene-tree-table-layout",{tree:[16],controller:[16],rows:[16],totalRows:[2,"total-rows"],rowHeight:[1026,"row-height"],overScanCount:[2,"over-scan-count"],rowData:[16],layoutOffset:[1026,"layout-offset"],scrollOffset:[1026,"scroll-offset"],layoutHeight:[1026,"layout-height"],layoutWidth:[1026,"layout-width"],viewportStartIndex:[1026,"viewport-start-index"],viewportEndIndex:[1026,"viewport-end-index"],columnGridLayout:[32],columnGridFixedLayout:[32],hoveredNodeId:[32],isComputingCellHeight:[32],lastDividerPointerPosition:[32],resizingColumnIndex:[32],stateMap:[32],scrollToPosition:[64]}],[1,"vertex-scene-tree-toolbar"]]],["p-31658489",[[1,"vertex-viewer-toolbar",{placement:[1],direction:[1]}],[1,"vertex-viewer-button"],[1,"vertex-viewer-toolbar-group",{direction:[1]}]]],["p-
|
|
4
|
+
import{d as e,N as t,w as a,p as r,b as i}from"./p-cafa57a6.js";import{g as n}from"./p-7e0328aa.js";import"./p-112455b1.js";(()=>{const i=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),n={};return n.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((r,i)=>{const n=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[n]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const o=new Map;a[n]=t=>{const s=new URL(t,r).href;let l=o.get(s);if(!l){const t=e.createElement("script");t.type="module",t.crossOrigin=i.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${n}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{t.onload=()=>{e(a[n].m),t.remove()}})),o.set(s,l),e.head.appendChild(t)}return l}}})(n.resourcesUrl,i),a.customElements?r(n):__sc_import_viewer("./p-ac0761c3.js").then((()=>n))})().then((e=>(n(),i([["p-a455ae02",[[1,"vertex-viewer-default-toolbar",{viewer:[16],placement:[1],direction:[1],animationsDisabled:[4,"animations-disabled"],animationMs:[2,"animation-ms"]}]]],["p-73a5eacc",[[1,"vertex-scene-tree",{overScanCount:[2,"over-scan-count"],viewerSelector:[1,"viewer-selector"],viewer:[1040],rowData:[16],config:[16],configEnv:[1,"config-env"],controller:[1040],filterOnMetadata:[1028,"filter-on-metadata"],metadataKeys:[16],rows:[32],totalRows:[32],stateMap:[32],connectionErrorDetails:[32],attemptingRetry:[32],invalidateRows:[64],scrollToIndex:[64],scrollToItem:[64],expandAll:[64],collapseAll:[64],expandItem:[64],collapseItem:[64],toggleExpandItem:[64],toggleItemVisibility:[64],hideItem:[64],showItem:[64],selectItem:[64],deselectItem:[64],getRowAtIndex:[64],getRowForEvent:[64],getRowAtClientY:[64],filterItems:[64],fetchMetadataKeys:[64]},[[0,"search","handleSearch"]]]]],["p-0a189e62",[[1,"vertex-viewer-measurement-tool",{distanceTemplateId:[1,"distance-template-id"],tool:[1],units:[1],fractionalDigits:[2,"fractional-digits"],disabled:[4],viewer:[16],isMeasuring:[1540,"is-measuring"],snapDistance:[2,"snap-distance"],stateMap:[32]}]]],["p-1ca95f9a",[[1,"vertex-viewer-markup",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],selectedMarkupId:[1025,"selected-markup-id"],selectNew:[4,"select-new"],toSelectMarkupId:[32],pointerDownPosition:[32],addMarkup:[64],removeMarkup:[64],getMarkupElements:[64],getMarkupElement:[64]},[[0,"markupEnd","handleMarkupEnd"],[1,"pointerdown","handleMarkupPointerDown"]]]]],["p-41028d3b",[[1,"vertex-viewer-markup-tool",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],stateMap:[32],reset:[64]}]]],["p-f0411993",[[1,"vertex-viewer-measurements",{distanceTemplateId:[1,"distance-template-id"],tool:[1],units:[1],fractionalDigits:[2,"fractional-digits"],disabled:[4],viewer:[16],selectedMeasurementId:[1025,"selected-measurement-id"],snapDistance:[2,"snap-distance"],showAxisReferenceLines:[4,"show-axis-reference-lines"],measurementModel:[16],addMeasurement:[64],removeMeasurement:[64],getMeasurementElement:[64],getMeasurementElements:[64]},[[0,"measureEnd","handleMeasureEnd"],[1,"pointerdown","handleMeasurementPointerDown"]]]]],["p-858bd2c7",[[1,"vertex-viewer-view-cube",{xPositiveLabel:[1,"x-positive-label"],xNegativeLabel:[1,"x-negative-label"],yPositiveLabel:[1,"y-positive-label"],yNegativeLabel:[1,"y-negative-label"],zPositiveLabel:[1,"z-positive-label"],zNegativeLabel:[1,"z-negative-label"],standardViewsOff:[4,"standard-views-off"],animationDuration:[2,"animation-duration"],triadOff:[4,"triad-off"],worldOrientation:[1040],camera:[1040],viewer:[16],boxLength:[32],triadPosition:[32]}]]],["p-ebd55df7",[[1,"vertex-viewer-measurement-precise",{measurementModel:[16],measurementOverlays:[16],measurementController:[1040],measurableEntityTypes:[16],viewer:[16],configEnv:[1,"config-env"],config:[16],overlays:[32]}]]],["p-fec1a8d0",[[1,"vertex-scene-tree-table-cell",{node:[16],tree:[16],value:[1],placeholder:[1],hoveredNodeId:[1,"hovered-node-id"],expandToggle:[4,"expand-toggle"],visibilityToggle:[4,"visibility-toggle"],interactionsDisabled:[4,"interactions-disabled"],recurseParentSelectionDisabled:[4,"recurse-parent-selection-disabled"]}]]],["p-70ca1ea7",[[1,"vertex-scene-tree-table-column",{initialWidth:[2,"initial-width"],minWidth:[2,"min-width"],maxWidth:[2,"max-width"]}]]],["p-d2bcf788",[[1,"vertex-scene-tree-table-header"]]],["p-61b1097b",[[1,"vertex-scene-tree-table-resize-divider",{dragging:[32]}]]],["p-099fe6ca",[[1,"vertex-scene-tree-toolbar-group"]]],["p-5212dd2b",[[1,"vertex-viewer",{src:[1],clientId:[1,"client-id"],deviceId:[1,"device-id"],config:[1],configEnv:[1,"config-env"],resolvedConfig:[1040],cameraControls:[4,"camera-controls"],cameraType:[1,"camera-type"],keyboardControls:[4,"keyboard-controls"],rotateAroundTapPoint:[4,"rotate-around-tap-point"],token:[1025],depthBuffers:[1,"depth-buffers"],experimentalGhostingOpacity:[2,"experimental-ghosting-opacity"],featureLines:[16],featureHighlighting:[16],featureMaps:[1,"feature-maps"],selectionMaterial:[1,"selection-material"],resizeDebounce:[2,"resize-debounce"],frame:[1040],stream:[1040],stencilBuffer:[1040],viewport:[1040],dimensions:[32],hostDimensions:[32],errorMessage:[32],cursor:[32],stateMap:[32],dispatchFrameDrawn:[64],registerInteractionHandler:[64],registerTapKeyInteraction:[64],getInteractionTarget:[64],addCursor:[64],getInteractionHandlers:[64],getBaseInteractionHandler:[64],getJwt:[64],load:[64],unload:[64],scene:[64],isSceneReady:[64]},[[0,"tap","handleTapEvent"]]]]],["p-89b66838",[[1,"vertex-viewer-measurement-details",{measurementModel:[16],measurementOverlays:[16],measurementOutcome:[1040],distanceUnits:[1,"distance-units"],angleUnits:[1,"angle-units"],fractionalDigits:[2,"fractional-digits"],distanceFormatter:[16],angleFormatter:[16],areaFormatter:[16],resultTypes:[16],overlay:[32],distanceMeasurementUnits:[32],angleMeasurementUnits:[32],areaMeasurementUnits:[32]}]]],["p-bcde5521",[[1,"vertex-viewer-measurement-distance",{start:[1040],startJson:[1,"start-json"],end:[1040],endJson:[1,"end-json"],distance:[1026],showAxisReferenceLines:[4,"show-axis-reference-lines"],snapDistance:[2,"snap-distance"],units:[1],fractionalDigits:[2,"fractional-digits"],labelFormatter:[16],anchorLabelOffset:[2,"anchor-label-offset"],lineCapLength:[2,"line-cap-length"],mode:[513],interactingAnchor:[1537,"interacting-anchor"],invalid:[1540],camera:[16],hitProvider:[16],indicatorPt:[1040],viewer:[16],measurementModel:[16],viewport:[32],elementBounds:[32],interactionCount:[32],internalCamera:[32],invalidateStateCounter:[32],stateMap:[32],measurementUnits:[32],computeElementMetrics:[64]}]]],["p-b043b076",[[1,"vertex-scene-tree-search",{debounce:[2],disabled:[4],placeholder:[1],value:[1025],focused:[32],setFocus:[64]}],[1,"vertex-scene-tree-table-layout",{tree:[16],controller:[16],rows:[16],totalRows:[2,"total-rows"],rowHeight:[1026,"row-height"],overScanCount:[2,"over-scan-count"],rowData:[16],layoutOffset:[1026,"layout-offset"],scrollOffset:[1026,"scroll-offset"],layoutHeight:[1026,"layout-height"],layoutWidth:[1026,"layout-width"],viewportStartIndex:[1026,"viewport-start-index"],viewportEndIndex:[1026,"viewport-end-index"],columnGridLayout:[32],columnGridFixedLayout:[32],hoveredNodeId:[32],isComputingCellHeight:[32],lastDividerPointerPosition:[32],resizingColumnIndex:[32],stateMap:[32],scrollToPosition:[64]}],[1,"vertex-scene-tree-toolbar"]]],["p-31658489",[[1,"vertex-viewer-toolbar",{placement:[1],direction:[1]}],[1,"vertex-viewer-button"],[1,"vertex-viewer-toolbar-group",{direction:[1]}]]],["p-b0ac6b3c",[[1,"vertex-viewer-dom-element",{position:[1040],positionJson:[1,"position"],rotation:[1040],rotationJson:[1,"rotation"],quaternion:[1040],quaternionJson:[1,"quaternion"],scale:[1040],scaleJson:[1,"scale"],matrix:[1040],occlusionOff:[4,"occlusion-off"],occluded:[516],billboardOff:[4,"billboard-off"],interactionsOff:[516,"interactions-off"]}],[1,"vertex-viewer-dom-group",{position:[1040],positionJson:[1,"position"],rotation:[1040],rotationJson:[1,"rotation"],quaternion:[1040],quaternionJson:[1,"quaternion"],scale:[1040],scaleJson:[1,"scale"],matrix:[1040]}],[1,"vertex-viewer-dom-renderer",{drawMode:[1,"draw-mode"],viewer:[16],camera:[1040],depthBuffer:[1040],viewport:[32],invalidateFrameCounter:[32]},[[0,"propertyChange","handlePropertyChange"]]]]],["p-4717c98e",[[1,"vertex-viewer-icon",{name:[1],size:[1]}]]],["p-46459921",[[1,"vertex-viewer-layer",{stretchOff:[516,"stretch-off"]}]]],["p-d3a20af4",[[1,"vertex-viewer-markup-arrow",{start:[1040],startJson:[1,"start"],end:[1040],endJson:[1,"end"],mode:[513],viewer:[16],elementBounds:[32],editAnchor:[32],dispose:[64]}],[1,"vertex-viewer-markup-circle",{bounds:[1040],boundsJson:[1,"bounds"],mode:[513],viewer:[16],elementBounds:[32],startPosition:[32],editAnchor:[32],resizeBounds:[32],dispose:[64]}],[1,"vertex-viewer-markup-freeform",{points:[1040],pointsJson:[1,"points"],bounds:[1040],boundsJson:[1,"bounds"],mode:[513],viewer:[16],elementBounds:[32],resizeStartPosition:[32],editAnchor:[32],resizeBounds:[32],resizePoints:[32],screenPoints:[32],dispose:[64]}]]],["p-d9f99f4d",[[1,"vertex-viewer-measurement-overlays",{measurementOverlays:[16],camera:[1040],viewer:[16],overlays:[32]}],[1,"vertex-viewer-measurement-line",{start:[16],end:[16],capLength:[2,"cap-length"],pointerEvents:[1,"pointer-events"]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/viewer",
|
|
3
|
-
"version": "0.13.2-canary.
|
|
3
|
+
"version": "0.13.2-canary.7",
|
|
4
4
|
"description": "The Vertex SDK for viewing models.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@stencil/core": "^2.12.1",
|
|
50
50
|
"@types/classnames": "^2.3.1",
|
|
51
51
|
"@vertexvis/frame-streaming-protos": "^0.6.19",
|
|
52
|
-
"@vertexvis/geometry": "0.13.2-canary.
|
|
53
|
-
"@vertexvis/html-templates": "0.13.2-canary.
|
|
52
|
+
"@vertexvis/geometry": "0.13.2-canary.7",
|
|
53
|
+
"@vertexvis/html-templates": "0.13.2-canary.7",
|
|
54
54
|
"@vertexvis/scene-tree-protos": "^0.1.12",
|
|
55
55
|
"@vertexvis/scene-view-protos": "^0.1.8",
|
|
56
|
-
"@vertexvis/stream-api": "0.13.2-canary.
|
|
57
|
-
"@vertexvis/utils": "0.13.2-canary.
|
|
56
|
+
"@vertexvis/stream-api": "0.13.2-canary.7",
|
|
57
|
+
"@vertexvis/utils": "0.13.2-canary.7",
|
|
58
58
|
"@vertexvis/web-workers": "^0.1.0",
|
|
59
59
|
"camel-case": "^4.1.2",
|
|
60
60
|
"classnames": "^2.3.1",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@vertexvis/rollup-plugin-vertexvis-copyright": "^0.4.1",
|
|
80
80
|
"@vertexvis/rollup-plugin-web-workers": "^0.1.0",
|
|
81
81
|
"@vertexvis/typescript-config-vertexvis": "1.1.0",
|
|
82
|
-
"@vertexwebsdk/build": "0.13.2-canary.
|
|
82
|
+
"@vertexwebsdk/build": "0.13.2-canary.7",
|
|
83
83
|
"abortcontroller-polyfill": "^1.7.3",
|
|
84
84
|
"chance": "^1.1.8",
|
|
85
85
|
"eslint": "^8.6.0",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"typedoc": "^0.22.10",
|
|
95
95
|
"typescript": "^4.5.4"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "e54e07ff42889270cdd42f4d9c3187916115446b"
|
|
98
98
|
}
|