@realsee/dnalogel 2.0.0-alpha.9 → 2.0.0-beta.36
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/README.md +78 -28
- package/components/index.js +1450 -0
- package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +3 -48
- package/dist/CSS3DRenderPlugin/index.js +27 -26
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +4 -6
- package/dist/CameraMovementPlugin/index.js +12 -12
- package/dist/CameraMovementPlugin/typing.d.ts +1 -1
- package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.js +941 -0
- package/dist/ItemLabelPlugin/typings.d.ts +59 -0
- package/dist/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/dist/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +6 -0
- package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/dist/ModelChassisCompassPlugin/index.js +8 -5
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/dist/ModelEntryDoorGuidePlugin/index.js +20 -20
- package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.js +674 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/index.js +153 -73
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +5 -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/Plugin.d.ts +17 -0
- package/dist/ModelViewPlugin/index.d.ts +3 -16
- package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/dist/PanoCompassPlugin/index.d.ts +4 -47
- package/dist/PanoCompassPlugin/index.js +242 -129
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/index.js +5 -3
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -9
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +18 -9
- package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +5 -2
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +50 -15
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +42 -0
- package/dist/PanoMeasurePlugin/index.d.ts +9 -6
- package/dist/PanoMeasurePlugin/index.js +2649 -3442
- package/dist/PanoMeasurePlugin/typings/data.d.ts +4 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +14 -5
- package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -2
- package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.d.ts +4 -30
- package/dist/PanoRulerPlugin/index.js +12 -12
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/dist/PanoSpatialTagPlugin/index.js +1307 -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/base/BasePlugin.d.ts +100 -0
- package/dist/base/BasePluginWithData.d.ts +34 -0
- package/dist/components/PaintBrush/Controller.d.ts +43 -0
- package/dist/components/PaintBrush/Subscribe.d.ts +76 -0
- package/dist/components/PaintBrush/index.d.ts +27 -0
- package/dist/components/PaintBrush/style.d.ts +2 -0
- package/dist/components/PaintBrush/tween.d.ts +62 -0
- package/dist/components/PaintBrush/typings.d.ts +58 -0
- package/dist/components/PaintBrush/utils.d.ts +26 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +70 -77
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/dist/floorplan/ModelFloorplanPlugin/index.js +2319 -1620
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +24 -16
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +601 -266
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +53 -47
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +6 -4
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +2198 -1428
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/dist/floorplan/index.d.ts +6 -0
- package/dist/floorplan/utils/constant.d.ts +22 -0
- package/dist/floorplan/utils/correctFiveState.d.ts +15 -0
- package/dist/floorplan/utils/formatPosition.d.ts +1 -1
- package/dist/index.d.ts +15 -24
- package/dist/index.es.js +10694 -7145
- package/dist/index.js +10432 -6869
- package/dist/index.umd.js +10435 -6875
- package/dist/shared-utils/five/changeMode.d.ts +4 -1
- package/dist/shared-utils/getPxmm.d.ts +8 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/Interval.d.ts +13 -0
- package/dist/shared-utils/math/Rectangle.d.ts +27 -0
- package/dist/shared-utils/math/index.d.ts +2 -0
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/dist/shared-utils/uuid.d.ts +1 -0
- package/dist/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Magnifier.html +9 -0
- package/docs/classes/ModelRoomLabelController.html +5 -8
- package/docs/enums/CameraMovementEffect.html +3 -0
- package/docs/enums/DIRECTION.html +1 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/Rotation.html +3 -0
- package/docs/index.html +78 -33
- package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
- package/docs/interfaces/FloorplanBounding.html +10 -0
- package/docs/interfaces/FloorplanData.html +3 -0
- package/docs/interfaces/FloorplanEntrance.html +15 -0
- package/docs/interfaces/FloorplanExtraObject.html +7 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -0
- package/docs/interfaces/FloorplanFloorData.html +3 -0
- package/docs/interfaces/FloorplanImagePosition.html +3 -0
- package/docs/interfaces/FloorplanObserver.html +5 -0
- package/docs/interfaces/FloorplanOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanPosition.html +3 -0
- package/docs/interfaces/FloorplanRoomItem.html +17 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -0
- package/docs/interfaces/FloorplanServerBounding.html +10 -0
- package/docs/interfaces/FloorplanServerComputedData.html +1 -0
- package/docs/interfaces/FloorplanServerData.html +3 -0
- package/docs/interfaces/FloorplanServerEntrance.html +15 -0
- package/docs/interfaces/FloorplanServerFloorData.html +3 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -0
- package/docs/interfaces/FloorplanServerObserver.html +5 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanServerPosition.html +3 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +20 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -0
- package/docs/interfaces/ItemLabelPluginData.html +1 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -0
- package/docs/interfaces/ModelViewPluginExportType.html +1 -0
- package/docs/interfaces/OpenParameter.html +3 -0
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +1 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
- package/docs/interfaces/Point.html +1 -0
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -0
- package/docs/interfaces/RoomInfo.html +1 -0
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/modules.html +26 -18
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
- package/libs/CSS3DRenderPlugin/index.js +2 -180
- package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
- package/libs/CameraMovementPlugin/index.d.ts +4 -6
- package/libs/CameraMovementPlugin/index.js +3 -158
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +577 -0
- package/libs/ItemLabelPlugin/ItemLabelItem.js +227 -0
- package/libs/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/libs/ItemLabelPlugin/Plugin.js +120 -0
- package/libs/ItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.d.ts +9 -0
- package/libs/ItemLabelPlugin/index.js +8 -0
- package/libs/ItemLabelPlugin/typings.d.ts +59 -0
- package/libs/ItemLabelPlugin/typings.js +7 -0
- package/libs/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +3 -0
- package/libs/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -0
- package/libs/ItemLabelPlugin/utils/isImpacted.d.ts +6 -0
- package/libs/ItemLabelPlugin/utils/isImpacted.js +13 -0
- package/libs/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ItemLabelPlugin/utils/parseData.js +4 -0
- package/libs/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +4 -0
- package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/libs/ModelChassisCompassPlugin/Plugin.js +77 -0
- package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/libs/ModelChassisCompassPlugin/index.js +2 -74
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -136
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +409 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
- package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/index.js +8 -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 +65 -23
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +83 -45
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelSimulationPlugin/index.d.ts +33 -0
- package/libs/ModelSimulationPlugin/index.js +166 -0
- package/libs/ModelSimulationPlugin/shaders/fragment.d.ts +2 -0
- package/libs/ModelSimulationPlugin/shaders/fragment.js +96 -0
- package/libs/ModelSimulationPlugin/shaders/vertex.d.ts +2 -0
- package/libs/ModelSimulationPlugin/shaders/vertex.js +23 -0
- package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
- package/libs/ModelTVVideoPlugin/index.d.ts +5 -0
- package/libs/ModelTVVideoPlugin/index.js +4 -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/Plugin.d.ts +17 -0
- package/libs/ModelViewPlugin/Plugin.js +160 -0
- package/libs/ModelViewPlugin/index.d.ts +3 -16
- package/libs/ModelViewPlugin/index.js +2 -159
- package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/libs/PanoCompassPlugin/Plugin.js +249 -0
- package/libs/PanoCompassPlugin/index.d.ts +4 -47
- package/libs/PanoCompassPlugin/index.js +3 -167
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -9
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +77 -14
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +268 -155
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +44 -0
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +337 -0
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +40 -20
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +246 -153
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +18 -9
- package/libs/PanoMeasurePlugin/Controller/index.js +182 -54
- package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/index.js +30 -5
- package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/libs/PanoMeasurePlugin/Model/line.js +61 -11
- package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/point.js +24 -4
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Model/polyline.js +20 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +11 -14
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +5 -2
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +107 -25
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +23 -8
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +61 -26
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +50 -15
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +234 -59
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +84 -38
- package/libs/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.d.ts +12 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/NewMainBtnController.js +98 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +52 -17
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +84 -34
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +80 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +11 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +64 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +42 -0
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +265 -0
- package/libs/PanoMeasurePlugin/index.d.ts +9 -6
- package/libs/PanoMeasurePlugin/index.js +3 -1
- package/libs/PanoMeasurePlugin/typings/data.d.ts +4 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +14 -5
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +15 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.js +7 -7
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +22 -16
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.js +8 -7
- package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +5 -5
- package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/libs/PanoRulerPlugin/Plugin.js +403 -0
- package/libs/PanoRulerPlugin/index.d.ts +4 -30
- package/libs/PanoRulerPlugin/index.js +2 -397
- package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
- package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
- package/libs/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +426 -0
- package/libs/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/libs/PanoSpatialTagPlugin/index.js +5 -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/base/BasePlugin.d.ts +100 -0
- package/libs/base/BasePlugin.js +31 -0
- package/libs/base/BasePluginWithData.d.ts +34 -0
- package/libs/base/BasePluginWithData.js +4 -0
- package/libs/components/PaintBrush/Controller.d.ts +43 -0
- package/libs/components/PaintBrush/Controller.js +575 -0
- package/libs/components/PaintBrush/Subscribe.d.ts +76 -0
- package/libs/components/PaintBrush/Subscribe.js +121 -0
- package/libs/components/PaintBrush/index.d.ts +27 -0
- package/libs/components/PaintBrush/index.js +57 -0
- package/libs/components/PaintBrush/style.d.ts +2 -0
- package/libs/components/PaintBrush/style.js +102 -0
- package/libs/components/PaintBrush/tween.d.ts +62 -0
- package/libs/components/PaintBrush/tween.js +15 -0
- package/libs/components/PaintBrush/typings.d.ts +58 -0
- package/libs/components/PaintBrush/typings.js +6 -0
- package/libs/components/PaintBrush/utils.d.ts +26 -0
- package/libs/components/PaintBrush/utils.js +51 -0
- package/libs/components/index.d.ts +2 -0
- package/libs/components/index.js +3 -0
- package/libs/floorplan/Assets/compass.d.ts +1 -0
- package/libs/floorplan/Assets/compass.js +1 -0
- package/libs/floorplan/Components/BaseImage.js +10 -5
- package/libs/floorplan/Components/Camera.js +120 -0
- package/libs/floorplan/Components/Compass.js +120 -0
- package/libs/floorplan/Components/CurrentFloor.js +469 -0
- package/libs/floorplan/Components/Main.js +470 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +45 -8
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +30 -103
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +322 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +309 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +30 -27
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +11 -9
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +269 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +70 -77
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +661 -325
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +5 -7
- package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +107 -0
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +49 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +114 -53
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +24 -16
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +194 -42
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +5 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +53 -47
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +450 -154
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +6 -4
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +2 -2
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +86 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/index.d.ts +6 -0
- package/libs/floorplan/index.js +7 -0
- package/libs/floorplan/utils/constant.d.ts +22 -0
- package/libs/floorplan/utils/constant.js +23 -0
- package/libs/floorplan/utils/correctFiveState.d.ts +15 -0
- package/libs/floorplan/utils/correctFiveState.js +46 -0
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +3 -3
- package/libs/index.d.ts +15 -24
- package/libs/index.js +25 -14
- 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/five/changeMode.d.ts +4 -1
- package/libs/shared-utils/five/changeMode.js +34 -13
- package/libs/shared-utils/getPxmm.d.ts +8 -0
- package/libs/shared-utils/getPxmm.js +25 -20
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/math/Interval.d.ts +13 -0
- package/libs/shared-utils/math/Interval.js +40 -0
- package/libs/shared-utils/math/Rectangle.d.ts +27 -0
- package/libs/shared-utils/math/Rectangle.js +50 -0
- package/libs/shared-utils/math/evenNumber.js +1 -1
- package/libs/shared-utils/math/index.d.ts +2 -0
- package/libs/shared-utils/math/index.js +2 -0
- 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/uuid.d.ts +1 -0
- package/libs/shared-utils/uuid.js +1 -0
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +13 -6
- package/CHANGELOG.md +0 -30
- package/dist/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/dist/shared-utils/useDebounce.d.ts +0 -8
- package/dist/shared-utils/useThrottle.d.ts +0 -8
- package/docs/enums/ModelFloorplanErrorType.html +0 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +0 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +0 -5
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +0 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
add_render_callback,
|
|
5
|
+
add_resize_listener,
|
|
6
|
+
append_styles,
|
|
7
|
+
assign,
|
|
8
|
+
attr,
|
|
9
|
+
check_outros,
|
|
10
|
+
create_component,
|
|
11
|
+
destroy_component,
|
|
12
|
+
detach,
|
|
13
|
+
element,
|
|
14
|
+
empty,
|
|
15
|
+
get_spread_update,
|
|
16
|
+
group_outros,
|
|
17
|
+
init,
|
|
18
|
+
insert,
|
|
19
|
+
mount_component,
|
|
20
|
+
outro_and_destroy_block,
|
|
21
|
+
safe_not_equal,
|
|
22
|
+
transition_in,
|
|
23
|
+
transition_out,
|
|
24
|
+
update_keyed_each
|
|
25
|
+
} from "svelte/internal";
|
|
26
|
+
|
|
27
|
+
import RoomLabel from './RoomLabel';
|
|
28
|
+
|
|
29
|
+
function add_css(target) {
|
|
30
|
+
append_styles(target, "svelte-447cof", ".floorplan-plugin__room-labels.svelte-447cof{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function get_each_context(ctx, list, i) {
|
|
34
|
+
const child_ctx = ctx.slice();
|
|
35
|
+
child_ctx[9] = list[i];
|
|
36
|
+
return child_ctx;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// (17:0) {#if rooms}
|
|
40
|
+
function create_if_block(ctx) {
|
|
41
|
+
let div;
|
|
42
|
+
let each_blocks = [];
|
|
43
|
+
let each_1_lookup = new Map();
|
|
44
|
+
let div_resize_listener;
|
|
45
|
+
let current;
|
|
46
|
+
let each_value = /*rooms*/ ctx[5];
|
|
47
|
+
const get_key = ctx => /*room*/ ctx[9].id;
|
|
48
|
+
|
|
49
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
50
|
+
let child_ctx = get_each_context(ctx, each_value, i);
|
|
51
|
+
let key = get_key(child_ctx);
|
|
52
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
c() {
|
|
57
|
+
div = element("div");
|
|
58
|
+
|
|
59
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
60
|
+
each_blocks[i].c();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
attr(div, "class", "floorplan-plugin__room-labels svelte-447cof");
|
|
64
|
+
add_render_callback(() => /*div_elementresize_handler*/ ctx[8].call(div));
|
|
65
|
+
},
|
|
66
|
+
m(target, anchor) {
|
|
67
|
+
insert(target, div, anchor);
|
|
68
|
+
|
|
69
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
70
|
+
each_blocks[i].m(div, null);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
div_resize_listener = add_resize_listener(div, /*div_elementresize_handler*/ ctx[8].bind(div));
|
|
74
|
+
current = true;
|
|
75
|
+
},
|
|
76
|
+
p(ctx, dirty) {
|
|
77
|
+
if (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 55) {
|
|
78
|
+
each_value = /*rooms*/ ctx[5];
|
|
79
|
+
group_outros();
|
|
80
|
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block, null, get_each_context);
|
|
81
|
+
check_outros();
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
i(local) {
|
|
85
|
+
if (current) return;
|
|
86
|
+
|
|
87
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
88
|
+
transition_in(each_blocks[i]);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
current = true;
|
|
92
|
+
},
|
|
93
|
+
o(local) {
|
|
94
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
95
|
+
transition_out(each_blocks[i]);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
current = false;
|
|
99
|
+
},
|
|
100
|
+
d(detaching) {
|
|
101
|
+
if (detaching) detach(div);
|
|
102
|
+
|
|
103
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
104
|
+
each_blocks[i].d();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
div_resize_listener();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// (19:4) {#each rooms as room (room.id)}
|
|
113
|
+
function create_each_block(key_1, ctx) {
|
|
114
|
+
let first;
|
|
115
|
+
let roomlabel;
|
|
116
|
+
let current;
|
|
117
|
+
|
|
118
|
+
const roomlabel_spread_levels = [
|
|
119
|
+
{
|
|
120
|
+
pxmm: /*pxmm*/ ctx[4],
|
|
121
|
+
room: /*room*/ ctx[9],
|
|
122
|
+
getLabelElement: /*getLabelElement*/ ctx[1],
|
|
123
|
+
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
124
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[2]
|
|
125
|
+
}
|
|
126
|
+
];
|
|
127
|
+
|
|
128
|
+
let roomlabel_props = {};
|
|
129
|
+
|
|
130
|
+
for (let i = 0; i < roomlabel_spread_levels.length; i += 1) {
|
|
131
|
+
roomlabel_props = assign(roomlabel_props, roomlabel_spread_levels[i]);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
roomlabel = new RoomLabel({ props: roomlabel_props });
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
key: key_1,
|
|
138
|
+
first: null,
|
|
139
|
+
c() {
|
|
140
|
+
first = empty();
|
|
141
|
+
create_component(roomlabel.$$.fragment);
|
|
142
|
+
this.first = first;
|
|
143
|
+
},
|
|
144
|
+
m(target, anchor) {
|
|
145
|
+
insert(target, first, anchor);
|
|
146
|
+
mount_component(roomlabel, target, anchor);
|
|
147
|
+
current = true;
|
|
148
|
+
},
|
|
149
|
+
p(new_ctx, dirty) {
|
|
150
|
+
ctx = new_ctx;
|
|
151
|
+
|
|
152
|
+
const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 55)
|
|
153
|
+
? get_spread_update(roomlabel_spread_levels, [
|
|
154
|
+
{
|
|
155
|
+
pxmm: /*pxmm*/ ctx[4],
|
|
156
|
+
room: /*room*/ ctx[9],
|
|
157
|
+
getLabelElement: /*getLabelElement*/ ctx[1],
|
|
158
|
+
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
159
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[2]
|
|
160
|
+
}
|
|
161
|
+
])
|
|
162
|
+
: {};
|
|
163
|
+
|
|
164
|
+
roomlabel.$set(roomlabel_changes);
|
|
165
|
+
},
|
|
166
|
+
i(local) {
|
|
167
|
+
if (current) return;
|
|
168
|
+
transition_in(roomlabel.$$.fragment, local);
|
|
169
|
+
current = true;
|
|
170
|
+
},
|
|
171
|
+
o(local) {
|
|
172
|
+
transition_out(roomlabel.$$.fragment, local);
|
|
173
|
+
current = false;
|
|
174
|
+
},
|
|
175
|
+
d(detaching) {
|
|
176
|
+
if (detaching) detach(first);
|
|
177
|
+
destroy_component(roomlabel, detaching);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function create_fragment(ctx) {
|
|
183
|
+
let if_block_anchor;
|
|
184
|
+
let current;
|
|
185
|
+
let if_block = /*rooms*/ ctx[5] && create_if_block(ctx);
|
|
186
|
+
|
|
187
|
+
return {
|
|
188
|
+
c() {
|
|
189
|
+
if (if_block) if_block.c();
|
|
190
|
+
if_block_anchor = empty();
|
|
191
|
+
},
|
|
192
|
+
m(target, anchor) {
|
|
193
|
+
if (if_block) if_block.m(target, anchor);
|
|
194
|
+
insert(target, if_block_anchor, anchor);
|
|
195
|
+
current = true;
|
|
196
|
+
},
|
|
197
|
+
p(ctx, [dirty]) {
|
|
198
|
+
if (/*rooms*/ ctx[5]) {
|
|
199
|
+
if (if_block) {
|
|
200
|
+
if_block.p(ctx, dirty);
|
|
201
|
+
|
|
202
|
+
if (dirty & /*rooms*/ 32) {
|
|
203
|
+
transition_in(if_block, 1);
|
|
204
|
+
}
|
|
205
|
+
} else {
|
|
206
|
+
if_block = create_if_block(ctx);
|
|
207
|
+
if_block.c();
|
|
208
|
+
transition_in(if_block, 1);
|
|
209
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
210
|
+
}
|
|
211
|
+
} else if (if_block) {
|
|
212
|
+
group_outros();
|
|
213
|
+
|
|
214
|
+
transition_out(if_block, 1, 1, () => {
|
|
215
|
+
if_block = null;
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
check_outros();
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
i(local) {
|
|
222
|
+
if (current) return;
|
|
223
|
+
transition_in(if_block);
|
|
224
|
+
current = true;
|
|
225
|
+
},
|
|
226
|
+
o(local) {
|
|
227
|
+
transition_out(if_block);
|
|
228
|
+
current = false;
|
|
229
|
+
},
|
|
230
|
+
d(detaching) {
|
|
231
|
+
if (if_block) if_block.d(detaching);
|
|
232
|
+
if (detaching) detach(if_block_anchor);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function instance($$self, $$props, $$invalidate) {
|
|
238
|
+
let rooms;
|
|
239
|
+
let { floorIndex } = $$props;
|
|
240
|
+
let { floorplanData } = $$props;
|
|
241
|
+
let { hoveredRoom } = $$props;
|
|
242
|
+
let { getLabelElement } = $$props;
|
|
243
|
+
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
244
|
+
let clientWidth = 0;
|
|
245
|
+
let pxmm = 0;
|
|
246
|
+
|
|
247
|
+
function div_elementresize_handler() {
|
|
248
|
+
clientWidth = this.clientWidth;
|
|
249
|
+
$$invalidate(3, clientWidth);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
$$self.$$set = $$props => {
|
|
253
|
+
if ('floorIndex' in $$props) $$invalidate(6, floorIndex = $$props.floorIndex);
|
|
254
|
+
if ('floorplanData' in $$props) $$invalidate(7, floorplanData = $$props.floorplanData);
|
|
255
|
+
if ('hoveredRoom' in $$props) $$invalidate(0, hoveredRoom = $$props.hoveredRoom);
|
|
256
|
+
if ('getLabelElement' in $$props) $$invalidate(1, getLabelElement = $$props.getLabelElement);
|
|
257
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(2, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
$$self.$$.update = () => {
|
|
261
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 192) {
|
|
262
|
+
$: $$invalidate(5, rooms = floorplanData.floorDatas[floorIndex].rooms);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if ($$self.$$.dirty & /*floorplanData, clientWidth*/ 136) {
|
|
266
|
+
$: {
|
|
267
|
+
const { max, min } = floorplanData.bounding;
|
|
268
|
+
const boundingWidth = max.x - min.x;
|
|
269
|
+
$$invalidate(4, pxmm = clientWidth / boundingWidth);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
return [
|
|
275
|
+
hoveredRoom,
|
|
276
|
+
getLabelElement,
|
|
277
|
+
adaptiveRoomLabelVisibleEnable,
|
|
278
|
+
clientWidth,
|
|
279
|
+
pxmm,
|
|
280
|
+
rooms,
|
|
281
|
+
floorIndex,
|
|
282
|
+
floorplanData,
|
|
283
|
+
div_elementresize_handler
|
|
284
|
+
];
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
class Component extends SvelteComponent {
|
|
288
|
+
constructor(options) {
|
|
289
|
+
super();
|
|
290
|
+
|
|
291
|
+
init(
|
|
292
|
+
this,
|
|
293
|
+
options,
|
|
294
|
+
instance,
|
|
295
|
+
create_fragment,
|
|
296
|
+
safe_not_equal,
|
|
297
|
+
{
|
|
298
|
+
floorIndex: 6,
|
|
299
|
+
floorplanData: 7,
|
|
300
|
+
hoveredRoom: 0,
|
|
301
|
+
getLabelElement: 1,
|
|
302
|
+
adaptiveRoomLabelVisibleEnable: 2
|
|
303
|
+
},
|
|
304
|
+
add_css
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export default Component;
|
|
@@ -25,20 +25,20 @@ import RoomMaterial_1 from './RoomMaterial_1';
|
|
|
25
25
|
import RoomMaterial_2 from './RoomMaterial_2';
|
|
26
26
|
|
|
27
27
|
function add_css(target) {
|
|
28
|
-
append_styles(target, "svelte-
|
|
28
|
+
append_styles(target, "svelte-9ip3e6", ".floorplan-plugin__room-material.svelte-9ip3e6{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-9ip3e6{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}");
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function get_each_context(ctx, list, i) {
|
|
32
32
|
const child_ctx = ctx.slice();
|
|
33
|
-
child_ctx[
|
|
33
|
+
child_ctx[5] = list[i];
|
|
34
34
|
return child_ctx;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
// (
|
|
37
|
+
// (19:6) {:else}
|
|
38
38
|
function create_else_block(ctx) {
|
|
39
39
|
let roommaterial_1;
|
|
40
40
|
let current;
|
|
41
|
-
roommaterial_1 = new RoomMaterial_1({ props: { path: /*room*/ ctx[
|
|
41
|
+
roommaterial_1 = new RoomMaterial_1({ props: { path: /*room*/ ctx[5].path } });
|
|
42
42
|
|
|
43
43
|
return {
|
|
44
44
|
c() {
|
|
@@ -50,7 +50,7 @@ function create_else_block(ctx) {
|
|
|
50
50
|
},
|
|
51
51
|
p(ctx, dirty) {
|
|
52
52
|
const roommaterial_1_changes = {};
|
|
53
|
-
if (dirty & /*rooms*/ 1) roommaterial_1_changes.path = /*room*/ ctx[
|
|
53
|
+
if (dirty & /*rooms*/ 1) roommaterial_1_changes.path = /*room*/ ctx[5].path;
|
|
54
54
|
roommaterial_1.$set(roommaterial_1_changes);
|
|
55
55
|
},
|
|
56
56
|
i(local) {
|
|
@@ -68,11 +68,11 @@ function create_else_block(ctx) {
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
// (
|
|
71
|
+
// (17:37)
|
|
72
72
|
function create_if_block_1(ctx) {
|
|
73
73
|
let roommaterial_2;
|
|
74
74
|
let current;
|
|
75
|
-
roommaterial_2 = new RoomMaterial_2({ props: { path: /*room*/ ctx[
|
|
75
|
+
roommaterial_2 = new RoomMaterial_2({ props: { path: /*room*/ ctx[5].path } });
|
|
76
76
|
|
|
77
77
|
return {
|
|
78
78
|
c() {
|
|
@@ -84,7 +84,7 @@ function create_if_block_1(ctx) {
|
|
|
84
84
|
},
|
|
85
85
|
p(ctx, dirty) {
|
|
86
86
|
const roommaterial_2_changes = {};
|
|
87
|
-
if (dirty & /*rooms*/ 1) roommaterial_2_changes.path = /*room*/ ctx[
|
|
87
|
+
if (dirty & /*rooms*/ 1) roommaterial_2_changes.path = /*room*/ ctx[5].path;
|
|
88
88
|
roommaterial_2.$set(roommaterial_2_changes);
|
|
89
89
|
},
|
|
90
90
|
i(local) {
|
|
@@ -102,11 +102,11 @@ function create_if_block_1(ctx) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
// (
|
|
105
|
+
// (15:6) {#if room.floorType === 1}
|
|
106
106
|
function create_if_block(ctx) {
|
|
107
107
|
let roommaterial_0;
|
|
108
108
|
let current;
|
|
109
|
-
roommaterial_0 = new RoomMaterial_0({ props: { path: /*room*/ ctx[
|
|
109
|
+
roommaterial_0 = new RoomMaterial_0({ props: { path: /*room*/ ctx[5].path } });
|
|
110
110
|
|
|
111
111
|
return {
|
|
112
112
|
c() {
|
|
@@ -118,7 +118,7 @@ function create_if_block(ctx) {
|
|
|
118
118
|
},
|
|
119
119
|
p(ctx, dirty) {
|
|
120
120
|
const roommaterial_0_changes = {};
|
|
121
|
-
if (dirty & /*rooms*/ 1) roommaterial_0_changes.path = /*room*/ ctx[
|
|
121
|
+
if (dirty & /*rooms*/ 1) roommaterial_0_changes.path = /*room*/ ctx[5].path;
|
|
122
122
|
roommaterial_0.$set(roommaterial_0_changes);
|
|
123
123
|
},
|
|
124
124
|
i(local) {
|
|
@@ -136,18 +136,19 @@ function create_if_block(ctx) {
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
// (
|
|
139
|
+
// (13:2) {#each rooms as room}
|
|
140
140
|
function create_each_block(ctx) {
|
|
141
141
|
let svg;
|
|
142
142
|
let current_block_type_index;
|
|
143
143
|
let if_block;
|
|
144
|
+
let svg_viewBox_value;
|
|
144
145
|
let current;
|
|
145
146
|
const if_block_creators = [create_if_block, create_if_block_1, create_else_block];
|
|
146
147
|
const if_blocks = [];
|
|
147
148
|
|
|
148
149
|
function select_block_type(ctx, dirty) {
|
|
149
|
-
if (/*room*/ ctx[
|
|
150
|
-
if (/*room*/ ctx[
|
|
150
|
+
if (/*room*/ ctx[5].floorType === 1) return 0;
|
|
151
|
+
if (/*room*/ ctx[5].floorType === 0) return 1;
|
|
151
152
|
return 2;
|
|
152
153
|
}
|
|
153
154
|
|
|
@@ -158,7 +159,10 @@ function create_each_block(ctx) {
|
|
|
158
159
|
c() {
|
|
159
160
|
svg = svg_element("svg");
|
|
160
161
|
if_block.c();
|
|
161
|
-
attr(svg, "
|
|
162
|
+
attr(svg, "width", "100%");
|
|
163
|
+
attr(svg, "height", "100%");
|
|
164
|
+
attr(svg, "viewBox", svg_viewBox_value = `0 0 ${/*boundingWidth*/ ctx[1]} ${/*boundingHeight*/ ctx[2]}`);
|
|
165
|
+
attr(svg, "class", "svelte-9ip3e6");
|
|
162
166
|
},
|
|
163
167
|
m(target, anchor) {
|
|
164
168
|
insert(target, svg, anchor);
|
|
@@ -230,7 +234,7 @@ function create_fragment(ctx) {
|
|
|
230
234
|
each_blocks[i].c();
|
|
231
235
|
}
|
|
232
236
|
|
|
233
|
-
attr(div, "class", "floorplan-plugin__room-material");
|
|
237
|
+
attr(div, "class", "floorplan-plugin__room-material svelte-9ip3e6");
|
|
234
238
|
},
|
|
235
239
|
m(target, anchor) {
|
|
236
240
|
insert(target, div, anchor);
|
|
@@ -242,7 +246,7 @@ function create_fragment(ctx) {
|
|
|
242
246
|
current = true;
|
|
243
247
|
},
|
|
244
248
|
p(ctx, [dirty]) {
|
|
245
|
-
if (dirty & /*rooms*/
|
|
249
|
+
if (dirty & /*boundingWidth, boundingHeight, rooms*/ 7) {
|
|
246
250
|
each_value = /*rooms*/ ctx[0];
|
|
247
251
|
let i;
|
|
248
252
|
|
|
@@ -297,31 +301,30 @@ function create_fragment(ctx) {
|
|
|
297
301
|
function instance($$self, $$props, $$invalidate) {
|
|
298
302
|
let rooms;
|
|
299
303
|
let { floorIndex } = $$props;
|
|
300
|
-
let { pxmm } = $$props;
|
|
301
304
|
let { floorplanData } = $$props;
|
|
305
|
+
const boundingWidth = floorplanData.bounding.max.x - floorplanData.bounding.min.x;
|
|
306
|
+
const boundingHeight = floorplanData.bounding.max.y - floorplanData.bounding.min.y;
|
|
302
307
|
|
|
303
308
|
$$self.$$set = $$props => {
|
|
304
|
-
if ('floorIndex' in $$props) $$invalidate(
|
|
305
|
-
if ('
|
|
306
|
-
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
309
|
+
if ('floorIndex' in $$props) $$invalidate(3, floorIndex = $$props.floorIndex);
|
|
310
|
+
if ('floorplanData' in $$props) $$invalidate(4, floorplanData = $$props.floorplanData);
|
|
307
311
|
};
|
|
308
312
|
|
|
309
313
|
$$self.$$.update = () => {
|
|
310
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex
|
|
311
|
-
$: $$invalidate(0, rooms = floorplanData.floorDatas[floorIndex].rooms.map(room => ({
|
|
312
|
-
|
|
313
|
-
path: room.path.map(p => formatFloorplanPoint(p, pxmm, floorplanData.bounding))
|
|
314
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 24) {
|
|
315
|
+
$: $$invalidate(0, rooms = floorplanData.floorDatas[floorIndex].rooms.map(room => Object.assign(Object.assign({}, room), {
|
|
316
|
+
path: room.path.map(p => formatFloorplanPoint(p, floorplanData.bounding))
|
|
314
317
|
})));
|
|
315
318
|
}
|
|
316
319
|
};
|
|
317
320
|
|
|
318
|
-
return [rooms,
|
|
321
|
+
return [rooms, boundingWidth, boundingHeight, floorIndex, floorplanData];
|
|
319
322
|
}
|
|
320
323
|
|
|
321
324
|
class Component extends SvelteComponent {
|
|
322
325
|
constructor(options) {
|
|
323
326
|
super();
|
|
324
|
-
init(this, options, instance, create_fragment, safe_not_equal, { floorIndex:
|
|
327
|
+
init(this, options, instance, create_fragment, safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css);
|
|
325
328
|
}
|
|
326
329
|
}
|
|
327
330
|
|
|
@@ -46,6 +46,7 @@ function create_fragment(ctx) {
|
|
|
46
46
|
attr(pattern, "width", /*width*/ ctx[1]);
|
|
47
47
|
attr(pattern, "height", /*width*/ ctx[1]);
|
|
48
48
|
attr(pattern, "patternUnits", "userSpaceOnUse");
|
|
49
|
+
attr(pattern, "patternTransform", "scale(50 50)");
|
|
49
50
|
attr(path1, "d", /*d*/ ctx[0]);
|
|
50
51
|
attr(path1, "fill", "url(#fpm-room-pattern-0)");
|
|
51
52
|
},
|
|
@@ -40,8 +40,8 @@ function create_fragment(ctx) {
|
|
|
40
40
|
path1 = svg_element("path");
|
|
41
41
|
t2 = space();
|
|
42
42
|
path2 = svg_element("path");
|
|
43
|
-
attr(rect0, "x", "0
|
|
44
|
-
attr(rect0, "y", "0
|
|
43
|
+
attr(rect0, "x", "0");
|
|
44
|
+
attr(rect0, "y", "0");
|
|
45
45
|
attr(rect0, "width", "6");
|
|
46
46
|
attr(rect0, "height", "50");
|
|
47
47
|
attr(rect0, "fill", "none");
|
|
@@ -50,22 +50,24 @@ function create_fragment(ctx) {
|
|
|
50
50
|
attr(pattern0, "id", "room-material-pattern-1");
|
|
51
51
|
attr(pattern0, "x", "0");
|
|
52
52
|
attr(pattern0, "y", "0");
|
|
53
|
-
attr(pattern0, "width", "
|
|
54
|
-
attr(pattern0, "height", "
|
|
53
|
+
attr(pattern0, "width", "12");
|
|
54
|
+
attr(pattern0, "height", "50");
|
|
55
55
|
attr(pattern0, "patternUnits", "userSpaceOnUse");
|
|
56
|
-
attr(
|
|
57
|
-
attr(rect1, "
|
|
56
|
+
attr(pattern0, "patternTransform", "scale(50 50)");
|
|
57
|
+
attr(rect1, "x", "0");
|
|
58
|
+
attr(rect1, "y", "0");
|
|
58
59
|
attr(rect1, "width", "6");
|
|
59
60
|
attr(rect1, "height", "50");
|
|
60
61
|
attr(rect1, "fill", "none");
|
|
61
62
|
attr(rect1, "stroke", "#4B4B57");
|
|
62
63
|
attr(rect1, "stroke-width", "0.5");
|
|
63
64
|
attr(pattern1, "id", "room-material-pattern-2");
|
|
64
|
-
attr(pattern1, "x", "
|
|
65
|
+
attr(pattern1, "x", "6");
|
|
65
66
|
attr(pattern1, "y", "25");
|
|
66
|
-
attr(pattern1, "width", "
|
|
67
|
-
attr(pattern1, "height", "
|
|
67
|
+
attr(pattern1, "width", "12");
|
|
68
|
+
attr(pattern1, "height", "50");
|
|
68
69
|
attr(pattern1, "patternUnits", "userSpaceOnUse");
|
|
70
|
+
attr(pattern1, "patternTransform", "scale(50 50)");
|
|
69
71
|
attr(path0, "d", /*d*/ ctx[0]);
|
|
70
72
|
attr(path0, "fill", "#43434D");
|
|
71
73
|
attr(path1, "d", /*d*/ ctx[0]);
|