@realsee/dnalogel 0.1.7 → 2.0.0-alpha.11
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 +38 -0
- package/README.md +24 -68
- package/{plugins → dist}/CSS3DRenderPlugin/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/index.js +231 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/{plugins → dist}/CameraMovementPlugin/index.d.ts +0 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/{plugins → dist}/CameraMovementPlugin/typing.d.ts +0 -0
- package/{plugins → dist}/ModelChassisCompassPlugin/index.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/index.js +142 -0
- package/{plugins → dist}/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
- package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/{plugins → dist}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/index.js +463 -0
- package/{plugins → dist}/ModelRoomLabelPlugin/typings.d.ts +2 -2
- package/{plugins → dist}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
- package/{plugins → dist}/ModelViewPlugin/index.d.ts +0 -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/{plugins → dist}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
- 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/{plugins → dist}/PanoRulerPlugin/index.d.ts +9 -5
- package/dist/PanoRulerPlugin/index.js +610 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/{plugins → dist}/PanoRulerPlugin/typings.d.ts +0 -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/{plugins/floorplan/TopviewFloorplanPlugin → dist/PanoSpatialTagPlugin}/style.d.ts +0 -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/{plugins → dist}/floorplan/ModelFloorplanPlugin/Controller.d.ts +19 -14
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/index.js +3842 -0
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
- package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
- package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +6 -11
- package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
- package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +18 -11
- package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3481 -0
- package/{plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts → dist/floorplan/TopviewFloorplanPlugin/style.d.ts} +0 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/{plugins → dist}/floorplan/typings/floorplanData.d.ts +6 -0
- package/{plugins → dist}/floorplan/typings/floorplanServerData.d.ts +8 -2
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/{plugins → dist}/floorplan/utils/formatData.d.ts +3 -3
- package/{plugins → dist}/floorplan/utils/formatPosition.d.ts +3 -4
- package/dist/index.d.ts +26 -0
- package/dist/index.es.js +12928 -0
- package/dist/index.js +12967 -0
- package/dist/index.umd.js +12961 -0
- package/{shared-utils → dist/shared-utils}/Preloader.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/Subscribe.d.ts +3 -3
- package/{shared-utils → dist/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/formatRad.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/index.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/animationFrame/tween.d.ts +0 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/{shared-utils → dist/shared-utils}/createCanvasTextTexture.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/createLine/index.d.ts +1 -1
- package/{shared-utils → dist/shared-utils}/debounce.d.ts +1 -1
- package/{shared-utils → dist/shared-utils}/equal.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/filter.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/five/changeMode.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/five/useFivePlugin.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/formatRad.d.ts +0 -0
- package/dist/shared-utils/getPxmm.d.ts +11 -0
- package/{shared-utils → dist/shared-utils}/getRandomColor.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/isNil.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/isTruelyObject.d.ts +0 -0
- package/dist/shared-utils/math/evenNumber.d.ts +3 -0
- package/{shared-utils → dist/shared-utils}/math/planimetry.d.ts +4 -4
- package/{shared-utils → dist/shared-utils}/math/rad2Deg.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/nearlyEqual.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/nextFrame.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/noop.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/px2rem.d.ts +0 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/{shared-utils → dist/shared-utils}/tap.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/centerPoint.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/getNormal.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/getTextureLoader.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/loadFbxObj.d.ts +0 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/{shared-utils → dist/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/throttle.d.ts +1 -1
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/{shared-utils → dist/shared-utils}/to.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/useDebounce.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/useThrottle.d.ts +0 -0
- package/{libs/gltf-viewer → dist/shared-utils}/uuid.d.ts +0 -0
- package/{shared-utils → dist/shared-utils}/vectorTocoordinates.d.ts +0 -0
- package/{typings → dist/typings}/math.type.d.ts +0 -0
- package/{typings → dist/typings}/utils.type.d.ts +0 -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.d.ts +49 -0
- package/libs/CSS3DRenderPlugin/index.js +179 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
- package/libs/CameraMovementPlugin/index.d.ts +7 -0
- package/libs/CameraMovementPlugin/index.js +159 -0
- package/libs/CameraMovementPlugin/typing.d.ts +68 -0
- package/libs/CameraMovementPlugin/typing.js +17 -0
- package/libs/ModelChassisCompassPlugin/index.d.ts +19 -0
- package/libs/ModelChassisCompassPlugin/index.js +75 -0
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
- package/libs/ModelEntryDoorGuidePlugin/index.js +137 -0
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
- package/libs/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
- package/libs/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/libs/ModelRoomLabelPlugin/index.js +9 -0
- package/libs/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
- package/libs/ModelViewPlugin/index.d.ts +17 -0
- package/libs/ModelViewPlugin/index.js +160 -0
- 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/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +74 -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/Assets/camera.d.ts +1 -0
- package/libs/floorplan/Assets/camera.js +1 -0
- package/libs/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/libs/floorplan/Assets/floorplanExtraObject.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/Assets/compass.d.ts +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +1 -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 +105 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +359 -0
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
- package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
- 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.d.ts +28 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +62 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +191 -0
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
- package/libs/floorplan/constant.d.ts +5 -0
- package/libs/floorplan/constant.js +6 -0
- package/libs/floorplan/typings/floorplanData.d.ts +137 -0
- package/libs/floorplan/typings/floorplanData.js +6 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +131 -0
- package/libs/floorplan/typings/floorplanServerData.js +101 -0
- package/libs/floorplan/typings/utility.d.ts +2 -0
- package/libs/floorplan/typings/utility.js +1 -0
- package/libs/floorplan/utils/formatData.d.ts +5 -0
- package/libs/floorplan/utils/formatData.js +94 -0
- package/libs/floorplan/utils/formatPosition.d.ts +36 -0
- package/libs/floorplan/utils/formatPosition.js +50 -0
- package/libs/index.d.ts +26 -0
- package/libs/index.js +16 -0
- package/libs/shared-utils/Preloader.d.ts +6 -0
- package/libs/shared-utils/Preloader.js +38 -0
- package/libs/shared-utils/Subscribe.d.ts +45 -0
- package/libs/shared-utils/Subscribe.js +101 -0
- package/libs/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
- package/libs/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
- package/libs/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/libs/shared-utils/animationFrame/formatRad.js +20 -0
- package/libs/shared-utils/animationFrame/index.d.ts +15 -0
- package/libs/shared-utils/animationFrame/index.js +48 -0
- package/libs/shared-utils/animationFrame/tween.d.ts +75 -0
- package/libs/shared-utils/animationFrame/tween.js +44 -0
- package/libs/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/libs/shared-utils/changeModelCanvasOpacity.js +15 -0
- package/libs/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/libs/shared-utils/createCanvasTextTexture.js +19 -0
- package/libs/shared-utils/createLine/index.d.ts +3 -0
- package/libs/shared-utils/createLine/index.js +8 -0
- package/libs/shared-utils/debounce.d.ts +6 -0
- package/libs/shared-utils/debounce.js +14 -0
- package/libs/shared-utils/equal.d.ts +11 -0
- package/libs/shared-utils/equal.js +84 -0
- package/libs/shared-utils/filter.d.ts +27 -0
- package/libs/shared-utils/filter.js +53 -0
- package/libs/shared-utils/five/changeMode.d.ts +2 -0
- package/libs/shared-utils/five/changeMode.js +15 -0
- package/libs/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/libs/shared-utils/five/useFivePlugin.js +8 -0
- package/libs/shared-utils/formatRad.d.ts +7 -0
- package/libs/shared-utils/formatRad.js +10 -0
- package/libs/shared-utils/getPxmm.d.ts +11 -0
- package/libs/shared-utils/getPxmm.js +34 -0
- package/libs/shared-utils/getRandomColor.d.ts +1 -0
- package/libs/shared-utils/getRandomColor.js +10 -0
- package/libs/shared-utils/isNil.d.ts +10 -0
- package/libs/shared-utils/isNil.js +14 -0
- package/libs/shared-utils/isTruelyObject.d.ts +18 -0
- package/libs/shared-utils/isTruelyObject.js +20 -0
- package/libs/shared-utils/math/evenNumber.d.ts +3 -0
- package/libs/shared-utils/math/evenNumber.js +4 -0
- package/libs/shared-utils/math/planimetry.d.ts +116 -0
- package/libs/shared-utils/math/planimetry.js +288 -0
- package/libs/shared-utils/math/rad2Deg.d.ts +1 -0
- package/libs/shared-utils/math/rad2Deg.js +3 -0
- package/libs/shared-utils/nearlyEqual.d.ts +7 -0
- package/libs/shared-utils/nearlyEqual.js +9 -0
- package/libs/shared-utils/nextFrame.d.ts +1 -0
- package/libs/shared-utils/nextFrame.js +6 -0
- package/libs/shared-utils/noop.d.ts +5 -0
- package/libs/shared-utils/noop.js +7 -0
- package/libs/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
- package/libs/shared-utils/px2rem.d.ts +1 -0
- package/libs/shared-utils/px2rem.js +4 -0
- package/libs/shared-utils/removeArrayItem.d.ts +7 -0
- package/libs/shared-utils/removeArrayItem.js +12 -0
- package/libs/shared-utils/tap.d.ts +8 -0
- package/{shared-utils → libs/shared-utils}/tap.js +4 -13
- package/libs/shared-utils/three/centerPoint.d.ts +2 -0
- package/libs/shared-utils/three/centerPoint.js +4 -0
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
- package/libs/shared-utils/three/getNormal.d.ts +2 -0
- package/libs/shared-utils/three/getNormal.js +6 -0
- package/libs/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/libs/shared-utils/three/getTextureLoader.js +17 -0
- package/libs/shared-utils/three/loadFbxObj.d.ts +2 -0
- package/libs/shared-utils/three/loadFbxObj.js +13 -0
- package/libs/shared-utils/three/loadTexture.d.ts +2 -0
- package/libs/shared-utils/three/loadTexture.js +10 -0
- package/libs/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
- package/libs/shared-utils/throttle.d.ts +7 -0
- package/libs/shared-utils/throttle.js +18 -0
- package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
- package/libs/shared-utils/tinyEJSrender.js +180 -0
- package/libs/shared-utils/to.d.ts +8 -0
- package/libs/shared-utils/to.js +18 -0
- package/libs/shared-utils/useDebounce.d.ts +8 -0
- package/libs/shared-utils/useDebounce.js +22 -0
- package/libs/shared-utils/useThrottle.d.ts +8 -0
- package/libs/shared-utils/useThrottle.js +25 -0
- package/{shared-utils → libs/shared-utils}/uuid.d.ts +0 -0
- package/libs/shared-utils/uuid.js +11 -0
- package/libs/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/libs/shared-utils/vectorTocoordinates.js +9 -0
- package/libs/typings/math.type.d.ts +44 -0
- package/libs/typings/math.type.js +1 -0
- package/libs/typings/utils.type.d.ts +2 -0
- package/libs/typings/utils.type.js +1 -0
- package/package.json +55 -17
- package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +0 -44
- package/components/ARVideoFigure/ARVideoFigureMesh.js +0 -371
- package/components/ARVideoFigure/ARVideoFigureScene.d.ts +0 -11
- package/components/ARVideoFigure/ARVideoFigureScene.js +0 -85
- package/components/ARVideoFigure/ImgBgTransparent.d.ts +0 -16
- package/components/ARVideoFigure/ImgBgTransparent.js +0 -65
- package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +0 -30
- package/components/ARVideoFigure/ImgBgTransparentMesh.js +0 -183
- package/components/ARVideoFigure/fragmentShader.d.ts +0 -5
- package/components/ARVideoFigure/fragmentShader.js +0 -18
- package/components/ARVideoFigure/index.d.ts +0 -15
- package/components/ARVideoFigure/index.js +0 -80
- package/components/ARVideoFigure/vertexShader.d.ts +0 -1
- package/components/ARVideoFigure/vertexShader.js +0 -10
- package/components/GLTFView/index.d.ts +0 -72
- package/components/GLTFView/index.js +0 -149
- package/components/GlassFilters/index.d.ts +0 -32
- package/components/GlassFilters/index.js +0 -78
- package/components/ModelView/ModelViewController.d.ts +0 -18
- package/components/ModelView/ModelViewController.js +0 -157
- package/components/ModelView/index.d.ts +0 -10
- package/components/ModelView/index.js +0 -24
- package/components/PaintBrush/index.d.ts +0 -16
- package/components/PaintBrush/index.js +0 -47
- package/components/PanoTag/index.d.ts +0 -4
- package/components/PanoTag/index.js +0 -13
- package/custom.d.js +0 -3
- package/data/1aGKl9JmrlXMXx8d.d.ts +0 -104
- package/data/1aGKl9JmrlXMXx8d.js +0 -537
- package/data/54djM0oR6ky3Ey8e.d.ts +0 -55
- package/data/54djM0oR6ky3Ey8e.js +0 -350
- package/data/6gyq3v1verxD7JO1.d.ts +0 -104
- package/data/6gyq3v1verxD7JO1.js +0 -462
- package/data/8054djM0oR6ky3Ey8e.d.ts +0 -55
- package/data/8054djM0oR6ky3Ey8e.js +0 -350
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +0 -84
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +0 -600
- package/data/PrXel3aqGbp34JQn.d.ts +0 -389
- package/data/PrXel3aqGbp34JQn.js +0 -4649
- package/data/XJ6NMLWnkAY3Rdx8.d.ts +0 -843
- package/data/XJ6NMLWnkAY3Rdx8.js +0 -7989
- package/data/YdoNP9K4rwQDwjJr.d.ts +0 -83
- package/data/YdoNP9K4rwQDwjJr.js +0 -1453
- package/data/ZLvK29zj4L29Jowd.d.ts +0 -55
- package/data/ZLvK29zj4L29Jowd.js +0 -372
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +0 -86
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +0 -711
- package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +0 -5
- package/data/extrude-walls/ZLvK29zj4L29Jowd.js +0 -14
- package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +0 -5
- package/data/extrude-walls/lo024DEgzanMj5BE.js +0 -14
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +0 -85
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +0 -511
- package/data/lo024DEgzanMj5BE.d.ts +0 -55
- package/data/lo024DEgzanMj5BE.js +0 -966
- package/data/oPzy3ApbjjpD8YdR.d.ts +0 -83
- package/data/oPzy3ApbjjpD8YdR.js +0 -283
- package/data/qjAxMG4XbPn96wKG.d.ts +0 -104
- package/data/qjAxMG4XbPn96wKG.js +0 -637
- package/data/rXel3aPQRRBD4JQn.d.ts +0 -86
- package/data/rXel3aPQRRBD4JQn.js +0 -622
- package/data/vLykj3NWrllMrG06.d.ts +0 -91
- package/data/vLykj3NWrllMrG06.js +0 -2729
- package/data/wz0QV9KA4ugyo9ME.d.ts +0 -39
- package/data/wz0QV9KA4ugyo9ME.js +0 -136
- package/data/zxMawr9raSg8LYjG.d.ts +0 -53
- package/data/zxMawr9raSg8LYjG.js +0 -590
- package/examples/FiveStateController/index.js +0 -134
- package/examples/VRHouse/Mobile.js +0 -36
- package/examples/VRHouse/PC.js +0 -36
- package/examples/VRHouse/index.js +0 -36
- package/index.d.ts +0 -15
- package/index.js +0 -45
- package/libs/gltf-viewer/Subscribe.d.ts +0 -76
- package/libs/gltf-viewer/Subscribe.js +0 -231
- package/libs/gltf-viewer/coordsMoveByOffset.d.ts +0 -13
- package/libs/gltf-viewer/coordsMoveByOffset.js +0 -22
- package/libs/gltf-viewer/coordsToDirection.d.ts +0 -5
- package/libs/gltf-viewer/coordsToDirection.js +0 -41
- package/libs/gltf-viewer/formatRad.d.ts +0 -1
- package/libs/gltf-viewer/formatRad.js +0 -13
- package/libs/gltf-viewer/getFrameTime.d.ts +0 -1
- package/libs/gltf-viewer/getFrameTime.js +0 -28
- package/libs/gltf-viewer/index.d.ts +0 -55
- package/libs/gltf-viewer/index.js +0 -650
- package/libs/gltf-viewer/mouseWheel.d.ts +0 -2
- package/libs/gltf-viewer/mouseWheel.js +0 -59
- package/libs/gltf-viewer/requestAnimationFrame.d.ts +0 -1
- package/libs/gltf-viewer/requestAnimationFrame.js +0 -18
- package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +0 -1
- package/libs/gltf-viewer/requestAnimationFrameInterval.js +0 -31
- package/libs/gltf-viewer/uuid.js +0 -28
- package/plugins/AutoPreloadPlugin/index.d.ts +0 -23
- package/plugins/AutoPreloadPlugin/index.js +0 -111
- package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +0 -12
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +0 -121
- package/plugins/CSS3DRenderPlugin/index.js +0 -298
- package/plugins/CameraMovementPlugin/index.js +0 -362
- package/plugins/CameraMovementPlugin/typing.js +0 -37
- package/plugins/ModelChassisCompassPlugin/index.js +0 -157
- package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -247
- package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
- package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
- package/plugins/ModelRoomLabelPlugin/Controller.js +0 -153
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +0 -8
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +0 -66
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +0 -7
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +0 -159
- package/plugins/ModelRoomLabelPlugin/index.d.ts +0 -8
- package/plugins/ModelRoomLabelPlugin/index.js +0 -18
- package/plugins/ModelRoomLabelPlugin/typings.js +0 -7
- package/plugins/ModelRoomLabelPlugin/utils/parseData.js +0 -35
- package/plugins/ModelTVVideoPlugin/index.d.ts +0 -21
- package/plugins/ModelTVVideoPlugin/index.js +0 -397
- package/plugins/ModelViewPlugin/index.js +0 -223
- package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +0 -48
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +0 -9
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +0 -117
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +0 -11
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +0 -39
- package/plugins/PanoCursorRaycasterPlugin/index.js +0 -126
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +0 -5
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +0 -27
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +0 -3
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +0 -48
- package/plugins/PanoDoorLabelPlugin/index.d.ts +0 -4
- package/plugins/PanoDoorLabelPlugin/index.js +0 -14
- package/plugins/PanoIRobotPlugin/index.d.ts +0 -10
- package/plugins/PanoIRobotPlugin/index.js +0 -18
- package/plugins/PanoMaskSelectorPlugin/compare.d.ts +0 -1
- package/plugins/PanoMaskSelectorPlugin/compare.js +0 -17
- package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +0 -7
- package/plugins/PanoMaskSelectorPlugin/createBox.js +0 -79
- package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +0 -3
- package/plugins/PanoMaskSelectorPlugin/createTextures.js +0 -45
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +0 -1
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +0 -10
- package/plugins/PanoMaskSelectorPlugin/index.d.ts +0 -49
- package/plugins/PanoMaskSelectorPlugin/index.js +0 -348
- package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
- package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +0 -3
- package/plugins/PanoRulerPlugin/data/roomInfo.js +0 -51
- package/plugins/PanoRulerPlugin/data/roomRules.d.ts +0 -3
- package/plugins/PanoRulerPlugin/data/roomRules.js +0 -235
- package/plugins/PanoRulerPlugin/index.js +0 -637
- package/plugins/PanoRulerPlugin/typings.js +0 -7
- package/plugins/PanoTVVideoPlugin/index.d.ts +0 -26
- package/plugins/PanoTVVideoPlugin/index.js +0 -433
- package/plugins/TreasurePlugin/Controller.d.ts +0 -73
- package/plugins/TreasurePlugin/Controller.js +0 -250
- package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +0 -25
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +0 -143
- package/plugins/TreasurePlugin/TreasureObject.d.ts +0 -53
- package/plugins/TreasurePlugin/TreasureObject.js +0 -406
- package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +0 -25
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +0 -127
- package/plugins/TreasurePlugin/constants.d.ts +0 -33
- package/plugins/TreasurePlugin/constants.js +0 -67
- package/plugins/TreasurePlugin/index.d.ts +0 -11
- package/plugins/TreasurePlugin/index.js +0 -26
- package/plugins/TreasurePlugin/typings.d.ts +0 -2
- package/plugins/TreasurePlugin/typings.js +0 -7
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
- package/plugins/floorplan/Assets/floorplanExtraObject.js +0 -10
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -626
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +0 -13
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +0 -78
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +0 -5
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +0 -84
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +0 -10
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +0 -129
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +0 -13
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +0 -118
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -13
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -62
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -20
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +0 -88
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +0 -16
- package/plugins/floorplan/ModelFloorplanPlugin/index.js +0 -20
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +0 -7
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +0 -33
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +0 -154
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +0 -13
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +0 -113
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +0 -3
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +0 -39
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +0 -5
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +0 -66
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +0 -9
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +0 -126
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +0 -11
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +0 -58
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +0 -17
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +0 -85
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +0 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +0 -15
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -211
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +0 -20
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +0 -262
- package/plugins/floorplan/TopviewFloorplanPlugin/index.js +0 -18
- package/plugins/floorplan/TopviewFloorplanPlugin/style.js +0 -16
- package/plugins/floorplan/components/FloorplanImage.d.ts +0 -7
- package/plugins/floorplan/components/FloorplanImage.js +0 -90
- package/plugins/floorplan/typings/floorplanData.js +0 -7
- package/plugins/floorplan/typings/floorplanServerData.js +0 -382
- package/plugins/floorplan/utils/formatData.js +0 -217
- package/plugins/floorplan/utils/formatPosition.js +0 -89
- package/shared-utils/Preloader.js +0 -57
- package/shared-utils/Subscribe.js +0 -230
- package/shared-utils/animationFrame/BetterTween.js +0 -103
- package/shared-utils/animationFrame/calculateProgress.js +0 -40
- package/shared-utils/animationFrame/formatRad.js +0 -36
- package/shared-utils/animationFrame/index.js +0 -81
- package/shared-utils/animationFrame/tween.js +0 -92
- package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
- package/shared-utils/changeModelCanvansOpacity.js +0 -38
- package/shared-utils/createCanvasTextTexture.js +0 -31
- package/shared-utils/createFiveContainer.d.ts +0 -10
- package/shared-utils/createFiveContainer.js +0 -171
- package/shared-utils/createLine/index.js +0 -43
- package/shared-utils/debounce.js +0 -30
- package/shared-utils/equal.js +0 -107
- package/shared-utils/filter.js +0 -127
- package/shared-utils/five/changeMode.js +0 -82
- package/shared-utils/five/useFivePlugin.js +0 -17
- package/shared-utils/formatRad.js +0 -18
- package/shared-utils/getPxmm.d.ts +0 -6
- package/shared-utils/getPxmm.js +0 -51
- package/shared-utils/getRandomColor.js +0 -23
- package/shared-utils/isNil.js +0 -26
- package/shared-utils/isTruelyObject.js +0 -31
- package/shared-utils/math/evenNumber.d.ts +0 -1
- package/shared-utils/math/evenNumber.js +0 -13
- package/shared-utils/math/planimetry.js +0 -352
- package/shared-utils/math/rad2Deg.js +0 -12
- package/shared-utils/nearlyEqual.js +0 -19
- package/shared-utils/nextFrame.js +0 -15
- package/shared-utils/noop.js +0 -19
- package/shared-utils/object3d2LocalMatrix.js +0 -79
- package/shared-utils/px2rem.js +0 -22
- package/shared-utils/three/centerPoint.js +0 -14
- package/shared-utils/three/getExtraModelLoader.js +0 -45
- package/shared-utils/three/getNormal.js +0 -17
- package/shared-utils/three/getTextureLoader.js +0 -50
- package/shared-utils/three/loadFbxObj.js +0 -54
- package/shared-utils/three/loadTexture.d.ts +0 -2
- package/shared-utils/three/loadTexture.js +0 -46
- package/shared-utils/three/transformPositionToVector3.js +0 -20
- package/shared-utils/three/transfromToMeshBasicMaterial.js +0 -33
- package/shared-utils/throttle.js +0 -29
- package/shared-utils/to.js +0 -67
- package/shared-utils/useDebounce.js +0 -49
- package/shared-utils/useThrottle.js +0 -47
- package/shared-utils/uuid.js +0 -28
- package/shared-utils/vectorTocoordinates.js +0 -18
- package/typedoc/components.d.ts +0 -6
- package/typedoc/components.js +0 -7
- package/typedoc/plugins.d.ts +0 -19
- package/typedoc/plugins.js +0 -165
- package/typedoc/shared-utils.d.ts +0 -3
- package/typedoc/shared-utils.js +0 -7
- package/typedoc/typings.d.ts +0 -3
- package/typedoc/typings.js +0 -7
- package/typings/math.type.js +0 -7
- package/typings/utils.type.js +0 -7
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ModelFloorplanViewEvent {
|
|
2
|
+
/** 是否是用户滑动模型导致的户型图自动展示/消失 */
|
|
3
|
+
auto: boolean;
|
|
4
|
+
/** 是否是用户操作 */
|
|
5
|
+
userAction: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare type FloorplanEventHandlers = {
|
|
8
|
+
/**
|
|
9
|
+
* 展示结束的回调
|
|
10
|
+
* * @param event.auto 是否是自动展示
|
|
11
|
+
*/
|
|
12
|
+
showAnimationEnded: (event: ModelFloorplanViewEvent) => void;
|
|
13
|
+
/**
|
|
14
|
+
* 隐藏的回调
|
|
15
|
+
* @param event.auto 是否是自动隐藏
|
|
16
|
+
*/
|
|
17
|
+
hide: (event: ModelFloorplanViewEvent) => void;
|
|
18
|
+
/**
|
|
19
|
+
* 点击户型图的回调
|
|
20
|
+
* @return 当返回 false 时,会阻止默认行为
|
|
21
|
+
*/
|
|
22
|
+
click: () => boolean | void;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const enum FloorplanErrorType {
|
|
2
|
+
UnknownError = "UnknowError",
|
|
3
|
+
DataNotLoaded = "DataNotLoaded",
|
|
4
|
+
BreakOffByHide = "BreakOffByHide",
|
|
5
|
+
ModelNotLoaded = "ModelNotLoaded",
|
|
6
|
+
ChangeModeError = "ChangeModeError",
|
|
7
|
+
UpdateCameraError = "UpdateCameraError",
|
|
8
|
+
DifferentShowParams = "DifferentShowParams"
|
|
9
|
+
}
|
|
10
|
+
/** 户型图展示 & 模型消失的默认时间 */
|
|
11
|
+
export declare const SHOW_ANIME_DURATION = 500;
|
|
12
|
+
/** Five camera 默认 fov */
|
|
13
|
+
export declare const FIVE_CAMERA_DEFAULT_FOV = 80;
|
|
14
|
+
/** 展示户型图时,默认模型的透明度 */
|
|
15
|
+
export declare const DEFAULT_SHOW_MODEL_OPACITY = 0.01;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var FloorplanErrorType;
|
|
2
|
+
(function (FloorplanErrorType) {
|
|
3
|
+
FloorplanErrorType["UnknownError"] = "UnknowError";
|
|
4
|
+
FloorplanErrorType["DataNotLoaded"] = "DataNotLoaded";
|
|
5
|
+
FloorplanErrorType["BreakOffByHide"] = "BreakOffByHide";
|
|
6
|
+
FloorplanErrorType["ModelNotLoaded"] = "ModelNotLoaded";
|
|
7
|
+
FloorplanErrorType["ChangeModeError"] = "ChangeModeError";
|
|
8
|
+
FloorplanErrorType["UpdateCameraError"] = "UpdateCameraError";
|
|
9
|
+
FloorplanErrorType["DifferentShowParams"] = "DifferentShowParams";
|
|
10
|
+
})(FloorplanErrorType || (FloorplanErrorType = {}));
|
|
11
|
+
/** 户型图展示 & 模型消失的默认时间 */
|
|
12
|
+
export const SHOW_ANIME_DURATION = 500;
|
|
13
|
+
/** Five camera 默认 fov */
|
|
14
|
+
export const FIVE_CAMERA_DEFAULT_FOV = 80;
|
|
15
|
+
/** 展示户型图时,默认模型的透明度 */
|
|
16
|
+
export const DEFAULT_SHOW_MODEL_OPACITY = 0.01;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
export interface ShowState {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
fov: number;
|
|
6
|
+
}
|
|
7
|
+
/** 判断当前状态是否可以展示户型图 */
|
|
8
|
+
export declare function checkShowState(five: Five, showState: ShowState): boolean;
|
|
9
|
+
/** 更改 Five 状态到展示户型图的状态
|
|
10
|
+
* 1. 判断状态不符合时,会纠正到正确的状态
|
|
11
|
+
* 2. 内置了相应的动画时间计算
|
|
12
|
+
* 3. 纠正成功会返回 true,失败「可能会被用户行为中断」会返回 false
|
|
13
|
+
*/
|
|
14
|
+
export default function correctFiveState(five: Five, showState: ShowState, userAction?: boolean): Promise<void>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
import changeMode from '../../../shared-utils/five/changeMode';
|
|
3
|
+
import { FloorplanErrorType } from './constant';
|
|
4
|
+
import to from '../../../shared-utils/to';
|
|
5
|
+
import nearlyEqual from '../../../shared-utils/nearlyEqual';
|
|
6
|
+
/** 判断当前状态是否可以展示户型图 */
|
|
7
|
+
export function checkShowState(five, showState) {
|
|
8
|
+
if (five.currentMode !== Five.Mode.Floorplan)
|
|
9
|
+
return false;
|
|
10
|
+
const { latitude, longitude, fov } = showState;
|
|
11
|
+
const { latitude: _latitude, longitude: _longitude } = five.getCurrentState();
|
|
12
|
+
const _fov = five.camera.fov;
|
|
13
|
+
if (nearlyEqual(latitude, _latitude, 1) && nearlyEqual(longitude, _longitude, 1) && fov === _fov)
|
|
14
|
+
return true;
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
/** 更改 Five 状态到展示户型图的状态
|
|
18
|
+
* 1. 判断状态不符合时,会纠正到正确的状态
|
|
19
|
+
* 2. 内置了相应的动画时间计算
|
|
20
|
+
* 3. 纠正成功会返回 true,失败「可能会被用户行为中断」会返回 false
|
|
21
|
+
*/
|
|
22
|
+
export default async function correctFiveState(five, showState, userAction = true) {
|
|
23
|
+
// 当前已满足状态,不需要变更
|
|
24
|
+
const result = checkShowState(five, showState);
|
|
25
|
+
if (result === true)
|
|
26
|
+
return;
|
|
27
|
+
// 纠正 mode
|
|
28
|
+
if (five.currentMode !== Five.Mode.Floorplan) {
|
|
29
|
+
const [changeModeError] = await to(changeMode(five, Five.Mode.Floorplan, showState, undefined, userAction));
|
|
30
|
+
if (changeModeError)
|
|
31
|
+
throw changeModeError;
|
|
32
|
+
// changeMode 是异步行为,可能会被打断,需要在结束后加一次判断
|
|
33
|
+
const result = checkShowState(five, showState);
|
|
34
|
+
if (result === false)
|
|
35
|
+
throw new Error(FloorplanErrorType.ChangeModeError);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
// 纠正相机状态
|
|
39
|
+
// 根据 latitude、longitude、fov 计算动画时间,最多 1s
|
|
40
|
+
const { latitude, longitude, fov } = five.getCurrentState();
|
|
41
|
+
const time = Math.min(1000, Math.max(200, Math.abs(latitude - Math.PI / 2) * 1000, (longitude > Math.PI ? 2 * Math.PI - longitude : longitude) * 500, Math.abs(fov - showState.fov) * 10));
|
|
42
|
+
const [updateCameraError] = await to(five.updateCamera(showState, time, userAction));
|
|
43
|
+
if (updateCameraError)
|
|
44
|
+
throw new Error(FloorplanErrorType.UpdateCameraError);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append,
|
|
5
|
+
append_styles,
|
|
6
|
+
attr,
|
|
7
|
+
detach,
|
|
8
|
+
element,
|
|
9
|
+
init,
|
|
10
|
+
insert,
|
|
11
|
+
noop,
|
|
12
|
+
safe_not_equal,
|
|
13
|
+
set_style
|
|
14
|
+
} from "svelte/internal";
|
|
15
|
+
|
|
16
|
+
import { onMount, onDestroy } from 'svelte';
|
|
17
|
+
import { CAMERA_IMAGE } from '../../Assets/camera';
|
|
18
|
+
import throttle from '../../../shared-utils/throttle';
|
|
19
|
+
|
|
20
|
+
function add_css(target) {
|
|
21
|
+
append_styles(target, "svelte-o7uo2v", ".plugin-radar__camera-wrapper.svelte-o7uo2v{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-o7uo2v{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-o7uo2v{position:absolute;left:-15px;top:-15px;width:17px;height:17px;transform-origin:15px 15px;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function create_fragment(ctx) {
|
|
25
|
+
let div2;
|
|
26
|
+
let div1;
|
|
27
|
+
let div0;
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
c() {
|
|
31
|
+
div2 = element("div");
|
|
32
|
+
div1 = element("div");
|
|
33
|
+
div0 = element("div");
|
|
34
|
+
attr(div0, "class", "plugin-radar__camera-rotate svelte-o7uo2v");
|
|
35
|
+
set_style(div0, "background-image", "url(" + (/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE) + ")");
|
|
36
|
+
set_style(div0, "transform", /*rotateTransform*/ ctx[1], false);
|
|
37
|
+
attr(div1, "class", "plugin-radar__camera-position svelte-o7uo2v");
|
|
38
|
+
set_style(div1, "transform", /*positionTransform*/ ctx[2], false);
|
|
39
|
+
attr(div2, "class", "plugin-radar__camera-wrapper svelte-o7uo2v");
|
|
40
|
+
},
|
|
41
|
+
m(target, anchor) {
|
|
42
|
+
insert(target, div2, anchor);
|
|
43
|
+
append(div2, div1);
|
|
44
|
+
append(div1, div0);
|
|
45
|
+
},
|
|
46
|
+
p(ctx, [dirty]) {
|
|
47
|
+
if (dirty & /*cameraImageUrl*/ 1) {
|
|
48
|
+
set_style(div0, "background-image", "url(" + (/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE) + ")");
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (dirty & /*rotateTransform*/ 2) {
|
|
52
|
+
set_style(div0, "transform", /*rotateTransform*/ ctx[1], false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (dirty & /*positionTransform*/ 4) {
|
|
56
|
+
set_style(div1, "transform", /*positionTransform*/ ctx[2], false);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
i: noop,
|
|
60
|
+
o: noop,
|
|
61
|
+
d(detaching) {
|
|
62
|
+
if (detaching) detach(div2);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function instance($$self, $$props, $$invalidate) {
|
|
68
|
+
let { five } = $$props;
|
|
69
|
+
let { pxmm } = $$props;
|
|
70
|
+
let { floorplanData } = $$props;
|
|
71
|
+
let { cameraImageUrl } = $$props;
|
|
72
|
+
|
|
73
|
+
/** 获取相机在当前 Five 状态下的位移 */
|
|
74
|
+
function getCameraPositionTransform(panoIndex) {
|
|
75
|
+
const observer = floorplanData.observers[panoIndex];
|
|
76
|
+
const bounding = floorplanData.bounding;
|
|
77
|
+
const clientWidth = (bounding.max.x - bounding.min.x) * pxmm;
|
|
78
|
+
const clientHeight = (bounding.max.y - bounding.min.y) * pxmm;
|
|
79
|
+
if (!observer) return '';
|
|
80
|
+
const left = Math.floor(observer.positionInImage.x * clientWidth);
|
|
81
|
+
const top = Math.floor(observer.positionInImage.y * clientHeight);
|
|
82
|
+
return `translate(${left}px, ${top}px)`;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** 获取相机在当前 Five 状态下的旋转 */
|
|
86
|
+
function getCameraRotationTransform() {
|
|
87
|
+
const { longitude } = five.getCurrentState();
|
|
88
|
+
|
|
89
|
+
// 为什么要加 45 ==> 因为 UI 给的图初始角度是 -45
|
|
90
|
+
const rotate = Math.floor(longitude / Math.PI * 180) * -1 + 45;
|
|
91
|
+
|
|
92
|
+
return `rotate(${rotate}deg)`;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const changePosition = panoIndex => {
|
|
96
|
+
$$invalidate(2, positionTransform = getCameraPositionTransform(panoIndex));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const changeRotate = throttle(
|
|
100
|
+
() => {
|
|
101
|
+
$$invalidate(1, rotateTransform = getCameraRotationTransform());
|
|
102
|
+
},
|
|
103
|
+
1000 / 60
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
// 初始状态,不能等 mount 之后再计算,那样第一次 camera 展示的时候也会有动画
|
|
107
|
+
let rotateTransform = getCameraRotationTransform();
|
|
108
|
+
|
|
109
|
+
let positionTransform = getCameraPositionTransform(five.getCurrentState().panoIndex);
|
|
110
|
+
|
|
111
|
+
onMount(() => {
|
|
112
|
+
five.on('panoWillArrive', changePosition);
|
|
113
|
+
five.on('cameraDirectionUpdate', changeRotate);
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
onDestroy(() => {
|
|
117
|
+
five.off('panoWillArrive', changePosition);
|
|
118
|
+
five.off('cameraDirectionUpdate', changeRotate);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
$$self.$$set = $$props => {
|
|
122
|
+
if ('five' in $$props) $$invalidate(3, five = $$props.five);
|
|
123
|
+
if ('pxmm' in $$props) $$invalidate(4, pxmm = $$props.pxmm);
|
|
124
|
+
if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
|
|
125
|
+
if ('cameraImageUrl' in $$props) $$invalidate(0, cameraImageUrl = $$props.cameraImageUrl);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
return [cameraImageUrl, rotateTransform, positionTransform, five, pxmm, floorplanData];
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
class Component extends SvelteComponent {
|
|
132
|
+
constructor(options) {
|
|
133
|
+
super();
|
|
134
|
+
|
|
135
|
+
init(
|
|
136
|
+
this,
|
|
137
|
+
options,
|
|
138
|
+
instance,
|
|
139
|
+
create_fragment,
|
|
140
|
+
safe_not_equal,
|
|
141
|
+
{
|
|
142
|
+
five: 3,
|
|
143
|
+
pxmm: 4,
|
|
144
|
+
floorplanData: 5,
|
|
145
|
+
cameraImageUrl: 0
|
|
146
|
+
},
|
|
147
|
+
add_css
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export default Component;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
assign,
|
|
5
|
+
check_outros,
|
|
6
|
+
create_component,
|
|
7
|
+
destroy_component,
|
|
8
|
+
detach,
|
|
9
|
+
empty,
|
|
10
|
+
get_spread_update,
|
|
11
|
+
group_outros,
|
|
12
|
+
init,
|
|
13
|
+
insert,
|
|
14
|
+
mount_component,
|
|
15
|
+
safe_not_equal,
|
|
16
|
+
space,
|
|
17
|
+
transition_in,
|
|
18
|
+
transition_out
|
|
19
|
+
} from "svelte/internal";
|
|
20
|
+
|
|
21
|
+
import ExtraObjects from './ExtraObjects';
|
|
22
|
+
import BaseImage from '../../../Components/BaseImage';
|
|
23
|
+
import Highlight from '../../../Components/RoomHighlight/RoomHighlight';
|
|
24
|
+
|
|
25
|
+
function create_if_block(ctx) {
|
|
26
|
+
let highlight;
|
|
27
|
+
let current;
|
|
28
|
+
|
|
29
|
+
const highlight_spread_levels = [
|
|
30
|
+
{
|
|
31
|
+
five: /*five*/ ctx[0],
|
|
32
|
+
pxmm: /*pxmm*/ ctx[1],
|
|
33
|
+
floorIndex: /*floorIndex*/ ctx[2],
|
|
34
|
+
floorplanData: /*floorplanData*/ ctx[4],
|
|
35
|
+
onRoomHeightClick: /*onRoomHeightClick*/ ctx[6]
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
let highlight_props = {};
|
|
40
|
+
|
|
41
|
+
for (let i = 0; i < highlight_spread_levels.length; i += 1) {
|
|
42
|
+
highlight_props = assign(highlight_props, highlight_spread_levels[i]);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
highlight = new Highlight({ props: highlight_props });
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
c() {
|
|
49
|
+
create_component(highlight.$$.fragment);
|
|
50
|
+
},
|
|
51
|
+
m(target, anchor) {
|
|
52
|
+
mount_component(highlight, target, anchor);
|
|
53
|
+
current = true;
|
|
54
|
+
},
|
|
55
|
+
p(ctx, dirty) {
|
|
56
|
+
const highlight_changes = (dirty & /*five, pxmm, floorIndex, floorplanData, onRoomHeightClick*/ 87)
|
|
57
|
+
? get_spread_update(highlight_spread_levels, [
|
|
58
|
+
{
|
|
59
|
+
five: /*five*/ ctx[0],
|
|
60
|
+
pxmm: /*pxmm*/ ctx[1],
|
|
61
|
+
floorIndex: /*floorIndex*/ ctx[2],
|
|
62
|
+
floorplanData: /*floorplanData*/ ctx[4],
|
|
63
|
+
onRoomHeightClick: /*onRoomHeightClick*/ ctx[6]
|
|
64
|
+
}
|
|
65
|
+
])
|
|
66
|
+
: {};
|
|
67
|
+
|
|
68
|
+
highlight.$set(highlight_changes);
|
|
69
|
+
},
|
|
70
|
+
i(local) {
|
|
71
|
+
if (current) return;
|
|
72
|
+
transition_in(highlight.$$.fragment, local);
|
|
73
|
+
current = true;
|
|
74
|
+
},
|
|
75
|
+
o(local) {
|
|
76
|
+
transition_out(highlight.$$.fragment, local);
|
|
77
|
+
current = false;
|
|
78
|
+
},
|
|
79
|
+
d(detaching) {
|
|
80
|
+
destroy_component(highlight, detaching);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function create_fragment(ctx) {
|
|
86
|
+
let baseimage;
|
|
87
|
+
let t0;
|
|
88
|
+
let extraobjects;
|
|
89
|
+
let t1;
|
|
90
|
+
let if_block_anchor;
|
|
91
|
+
let current;
|
|
92
|
+
|
|
93
|
+
const baseimage_spread_levels = [
|
|
94
|
+
{
|
|
95
|
+
floorIndex: /*floorIndex*/ ctx[2],
|
|
96
|
+
floorplanData: /*floorplanData*/ ctx[4]
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
|
|
100
|
+
let baseimage_props = {};
|
|
101
|
+
|
|
102
|
+
for (let i = 0; i < baseimage_spread_levels.length; i += 1) {
|
|
103
|
+
baseimage_props = assign(baseimage_props, baseimage_spread_levels[i]);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
baseimage = new BaseImage({ props: baseimage_props });
|
|
107
|
+
|
|
108
|
+
extraobjects = new ExtraObjects({
|
|
109
|
+
props: {
|
|
110
|
+
extraObjects: /*currentFloorExtraObjects*/ ctx[5]
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
let if_block = /*hoverEnable*/ ctx[3] && create_if_block(ctx);
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
c() {
|
|
118
|
+
create_component(baseimage.$$.fragment);
|
|
119
|
+
t0 = space();
|
|
120
|
+
create_component(extraobjects.$$.fragment);
|
|
121
|
+
t1 = space();
|
|
122
|
+
if (if_block) if_block.c();
|
|
123
|
+
if_block_anchor = empty();
|
|
124
|
+
},
|
|
125
|
+
m(target, anchor) {
|
|
126
|
+
mount_component(baseimage, target, anchor);
|
|
127
|
+
insert(target, t0, anchor);
|
|
128
|
+
mount_component(extraobjects, target, anchor);
|
|
129
|
+
insert(target, t1, anchor);
|
|
130
|
+
if (if_block) if_block.m(target, anchor);
|
|
131
|
+
insert(target, if_block_anchor, anchor);
|
|
132
|
+
current = true;
|
|
133
|
+
},
|
|
134
|
+
p(ctx, [dirty]) {
|
|
135
|
+
const baseimage_changes = (dirty & /*floorIndex, floorplanData*/ 20)
|
|
136
|
+
? get_spread_update(baseimage_spread_levels, [
|
|
137
|
+
{
|
|
138
|
+
floorIndex: /*floorIndex*/ ctx[2],
|
|
139
|
+
floorplanData: /*floorplanData*/ ctx[4]
|
|
140
|
+
}
|
|
141
|
+
])
|
|
142
|
+
: {};
|
|
143
|
+
|
|
144
|
+
baseimage.$set(baseimage_changes);
|
|
145
|
+
const extraobjects_changes = {};
|
|
146
|
+
if (dirty & /*currentFloorExtraObjects*/ 32) extraobjects_changes.extraObjects = /*currentFloorExtraObjects*/ ctx[5];
|
|
147
|
+
extraobjects.$set(extraobjects_changes);
|
|
148
|
+
|
|
149
|
+
if (/*hoverEnable*/ ctx[3]) {
|
|
150
|
+
if (if_block) {
|
|
151
|
+
if_block.p(ctx, dirty);
|
|
152
|
+
|
|
153
|
+
if (dirty & /*hoverEnable*/ 8) {
|
|
154
|
+
transition_in(if_block, 1);
|
|
155
|
+
}
|
|
156
|
+
} else {
|
|
157
|
+
if_block = create_if_block(ctx);
|
|
158
|
+
if_block.c();
|
|
159
|
+
transition_in(if_block, 1);
|
|
160
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
161
|
+
}
|
|
162
|
+
} else if (if_block) {
|
|
163
|
+
group_outros();
|
|
164
|
+
|
|
165
|
+
transition_out(if_block, 1, 1, () => {
|
|
166
|
+
if_block = null;
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
check_outros();
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
i(local) {
|
|
173
|
+
if (current) return;
|
|
174
|
+
transition_in(baseimage.$$.fragment, local);
|
|
175
|
+
transition_in(extraobjects.$$.fragment, local);
|
|
176
|
+
transition_in(if_block);
|
|
177
|
+
current = true;
|
|
178
|
+
},
|
|
179
|
+
o(local) {
|
|
180
|
+
transition_out(baseimage.$$.fragment, local);
|
|
181
|
+
transition_out(extraobjects.$$.fragment, local);
|
|
182
|
+
transition_out(if_block);
|
|
183
|
+
current = false;
|
|
184
|
+
},
|
|
185
|
+
d(detaching) {
|
|
186
|
+
destroy_component(baseimage, detaching);
|
|
187
|
+
if (detaching) detach(t0);
|
|
188
|
+
destroy_component(extraobjects, detaching);
|
|
189
|
+
if (detaching) detach(t1);
|
|
190
|
+
if (if_block) if_block.d(detaching);
|
|
191
|
+
if (detaching) detach(if_block_anchor);
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function instance($$self, $$props, $$invalidate) {
|
|
197
|
+
let currentFloorExtraObjects;
|
|
198
|
+
let { five } = $$props;
|
|
199
|
+
let { pxmm } = $$props;
|
|
200
|
+
let { floorIndex } = $$props;
|
|
201
|
+
let { hoverEnable } = $$props;
|
|
202
|
+
let { floorplanData } = $$props;
|
|
203
|
+
let { extraObjects = [] } = $$props;
|
|
204
|
+
const onRoomHeightClick = undefined;
|
|
205
|
+
|
|
206
|
+
$$self.$$set = $$props => {
|
|
207
|
+
if ('five' in $$props) $$invalidate(0, five = $$props.five);
|
|
208
|
+
if ('pxmm' in $$props) $$invalidate(1, pxmm = $$props.pxmm);
|
|
209
|
+
if ('floorIndex' in $$props) $$invalidate(2, floorIndex = $$props.floorIndex);
|
|
210
|
+
if ('hoverEnable' in $$props) $$invalidate(3, hoverEnable = $$props.hoverEnable);
|
|
211
|
+
if ('floorplanData' in $$props) $$invalidate(4, floorplanData = $$props.floorplanData);
|
|
212
|
+
if ('extraObjects' in $$props) $$invalidate(7, extraObjects = $$props.extraObjects);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
$$self.$$.update = () => {
|
|
216
|
+
if ($$self.$$.dirty & /*extraObjects, floorIndex*/ 132) {
|
|
217
|
+
$: $$invalidate(5, currentFloorExtraObjects = extraObjects?.filter(object => object.floorIndex === floorIndex));
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
return [
|
|
222
|
+
five,
|
|
223
|
+
pxmm,
|
|
224
|
+
floorIndex,
|
|
225
|
+
hoverEnable,
|
|
226
|
+
floorplanData,
|
|
227
|
+
currentFloorExtraObjects,
|
|
228
|
+
onRoomHeightClick,
|
|
229
|
+
extraObjects
|
|
230
|
+
];
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
class Component extends SvelteComponent {
|
|
234
|
+
constructor(options) {
|
|
235
|
+
super();
|
|
236
|
+
|
|
237
|
+
init(this, options, instance, create_fragment, safe_not_equal, {
|
|
238
|
+
five: 0,
|
|
239
|
+
pxmm: 1,
|
|
240
|
+
floorIndex: 2,
|
|
241
|
+
hoverEnable: 3,
|
|
242
|
+
floorplanData: 4,
|
|
243
|
+
extraObjects: 7
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export default Component;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append,
|
|
5
|
+
append_styles,
|
|
6
|
+
attr,
|
|
7
|
+
destroy_block,
|
|
8
|
+
detach,
|
|
9
|
+
element,
|
|
10
|
+
init,
|
|
11
|
+
insert,
|
|
12
|
+
noop,
|
|
13
|
+
safe_not_equal,
|
|
14
|
+
set_style,
|
|
15
|
+
space,
|
|
16
|
+
update_keyed_each
|
|
17
|
+
} from "svelte/internal";
|
|
18
|
+
|
|
19
|
+
function add_css(target) {
|
|
20
|
+
append_styles(target, "svelte-8n0d4v", ".plugin-pano-floorplan__extra-objects.svelte-8n0d4v{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-8n0d4v{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-8n0d4v{transform:translate(-50%, -50%)}");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function get_each_context(ctx, list, i) {
|
|
24
|
+
const child_ctx = ctx.slice();
|
|
25
|
+
child_ctx[1] = list[i];
|
|
26
|
+
return child_ctx;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// (5:2) {#each extraObjects as extraObject (extraObject.id)}
|
|
30
|
+
function create_each_block(key_1, ctx) {
|
|
31
|
+
let div1;
|
|
32
|
+
let div0;
|
|
33
|
+
let style_width = `${/*extraObject*/ ctx[1].icon.width / 16}rem`;
|
|
34
|
+
let style_height = `${/*extraObject*/ ctx[1].icon.height / 16}rem`;
|
|
35
|
+
let t;
|
|
36
|
+
let style_top = `${/*extraObject*/ ctx[1].positionInImage.y * 100}%`;
|
|
37
|
+
let style_left = `${/*extraObject*/ ctx[1].positionInImage.x * 100}%`;
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
key: key_1,
|
|
41
|
+
first: null,
|
|
42
|
+
c() {
|
|
43
|
+
div1 = element("div");
|
|
44
|
+
div0 = element("div");
|
|
45
|
+
t = space();
|
|
46
|
+
attr(div0, "class", "plugin-pano-floorplan__extra-object-item svelte-8n0d4v");
|
|
47
|
+
set_style(div0, "background-image", `url(${/*extraObject*/ ctx[1].icon.url})`);
|
|
48
|
+
set_style(div0, "width", style_width, false);
|
|
49
|
+
set_style(div0, "height", style_height, false);
|
|
50
|
+
attr(div1, "class", "plugin-pano-floorplan__extra-object-item--position svelte-8n0d4v");
|
|
51
|
+
set_style(div1, "top", style_top, false);
|
|
52
|
+
set_style(div1, "left", style_left, false);
|
|
53
|
+
this.first = div1;
|
|
54
|
+
},
|
|
55
|
+
m(target, anchor) {
|
|
56
|
+
insert(target, div1, anchor);
|
|
57
|
+
append(div1, div0);
|
|
58
|
+
append(div1, t);
|
|
59
|
+
},
|
|
60
|
+
p(new_ctx, dirty) {
|
|
61
|
+
ctx = new_ctx;
|
|
62
|
+
|
|
63
|
+
if (dirty & /*extraObjects*/ 1) {
|
|
64
|
+
set_style(div0, "background-image", `url(${/*extraObject*/ ctx[1].icon.url})`);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (dirty & /*extraObjects*/ 1 && style_width !== (style_width = `${/*extraObject*/ ctx[1].icon.width / 16}rem`)) {
|
|
68
|
+
set_style(div0, "width", style_width, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (dirty & /*extraObjects*/ 1 && style_height !== (style_height = `${/*extraObject*/ ctx[1].icon.height / 16}rem`)) {
|
|
72
|
+
set_style(div0, "height", style_height, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (dirty & /*extraObjects*/ 1 && style_top !== (style_top = `${/*extraObject*/ ctx[1].positionInImage.y * 100}%`)) {
|
|
76
|
+
set_style(div1, "top", style_top, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (dirty & /*extraObjects*/ 1 && style_left !== (style_left = `${/*extraObject*/ ctx[1].positionInImage.x * 100}%`)) {
|
|
80
|
+
set_style(div1, "left", style_left, false);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
d(detaching) {
|
|
84
|
+
if (detaching) detach(div1);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function create_fragment(ctx) {
|
|
90
|
+
let div;
|
|
91
|
+
let each_blocks = [];
|
|
92
|
+
let each_1_lookup = new Map();
|
|
93
|
+
let each_value = /*extraObjects*/ ctx[0];
|
|
94
|
+
const get_key = ctx => /*extraObject*/ ctx[1].id;
|
|
95
|
+
|
|
96
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
97
|
+
let child_ctx = get_each_context(ctx, each_value, i);
|
|
98
|
+
let key = get_key(child_ctx);
|
|
99
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
c() {
|
|
104
|
+
div = element("div");
|
|
105
|
+
|
|
106
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
107
|
+
each_blocks[i].c();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
attr(div, "class", "plugin-pano-floorplan__extra-objects svelte-8n0d4v");
|
|
111
|
+
},
|
|
112
|
+
m(target, anchor) {
|
|
113
|
+
insert(target, div, anchor);
|
|
114
|
+
|
|
115
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
116
|
+
each_blocks[i].m(div, null);
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
p(ctx, [dirty]) {
|
|
120
|
+
if (dirty & /*extraObjects*/ 1) {
|
|
121
|
+
each_value = /*extraObjects*/ ctx[0];
|
|
122
|
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, destroy_block, create_each_block, null, get_each_context);
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
i: noop,
|
|
126
|
+
o: noop,
|
|
127
|
+
d(detaching) {
|
|
128
|
+
if (detaching) detach(div);
|
|
129
|
+
|
|
130
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
131
|
+
each_blocks[i].d();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function instance($$self, $$props, $$invalidate) {
|
|
138
|
+
let { extraObjects = [] } = $$props;
|
|
139
|
+
|
|
140
|
+
$$self.$$set = $$props => {
|
|
141
|
+
if ('extraObjects' in $$props) $$invalidate(0, extraObjects = $$props.extraObjects);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
return [extraObjects];
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
class Component extends SvelteComponent {
|
|
148
|
+
constructor(options) {
|
|
149
|
+
super();
|
|
150
|
+
init(this, options, instance, create_fragment, safe_not_equal, { extraObjects: 0 }, add_css);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export default Component;
|