@realsee/dnalogel 2.0.0-alpha.6 → 2.0.0-alpha.9
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 +14 -0
- package/README.md +44 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.js +233 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.js +142 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
- package/dist/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 +461 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelViewPlugin/index.d.ts +17 -0
- package/dist/ModelViewPlugin/index.js +187 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +51 -0
- package/dist/PanoCompassPlugin/index.js +523 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoCursorRaycasterPlugin/index.js +88 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/dist/PanoMeasurePlugin/index.d.ts +7 -0
- package/dist/PanoMeasurePlugin/index.js +4789 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/index.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.js +610 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +104 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +3827 -0
- package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +61 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3466 -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 +24 -0
- package/dist/index.es.js +11887 -0
- package/dist/index.js +11925 -0
- package/dist/index.umd.js +11920 -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/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/assets/highlight.css +49 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/index.html +37 -4
- package/docs/interfaces/LineJson.html +1 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PointJson.html +1 -0
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/modules.html +11 -11
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +2 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +253 -0
- package/libs/ModelViewPlugin/index.js +6 -6
- package/libs/PanoCompassPlugin/index.d.ts +3 -3
- package/libs/PanoCompassPlugin/index.js +56 -44
- 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/floorplan/Components/BaseImage.js +217 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +70 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +289 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +328 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
- package/libs/floorplan/Components/SvgImage.js +83 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +120 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +106 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +463 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +375 -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.js +1 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +248 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/index.d.ts +2 -0
- package/libs/index.js +1 -0
- package/package.json +19 -11
- package/dist/dnalogel.cjs.js +0 -2
- package/dist/dnalogel.es.js +0 -37923
- 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,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;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
add_render_callback,
|
|
5
|
+
add_resize_listener,
|
|
6
|
+
append,
|
|
7
|
+
append_styles,
|
|
8
|
+
assign,
|
|
9
|
+
attr,
|
|
10
|
+
check_outros,
|
|
11
|
+
create_component,
|
|
12
|
+
destroy_component,
|
|
13
|
+
detach,
|
|
14
|
+
element,
|
|
15
|
+
get_spread_update,
|
|
16
|
+
group_outros,
|
|
17
|
+
init,
|
|
18
|
+
insert,
|
|
19
|
+
mount_component,
|
|
20
|
+
safe_not_equal,
|
|
21
|
+
set_style,
|
|
22
|
+
space,
|
|
23
|
+
transition_in,
|
|
24
|
+
transition_out
|
|
25
|
+
} from "svelte/internal";
|
|
26
|
+
|
|
27
|
+
import { onMount } from 'svelte';
|
|
28
|
+
import Camera from './Camera';
|
|
29
|
+
import CurrentFloor from './CurrentFloor/CurrentFloor';
|
|
30
|
+
|
|
31
|
+
function add_css(target) {
|
|
32
|
+
append_styles(target, "svelte-7d8ub2", ".plugin-floorplan-radar.svelte-7d8ub2{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-7d8ub2{position:relative}");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// (41:2) {#if clientWidth !== 0}
|
|
36
|
+
function create_if_block(ctx) {
|
|
37
|
+
let div;
|
|
38
|
+
let currentfloor;
|
|
39
|
+
let t;
|
|
40
|
+
let camera;
|
|
41
|
+
let style_width = `${/*contentWidth*/ ctx[7]}px`;
|
|
42
|
+
let style_height = `${/*contentHeight*/ ctx[10]}px`;
|
|
43
|
+
let current;
|
|
44
|
+
|
|
45
|
+
const currentfloor_spread_levels = [
|
|
46
|
+
{
|
|
47
|
+
five: /*five*/ ctx[0],
|
|
48
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
49
|
+
floorIndex: /*floorIndex*/ ctx[9],
|
|
50
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
51
|
+
hoverEnable: /*hoverEnable*/ ctx[1],
|
|
52
|
+
extraObjects: /*extraObjects*/ ctx[4]
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
let currentfloor_props = {};
|
|
57
|
+
|
|
58
|
+
for (let i = 0; i < currentfloor_spread_levels.length; i += 1) {
|
|
59
|
+
currentfloor_props = assign(currentfloor_props, currentfloor_spread_levels[i]);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
currentfloor = new CurrentFloor({ props: currentfloor_props });
|
|
63
|
+
|
|
64
|
+
const camera_spread_levels = [
|
|
65
|
+
{
|
|
66
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
67
|
+
five: /*five*/ ctx[0],
|
|
68
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
69
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[3]
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
let camera_props = {};
|
|
74
|
+
|
|
75
|
+
for (let i = 0; i < camera_spread_levels.length; i += 1) {
|
|
76
|
+
camera_props = assign(camera_props, camera_spread_levels[i]);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
camera = new Camera({ props: camera_props });
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
c() {
|
|
83
|
+
div = element("div");
|
|
84
|
+
create_component(currentfloor.$$.fragment);
|
|
85
|
+
t = space();
|
|
86
|
+
create_component(camera.$$.fragment);
|
|
87
|
+
attr(div, "class", "plugin-floorplan-radar-container svelte-7d8ub2");
|
|
88
|
+
set_style(div, "width", style_width, false);
|
|
89
|
+
set_style(div, "height", style_height, false);
|
|
90
|
+
},
|
|
91
|
+
m(target, anchor) {
|
|
92
|
+
insert(target, div, anchor);
|
|
93
|
+
mount_component(currentfloor, div, null);
|
|
94
|
+
append(div, t);
|
|
95
|
+
mount_component(camera, div, null);
|
|
96
|
+
current = true;
|
|
97
|
+
},
|
|
98
|
+
p(ctx, dirty) {
|
|
99
|
+
const currentfloor_changes = (dirty & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects*/ 791)
|
|
100
|
+
? get_spread_update(currentfloor_spread_levels, [
|
|
101
|
+
{
|
|
102
|
+
five: /*five*/ ctx[0],
|
|
103
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
104
|
+
floorIndex: /*floorIndex*/ ctx[9],
|
|
105
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
106
|
+
hoverEnable: /*hoverEnable*/ ctx[1],
|
|
107
|
+
extraObjects: /*extraObjects*/ ctx[4]
|
|
108
|
+
}
|
|
109
|
+
])
|
|
110
|
+
: {};
|
|
111
|
+
|
|
112
|
+
currentfloor.$set(currentfloor_changes);
|
|
113
|
+
|
|
114
|
+
const camera_changes = (dirty & /*pxmm, five, floorplanData, cameraImageUrl*/ 269)
|
|
115
|
+
? get_spread_update(camera_spread_levels, [
|
|
116
|
+
{
|
|
117
|
+
pxmm: /*pxmm*/ ctx[8],
|
|
118
|
+
five: /*five*/ ctx[0],
|
|
119
|
+
floorplanData: /*floorplanData*/ ctx[2],
|
|
120
|
+
cameraImageUrl: /*cameraImageUrl*/ ctx[3]
|
|
121
|
+
}
|
|
122
|
+
])
|
|
123
|
+
: {};
|
|
124
|
+
|
|
125
|
+
camera.$set(camera_changes);
|
|
126
|
+
|
|
127
|
+
if (dirty & /*contentWidth*/ 128 && style_width !== (style_width = `${/*contentWidth*/ ctx[7]}px`)) {
|
|
128
|
+
set_style(div, "width", style_width, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (dirty & /*contentHeight*/ 1024 && style_height !== (style_height = `${/*contentHeight*/ ctx[10]}px`)) {
|
|
132
|
+
set_style(div, "height", style_height, false);
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
i(local) {
|
|
136
|
+
if (current) return;
|
|
137
|
+
transition_in(currentfloor.$$.fragment, local);
|
|
138
|
+
transition_in(camera.$$.fragment, local);
|
|
139
|
+
current = true;
|
|
140
|
+
},
|
|
141
|
+
o(local) {
|
|
142
|
+
transition_out(currentfloor.$$.fragment, local);
|
|
143
|
+
transition_out(camera.$$.fragment, local);
|
|
144
|
+
current = false;
|
|
145
|
+
},
|
|
146
|
+
d(detaching) {
|
|
147
|
+
if (detaching) detach(div);
|
|
148
|
+
destroy_component(currentfloor);
|
|
149
|
+
destroy_component(camera);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function create_fragment(ctx) {
|
|
155
|
+
let div;
|
|
156
|
+
let div_resize_listener;
|
|
157
|
+
let current;
|
|
158
|
+
let if_block = /*clientWidth*/ ctx[5] !== 0 && create_if_block(ctx);
|
|
159
|
+
|
|
160
|
+
return {
|
|
161
|
+
c() {
|
|
162
|
+
div = element("div");
|
|
163
|
+
if (if_block) if_block.c();
|
|
164
|
+
attr(div, "class", "plugin-floorplan-radar svelte-7d8ub2");
|
|
165
|
+
add_render_callback(() => /*div_elementresize_handler*/ ctx[11].call(div));
|
|
166
|
+
},
|
|
167
|
+
m(target, anchor) {
|
|
168
|
+
insert(target, div, anchor);
|
|
169
|
+
if (if_block) if_block.m(div, null);
|
|
170
|
+
div_resize_listener = add_resize_listener(div, /*div_elementresize_handler*/ ctx[11].bind(div));
|
|
171
|
+
current = true;
|
|
172
|
+
},
|
|
173
|
+
p(ctx, [dirty]) {
|
|
174
|
+
if (/*clientWidth*/ ctx[5] !== 0) {
|
|
175
|
+
if (if_block) {
|
|
176
|
+
if_block.p(ctx, dirty);
|
|
177
|
+
|
|
178
|
+
if (dirty & /*clientWidth*/ 32) {
|
|
179
|
+
transition_in(if_block, 1);
|
|
180
|
+
}
|
|
181
|
+
} else {
|
|
182
|
+
if_block = create_if_block(ctx);
|
|
183
|
+
if_block.c();
|
|
184
|
+
transition_in(if_block, 1);
|
|
185
|
+
if_block.m(div, null);
|
|
186
|
+
}
|
|
187
|
+
} else if (if_block) {
|
|
188
|
+
group_outros();
|
|
189
|
+
|
|
190
|
+
transition_out(if_block, 1, 1, () => {
|
|
191
|
+
if_block = null;
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
check_outros();
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
i(local) {
|
|
198
|
+
if (current) return;
|
|
199
|
+
transition_in(if_block);
|
|
200
|
+
current = true;
|
|
201
|
+
},
|
|
202
|
+
o(local) {
|
|
203
|
+
transition_out(if_block);
|
|
204
|
+
current = false;
|
|
205
|
+
},
|
|
206
|
+
d(detaching) {
|
|
207
|
+
if (detaching) detach(div);
|
|
208
|
+
if (if_block) if_block.d();
|
|
209
|
+
div_resize_listener();
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function instance($$self, $$props, $$invalidate) {
|
|
215
|
+
let { five } = $$props;
|
|
216
|
+
let { hoverEnable } = $$props;
|
|
217
|
+
let { floorplanData } = $$props;
|
|
218
|
+
let { cameraImageUrl } = $$props;
|
|
219
|
+
let { extraObjects = [] } = $$props;
|
|
220
|
+
let pxmm = 0;
|
|
221
|
+
let floorIndex = 0;
|
|
222
|
+
let clientWidth = 0;
|
|
223
|
+
let clientHeight = 0;
|
|
224
|
+
let contentWidth = 0;
|
|
225
|
+
let contentHeight = 0;
|
|
226
|
+
|
|
227
|
+
function handlePanoArrived(panoIndex) {
|
|
228
|
+
$$invalidate(9, floorIndex = five.work.observers[panoIndex].floorIndex);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
onMount(() => {
|
|
232
|
+
five.on('panoArrived', handlePanoArrived);
|
|
233
|
+
|
|
234
|
+
return () => {
|
|
235
|
+
five.off('panoArrived', handlePanoArrived);
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
function div_elementresize_handler() {
|
|
240
|
+
clientWidth = this.clientWidth;
|
|
241
|
+
clientHeight = this.clientHeight;
|
|
242
|
+
$$invalidate(5, clientWidth);
|
|
243
|
+
$$invalidate(6, clientHeight);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
$$self.$$set = $$props => {
|
|
247
|
+
if ('five' in $$props) $$invalidate(0, five = $$props.five);
|
|
248
|
+
if ('hoverEnable' in $$props) $$invalidate(1, hoverEnable = $$props.hoverEnable);
|
|
249
|
+
if ('floorplanData' in $$props) $$invalidate(2, floorplanData = $$props.floorplanData);
|
|
250
|
+
if ('cameraImageUrl' in $$props) $$invalidate(3, cameraImageUrl = $$props.cameraImageUrl);
|
|
251
|
+
if ('extraObjects' in $$props) $$invalidate(4, extraObjects = $$props.extraObjects);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
$$self.$$.update = () => {
|
|
255
|
+
if ($$self.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/ 228) {
|
|
256
|
+
$: {
|
|
257
|
+
const size = Math.min(clientWidth, clientHeight);
|
|
258
|
+
const { max, min } = floorplanData.bounding;
|
|
259
|
+
const boundingWidth = max.x - min.x;
|
|
260
|
+
const boundingHeight = max.y - min.y;
|
|
261
|
+
|
|
262
|
+
const contentSize = (function getSize() {
|
|
263
|
+
if (boundingWidth > boundingHeight) return [size, size / boundingWidth * boundingHeight];
|
|
264
|
+
return [size / boundingHeight * boundingWidth, size];
|
|
265
|
+
})();
|
|
266
|
+
|
|
267
|
+
$$invalidate(7, contentWidth = contentSize[0]);
|
|
268
|
+
$$invalidate(10, contentHeight = contentSize[1]);
|
|
269
|
+
$$invalidate(8, pxmm = contentWidth / boundingWidth);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
return [
|
|
275
|
+
five,
|
|
276
|
+
hoverEnable,
|
|
277
|
+
floorplanData,
|
|
278
|
+
cameraImageUrl,
|
|
279
|
+
extraObjects,
|
|
280
|
+
clientWidth,
|
|
281
|
+
clientHeight,
|
|
282
|
+
contentWidth,
|
|
283
|
+
pxmm,
|
|
284
|
+
floorIndex,
|
|
285
|
+
contentHeight,
|
|
286
|
+
div_elementresize_handler
|
|
287
|
+
];
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
class Component extends SvelteComponent {
|
|
291
|
+
constructor(options) {
|
|
292
|
+
super();
|
|
293
|
+
|
|
294
|
+
init(
|
|
295
|
+
this,
|
|
296
|
+
options,
|
|
297
|
+
instance,
|
|
298
|
+
create_fragment,
|
|
299
|
+
safe_not_equal,
|
|
300
|
+
{
|
|
301
|
+
five: 0,
|
|
302
|
+
hoverEnable: 1,
|
|
303
|
+
floorplanData: 2,
|
|
304
|
+
cameraImageUrl: 3,
|
|
305
|
+
extraObjects: 4
|
|
306
|
+
},
|
|
307
|
+
add_css
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export default Component;
|
|
@@ -2,7 +2,7 @@ import { pluginStyle } from './style';
|
|
|
2
2
|
import formatData from '../utils/formatData';
|
|
3
3
|
import { omit } from '../../shared-utils/filter';
|
|
4
4
|
import getPxmm from '../../shared-utils/getPxmm';
|
|
5
|
-
import Main from "../ModelFloorplanPlugin/Components/Main
|
|
5
|
+
import Main from "../ModelFloorplanPlugin/Components/Main";
|
|
6
6
|
import changeModelCanvasOpacity from '../../shared-utils/changeModelCanvasOpacity';
|
|
7
7
|
export class TopviewFloorplanPluginController {
|
|
8
8
|
size = { width: 0, height: 0 };
|
package/libs/index.d.ts
CHANGED
|
@@ -20,3 +20,5 @@ export type { PanoRulerPluginParameterType, PanoRulerPluginExportType, PanoRuler
|
|
|
20
20
|
export { default as PanoRulerPlugin } from './PanoRulerPlugin';
|
|
21
21
|
export type { PanoCompassPluginParameterType, PanoCompassPluginExportType, PanoCompassPluginData, } from './PanoCompassPlugin';
|
|
22
22
|
export { default as PanoCompassPlugin } from './PanoCompassPlugin';
|
|
23
|
+
export type { PluginReturns, PluginEvent, LineJson, PointJson } from './PanoMeasurePlugin';
|
|
24
|
+
export { default as PanoMeasurePlugin } from './PanoMeasurePlugin';
|
package/libs/index.js
CHANGED
|
@@ -12,3 +12,4 @@ export { default as ModelEntryDoorGuidePlugin } from './ModelEntryDoorGuidePlugi
|
|
|
12
12
|
export { default as CameraMovementPlugin } from './CameraMovementPlugin';
|
|
13
13
|
export { default as PanoRulerPlugin } from './PanoRulerPlugin';
|
|
14
14
|
export { default as PanoCompassPlugin } from './PanoCompassPlugin';
|
|
15
|
+
export { default as PanoMeasurePlugin } from './PanoMeasurePlugin';
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
3
|
"main": "libs/index.js",
|
|
4
|
+
"typings": "./lib/index.d.ts",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"author": "REALSEE-DEVELOPER",
|
|
6
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
7
8
|
"private": false,
|
|
8
|
-
"version": "2.0.0-alpha.
|
|
9
|
+
"version": "2.0.0-alpha.9",
|
|
9
10
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
10
11
|
"scripts": {
|
|
11
|
-
"build
|
|
12
|
-
"build": "yarn
|
|
13
|
-
"
|
|
14
|
-
"
|
|
12
|
+
"build": "yarn run tsb && yarn run build:rollup && yarn build:docs",
|
|
13
|
+
"build:dev": "yarn build:svelte && tsc --watch",
|
|
14
|
+
"build:rollup": " rollup --config rollup.config.js",
|
|
15
|
+
"tsb": "tsc && yarn build:svelte && ./bin/svelte-compile.js",
|
|
16
|
+
"build:svelte": "svelte-strip strip src/ libs -m=false",
|
|
15
17
|
"build:docs": "typedoc --options ./typedoc.json",
|
|
16
18
|
"preview": "vite preview",
|
|
17
19
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
@@ -26,9 +28,9 @@
|
|
|
26
28
|
"@babel/core": "^7.17.5",
|
|
27
29
|
"@realsee/five": "^5.0.0-alpha.98",
|
|
28
30
|
"@rollup/plugin-alias": "^3.1.9",
|
|
29
|
-
"@
|
|
31
|
+
"@rollup/plugin-commonjs": "^21.1.0",
|
|
32
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
30
33
|
"@tsconfig/svelte": "^2.0.1",
|
|
31
|
-
"@tweenjs/tween.js": "^18.6.4",
|
|
32
34
|
"@typescript-eslint/eslint-plugin": "^5.12.1",
|
|
33
35
|
"@typescript-eslint/parser": "^5.12.1",
|
|
34
36
|
"@vitejs/plugin-react-refresh": "^1.3.6",
|
|
@@ -36,18 +38,24 @@
|
|
|
36
38
|
"classnames": "^2.3.1",
|
|
37
39
|
"eslint": "^8.9.0",
|
|
38
40
|
"eslint-config-alloy": "^4.5.1",
|
|
39
|
-
"glob": "^
|
|
40
|
-
"hammerjs": "^2.0.8",
|
|
41
|
+
"glob": "^8.0.1",
|
|
41
42
|
"postcss": "^8.4.6",
|
|
42
43
|
"postcss-plugin-px2rem": "^0.8.1",
|
|
43
|
-
"
|
|
44
|
+
"replace": "^1.2.1",
|
|
45
|
+
"rollup-plugin-multi-input": "^1.3.1",
|
|
46
|
+
"rollup-plugin-svelte": "^7.1.0",
|
|
44
47
|
"svelte-check": "^2.2.7",
|
|
45
|
-
"svelte-preprocess": "^4.
|
|
48
|
+
"svelte-preprocess": "^4.10.6",
|
|
46
49
|
"svelte-strip": "^1.0.1",
|
|
47
50
|
"three": "0.117.1",
|
|
48
51
|
"tslib": "^2.3.1",
|
|
49
52
|
"typedoc": "^0.22.11",
|
|
50
53
|
"typescript": "^4.5.5",
|
|
51
54
|
"vite": "^2.8.0"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@tweenjs/tween.js": "^18.6.4",
|
|
58
|
+
"hammerjs": "^2.0.8",
|
|
59
|
+
"svelte": "^3.47.0"
|
|
52
60
|
}
|
|
53
61
|
}
|