@realsee/dnalogel 2.0.0-alpha.1 → 2.0.0-alpha.12
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 +41 -0
- package/README.md +45 -5
- package/TERMS.txt +56 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.js +231 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.js +142 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/index.js +678 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +55 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/index.js +463 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelViewPlugin/index.d.ts +17 -0
- package/dist/ModelViewPlugin/index.js +187 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +51 -0
- package/dist/PanoCompassPlugin/index.js +521 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoCursorRaycasterPlugin/index.js +88 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/dist/PanoMeasurePlugin/index.d.ts +7 -0
- package/dist/PanoMeasurePlugin/index.js +4789 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/index.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.js +610 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +33 -0
- package/dist/PanoSpatialTagPlugin/index.js +1259 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +105 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +3842 -0
- package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +62 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3481 -0
- package/dist/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/typings/floorplanData.d.ts +137 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +131 -0
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.es.js +13572 -0
- package/dist/index.js +13613 -0
- package/dist/index.umd.js +13606 -0
- package/dist/shared-utils/Preloader.d.ts +6 -0
- package/dist/shared-utils/Subscribe.d.ts +45 -0
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/dist/shared-utils/animationFrame/index.d.ts +15 -0
- package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/dist/shared-utils/createLine/index.d.ts +3 -0
- package/dist/shared-utils/debounce.d.ts +6 -0
- package/dist/shared-utils/equal.d.ts +11 -0
- package/dist/shared-utils/filter.d.ts +27 -0
- package/dist/shared-utils/five/changeMode.d.ts +2 -0
- package/dist/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/dist/shared-utils/formatRad.d.ts +7 -0
- package/dist/shared-utils/getPxmm.d.ts +11 -0
- package/dist/shared-utils/getRandomColor.d.ts +1 -0
- package/dist/shared-utils/isNil.d.ts +10 -0
- package/dist/shared-utils/isTruelyObject.d.ts +18 -0
- package/dist/shared-utils/math/evenNumber.d.ts +3 -0
- package/dist/shared-utils/math/planimetry.d.ts +116 -0
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/nextFrame.d.ts +1 -0
- package/dist/shared-utils/noop.d.ts +5 -0
- package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/dist/shared-utils/px2rem.d.ts +1 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/dist/shared-utils/tap.d.ts +8 -0
- package/dist/shared-utils/three/centerPoint.d.ts +2 -0
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/dist/shared-utils/three/loadFbxObj.d.ts +2 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/dist/shared-utils/throttle.d.ts +7 -0
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/dist/shared-utils/to.d.ts +8 -0
- package/dist/shared-utils/useDebounce.d.ts +8 -0
- package/dist/shared-utils/useThrottle.d.ts +8 -0
- package/dist/shared-utils/uuid.d.ts +4 -0
- package/dist/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/dist/typings/math.type.d.ts +44 -0
- package/dist/typings/utils.type.d.ts +2 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1413 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/ModelRoomLabelController.html +20 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -0
- package/docs/enums/ModelFloorplanErrorType.html +1 -0
- package/docs/index.html +43 -0
- package/docs/interfaces/LineJson.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -0
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -0
- package/docs/interfaces/ModelFloorplanViewEvent.html +5 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
- package/docs/interfaces/PanoCompassPluginData.html +1 -0
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
- package/docs/interfaces/PointJson.html +1 -0
- package/docs/interfaces/RoomLabel.html +13 -0
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/modules.html +28 -0
- package/libs/CSS3DRenderPlugin/index.js +11 -13
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +420 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
- package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/index.js +170 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +55 -0
- package/libs/ModelItemLabelPlugin/typings.js +6 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.js +7 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +2 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
- package/libs/ModelViewPlugin/index.js +6 -6
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +48 -0
- package/libs/PanoCompassPlugin/index.d.ts +51 -0
- package/libs/PanoCompassPlugin/index.js +171 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +69 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +216 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +44 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +223 -0
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +176 -0
- package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/libs/PanoMeasurePlugin/Model/index.js +114 -0
- package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/libs/PanoMeasurePlugin/Model/line.js +64 -0
- package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/point.js +28 -0
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +48 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +15 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +108 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +33 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +75 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +117 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +102 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +35 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +69 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +78 -0
- package/libs/PanoMeasurePlugin/index.d.ts +7 -0
- package/libs/PanoMeasurePlugin/index.js +5 -0
- package/libs/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +3 -0
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/constants.js +31 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +114 -0
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +21 -0
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +27 -0
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +14 -0
- package/libs/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -0
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +6 -0
- package/libs/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/libs/PanoMeasurePlugin/utils/line.js +32 -0
- package/libs/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/libs/PanoMeasurePlugin/utils/math.js +44 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +6 -0
- package/libs/PanoRulerPlugin/index.d.ts +31 -0
- package/libs/PanoRulerPlugin/index.js +398 -0
- package/libs/PanoRulerPlugin/style.d.ts +2 -0
- package/libs/PanoRulerPlugin/style.js +88 -0
- package/libs/PanoRulerPlugin/typings.d.ts +21 -0
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
- package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
- package/libs/PanoSpatialTagPlugin/index.d.ts +33 -0
- package/libs/PanoSpatialTagPlugin/index.js +411 -0
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +2 -0
- package/libs/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/style.js +8 -0
- package/libs/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/floorplan/Components/BaseImage.js +217 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +70 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +289 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +328 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
- package/libs/floorplan/Components/SvgImage.js +83 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +120 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +114 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +463 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +383 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +171 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +265 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +301 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +219 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +248 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +3 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +7 -5
- package/libs/floorplan/constant.d.ts +5 -0
- package/libs/floorplan/constant.js +6 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +4 -0
- package/libs/index.d.ts +19 -9
- package/libs/index.js +11 -3
- package/libs/shared-utils/getPxmm.d.ts +6 -1
- package/libs/shared-utils/getPxmm.js +26 -12
- package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
- package/libs/shared-utils/tinyEJSrender.js +180 -0
- package/package.json +23 -13
- package/dist/dnalogel.es.js +0 -37145
- package/dist/dnalogel.umd.js +0 -2
- package/dist/style.css +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +0 -63
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +0 -80
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +0 -1
- package/libs/floorplan/Components/BaseImage.svelte +0 -25
- package/libs/floorplan/Components/BaseImage.svelte.map +0 -1
- package/libs/floorplan/Components/Normalmage.svelte +0 -11
- package/libs/floorplan/Components/Normalmage.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/Room.svelte +0 -21
- package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +0 -60
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +0 -35
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +0 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +0 -16
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +0 -17
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +0 -1
- package/libs/floorplan/Components/SvgImage.svelte +0 -25
- package/libs/floorplan/Components/SvgImage.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +0 -46
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +0 -48
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -37
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +0 -50
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +0 -41
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +0 -25
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +0 -148
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +0 -15
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +0 -84
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -18
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +0 -40
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +0 -61
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Line as FiveLine } from '@realsee/five/line';
|
|
2
|
+
import { lightLineOpts, normalLineOpts } from './constants';
|
|
3
|
+
import { Color } from 'three';
|
|
4
|
+
export function creatLine(start, end, opts) {
|
|
5
|
+
const lineWidth = opts?.lineWidth ?? 2;
|
|
6
|
+
const lineColor = opts?.lineColor ?? new Color(0xffffff);
|
|
7
|
+
const pointSize = opts?.pointSize ?? 5;
|
|
8
|
+
const lineRenderOrder = opts?.lineRenderOrder ?? 10;
|
|
9
|
+
const pointsRenderOrder = opts?.lineRenderOrder ?? 20;
|
|
10
|
+
const line = new FiveLine(start, end);
|
|
11
|
+
// set line
|
|
12
|
+
line.setMaterial({ linewidth: lineWidth, color: lineColor });
|
|
13
|
+
line.line.material.depthTest = false;
|
|
14
|
+
line.line.material.transparent = true;
|
|
15
|
+
line.line.renderOrder = lineRenderOrder;
|
|
16
|
+
// set point
|
|
17
|
+
line.points.renderOrder = pointsRenderOrder;
|
|
18
|
+
const pointMaterial = line.points.material;
|
|
19
|
+
pointMaterial.depthTest = false;
|
|
20
|
+
pointMaterial.size = pointSize;
|
|
21
|
+
opts?.pointColor && pointMaterial.color.set(opts.pointColor).convertSRGBToLinear();
|
|
22
|
+
if (opts?.pointTexture)
|
|
23
|
+
pointMaterial.map = opts.pointTexture;
|
|
24
|
+
return line;
|
|
25
|
+
}
|
|
26
|
+
export function creatLineMesh(line, type) {
|
|
27
|
+
const [point, anotherPoint] = line.points;
|
|
28
|
+
const opts = type === 'light' ? lightLineOpts : normalLineOpts;
|
|
29
|
+
const fiveLine = creatLine(point.position, anotherPoint.position, opts);
|
|
30
|
+
fiveLine.name = 'normalLine_' + line.id;
|
|
31
|
+
return fiveLine;
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Vector2 } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* 获取一点对于线段上最近的一点,
|
|
4
|
+
* 如果可以是过直线垂线的垂足,不行的话取线段的两端
|
|
5
|
+
* @param point
|
|
6
|
+
* @param linePoints
|
|
7
|
+
* @return
|
|
8
|
+
*/
|
|
9
|
+
export declare function closestPointOnLine(point: Vector2, linePoints: Vector2[]): Vector2;
|
|
10
|
+
/**
|
|
11
|
+
* 检查两个点是否位置相同
|
|
12
|
+
* point: { x: number, y: number }
|
|
13
|
+
* @param point1
|
|
14
|
+
* @param point2
|
|
15
|
+
* @return
|
|
16
|
+
*/
|
|
17
|
+
export declare function samePointAt(point1: Vector2, point2: Vector2): boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Vector2 } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* 获取一点对于线段上最近的一点,
|
|
4
|
+
* 如果可以是过直线垂线的垂足,不行的话取线段的两端
|
|
5
|
+
* @param point
|
|
6
|
+
* @param linePoints
|
|
7
|
+
* @return
|
|
8
|
+
*/
|
|
9
|
+
export function closestPointOnLine(point, linePoints) {
|
|
10
|
+
const tA = point.x - linePoints[0].x;
|
|
11
|
+
const tB = point.y - linePoints[0].y;
|
|
12
|
+
const tC = linePoints[1].x - linePoints[0].x;
|
|
13
|
+
const tD = linePoints[1].y - linePoints[0].y;
|
|
14
|
+
// 设线段为 AB 线段,线段外一点为 P
|
|
15
|
+
// tDot = AP 向量与 AB 向量乘积,tLenSq 为 |AB|平方。
|
|
16
|
+
// tParam 是 AP 向量在 AB 向量投影向量 AC 与 AB 向量的比。
|
|
17
|
+
const tDot = tA * tC + tB * tD;
|
|
18
|
+
const tLenSq = tC * tC + tD * tD;
|
|
19
|
+
const tParam = tDot / tLenSq;
|
|
20
|
+
let tXx, tYy;
|
|
21
|
+
if (tParam < 0 || samePointAt(linePoints[0], linePoints[1])) {
|
|
22
|
+
tXx = linePoints[0].x;
|
|
23
|
+
tYy = linePoints[0].y;
|
|
24
|
+
}
|
|
25
|
+
else if (tParam > 1) {
|
|
26
|
+
tXx = linePoints[1].x;
|
|
27
|
+
tYy = linePoints[1].y;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
tXx = linePoints[0].x + tParam * tC;
|
|
31
|
+
tYy = linePoints[0].y + tParam * tD;
|
|
32
|
+
}
|
|
33
|
+
return new Vector2(tXx, tYy);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 检查两个点是否位置相同
|
|
37
|
+
* point: { x: number, y: number }
|
|
38
|
+
* @param point1
|
|
39
|
+
* @param point2
|
|
40
|
+
* @return
|
|
41
|
+
*/
|
|
42
|
+
export function samePointAt(point1, point2) {
|
|
43
|
+
return point1.x === point2.x && point1.y === point2.y;
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CurvePath, DoubleSide, Group, LineCurve3, Mesh, MeshBasicMaterial, PlaneGeometry, SphereGeometry, sRGBEncoding, TextureLoader, TubeGeometry, Vector3, } from 'three';
|
|
2
|
+
const planTextureUrl = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjoAAAI6CAMAAAAZlhLyAAACB1BMVEUAAAD+/v6qqqqgoKCLi4t7e3u4uLhvb29MTExZWVlCQkJgYGBqamo4ODi9vb3///9FRUXPz887Ozv///9QUFBWVlZdXV38/Pzj4+Pn5+f8/Pz5+fn9/f329vZoaGje3t78/Pz////x8fH8/Pzs7OyBgYHd3d39/f319fX+/v79/f2Kior6+vr////+/v76+vr+/v7////8/Pz9/f3+/v7m5ub7+/v+/v7+/v7j4+P////+/v79/f3d3d3h4eH4+Pj+/v79/f12dnbc3Nz9/f3w8PD9/f34+Pj9/f3+/v5jY2P8/Pz9/f2ioqJubm7v7+/+/v76+vr5+fnv7+/09PSDg4P////t7e3+/v7+/v7+/v7///+ZmZl7e3v7+/vy8vL+/v7+/v7p6en19fX////s7Oz+/v6lpaX+/v7r6+vg4OD9/f3q6ur///////+UlJTt7e329vbz8/Pg4OD///+wsLCdnZ2QkJDe3t77+/vz8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W4YO0CrMM56/AU3y7AOtxkmr61gKypsQ5501HPOQKyynGUYh3ySheQVZZSFuuQt3QB1uGcdXiKvY6z7wFpe4R1/vsBKXObiM3QZ5oAAAAASUVORK5CYII=`;
|
|
3
|
+
export function getMouseGroup() {
|
|
4
|
+
const group = new Group();
|
|
5
|
+
const planGeometry = new PlaneGeometry(0.3, 0.3);
|
|
6
|
+
const planTexture = new TextureLoader().load(planTextureUrl);
|
|
7
|
+
planTexture.encoding = sRGBEncoding;
|
|
8
|
+
const planMaterial = new MeshBasicMaterial({ map: planTexture, transparent: true, depthTest: false });
|
|
9
|
+
const planMesh = new Mesh(planGeometry, planMaterial);
|
|
10
|
+
const zPath = new CurvePath();
|
|
11
|
+
zPath.add(new LineCurve3(new Vector3(0, 0, 0), new Vector3(0, 0, 0.1)));
|
|
12
|
+
const zGeometry = new TubeGeometry(zPath, 10, 0.005);
|
|
13
|
+
const zMaterial = new MeshBasicMaterial({ color: 0x33f1ef, depthTest: false, side: DoubleSide });
|
|
14
|
+
const zMesh = new Mesh(zGeometry, zMaterial);
|
|
15
|
+
const ballGeometry = new SphereGeometry(0.01, 32, 32);
|
|
16
|
+
const ballMesh = new Mesh(ballGeometry, zMaterial);
|
|
17
|
+
ballMesh.position.set(0, 0, 0.1);
|
|
18
|
+
group.name = 'mouse-current';
|
|
19
|
+
group.add(planMesh, zMesh, ballMesh);
|
|
20
|
+
return group;
|
|
21
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import { RoomInfo, RoomRules } from './typings';
|
|
3
|
+
export interface PanoRulerPluginOptions {
|
|
4
|
+
distanceText?: (distance: number) => string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
interface PanoRulerPluginPluginState {
|
|
8
|
+
enable: boolean;
|
|
9
|
+
loaded: boolean;
|
|
10
|
+
options: PanoRulerPluginOptions;
|
|
11
|
+
}
|
|
12
|
+
export interface PanoRulerPluginParameterType {
|
|
13
|
+
roomInfo?: RoomInfo;
|
|
14
|
+
roomRules?: RoomRules;
|
|
15
|
+
options?: PanoRulerPluginOptions;
|
|
16
|
+
}
|
|
17
|
+
export interface PanoRulerPluginExportType {
|
|
18
|
+
enable: () => void;
|
|
19
|
+
disable: () => void;
|
|
20
|
+
load: (roomInfo?: RoomInfo, roomRules?: RoomRules, options?: PanoRulerPluginOptions) => Promise<boolean>;
|
|
21
|
+
state: PanoRulerPluginPluginState;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 全景标尺插件
|
|
25
|
+
*/
|
|
26
|
+
export declare const PanoRulerPlugin: FivePlugin<PanoRulerPluginParameterType, PanoRulerPluginExportType>;
|
|
27
|
+
export declare const panoRulerPluginServerParams: {
|
|
28
|
+
name: string;
|
|
29
|
+
version: number;
|
|
30
|
+
};
|
|
31
|
+
export default PanoRulerPlugin;
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
import { Raycaster, Vector3 } from 'three';
|
|
3
|
+
import { intersectionOfLine } from '../shared-utils/math/planimetry';
|
|
4
|
+
import { nextFrame } from '../shared-utils/nextFrame';
|
|
5
|
+
import throttle from '../shared-utils/throttle';
|
|
6
|
+
import PanoRulerStyle from './style';
|
|
7
|
+
const getDistance = (p1, p2) => {
|
|
8
|
+
return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
|
|
9
|
+
};
|
|
10
|
+
const getRoomHeightInfo = (roomInfo, five) => {
|
|
11
|
+
const roomHeightInfo = {};
|
|
12
|
+
const raycaster = new Raycaster();
|
|
13
|
+
const work = five.work;
|
|
14
|
+
if (!work)
|
|
15
|
+
return roomHeightInfo;
|
|
16
|
+
const observers = roomInfo.observers;
|
|
17
|
+
work.observers.forEach((observer, index) => {
|
|
18
|
+
const { standingPosition: position } = observer;
|
|
19
|
+
const point = new Vector3(position.x, position.y, position.z);
|
|
20
|
+
raycaster.set(point, new Vector3(0, 1, 0));
|
|
21
|
+
const [intersection] = five.model.intersectRaycaster(raycaster);
|
|
22
|
+
// 虚景 VR 没有天花板碰撞射线无相交,默认固定层高2.7m
|
|
23
|
+
const verticalY = intersection ? intersection.point.y : 2.7;
|
|
24
|
+
const id = observers[index];
|
|
25
|
+
if (!id)
|
|
26
|
+
return roomHeightInfo;
|
|
27
|
+
const observerRoomName = roomInfo.rooms[id].name;
|
|
28
|
+
if (roomHeightInfo[observerRoomName] === undefined) {
|
|
29
|
+
roomHeightInfo[observerRoomName] = {
|
|
30
|
+
__roof: [verticalY],
|
|
31
|
+
__floor: [point.y],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
roomHeightInfo[observerRoomName].__roof.push(verticalY);
|
|
36
|
+
roomHeightInfo[observerRoomName].__floor.push(point.y);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
// 地板高度求中位数,屋顶高度取最高
|
|
40
|
+
for (const roomName in roomHeightInfo) {
|
|
41
|
+
const room = roomHeightInfo[roomName];
|
|
42
|
+
room.__roof.sort();
|
|
43
|
+
room.__floor.sort();
|
|
44
|
+
room.floor = room.__floor[~~(room.__floor.length / 2)];
|
|
45
|
+
room.roof = room.__roof[room.__roof.length - 1];
|
|
46
|
+
}
|
|
47
|
+
return roomHeightInfo;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* 全景标尺插件
|
|
51
|
+
*/
|
|
52
|
+
export const PanoRulerPlugin = (five, params) => {
|
|
53
|
+
const state = {
|
|
54
|
+
enable: false,
|
|
55
|
+
loaded: false,
|
|
56
|
+
options: params.options || {
|
|
57
|
+
distanceText: (distance) => `${distance.toFixed(1)}m`,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
const tpl = (name, distance) => {
|
|
61
|
+
const domStr = `
|
|
62
|
+
<div class="PanoRulerPlugin-rule-line">
|
|
63
|
+
<em></em>
|
|
64
|
+
<div class="PanoRulerPlugin-rule-label">
|
|
65
|
+
<div class="PanoRulerPlugin-rule-label-name">${state.options.distanceText(distance)}</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
`;
|
|
69
|
+
const res = document.createElement('div');
|
|
70
|
+
res.setAttribute('class', 'PanoRulerPlugin-rule');
|
|
71
|
+
res.setAttribute('data-name', name);
|
|
72
|
+
res.setAttribute('style', 'display: none');
|
|
73
|
+
res.innerHTML = domStr;
|
|
74
|
+
return res;
|
|
75
|
+
};
|
|
76
|
+
const $rule = document.createElement('div');
|
|
77
|
+
$rule.setAttribute('style', `position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;`);
|
|
78
|
+
// 添加标尺样式
|
|
79
|
+
const style = document.createElement('div');
|
|
80
|
+
style.innerHTML = PanoRulerStyle;
|
|
81
|
+
$rule.appendChild(style);
|
|
82
|
+
const __rule = {};
|
|
83
|
+
const _load = (roomInfo, roomRules) => {
|
|
84
|
+
if (state.loaded) {
|
|
85
|
+
throw new Error('标尺被重复初始化!');
|
|
86
|
+
}
|
|
87
|
+
const roomHeightInfo = getRoomHeightInfo(roomInfo, five);
|
|
88
|
+
const work = five.work;
|
|
89
|
+
if (!work)
|
|
90
|
+
return false;
|
|
91
|
+
for (const obKey in roomRules) {
|
|
92
|
+
const points = roomRules[obKey];
|
|
93
|
+
const { standingPosition: defaultPosition } = work.observers[0];
|
|
94
|
+
const roomPoints = points.map(({ x, z, observers }) => {
|
|
95
|
+
const pointRoomName = observers.length > 0 ? roomInfo.rooms[roomInfo.observers[observers[0]]].name : '';
|
|
96
|
+
const medianFloorHeight = roomHeightInfo[pointRoomName] ? roomHeightInfo[pointRoomName].floor : null;
|
|
97
|
+
let minDistance = Infinity;
|
|
98
|
+
let nearestPoint = {
|
|
99
|
+
index: 0,
|
|
100
|
+
x: defaultPosition.x,
|
|
101
|
+
y: defaultPosition.y,
|
|
102
|
+
z: defaultPosition.z,
|
|
103
|
+
};
|
|
104
|
+
observers.forEach((index) => {
|
|
105
|
+
if (!work.observers[index])
|
|
106
|
+
return;
|
|
107
|
+
const { standingPosition: position } = work.observers[index];
|
|
108
|
+
const observerPoint = {
|
|
109
|
+
index,
|
|
110
|
+
x: position.x,
|
|
111
|
+
y: position.y,
|
|
112
|
+
z: position.z,
|
|
113
|
+
};
|
|
114
|
+
const distance = getDistance({ x, z }, observerPoint);
|
|
115
|
+
if (medianFloorHeight) {
|
|
116
|
+
// 取最近点时排除高度与房间平均高度差大于0.3米的点
|
|
117
|
+
if (distance < minDistance && Math.abs(observerPoint.y - medianFloorHeight) < 0.3) {
|
|
118
|
+
minDistance = distance;
|
|
119
|
+
nearestPoint = observerPoint;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
if (distance < minDistance) {
|
|
124
|
+
minDistance = distance;
|
|
125
|
+
nearestPoint = observerPoint;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const _origin = new Vector3(x, nearestPoint.y, z);
|
|
130
|
+
Object.assign(_origin, { observers });
|
|
131
|
+
const verticalY = roomHeightInfo[pointRoomName] ? roomHeightInfo[pointRoomName].roof : null;
|
|
132
|
+
const _vertical = !verticalY ? null : new Vector3(x, verticalY, z);
|
|
133
|
+
if (_vertical)
|
|
134
|
+
Object.assign(_vertical, { observers });
|
|
135
|
+
const origin = _origin;
|
|
136
|
+
const vertical = _vertical;
|
|
137
|
+
return { origin, vertical };
|
|
138
|
+
});
|
|
139
|
+
__rule[obKey] = {
|
|
140
|
+
origins: roomPoints.map((roomPoint) => roomPoint.origin),
|
|
141
|
+
rules: [],
|
|
142
|
+
};
|
|
143
|
+
for (const { origin, vertical } of roomPoints) {
|
|
144
|
+
if (!vertical)
|
|
145
|
+
continue;
|
|
146
|
+
const $element = tpl(obKey, origin.distanceTo(vertical));
|
|
147
|
+
$rule.append($element);
|
|
148
|
+
__rule[obKey].rules.push({ vertical: true, rule: [origin, vertical], $element });
|
|
149
|
+
}
|
|
150
|
+
for (let index = 0; index < roomPoints.length; index++) {
|
|
151
|
+
let nextIndex = index + 1;
|
|
152
|
+
if (nextIndex >= roomPoints.length)
|
|
153
|
+
nextIndex = 0;
|
|
154
|
+
const { origin } = roomPoints[index];
|
|
155
|
+
const { origin: next } = roomPoints[nextIndex];
|
|
156
|
+
const $element = tpl(obKey, origin.distanceTo(next));
|
|
157
|
+
$rule.append($element);
|
|
158
|
+
__rule[obKey].rules.push({ vertical: false, rule: [origin, next], $element });
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
state.loaded = true;
|
|
162
|
+
return true;
|
|
163
|
+
};
|
|
164
|
+
const load = async (_roomInfo, _roomRules, options) => {
|
|
165
|
+
const roomInfo = _roomInfo || params.roomInfo;
|
|
166
|
+
const roomRules = _roomRules || params.roomRules;
|
|
167
|
+
if (!roomInfo || !roomRules) {
|
|
168
|
+
throw new Error('标尺数据依赖不齐全!');
|
|
169
|
+
}
|
|
170
|
+
state.options = Object.assign({}, state.options, options || {});
|
|
171
|
+
if (five.model.loaded) {
|
|
172
|
+
return _load(roomInfo, roomRules);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return await new Promise((resolve) => five.once('modelLoaded', () => resolve(_load(roomInfo, roomRules))));
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
if (params.roomInfo && params.roomRules) {
|
|
179
|
+
load(params.roomInfo, params.roomRules);
|
|
180
|
+
}
|
|
181
|
+
const getRuleScreenIntr = (startPoint, endPoint, canvasWidth, canvasHeight) => {
|
|
182
|
+
const screenLines = [
|
|
183
|
+
[
|
|
184
|
+
{ x: 0, y: 0 },
|
|
185
|
+
{ x: canvasWidth, y: 0 },
|
|
186
|
+
],
|
|
187
|
+
[
|
|
188
|
+
{ x: 0, y: 0 },
|
|
189
|
+
{ x: 0, y: canvasHeight },
|
|
190
|
+
],
|
|
191
|
+
[
|
|
192
|
+
{ x: canvasWidth, y: 0 },
|
|
193
|
+
{ x: canvasWidth, y: canvasHeight },
|
|
194
|
+
],
|
|
195
|
+
[
|
|
196
|
+
{ x: 0, y: canvasHeight },
|
|
197
|
+
{ x: canvasWidth, y: canvasHeight },
|
|
198
|
+
],
|
|
199
|
+
];
|
|
200
|
+
const intr = [];
|
|
201
|
+
for (let i = 0; i < screenLines.length; i++) {
|
|
202
|
+
const result = intersectionOfLine([startPoint, endPoint], [screenLines[i][0], screenLines[i][1]], true);
|
|
203
|
+
if (result)
|
|
204
|
+
intr.push(result);
|
|
205
|
+
}
|
|
206
|
+
if (intr.length === 0)
|
|
207
|
+
return false;
|
|
208
|
+
else {
|
|
209
|
+
return intr;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const freshRule = () => {
|
|
213
|
+
const element = five.getElement()?.parentElement;
|
|
214
|
+
if (!element)
|
|
215
|
+
return;
|
|
216
|
+
if (!state.loaded)
|
|
217
|
+
return;
|
|
218
|
+
if (Object.keys(__rule).length <= 0)
|
|
219
|
+
return;
|
|
220
|
+
const { panoIndex, camera, currentMode } = five;
|
|
221
|
+
if (panoIndex === undefined)
|
|
222
|
+
return;
|
|
223
|
+
let name;
|
|
224
|
+
for (const _name in __rule) {
|
|
225
|
+
if (_name.split(',').indexOf(panoIndex.toString()) >= 0)
|
|
226
|
+
name = _name;
|
|
227
|
+
}
|
|
228
|
+
if (!name)
|
|
229
|
+
return;
|
|
230
|
+
const cameraPosition = camera.position;
|
|
231
|
+
const cameraDirection = camera.getWorldDirection(new Vector3());
|
|
232
|
+
const width = element.clientWidth;
|
|
233
|
+
const height = element.clientHeight;
|
|
234
|
+
// 非全景模式下隐藏所有标尺
|
|
235
|
+
if (currentMode !== Five.Mode.Panorama) {
|
|
236
|
+
for (const _name in __rule) {
|
|
237
|
+
for (const { $element } of __rule[_name].rules) {
|
|
238
|
+
$element.style.display = 'none';
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
// 隐藏非当前点位的标尺
|
|
244
|
+
for (const _name in __rule) {
|
|
245
|
+
for (const { $element } of __rule[_name].rules) {
|
|
246
|
+
$element.style.display = _name === name ? 'block' : 'none';
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
const verticalLines = [];
|
|
250
|
+
// 可以看到的角度最小的拐点
|
|
251
|
+
const [visibleOrigin] = __rule[name].origins
|
|
252
|
+
.slice()
|
|
253
|
+
.filter((point) => point.observers.indexOf(panoIndex) >= 0)
|
|
254
|
+
.sort((pointA, pointB) => {
|
|
255
|
+
const angleA = pointA.clone().setY(0).sub(cameraPosition).normalize().angleTo(cameraDirection.clone().setY(0));
|
|
256
|
+
const angleB = pointB.clone().setY(0).sub(cameraPosition).normalize().angleTo(cameraDirection.clone().setY(0));
|
|
257
|
+
return angleA - angleB;
|
|
258
|
+
});
|
|
259
|
+
const shownNotVerticalRules = [];
|
|
260
|
+
for (const { rule, vertical, $element } of __rule[name].rules) {
|
|
261
|
+
const [start, end] = rule;
|
|
262
|
+
const $line = $element.querySelector('.PanoRulerPlugin-rule-line');
|
|
263
|
+
if (!$line)
|
|
264
|
+
return;
|
|
265
|
+
if (!visibleOrigin) {
|
|
266
|
+
$element.style.display = 'none';
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
if (start !== visibleOrigin && end !== visibleOrigin) {
|
|
270
|
+
$element.style.display = 'none';
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
if (start.distanceTo(end) < 0.5) {
|
|
274
|
+
$element.style.display = 'none';
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
if (start.observers.indexOf(panoIndex) === -1 || end.observers.indexOf(panoIndex) === -1) {
|
|
278
|
+
$element.style.display = 'none';
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
const startAngle = start.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
|
|
282
|
+
if (startAngle > Math.PI / 2) {
|
|
283
|
+
$element.style.display = 'none';
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
const endAngle = end.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
|
|
287
|
+
if (endAngle > Math.PI / 2) {
|
|
288
|
+
$element.style.display = 'none';
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
const ruleLength = start.distanceTo(end);
|
|
292
|
+
const midPoint = end.clone().sub(end.clone().sub(start).divide(new Vector3(2, 2, 2)));
|
|
293
|
+
const disFromCameraToMid = midPoint.distanceTo(cameraPosition);
|
|
294
|
+
if (disFromCameraToMid / ruleLength > 8) {
|
|
295
|
+
$element.style.display = 'none';
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
if (!vertical)
|
|
299
|
+
shownNotVerticalRules.push(rule);
|
|
300
|
+
if (vertical)
|
|
301
|
+
verticalLines.push({ $element, startAngle });
|
|
302
|
+
const mouseStart = start.clone().project(camera);
|
|
303
|
+
const startLeft = ((mouseStart.x + 1) / 2) * width;
|
|
304
|
+
const startTop = ((-mouseStart.y + 1) / 2) * height;
|
|
305
|
+
const mouseEnd = end.clone().project(camera);
|
|
306
|
+
const endLeft = ((mouseEnd.x + 1) / 2) * width;
|
|
307
|
+
const endTop = ((-mouseEnd.y + 1) / 2) * height;
|
|
308
|
+
const distance = Math.sqrt(Math.pow(endLeft - startLeft, 2) + Math.pow(endTop - startTop, 2));
|
|
309
|
+
let visibleLength = distance;
|
|
310
|
+
let labelOffset = 50;
|
|
311
|
+
const intr = getRuleScreenIntr({ x: ~~startLeft, y: ~~startTop }, {
|
|
312
|
+
x: ~~endLeft,
|
|
313
|
+
y: ~~endTop
|
|
314
|
+
}, width, height);
|
|
315
|
+
if (intr && intr.length === 1) {
|
|
316
|
+
if (visibleOrigin === start) {
|
|
317
|
+
visibleLength = Math.sqrt(Math.pow(intr[0].x - startLeft, 2) + Math.pow(intr[0].y - startTop, 2));
|
|
318
|
+
labelOffset = (visibleLength / distance) * 50;
|
|
319
|
+
}
|
|
320
|
+
else if (visibleOrigin === end) {
|
|
321
|
+
visibleLength = Math.sqrt(Math.pow(intr[0].x - endLeft, 2) + Math.pow(intr[0].y - endTop, 2));
|
|
322
|
+
labelOffset = 100 - (visibleLength / distance) * 50;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if (intr && intr.length === 2) {
|
|
326
|
+
const middlePoint = {
|
|
327
|
+
x: (intr[0].x + intr[1].x) / 2,
|
|
328
|
+
y: (intr[0].y + intr[1].y) / 2,
|
|
329
|
+
};
|
|
330
|
+
const distanceFromStart = Math.sqrt(Math.pow(middlePoint.x - startLeft, 2) + Math.pow(middlePoint.y - startTop, 2));
|
|
331
|
+
labelOffset = (distanceFromStart / distance) * 100;
|
|
332
|
+
}
|
|
333
|
+
const rad = Math.PI / 2 - Math.atan2(endLeft - startLeft, startTop - endTop);
|
|
334
|
+
const deg = (rad / Math.PI) * 180;
|
|
335
|
+
const $label = $line.querySelector('.PanoRulerPlugin-rule-label');
|
|
336
|
+
// 线的长度小于标签时或者标签与线两端点重合时隐藏,
|
|
337
|
+
const labelWidth = $label.children[0].clientWidth;
|
|
338
|
+
if (labelWidth >= distance ||
|
|
339
|
+
labelWidth / 2 >= (labelOffset / 100) * distance ||
|
|
340
|
+
labelWidth / 2 >= (1 - labelOffset / 100) * distance) {
|
|
341
|
+
$line.style.display = 'none';
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
$line.style.display = 'block';
|
|
345
|
+
$line.style.width = distance + 'px';
|
|
346
|
+
$line.style.left = startLeft + 'px';
|
|
347
|
+
$line.style.top = startTop + 'px';
|
|
348
|
+
$line.style.transform = `rotate(${-deg}deg)`;
|
|
349
|
+
$label.style.left = `${labelOffset}%`;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const nextFrameFreshRule = () => nextFrame(freshRule);
|
|
354
|
+
const throttleFreshRule = throttle(freshRule, 80);
|
|
355
|
+
const enable = () => {
|
|
356
|
+
if (!state.loaded)
|
|
357
|
+
return false;
|
|
358
|
+
if (state.enable)
|
|
359
|
+
return true;
|
|
360
|
+
$rule.setAttribute('class', 'PanoRulerPlugin' + (state.options.className ? ' ' + state.options.className : ''));
|
|
361
|
+
five.getElement()?.parentElement?.append($rule);
|
|
362
|
+
freshRule();
|
|
363
|
+
five.on('panoArrived', freshRule);
|
|
364
|
+
five.on('modeChange', freshRule);
|
|
365
|
+
five.on('cameraDirectionUpdate', nextFrameFreshRule);
|
|
366
|
+
five.on('movingToPano', nextFrameFreshRule);
|
|
367
|
+
five.on('mouseWheel', throttleFreshRule);
|
|
368
|
+
five.on('pinchGesture', throttleFreshRule);
|
|
369
|
+
state.enable = true;
|
|
370
|
+
return true;
|
|
371
|
+
};
|
|
372
|
+
const disable = () => {
|
|
373
|
+
if (!state.enable)
|
|
374
|
+
return true;
|
|
375
|
+
five.off('panoArrived', freshRule);
|
|
376
|
+
five.off('modeChange', freshRule);
|
|
377
|
+
five.off('cameraDirectionUpdate', nextFrameFreshRule);
|
|
378
|
+
five.off('movingToPano', nextFrameFreshRule);
|
|
379
|
+
five.off('mouseWheel', throttleFreshRule);
|
|
380
|
+
five.off('pinchGesture', throttleFreshRule);
|
|
381
|
+
if ($rule) {
|
|
382
|
+
$rule.remove();
|
|
383
|
+
}
|
|
384
|
+
state.enable = false;
|
|
385
|
+
return true;
|
|
386
|
+
};
|
|
387
|
+
return {
|
|
388
|
+
enable,
|
|
389
|
+
disable,
|
|
390
|
+
load,
|
|
391
|
+
state,
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
export const panoRulerPluginServerParams = {
|
|
395
|
+
name: 'PanoRulerPlugin',
|
|
396
|
+
version: 0,
|
|
397
|
+
};
|
|
398
|
+
export default PanoRulerPlugin;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const PanoRulerStyle = "<style type=\"text/css\">\n.PanoRulerPlugin-rule-line {\n position: absolute;\n transform-origin: left center;\n width: 0;\n height: 0.0625rem;\n}\n\n.PanoRulerPlugin-rule-line::after {\n content: '';\n position: absolute;\n left: -0.125rem;\n top: -0.1rem;\n width: 0.25rem;\n height: 0.25rem;\n border-radius: 50%;\n background: #FFFFFF;\n z-index: 1;\n animation: viewport-rule-point 0.1s 1s;\n animation-fill-mode: both;\n}\n\n.PanoRulerPlugin-rule-line::before {\n content: '';\n position: absolute;\n right: -0.125rem;\n top: -0.1rem;\n width: 0.25rem;\n height: 0.25rem;\n border-radius: 50%;\n background: #FFFFFF;\n animation: viewport-rule-point 0.1s 1.5s;\n animation-fill-mode: both;\n}\n\n.PanoRulerPlugin-rule-line em {\n background: #fff;\n display: block;\n height: 100%;\n animation: viewport-rule-line 0.5s ease 1s;\n animation-fill-mode: both;\n box-shadow: 0 0 0.25rem rgb(0 0 0 / 40%);\n}\n\n.PanoRulerPlugin-rule-label {\n position: absolute;\n width: 0;\n height: 0;\n top: 0.0625rem;\n}\n\n.PanoRulerPlugin-rule-label-name {\n position: absolute;\n padding: 0.1875rem 0.375rem;\n background: rgba(195,195,195,0.30);\n backdrop-filter: blur(0.25rem);\n -webkit-backdrop-filter: blur(0.25rem);\n border-radius: 6.25rem;\n border: 0.0625rem solid rgba(255,255,255,0.6);\n white-space: nowrap;\n overflow: hidden;\n color: #FFFFFF;\n font-weight: 500;\n font-size: 0.75rem;\n line-height: 1;\n -webkit-animation: viewport-rule-label 0.25s ease 1s;\n animation: viewport-rule-label 0.25s ease 1s;\n animation-fill-mode: both;\n box-shadow: inset 0 0 0.625rem 0 rgba(255,255,255,0.30);\n}\n\n@keyframes viewport-rule-line {\n 0% { width: 0% }\n 100% { width: 100% }\n}\n\n@keyframes viewport-rule-label {\n 0% { opacity: 0; transform: scaleX(0); }\n 100% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }\n}\n\n@keyframes viewport-rule-point {\n 0% { transform: scaleX(0); }\n 100% { transform: scaleX(1); }\n}\n</style>\n";
|
|
2
|
+
export default PanoRulerStyle;
|