@realsee/dnalogel 2.0.0-alpha.2 → 2.0.0-alpha.22
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 +78 -0
- package/README.md +93 -4
- package/TERMS.txt +56 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.js +234 -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 +143 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.js +201 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/index.js +668 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +56 -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 +505 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.js +301 -0
- package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -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 +635 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoCursorRaycasterPlugin/index.js +90 -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 +13 -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 +5531 -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 +612 -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 +1294 -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/{libs/floorplan/ModelFloorplanPlugin → dist/floorplan}/Assets/compass.d.ts +0 -0
- package/dist/floorplan/Assets/floorplanExtraObject.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 +4034 -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 +1642 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +75 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3646 -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 +30 -0
- package/dist/index.es.js +15138 -0
- package/dist/index.js +15180 -0
- package/dist/index.umd.js +15173 -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 +88 -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/ModelItemLabelPluginData.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.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 +19 -0
- package/docs/modules.html +28 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/index.js +27 -26
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ModelChassisCompassPlugin/index.js +2 -2
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/libs/ModelEntryDoorGuidePlugin/index.js +13 -9
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +409 -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 +120 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/libs/ModelItemLabelPlugin/typings.js +7 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +67 -25
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.d.ts +4 -0
- package/libs/ModelTVVideoPlugin/index.js +254 -0
- package/libs/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/libs/ModelTVVideoPlugin/typings.js +8 -0
- package/libs/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/libs/ModelTVVideoPlugin/utils/parseData.js +13 -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 +253 -0
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +124 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +329 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +64 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +305 -0
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +265 -0
- package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/libs/PanoMeasurePlugin/Model/index.js +139 -0
- package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/libs/PanoMeasurePlugin/Model/line.js +114 -0
- package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/point.js +48 -0
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +65 -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 +153 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +48 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +110 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +153 -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 +148 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +70 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +102 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +79 -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 +115 -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 +33 -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 +22 -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 +400 -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 +413 -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/compass.d.ts +1 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
- package/libs/floorplan/Components/BaseImage.js +222 -0
- package/libs/floorplan/Components/Camera.js +120 -0
- package/libs/floorplan/Components/Compass.js +119 -0
- package/libs/floorplan/Components/CurrentFloor.js +456 -0
- package/libs/floorplan/Components/Main.js +464 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +68 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +199 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +173 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +265 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +331 -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/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +269 -0
- package/libs/floorplan/Components/SvgImage.js +83 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +4 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +455 -279
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +250 -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 +89 -37
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +30 -14
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +269 -118
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
- 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/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +3 -3
- package/libs/index.d.ts +22 -9
- package/libs/index.js +11 -3
- package/libs/shared-utils/Subscribe.js +8 -1
- package/libs/shared-utils/animationFrame/BetterTween.js +47 -18
- package/libs/shared-utils/createCanvasTextTexture.js +6 -5
- package/libs/shared-utils/getPxmm.d.ts +6 -1
- package/libs/shared-utils/getPxmm.js +26 -12
- package/libs/shared-utils/math/evenNumber.js +1 -1
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +2 -1
- package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
- package/libs/shared-utils/tinyEJSrender.js +210 -0
- package/libs/shared-utils/useDebounce.js +1 -1
- package/libs/shared-utils/useThrottle.js +2 -1
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +26 -13
- package/dist/dnalogel.cjs.js +0 -2
- 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,222 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append_styles,
|
|
5
|
+
attr,
|
|
6
|
+
check_outros,
|
|
7
|
+
create_component,
|
|
8
|
+
destroy_component,
|
|
9
|
+
detach,
|
|
10
|
+
element,
|
|
11
|
+
group_outros,
|
|
12
|
+
init,
|
|
13
|
+
insert,
|
|
14
|
+
mount_component,
|
|
15
|
+
safe_not_equal,
|
|
16
|
+
transition_in,
|
|
17
|
+
transition_out
|
|
18
|
+
} from "svelte/internal";
|
|
19
|
+
|
|
20
|
+
import NormalImage from './Normalmage';
|
|
21
|
+
import SvgImage from './SvgImage';
|
|
22
|
+
|
|
23
|
+
function add_css(target) {
|
|
24
|
+
append_styles(target, "svelte-126ja8e", ".floorplan-plugin__base-image.svelte-126ja8e{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// (13:22)
|
|
28
|
+
function create_if_block_1(ctx) {
|
|
29
|
+
let normalimage;
|
|
30
|
+
let current;
|
|
31
|
+
normalimage = new NormalImage({ props: { url: /*imageData*/ ctx[1].url } });
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
c() {
|
|
35
|
+
create_component(normalimage.$$.fragment);
|
|
36
|
+
},
|
|
37
|
+
m(target, anchor) {
|
|
38
|
+
mount_component(normalimage, target, anchor);
|
|
39
|
+
current = true;
|
|
40
|
+
},
|
|
41
|
+
p(ctx, dirty) {
|
|
42
|
+
const normalimage_changes = {};
|
|
43
|
+
if (dirty & /*imageData*/ 2) normalimage_changes.url = /*imageData*/ ctx[1].url;
|
|
44
|
+
normalimage.$set(normalimage_changes);
|
|
45
|
+
},
|
|
46
|
+
i(local) {
|
|
47
|
+
if (current) return;
|
|
48
|
+
transition_in(normalimage.$$.fragment, local);
|
|
49
|
+
current = true;
|
|
50
|
+
},
|
|
51
|
+
o(local) {
|
|
52
|
+
transition_out(normalimage.$$.fragment, local);
|
|
53
|
+
current = false;
|
|
54
|
+
},
|
|
55
|
+
d(detaching) {
|
|
56
|
+
destroy_component(normalimage, detaching);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// (11:2) {#if svgContent}
|
|
62
|
+
function create_if_block(ctx) {
|
|
63
|
+
let svgimage;
|
|
64
|
+
let current;
|
|
65
|
+
|
|
66
|
+
svgimage = new SvgImage({
|
|
67
|
+
props: { content: /*svgContent*/ ctx[0] }
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
c() {
|
|
72
|
+
create_component(svgimage.$$.fragment);
|
|
73
|
+
},
|
|
74
|
+
m(target, anchor) {
|
|
75
|
+
mount_component(svgimage, target, anchor);
|
|
76
|
+
current = true;
|
|
77
|
+
},
|
|
78
|
+
p(ctx, dirty) {
|
|
79
|
+
const svgimage_changes = {};
|
|
80
|
+
if (dirty & /*svgContent*/ 1) svgimage_changes.content = /*svgContent*/ ctx[0];
|
|
81
|
+
svgimage.$set(svgimage_changes);
|
|
82
|
+
},
|
|
83
|
+
i(local) {
|
|
84
|
+
if (current) return;
|
|
85
|
+
transition_in(svgimage.$$.fragment, local);
|
|
86
|
+
current = true;
|
|
87
|
+
},
|
|
88
|
+
o(local) {
|
|
89
|
+
transition_out(svgimage.$$.fragment, local);
|
|
90
|
+
current = false;
|
|
91
|
+
},
|
|
92
|
+
d(detaching) {
|
|
93
|
+
destroy_component(svgimage, detaching);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function create_fragment(ctx) {
|
|
99
|
+
let div;
|
|
100
|
+
let current_block_type_index;
|
|
101
|
+
let if_block;
|
|
102
|
+
let current;
|
|
103
|
+
const if_block_creators = [create_if_block, create_if_block_1];
|
|
104
|
+
const if_blocks = [];
|
|
105
|
+
|
|
106
|
+
function select_block_type(ctx, dirty) {
|
|
107
|
+
if (/*svgContent*/ ctx[0]) return 0;
|
|
108
|
+
if (/*imageData*/ ctx[1]) return 1;
|
|
109
|
+
return -1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (~(current_block_type_index = select_block_type(ctx, -1))) {
|
|
113
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
c() {
|
|
118
|
+
div = element("div");
|
|
119
|
+
if (if_block) if_block.c();
|
|
120
|
+
attr(div, "class", "floorplan-plugin__base-image svelte-126ja8e");
|
|
121
|
+
},
|
|
122
|
+
m(target, anchor) {
|
|
123
|
+
insert(target, div, anchor);
|
|
124
|
+
|
|
125
|
+
if (~current_block_type_index) {
|
|
126
|
+
if_blocks[current_block_type_index].m(div, null);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
current = true;
|
|
130
|
+
},
|
|
131
|
+
p(ctx, [dirty]) {
|
|
132
|
+
let previous_block_index = current_block_type_index;
|
|
133
|
+
current_block_type_index = select_block_type(ctx, dirty);
|
|
134
|
+
|
|
135
|
+
if (current_block_type_index === previous_block_index) {
|
|
136
|
+
if (~current_block_type_index) {
|
|
137
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
138
|
+
}
|
|
139
|
+
} else {
|
|
140
|
+
if (if_block) {
|
|
141
|
+
group_outros();
|
|
142
|
+
|
|
143
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
144
|
+
if_blocks[previous_block_index] = null;
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
check_outros();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (~current_block_type_index) {
|
|
151
|
+
if_block = if_blocks[current_block_type_index];
|
|
152
|
+
|
|
153
|
+
if (!if_block) {
|
|
154
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
155
|
+
if_block.c();
|
|
156
|
+
} else {
|
|
157
|
+
if_block.p(ctx, dirty);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
transition_in(if_block, 1);
|
|
161
|
+
if_block.m(div, null);
|
|
162
|
+
} else {
|
|
163
|
+
if_block = null;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
i(local) {
|
|
168
|
+
if (current) return;
|
|
169
|
+
transition_in(if_block);
|
|
170
|
+
current = true;
|
|
171
|
+
},
|
|
172
|
+
o(local) {
|
|
173
|
+
transition_out(if_block);
|
|
174
|
+
current = false;
|
|
175
|
+
},
|
|
176
|
+
d(detaching) {
|
|
177
|
+
if (detaching) detach(div);
|
|
178
|
+
|
|
179
|
+
if (~current_block_type_index) {
|
|
180
|
+
if_blocks[current_block_type_index].d();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function instance($$self, $$props, $$invalidate) {
|
|
187
|
+
let imageData;
|
|
188
|
+
let svgContent;
|
|
189
|
+
var _a, _b;
|
|
190
|
+
let { floorIndex } = $$props;
|
|
191
|
+
let { floorplanData } = $$props;
|
|
192
|
+
|
|
193
|
+
$$self.$$set = $$props => {
|
|
194
|
+
if ('floorIndex' in $$props) $$invalidate(2, floorIndex = $$props.floorIndex);
|
|
195
|
+
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
$$self.$$.update = () => {
|
|
199
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 12) {
|
|
200
|
+
$: $$invalidate(1, imageData = floorplanData.outlines[floorIndex]);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if ($$self.$$.dirty & /*floorplanData, _a, floorIndex, _b*/ 60) {
|
|
204
|
+
$: $$invalidate(0, svgContent = $$invalidate(5, _b = $$invalidate(4, _a = floorplanData.outlines) === null || _a === void 0
|
|
205
|
+
? void 0
|
|
206
|
+
: _a[floorIndex]) === null || _b === void 0
|
|
207
|
+
? void 0
|
|
208
|
+
: _b.svgContent);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
return [svgContent, imageData, floorIndex, floorplanData, _a, _b];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
class Component extends SvelteComponent {
|
|
216
|
+
constructor(options) {
|
|
217
|
+
super();
|
|
218
|
+
init(this, options, instance, create_fragment, safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export default Component;
|
|
@@ -0,0 +1,120 @@
|
|
|
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 { CAMERA_IMAGE } from '../Assets/camera';
|
|
17
|
+
import rad2Deg from '../../shared-utils/math/rad2Deg';
|
|
18
|
+
|
|
19
|
+
function add_css(target) {
|
|
20
|
+
append_styles(target, "svelte-e8a2kn", ".floorplan__camera-position.svelte-e8a2kn{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-e8a2kn{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function create_fragment(ctx) {
|
|
24
|
+
let div1;
|
|
25
|
+
let div0;
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
c() {
|
|
29
|
+
div1 = element("div");
|
|
30
|
+
div0 = element("div");
|
|
31
|
+
attr(div0, "class", "floorplan__camera-rotate svelte-e8a2kn");
|
|
32
|
+
set_style(div0, "background-image", `url(${/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE})`);
|
|
33
|
+
set_style(div0, "width", /*domSizeStyle*/ ctx[4], false);
|
|
34
|
+
set_style(div0, "height", /*domSizeStyle*/ ctx[4], false);
|
|
35
|
+
set_style(div0, "left", '-' + /*domSizeStyle*/ ctx[4], false);
|
|
36
|
+
set_style(div0, "top", '-' + /*domSizeStyle*/ ctx[4], false);
|
|
37
|
+
set_style(div0, "transform", `rotate(${/*rotate*/ ctx[3]}deg)`, false);
|
|
38
|
+
set_style(div0, "transform-origin", `${/*domSizeStyle*/ ctx[4]} ${/*domSizeStyle*/ ctx[4]}`, false);
|
|
39
|
+
attr(div1, "class", "floorplan__camera-position svelte-e8a2kn");
|
|
40
|
+
set_style(div1, "left", /*positionLeft*/ ctx[1], false);
|
|
41
|
+
set_style(div1, "top", /*positionTop*/ ctx[2], false);
|
|
42
|
+
},
|
|
43
|
+
m(target, anchor) {
|
|
44
|
+
insert(target, div1, anchor);
|
|
45
|
+
append(div1, div0);
|
|
46
|
+
},
|
|
47
|
+
p(ctx, [dirty]) {
|
|
48
|
+
if (dirty & /*cameraImageUrl*/ 1) {
|
|
49
|
+
set_style(div0, "background-image", `url(${/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE})`);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
i: noop,
|
|
53
|
+
o: noop,
|
|
54
|
+
d(detaching) {
|
|
55
|
+
if (detaching) detach(div1);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function instance($$self, $$props, $$invalidate) {
|
|
61
|
+
let { panoIndex } = $$props;
|
|
62
|
+
let { floorplanData } = $$props;
|
|
63
|
+
let { lastPanoramaLongitude } = $$props;
|
|
64
|
+
let { cameraImageUrl } = $$props;
|
|
65
|
+
const { observers } = floorplanData;
|
|
66
|
+
const observer = observers[panoIndex];
|
|
67
|
+
const leftRatio = observer.positionInImage.x;
|
|
68
|
+
const topRatio = observer.positionInImage.y;
|
|
69
|
+
const positionLeft = leftRatio * 100 + '%';
|
|
70
|
+
const positionTop = topRatio * 100 + '%';
|
|
71
|
+
const rotate = -rad2Deg(lastPanoramaLongitude) + 45;
|
|
72
|
+
|
|
73
|
+
// TODO: 统一这里的判断条件,目前写了多处
|
|
74
|
+
const bodyWidth = document.body.clientWidth;
|
|
75
|
+
|
|
76
|
+
const bodyHeight = document.body.clientHeight;
|
|
77
|
+
const size = bodyWidth < 500 || bodyHeight < 500 ? 17 : 37;
|
|
78
|
+
const domSizeStyle = `${size / 16}rem`;
|
|
79
|
+
|
|
80
|
+
$$self.$$set = $$props => {
|
|
81
|
+
if ('panoIndex' in $$props) $$invalidate(5, panoIndex = $$props.panoIndex);
|
|
82
|
+
if ('floorplanData' in $$props) $$invalidate(6, floorplanData = $$props.floorplanData);
|
|
83
|
+
if ('lastPanoramaLongitude' in $$props) $$invalidate(7, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
84
|
+
if ('cameraImageUrl' in $$props) $$invalidate(0, cameraImageUrl = $$props.cameraImageUrl);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return [
|
|
88
|
+
cameraImageUrl,
|
|
89
|
+
positionLeft,
|
|
90
|
+
positionTop,
|
|
91
|
+
rotate,
|
|
92
|
+
domSizeStyle,
|
|
93
|
+
panoIndex,
|
|
94
|
+
floorplanData,
|
|
95
|
+
lastPanoramaLongitude
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
class Component extends SvelteComponent {
|
|
100
|
+
constructor(options) {
|
|
101
|
+
super();
|
|
102
|
+
|
|
103
|
+
init(
|
|
104
|
+
this,
|
|
105
|
+
options,
|
|
106
|
+
instance,
|
|
107
|
+
create_fragment,
|
|
108
|
+
safe_not_equal,
|
|
109
|
+
{
|
|
110
|
+
panoIndex: 5,
|
|
111
|
+
floorplanData: 6,
|
|
112
|
+
lastPanoramaLongitude: 7,
|
|
113
|
+
cameraImageUrl: 0
|
|
114
|
+
},
|
|
115
|
+
add_css
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export default Component;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append,
|
|
5
|
+
append_styles,
|
|
6
|
+
attr,
|
|
7
|
+
detach,
|
|
8
|
+
element,
|
|
9
|
+
empty,
|
|
10
|
+
init,
|
|
11
|
+
insert,
|
|
12
|
+
noop,
|
|
13
|
+
safe_not_equal,
|
|
14
|
+
set_data,
|
|
15
|
+
set_style,
|
|
16
|
+
space,
|
|
17
|
+
text
|
|
18
|
+
} from "svelte/internal";
|
|
19
|
+
|
|
20
|
+
import { COMPASS_IMAGE } from '../Assets/compass';
|
|
21
|
+
|
|
22
|
+
function add_css(target) {
|
|
23
|
+
append_styles(target, "svelte-5l80pv", ".floorplan-plugin__compass.svelte-5l80pv{position:absolute;left:50%;top:-46px;width:231px;height:41px;will-change:opacity;transform-origin:center 184px}.floorplan-plugin__compass-image.svelte-5l80pv{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-5l80pv{position:absolute;left:50%;top:15px;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:10px;color:#fff}");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// (13:0) {#if northRad}
|
|
27
|
+
function create_if_block(ctx) {
|
|
28
|
+
let div1;
|
|
29
|
+
let div0;
|
|
30
|
+
let t0;
|
|
31
|
+
let span;
|
|
32
|
+
let t1;
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
c() {
|
|
36
|
+
div1 = element("div");
|
|
37
|
+
div0 = element("div");
|
|
38
|
+
t0 = space();
|
|
39
|
+
span = element("span");
|
|
40
|
+
t1 = text(/*northDesc*/ ctx[0]);
|
|
41
|
+
attr(div0, "class", "floorplan-plugin__compass-image svelte-5l80pv");
|
|
42
|
+
set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
|
|
43
|
+
attr(span, "class", "floorplan-plugin__compass-text svelte-5l80pv");
|
|
44
|
+
attr(div1, "class", "floorplan-plugin__compass svelte-5l80pv");
|
|
45
|
+
set_style(div1, "transform", /*compassTransformStyle*/ ctx[2], false);
|
|
46
|
+
},
|
|
47
|
+
m(target, anchor) {
|
|
48
|
+
insert(target, div1, anchor);
|
|
49
|
+
append(div1, div0);
|
|
50
|
+
append(div1, t0);
|
|
51
|
+
append(div1, span);
|
|
52
|
+
append(span, t1);
|
|
53
|
+
},
|
|
54
|
+
p(ctx, dirty) {
|
|
55
|
+
if (dirty & /*northDesc*/ 1) set_data(t1, /*northDesc*/ ctx[0]);
|
|
56
|
+
},
|
|
57
|
+
d(detaching) {
|
|
58
|
+
if (detaching) detach(div1);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function create_fragment(ctx) {
|
|
64
|
+
let if_block_anchor;
|
|
65
|
+
let if_block = /*northRad*/ ctx[1] && create_if_block(ctx);
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
c() {
|
|
69
|
+
if (if_block) if_block.c();
|
|
70
|
+
if_block_anchor = empty();
|
|
71
|
+
},
|
|
72
|
+
m(target, anchor) {
|
|
73
|
+
if (if_block) if_block.m(target, anchor);
|
|
74
|
+
insert(target, if_block_anchor, anchor);
|
|
75
|
+
},
|
|
76
|
+
p(ctx, [dirty]) {
|
|
77
|
+
if (/*northRad*/ ctx[1]) if_block.p(ctx, dirty);
|
|
78
|
+
},
|
|
79
|
+
i: noop,
|
|
80
|
+
o: noop,
|
|
81
|
+
d(detaching) {
|
|
82
|
+
if (if_block) if_block.d(detaching);
|
|
83
|
+
if (detaching) detach(if_block_anchor);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function rad2Deg(rad) {
|
|
89
|
+
return rad / Math.PI * 180;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function instance($$self, $$props, $$invalidate) {
|
|
93
|
+
var _a;
|
|
94
|
+
let { floorplanData } = $$props;
|
|
95
|
+
let { northDesc } = $$props;
|
|
96
|
+
|
|
97
|
+
const northRad = (_a = floorplanData.entrance) === null || _a === void 0
|
|
98
|
+
? void 0
|
|
99
|
+
: _a.northRad;
|
|
100
|
+
|
|
101
|
+
const rotate = !northRad ? 0 : rad2Deg(northRad);
|
|
102
|
+
const compassTransformStyle = `translateX(-50%) translateZ(10px) rotate(${-rotate + 90}deg)`;
|
|
103
|
+
|
|
104
|
+
$$self.$$set = $$props => {
|
|
105
|
+
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
106
|
+
if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
return [northDesc, northRad, compassTransformStyle, floorplanData];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
class Component extends SvelteComponent {
|
|
113
|
+
constructor(options) {
|
|
114
|
+
super();
|
|
115
|
+
init(this, options, instance, create_fragment, safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export default Component;
|