@realsee/dnalogel 2.0.0-alpha.16 → 2.0.0-alpha.19
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/CHANGELOG.md +13 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -2
- package/dist/CameraMovementPlugin/index.js +15 -40
- package/dist/CameraMovementPlugin/typing.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/index.js +3 -28
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/index.js +8 -33
- package/dist/ModelItemLabelPlugin/events.type.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/index.js +8 -8
- package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/index.js +6 -6
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/index.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/index.js +3 -28
- package/dist/PanoCompassPlugin/index.js +53 -86
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.js +1 -21
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/PanoRulerPlugin/index.d.ts +1 -1
- package/dist/PanoRulerPlugin/index.js +3 -28
- package/dist/PanoSpatialTagPlugin/index.js +11 -11
- package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/index.js +1266 -1298
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +81 -204
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +1257 -1250
- package/dist/floorplan/utils/formatPosition.d.ts +1 -1
- package/dist/index.es.js +1480 -1507
- package/dist/index.js +1477 -1504
- package/dist/index.umd.js +1477 -1504
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/dist/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +19 -1
- package/docs/modules.html +12 -12
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
- package/libs/CameraMovementPlugin/index.js +15 -24
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ModelChassisCompassPlugin/index.js +3 -12
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/libs/ModelEntryDoorGuidePlugin/index.js +8 -17
- package/libs/ModelItemLabelPlugin/events.type.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.js +3 -12
- package/libs/ModelTVVideoPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/index.js +49 -64
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/libs/PanoMeasurePlugin/Model/line.js +1 -1
- package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +1 -0
- package/libs/PanoRulerPlugin/index.d.ts +1 -1
- package/libs/PanoRulerPlugin/index.js +3 -12
- package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Camera.js +2 -2
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Compass.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components/CurrentFloor → Components}/CurrentFloor.js +73 -80
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Main.js +186 -105
- package/libs/floorplan/Components/RoomHighlight/Room.js +5 -7
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +24 -116
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabel.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabels.js +2 -2
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +26 -22
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RuleLabels/RuleLabels.js +82 -32
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +34 -43
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +22 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -12
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +80 -54
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
- package/libs/floorplan/utils/formatData.js +28 -43
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +2 -2
- package/libs/shared-utils/five/changeMode.js +12 -23
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.js +9 -20
- package/libs/shared-utils/three/loadTexture.js +6 -17
- package/libs/shared-utils/to.js +10 -21
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +3 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
|
@@ -29,31 +29,6 @@ function _interopNamespace(e) {
|
|
|
29
29
|
var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
|
|
30
30
|
var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
|
|
31
31
|
|
|
32
|
-
/*! *****************************************************************************
|
|
33
|
-
Copyright (c) Microsoft Corporation.
|
|
34
|
-
|
|
35
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
36
|
-
purpose with or without fee is hereby granted.
|
|
37
|
-
|
|
38
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
39
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
40
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
41
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
42
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
43
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
44
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
45
|
-
***************************************************************************** */
|
|
46
|
-
|
|
47
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
48
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
49
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
50
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
51
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
52
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
53
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
32
|
const roomInfoIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aRAAiudVixVKnINAaAiGS1nok9WkFAUJb8Upa6Y3Uo2kEQiRNd08qd0YEQiJnBD+37guBEElf/ZXang6BEMnpsM6dOkcgRNJ5B66x+nrjLmsTX1J6bSJHZ7+o9HklynWaOse1eKcc+XVlvxYFEnlfaThWfb7mcsn5nPRM6WmVU55KfO+J0mdKj8f5rVu3skNMoET6RSBE0m/fdVNzGWII4StKXy65y18t58aEAVGcUjDkGHsLhIOYfCC1xUT4QDJjgnmkc58qkT8saSiLeCCkSBBoBoEQSTNd0V9FZADRH8iAGfvXS06Zc5CFCePQt0y3EFaq61CX1ayjC56U8br24sKd+kAuJhkI55OSPi75pyIcvKNIEFgcgRDJ4hD3ewMZLDwDXqfOq9RNFCYOCAMPYx851BDjIXiWzky9Tpyvw0kOL/nc+Jh7DyGqko+P+cznVLwMf31Uypz7jZLJ0GEy8jqURnl8zPjyObDEsxknztsDUnFvMfF8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BALF9uKdYHunnkthwo7tfXQqQjmYSNQImBACIU2xIuGreB8CIdIvAtJzNogMosHI4mYkCDSHgPTUXspU2ItoEIvzEArlxWRvIlGFWTSnsnWF+b1dKAhk8QrrHpEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC';
|
|
58
33
|
|
|
59
34
|
function getRoomInfoInstance() {
|
|
@@ -105,14 +80,12 @@ function getRoomInfoInstance() {
|
|
|
105
80
|
}
|
|
106
81
|
|
|
107
82
|
const textureLoader = new THREE__namespace.TextureLoader();
|
|
108
|
-
function loadTexture(url) {
|
|
109
|
-
return
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return texture;
|
|
115
|
-
});
|
|
83
|
+
async function loadTexture(url) {
|
|
84
|
+
return new Promise((resolve, reject) => {
|
|
85
|
+
textureLoader.load(url, resolve, undefined, reject);
|
|
86
|
+
}).then((texture) => {
|
|
87
|
+
texture.encoding = THREE__namespace.sRGBEncoding;
|
|
88
|
+
return texture;
|
|
116
89
|
});
|
|
117
90
|
}
|
|
118
91
|
|
|
@@ -591,65 +564,59 @@ class PanoCompassController {
|
|
|
591
564
|
if (this.modelLoaded)
|
|
592
565
|
this.init();
|
|
593
566
|
}
|
|
594
|
-
init() {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
this.five.needsRender = true;
|
|
616
|
-
});
|
|
567
|
+
async init() {
|
|
568
|
+
if (!this.data || !this.modelLoaded)
|
|
569
|
+
return;
|
|
570
|
+
const northRad = this.data.north_rad;
|
|
571
|
+
if (northRad != null) {
|
|
572
|
+
this.compassMesh = await this.loadCompassMesh();
|
|
573
|
+
this.compassMesh.rotateX(-Math.PI / 2);
|
|
574
|
+
this.compassMesh.rotateZ(northRad - Math.PI / 2);
|
|
575
|
+
this.group.add(this.compassMesh);
|
|
576
|
+
}
|
|
577
|
+
if (this.data.entrance != null) {
|
|
578
|
+
this.entryDoorMesh = await this.loadEntryDoorMesh();
|
|
579
|
+
this.roomInfoWrapperInstance = this.loadRoomInfo();
|
|
580
|
+
this.roomInfoInstance = getRoomInfoInstance();
|
|
581
|
+
this.entryDoorMesh.rotateX(-Math.PI / 2);
|
|
582
|
+
if (this.roomInfoWrapperInstance)
|
|
583
|
+
this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container);
|
|
584
|
+
this.group.add(this.entryDoorMesh);
|
|
585
|
+
}
|
|
586
|
+
this.onFivePanoArrived(this.five.panoIndex || 0);
|
|
587
|
+
this.five.needsRender = true;
|
|
617
588
|
}
|
|
618
|
-
loadCompassMesh() {
|
|
589
|
+
async loadCompassMesh() {
|
|
619
590
|
var _a;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
depthTest: false,
|
|
630
|
-
});
|
|
631
|
-
const compassMesh = new THREE__namespace.Mesh(compassGeometry, compassMaterial);
|
|
632
|
-
compassMesh.name = 'pano-compass-mesh';
|
|
633
|
-
return compassMesh;
|
|
591
|
+
const compassImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.compassImageUrl) ||
|
|
592
|
+
'//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png';
|
|
593
|
+
const compassTexture = await loadTexture(compassImageUrl);
|
|
594
|
+
const compassGeometry = new THREE__namespace.CircleGeometry(0.7, 32);
|
|
595
|
+
const compassMaterial = new THREE__namespace.MeshBasicMaterial({
|
|
596
|
+
map: compassTexture,
|
|
597
|
+
transparent: true,
|
|
598
|
+
opacity: 0,
|
|
599
|
+
depthTest: false,
|
|
634
600
|
});
|
|
601
|
+
const compassMesh = new THREE__namespace.Mesh(compassGeometry, compassMaterial);
|
|
602
|
+
compassMesh.name = 'pano-compass-mesh';
|
|
603
|
+
return compassMesh;
|
|
635
604
|
}
|
|
636
|
-
loadEntryDoorMesh() {
|
|
605
|
+
async loadEntryDoorMesh() {
|
|
637
606
|
var _a;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
depthTest: false,
|
|
648
|
-
});
|
|
649
|
-
const entryDoorMesh = new THREE__namespace.Mesh(entryDoorGeometry, entryDoorMaterial);
|
|
650
|
-
entryDoorMesh.name = 'pano-compass-entry-door';
|
|
651
|
-
return entryDoorMesh;
|
|
607
|
+
const entryDoorImageUrl = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.entryDoorImageUrl) ||
|
|
608
|
+
'//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png';
|
|
609
|
+
const entryDoorTexture = await loadTexture(entryDoorImageUrl);
|
|
610
|
+
const entryDoorGeometry = new THREE__namespace.PlaneGeometry(0.2, 0.16);
|
|
611
|
+
const entryDoorMaterial = new THREE__namespace.MeshBasicMaterial({
|
|
612
|
+
map: entryDoorTexture,
|
|
613
|
+
transparent: true,
|
|
614
|
+
opacity: 0.8,
|
|
615
|
+
depthTest: false,
|
|
652
616
|
});
|
|
617
|
+
const entryDoorMesh = new THREE__namespace.Mesh(entryDoorGeometry, entryDoorMaterial);
|
|
618
|
+
entryDoorMesh.name = 'pano-compass-entry-door';
|
|
619
|
+
return entryDoorMesh;
|
|
653
620
|
}
|
|
654
621
|
loadRoomInfo() {
|
|
655
622
|
const points = [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Line from '../Model/line';
|
|
2
|
-
import Magnifier from '../Modules/Magnifier';
|
|
3
|
-
import FiveHelper from '../Modules/FiveHelper';
|
|
4
|
-
import { Group } from 'three';
|
|
5
|
-
import { Model } from '../Model';
|
|
6
|
-
import { PluginEvent } from '../typings/event.type';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import type Line from '../Model/line';
|
|
2
|
+
import type Magnifier from '../Modules/Magnifier';
|
|
3
|
+
import type FiveHelper from '../Modules/FiveHelper';
|
|
4
|
+
import type { Group } from 'three';
|
|
5
|
+
import type { Model } from '../Model';
|
|
6
|
+
import type { PluginEvent } from '../typings/event.type';
|
|
7
|
+
import type { UserDistanceItem } from '../utils/distanceDom';
|
|
8
|
+
import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
|
|
9
9
|
export interface IControllerParams {
|
|
10
10
|
five: Five;
|
|
11
11
|
group: Group;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { LineJson } from '../typings/data';
|
|
1
2
|
import { Model } from '../Model';
|
|
2
3
|
import Line from '../Model/line';
|
|
3
|
-
import { LineJson } from '../typings/data';
|
|
4
4
|
import BaseController, { IControllerParams } from './BaseController';
|
|
5
5
|
export interface EditEvent {
|
|
6
6
|
editedLineChange: (lines: LineJson[]) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PluginData } from '../typings/data';
|
|
1
|
+
import type { PluginData } from '../typings/data';
|
|
2
|
+
import type { PluginEvent } from '../typings/event.type';
|
|
3
|
+
import type { UserDistanceItem } from '../utils/distanceDom';
|
|
2
4
|
import { Five, Subscribe } from '@realsee/five';
|
|
3
|
-
import { PluginEvent } from '../typings/event.type';
|
|
4
|
-
import { UserDistanceItem } from '../utils/distanceDom';
|
|
5
5
|
export declare type Mode = 'Watch' | 'Edit';
|
|
6
6
|
export interface MeasurePluginParameter {
|
|
7
7
|
useUIController?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { PluginData } from '../typings/data';
|
|
2
|
+
import type { UserDistanceItem } from '../utils/distanceDom';
|
|
1
3
|
import Line from './line';
|
|
2
4
|
import Point from './point';
|
|
3
5
|
import { Subscribe, SubscribeEventMap } from '@realsee/five';
|
|
4
|
-
import { PluginData } from '../typings/data';
|
|
5
6
|
import { Polyline } from './polyline';
|
|
6
|
-
import { UserDistanceItem } from '../utils/distanceDom';
|
|
7
7
|
interface IModelEvent extends SubscribeEventMap {
|
|
8
8
|
/** 新增线条
|
|
9
9
|
* @param line 被创建的线条
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Model } from '.';
|
|
2
|
-
import Point from './point';
|
|
3
|
-
import { LineJson } from '..';
|
|
1
|
+
import type { Model } from '.';
|
|
2
|
+
import type Point from './point';
|
|
3
|
+
import type { LineJson } from '..';
|
|
4
|
+
import type { LineCompletelyJson } from '../typings/data';
|
|
5
|
+
import type { Line as FiveLine } from '@realsee/five/line';
|
|
4
6
|
import { Polyline } from './polyline';
|
|
5
|
-
import { LineCompletelyJson } from '../typings/data';
|
|
6
|
-
import { Line as FiveLine } from '@realsee/five/line';
|
|
7
7
|
import { Subscribe, SubscribeEventMap } from '@realsee/five';
|
|
8
8
|
import { DistanceItem } from '../utils/distanceDom';
|
|
9
9
|
export interface ILineHook extends SubscribeEventMap {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Line from './line';
|
|
1
|
+
import type Line from './line';
|
|
2
|
+
import type { PluginData } from '../typings/data';
|
|
2
3
|
import { Vector3 } from 'three';
|
|
3
|
-
import { PluginData } from '../typings/data';
|
|
4
4
|
declare type IPointData = PluginData['points'][0];
|
|
5
5
|
export default class Point {
|
|
6
6
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Line from './line';
|
|
2
|
-
import Point from './point';
|
|
3
|
-
import { PolylineJson, PolylineCompletelyJson } from '../typings/data';
|
|
1
|
+
import type Line from './line';
|
|
2
|
+
import type Point from './point';
|
|
3
|
+
import type { PolylineJson, PolylineCompletelyJson } from '../typings/data';
|
|
4
4
|
export declare class Polyline {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
points: Point[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FivePlugin } from '@realsee/five';
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import MeasureController, { MeasurePluginParameter } from './Controller';
|
|
3
3
|
declare const PanoMeasurePlugin: FivePlugin<MeasurePluginParameter, PluginReturns>;
|
|
4
4
|
export default PanoMeasurePlugin;
|
|
@@ -7,21 +7,6 @@ var TWEEN = require('@tweenjs/tween.js');
|
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
10
|
-
function _mergeNamespaces(n, m) {
|
|
11
|
-
m.forEach(function (e) {
|
|
12
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default' && !(k in n)) {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
10
|
var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
|
|
26
11
|
|
|
27
12
|
/** 交换数组元素 */
|
|
@@ -2875,11 +2860,6 @@ if (typeof undefined$1 === 'function' && undefined$1.amd) {
|
|
|
2875
2860
|
|
|
2876
2861
|
var Hammer = hammer.exports;
|
|
2877
2862
|
|
|
2878
|
-
var Hammer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/_mergeNamespaces({
|
|
2879
|
-
__proto__: null,
|
|
2880
|
-
'default': Hammer
|
|
2881
|
-
}, [hammer.exports]));
|
|
2882
|
-
|
|
2883
2863
|
// uuid
|
|
2884
2864
|
function S4() {
|
|
2885
2865
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
@@ -3894,7 +3874,7 @@ class EditController extends BaseController {
|
|
|
3894
3874
|
const fiveElement = this.five.getElement();
|
|
3895
3875
|
if (fiveElement) {
|
|
3896
3876
|
this.fiveElement = fiveElement;
|
|
3897
|
-
const hammer = new Hammer
|
|
3877
|
+
const hammer = new Hammer(fiveElement);
|
|
3898
3878
|
this.hammer = hammer;
|
|
3899
3879
|
hammer.on('tap', this.onTap);
|
|
3900
3880
|
hammer.on('pan', this.onPan);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SubscribeEventMap } from '@realsee/five';
|
|
2
|
-
import { Vector3 } from 'three';
|
|
3
|
-
import { Mode } from '../Controller';
|
|
4
|
-
import { LineCompletelyJson } from './data';
|
|
1
|
+
import type { SubscribeEventMap } from '@realsee/five';
|
|
2
|
+
import type { Vector3 } from 'three';
|
|
3
|
+
import type { Mode } from '../Controller';
|
|
4
|
+
import type { LineCompletelyJson } from './data';
|
|
5
5
|
interface ControllerEvent extends SubscribeEventMap {
|
|
6
6
|
/**
|
|
7
7
|
* Mode 变更
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Group } from 'three';
|
|
1
|
+
import type { Group } from 'three';
|
|
2
2
|
export default function clearGroup(group: Group): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Line from '../Model/line';
|
|
2
|
-
import { Five } from '@realsee/five';
|
|
1
|
+
import type Line from '../Model/line';
|
|
2
|
+
import type { Five } from '@realsee/five';
|
|
3
|
+
import type { LineCompletelyJson, PolylineCompletelyJson } from '../typings/data';
|
|
3
4
|
import { Vector3 } from 'three';
|
|
4
|
-
import { LineCompletelyJson, PolylineCompletelyJson } from '../typings/data';
|
|
5
5
|
export declare type DistanceItem = ReturnType<typeof creatDistanceItem>;
|
|
6
6
|
export interface UserDistanceItem {
|
|
7
7
|
element: Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Line from '../Model/line';
|
|
1
|
+
import type Line from '../Model/line';
|
|
2
2
|
export declare function findAssociatedLines(line: Line): Line[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Vector2 } from 'three';
|
|
2
|
-
import Point from '../Model/point';
|
|
3
|
-
import { Five } from '@realsee/five';
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
import type Point from '../Model/point';
|
|
3
|
+
import type { Five } from '@realsee/five';
|
|
4
4
|
/**
|
|
5
5
|
* @param tapPoint 注意这里的坐标是相对于 FiveElement 的
|
|
6
6
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Hammer from 'hammerjs';
|
|
2
|
-
import { Five, Intersection } from '@realsee/five';
|
|
1
|
+
import type Hammer from 'hammerjs';
|
|
2
|
+
import type { Five, Intersection } from '@realsee/five';
|
|
3
3
|
/** 通过鼠标事件或者触摸事件,获取当前点击屏幕关联的射线与模型的交点 */
|
|
4
4
|
export declare function getIntersectionFromEvent(five: Five, event: typeof Hammer['Input']): Intersection[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Vector3 } from 'three';
|
|
1
|
+
import type { Vector3 } from 'three';
|
|
2
2
|
export default function isNDCPointInScreen(ndcPoint: Vector3): boolean;
|
|
@@ -5,31 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var five = require('@realsee/five');
|
|
6
6
|
var three = require('three');
|
|
7
7
|
|
|
8
|
-
/*! *****************************************************************************
|
|
9
|
-
Copyright (c) Microsoft Corporation.
|
|
10
|
-
|
|
11
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
12
|
-
purpose with or without fee is hereby granted.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
15
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
16
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
17
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
18
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
19
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
-
***************************************************************************** */
|
|
22
|
-
|
|
23
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
24
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
25
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
26
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
27
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
28
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
29
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
8
|
/**
|
|
34
9
|
* 平面几何相关数学函数
|
|
35
10
|
*/
|
|
@@ -401,7 +376,7 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
401
376
|
state.loaded = true;
|
|
402
377
|
return true;
|
|
403
378
|
};
|
|
404
|
-
const load = (_roomInfo, _roomRules, options) =>
|
|
379
|
+
const load = async (_roomInfo, _roomRules, options) => {
|
|
405
380
|
const roomInfo = _roomInfo || params.roomInfo;
|
|
406
381
|
const roomRules = _roomRules || params.roomRules;
|
|
407
382
|
if (!roomInfo || !roomRules) {
|
|
@@ -412,9 +387,9 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
412
387
|
return _load(roomInfo, roomRules);
|
|
413
388
|
}
|
|
414
389
|
else {
|
|
415
|
-
return
|
|
390
|
+
return await new Promise((resolve) => five$1.once('modelLoaded', () => resolve(_load(roomInfo, roomRules))));
|
|
416
391
|
}
|
|
417
|
-
}
|
|
392
|
+
};
|
|
418
393
|
if (params.roomInfo && params.roomRules) {
|
|
419
394
|
load(params.roomInfo, params.roomRules);
|
|
420
395
|
}
|