@realsee/dnalogel 2.0.1 → 2.0.2
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/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/CSS3DRenderPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CSS3DRenderPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/CSS3DRenderPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CSS3DRenderPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CSS3DRenderPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/CameraMovementPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/CameraMovementPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/CameraMovementPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/CameraMovementPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/CameraMovementPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CameraMovementPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/CameraMovementPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CameraMovementPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CameraMovementPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CameraMovementPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/CruisePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/CruisePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/CruisePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/CruisePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/CruisePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/CruisePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/CruisePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/CruisePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/CruisePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CruisePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CruisePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/CruisePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CruisePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CruisePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CruisePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/GuideLinePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/GuideLinePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/GuideLinePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/GuideLinePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/GuideLinePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/GuideLinePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/GuideLinePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/GuideLinePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/GuideLinePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/GuideLinePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/GuideLinePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/GuideLinePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/ItemLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/ItemLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/ItemLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/ItemLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/ItemLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ItemLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ItemLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ItemLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ItemLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/ModelChassisCompassPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelChassisCompassPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelChassisCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelChassisCompassPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelChassisCompassPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelChassisCompassPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelEntryDoorGuidePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelEntryDoorGuidePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelEntryDoorGuidePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/ModelItemLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelItemLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelItemLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelItemLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelItemLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/ModelRoomLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelRoomLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelRoomLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelRoomLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelRoomLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelRoomLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/ModelTVVideoPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelTVVideoPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelTVVideoPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelTVVideoPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelTVVideoPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelTVVideoPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/ModelViewPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/ModelViewPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/ModelViewPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/ModelViewPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/ModelViewPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelViewPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelViewPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelViewPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelViewPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelViewPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoCompassPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoCompassPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoCompassPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoCompassPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoCompassPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCompassPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCompassPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCompassPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoCompassPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoCursorRaycasterPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCursorRaycasterPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCursorRaycasterPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoCursorRaycasterPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoDoorLabelPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoDoorLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoDoorLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoDoorLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoDoorLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoMeasurePlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoMeasurePlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoMeasurePlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoMeasurePlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoMeasurePlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoMeasurePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoMeasurePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoMeasurePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoMeasurePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoMeasurePlugin/index.js +75 -31
- package/dist/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoRulerPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoRulerPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoRulerPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoRulerPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoRulerPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoRulerPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoRulerPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoRulerPlugin/index.js +17 -0
- package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoRulerProPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoRulerProPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoRulerProPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerProPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoRulerProPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerProPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerProPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoRulerProPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoSpatialTagPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoSpatialTagPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoSpatialTagPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoSpatialTagPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoSpatialTagPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoSpatialTagPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.js +241 -158
- package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +240 -163
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +244 -161
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/typings/index.d.ts +117 -0
- package/dist/index.es.js +322 -199
- package/dist/index.js +322 -199
- package/dist/index.umd.js +322 -199
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- 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 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +5 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/modules.html +18 -18
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -4
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +21 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -16
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -2
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -13
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +4 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +24 -1
- package/libs/PanoMeasurePlugin/Model/index.d.ts +3 -6
- package/libs/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/libs/PanoMeasurePlugin/typings/index.js +1 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +2 -1
- package/libs/PanoRulerPlugin/Plugin.d.ts +5 -2
- package/libs/PanoRulerPlugin/Plugin.js +17 -0
- package/libs/floorplan/Components/CurrentFloor.js +32 -20
- package/libs/floorplan/Components/Main.js +31 -19
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +24 -13
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +40 -34
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +46 -28
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +61 -43
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +8 -1
- package/libs/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -6
- package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -107
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +11 -4
- package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/typings/index.d.ts +117 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1682,7 +1682,7 @@ function add_css$j(target) {
|
|
|
1682
1682
|
internal.append_styles(target, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
|
-
// (
|
|
1685
|
+
// (96:30)
|
|
1686
1686
|
function create_if_block_1$5(ctx) {
|
|
1687
1687
|
let html_tag;
|
|
1688
1688
|
let raw_value = /*userConfigElement*/ ctx[4].outerHTML + "";
|
|
@@ -1708,13 +1708,14 @@ function create_if_block_1$5(ctx) {
|
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
1710
|
|
|
1711
|
-
// (
|
|
1711
|
+
// (90:2) {#if getLabelElement === undefined}
|
|
1712
1712
|
function create_if_block$9(ctx) {
|
|
1713
1713
|
let span0;
|
|
1714
1714
|
let t0_value = /*room*/ ctx[0].name + "";
|
|
1715
1715
|
let t0;
|
|
1716
1716
|
let t1;
|
|
1717
1717
|
let span1;
|
|
1718
|
+
let t2;
|
|
1718
1719
|
|
|
1719
1720
|
return {
|
|
1720
1721
|
c() {
|
|
@@ -1722,7 +1723,7 @@ function create_if_block$9(ctx) {
|
|
|
1722
1723
|
t0 = internal.text(t0_value);
|
|
1723
1724
|
t1 = internal.space();
|
|
1724
1725
|
span1 = internal.element("span");
|
|
1725
|
-
|
|
1726
|
+
t2 = internal.text(/*roomSizeDes*/ ctx[5]);
|
|
1726
1727
|
internal.attr(span0, "class", "floorplan-plugin__room-name");
|
|
1727
1728
|
internal.attr(span1, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
1728
1729
|
},
|
|
@@ -1731,9 +1732,11 @@ function create_if_block$9(ctx) {
|
|
|
1731
1732
|
internal.append(span0, t0);
|
|
1732
1733
|
internal.insert(target, t1, anchor);
|
|
1733
1734
|
internal.insert(target, span1, anchor);
|
|
1735
|
+
internal.append(span1, t2);
|
|
1734
1736
|
},
|
|
1735
1737
|
p(ctx, dirty) {
|
|
1736
1738
|
if (dirty & /*room*/ 1 && t0_value !== (t0_value = /*room*/ ctx[0].name + "")) internal.set_data(t0, t0_value);
|
|
1739
|
+
if (dirty & /*roomSizeDes*/ 32) internal.set_data(t2, /*roomSizeDes*/ ctx[5]);
|
|
1737
1740
|
},
|
|
1738
1741
|
d(detaching) {
|
|
1739
1742
|
if (detaching) internal.detach(span0);
|
|
@@ -1767,7 +1770,7 @@ function create_fragment$o(ctx) {
|
|
|
1767
1770
|
m(target, anchor) {
|
|
1768
1771
|
internal.insert(target, div, anchor);
|
|
1769
1772
|
if (if_block) if_block.m(div, null);
|
|
1770
|
-
/*div_binding*/ ctx[
|
|
1773
|
+
/*div_binding*/ ctx[16](div);
|
|
1771
1774
|
},
|
|
1772
1775
|
p(ctx, [dirty]) {
|
|
1773
1776
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
@@ -1795,7 +1798,7 @@ function create_fragment$o(ctx) {
|
|
|
1795
1798
|
if_block.d();
|
|
1796
1799
|
}
|
|
1797
1800
|
|
|
1798
|
-
/*div_binding*/ ctx[
|
|
1801
|
+
/*div_binding*/ ctx[16](null);
|
|
1799
1802
|
}
|
|
1800
1803
|
};
|
|
1801
1804
|
}
|
|
@@ -1818,12 +1821,14 @@ function isPointInPolygon(point, polygon) {
|
|
|
1818
1821
|
}
|
|
1819
1822
|
|
|
1820
1823
|
function instance$o($$self, $$props, $$invalidate) {
|
|
1824
|
+
let roomSizeDes;
|
|
1821
1825
|
let isLabelInRoom;
|
|
1822
1826
|
let userConfigElement;
|
|
1823
1827
|
let labelVisible;
|
|
1824
1828
|
let { pxmm } = $$props;
|
|
1825
1829
|
let { room } = $$props;
|
|
1826
1830
|
let { hoveredRoom } = $$props;
|
|
1831
|
+
let { getRoomAreaText } = $$props;
|
|
1827
1832
|
let { getLabelElement } = $$props;
|
|
1828
1833
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
1829
1834
|
|
|
@@ -1863,7 +1868,6 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1863
1868
|
const bodyWidth = document.body.clientWidth;
|
|
1864
1869
|
|
|
1865
1870
|
const bodyHeight = document.body.clientHeight;
|
|
1866
|
-
const roomSizeDes = room.size ? (room.size / 1000000).toFixed(1) + '㎡' : '';
|
|
1867
1871
|
|
|
1868
1872
|
// ====================================
|
|
1869
1873
|
const roomLabel = room.roomLabel;
|
|
@@ -1879,7 +1883,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1879
1883
|
let labelElementSize;
|
|
1880
1884
|
|
|
1881
1885
|
hoveredRoom.subscribe(function onHoverdRoomUpdate(_room) {
|
|
1882
|
-
$$invalidate(
|
|
1886
|
+
$$invalidate(13, isHoverd = !!_room && _room.id === room.id);
|
|
1883
1887
|
});
|
|
1884
1888
|
|
|
1885
1889
|
svelte.onMount(() => {
|
|
@@ -1889,7 +1893,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1889
1893
|
? void 0
|
|
1890
1894
|
: labelElement.getClientRects()[0];
|
|
1891
1895
|
|
|
1892
|
-
$$invalidate(
|
|
1896
|
+
$$invalidate(14, labelElementSize = {
|
|
1893
1897
|
width: labelDomRect.width,
|
|
1894
1898
|
height: labelDomRect.height
|
|
1895
1899
|
});
|
|
@@ -1906,13 +1910,18 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1906
1910
|
if ('pxmm' in $$props) $$invalidate(9, pxmm = $$props.pxmm);
|
|
1907
1911
|
if ('room' in $$props) $$invalidate(0, room = $$props.room);
|
|
1908
1912
|
if ('hoveredRoom' in $$props) $$invalidate(10, hoveredRoom = $$props.hoveredRoom);
|
|
1913
|
+
if ('getRoomAreaText' in $$props) $$invalidate(11, getRoomAreaText = $$props.getRoomAreaText);
|
|
1909
1914
|
if ('getLabelElement' in $$props) $$invalidate(1, getLabelElement = $$props.getLabelElement);
|
|
1910
|
-
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(
|
|
1915
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(12, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
1911
1916
|
};
|
|
1912
1917
|
|
|
1913
1918
|
$$self.$$.update = () => {
|
|
1914
|
-
if ($$self.$$.dirty & /*
|
|
1915
|
-
$$invalidate(
|
|
1919
|
+
if ($$self.$$.dirty & /*room, getRoomAreaText*/ 2049) {
|
|
1920
|
+
$$invalidate(5, roomSizeDes = room.size ? getRoomAreaText(room.size) : '');
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
if ($$self.$$.dirty & /*labelElementSize, room*/ 16385) {
|
|
1924
|
+
$$invalidate(15, isLabelInRoom = labelElementSize
|
|
1916
1925
|
? isLabelInRoomCurry(room, labelElementSize)
|
|
1917
1926
|
: undefined);
|
|
1918
1927
|
}
|
|
@@ -1923,7 +1932,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1923
1932
|
: getLabelElement(room));
|
|
1924
1933
|
}
|
|
1925
1934
|
|
|
1926
|
-
if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/
|
|
1935
|
+
if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/ 45568) {
|
|
1927
1936
|
$$invalidate(3, labelVisible = adaptiveRoomLabelVisibleEnable
|
|
1928
1937
|
? isHoverd
|
|
1929
1938
|
? true
|
|
@@ -1946,6 +1955,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1946
1955
|
fontSize,
|
|
1947
1956
|
pxmm,
|
|
1948
1957
|
hoveredRoom,
|
|
1958
|
+
getRoomAreaText,
|
|
1949
1959
|
adaptiveRoomLabelVisibleEnable,
|
|
1950
1960
|
isHoverd,
|
|
1951
1961
|
labelElementSize,
|
|
@@ -1968,8 +1978,9 @@ class RoomLabel extends internal.SvelteComponent {
|
|
|
1968
1978
|
pxmm: 9,
|
|
1969
1979
|
room: 0,
|
|
1970
1980
|
hoveredRoom: 10,
|
|
1981
|
+
getRoomAreaText: 11,
|
|
1971
1982
|
getLabelElement: 1,
|
|
1972
|
-
adaptiveRoomLabelVisibleEnable:
|
|
1983
|
+
adaptiveRoomLabelVisibleEnable: 12
|
|
1973
1984
|
},
|
|
1974
1985
|
add_css$j
|
|
1975
1986
|
);
|
|
@@ -1984,19 +1995,19 @@ function add_css$i(target) {
|
|
|
1984
1995
|
|
|
1985
1996
|
function get_each_context$b(ctx, list, i) {
|
|
1986
1997
|
const child_ctx = ctx.slice();
|
|
1987
|
-
child_ctx[
|
|
1998
|
+
child_ctx[10] = list[i];
|
|
1988
1999
|
return child_ctx;
|
|
1989
2000
|
}
|
|
1990
2001
|
|
|
1991
|
-
// (
|
|
2002
|
+
// (18:0) {#if rooms}
|
|
1992
2003
|
function create_if_block$8(ctx) {
|
|
1993
2004
|
let div;
|
|
1994
2005
|
let each_blocks = [];
|
|
1995
2006
|
let each_1_lookup = new Map();
|
|
1996
2007
|
let div_resize_listener;
|
|
1997
2008
|
let current;
|
|
1998
|
-
let each_value = /*rooms*/ ctx[
|
|
1999
|
-
const get_key = ctx => /*room*/ ctx[
|
|
2009
|
+
let each_value = /*rooms*/ ctx[6];
|
|
2010
|
+
const get_key = ctx => /*room*/ ctx[10].id;
|
|
2000
2011
|
|
|
2001
2012
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2002
2013
|
let child_ctx = get_each_context$b(ctx, each_value, i);
|
|
@@ -2013,7 +2024,7 @@ function create_if_block$8(ctx) {
|
|
|
2013
2024
|
}
|
|
2014
2025
|
|
|
2015
2026
|
internal.attr(div, "class", "floorplan-plugin__room-labels svelte-13xux0b");
|
|
2016
|
-
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[
|
|
2027
|
+
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[9].call(div));
|
|
2017
2028
|
},
|
|
2018
2029
|
m(target, anchor) {
|
|
2019
2030
|
internal.insert(target, div, anchor);
|
|
@@ -2022,12 +2033,12 @@ function create_if_block$8(ctx) {
|
|
|
2022
2033
|
each_blocks[i].m(div, null);
|
|
2023
2034
|
}
|
|
2024
2035
|
|
|
2025
|
-
div_resize_listener = internal.add_resize_listener(div, /*div_elementresize_handler*/ ctx[
|
|
2036
|
+
div_resize_listener = internal.add_resize_listener(div, /*div_elementresize_handler*/ ctx[9].bind(div));
|
|
2026
2037
|
current = true;
|
|
2027
2038
|
},
|
|
2028
2039
|
p(ctx, dirty) {
|
|
2029
|
-
if (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
2030
|
-
each_value = /*rooms*/ ctx[
|
|
2040
|
+
if (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111) {
|
|
2041
|
+
each_value = /*rooms*/ ctx[6];
|
|
2031
2042
|
internal.group_outros();
|
|
2032
2043
|
each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$b, null, get_each_context$b);
|
|
2033
2044
|
internal.check_outros();
|
|
@@ -2061,7 +2072,7 @@ function create_if_block$8(ctx) {
|
|
|
2061
2072
|
};
|
|
2062
2073
|
}
|
|
2063
2074
|
|
|
2064
|
-
// (
|
|
2075
|
+
// (20:4) {#each rooms as room (room.id)}
|
|
2065
2076
|
function create_each_block$b(key_1, ctx) {
|
|
2066
2077
|
let first;
|
|
2067
2078
|
let roomlabel;
|
|
@@ -2069,11 +2080,12 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2069
2080
|
|
|
2070
2081
|
const roomlabel_spread_levels = [
|
|
2071
2082
|
{
|
|
2072
|
-
pxmm: /*pxmm*/ ctx[
|
|
2073
|
-
room: /*room*/ ctx[
|
|
2074
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2083
|
+
pxmm: /*pxmm*/ ctx[5],
|
|
2084
|
+
room: /*room*/ ctx[10],
|
|
2085
|
+
getLabelElement: /*getLabelElement*/ ctx[2],
|
|
2086
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[1],
|
|
2075
2087
|
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
2076
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
2088
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
|
|
2077
2089
|
}
|
|
2078
2090
|
];
|
|
2079
2091
|
|
|
@@ -2101,14 +2113,15 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2101
2113
|
p(new_ctx, dirty) {
|
|
2102
2114
|
ctx = new_ctx;
|
|
2103
2115
|
|
|
2104
|
-
const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
2116
|
+
const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111)
|
|
2105
2117
|
? internal.get_spread_update(roomlabel_spread_levels, [
|
|
2106
2118
|
{
|
|
2107
|
-
pxmm: /*pxmm*/ ctx[
|
|
2108
|
-
room: /*room*/ ctx[
|
|
2109
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2119
|
+
pxmm: /*pxmm*/ ctx[5],
|
|
2120
|
+
room: /*room*/ ctx[10],
|
|
2121
|
+
getLabelElement: /*getLabelElement*/ ctx[2],
|
|
2122
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[1],
|
|
2110
2123
|
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
2111
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
2124
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
|
|
2112
2125
|
}
|
|
2113
2126
|
])
|
|
2114
2127
|
: {};
|
|
@@ -2134,7 +2147,7 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2134
2147
|
function create_fragment$n(ctx) {
|
|
2135
2148
|
let if_block_anchor;
|
|
2136
2149
|
let current;
|
|
2137
|
-
let if_block = /*rooms*/ ctx[
|
|
2150
|
+
let if_block = /*rooms*/ ctx[6] && create_if_block$8(ctx);
|
|
2138
2151
|
|
|
2139
2152
|
return {
|
|
2140
2153
|
c() {
|
|
@@ -2147,11 +2160,11 @@ function create_fragment$n(ctx) {
|
|
|
2147
2160
|
current = true;
|
|
2148
2161
|
},
|
|
2149
2162
|
p(ctx, [dirty]) {
|
|
2150
|
-
if (/*rooms*/ ctx[
|
|
2163
|
+
if (/*rooms*/ ctx[6]) {
|
|
2151
2164
|
if (if_block) {
|
|
2152
2165
|
if_block.p(ctx, dirty);
|
|
2153
2166
|
|
|
2154
|
-
if (dirty & /*rooms*/
|
|
2167
|
+
if (dirty & /*rooms*/ 64) {
|
|
2155
2168
|
internal.transition_in(if_block, 1);
|
|
2156
2169
|
}
|
|
2157
2170
|
} else {
|
|
@@ -2191,6 +2204,7 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
2191
2204
|
let { floorIndex } = $$props;
|
|
2192
2205
|
let { floorplanData } = $$props;
|
|
2193
2206
|
let { hoveredRoom } = $$props;
|
|
2207
|
+
let { getRoomAreaText } = $$props;
|
|
2194
2208
|
let { getLabelElement } = $$props;
|
|
2195
2209
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
2196
2210
|
let clientWidth = 0;
|
|
@@ -2198,33 +2212,35 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
2198
2212
|
|
|
2199
2213
|
function div_elementresize_handler() {
|
|
2200
2214
|
clientWidth = this.clientWidth;
|
|
2201
|
-
$$invalidate(
|
|
2215
|
+
$$invalidate(4, clientWidth);
|
|
2202
2216
|
}
|
|
2203
2217
|
|
|
2204
2218
|
$$self.$$set = $$props => {
|
|
2205
|
-
if ('floorIndex' in $$props) $$invalidate(
|
|
2206
|
-
if ('floorplanData' in $$props) $$invalidate(
|
|
2219
|
+
if ('floorIndex' in $$props) $$invalidate(7, floorIndex = $$props.floorIndex);
|
|
2220
|
+
if ('floorplanData' in $$props) $$invalidate(8, floorplanData = $$props.floorplanData);
|
|
2207
2221
|
if ('hoveredRoom' in $$props) $$invalidate(0, hoveredRoom = $$props.hoveredRoom);
|
|
2208
|
-
if ('
|
|
2209
|
-
if ('
|
|
2222
|
+
if ('getRoomAreaText' in $$props) $$invalidate(1, getRoomAreaText = $$props.getRoomAreaText);
|
|
2223
|
+
if ('getLabelElement' in $$props) $$invalidate(2, getLabelElement = $$props.getLabelElement);
|
|
2224
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(3, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
2210
2225
|
};
|
|
2211
2226
|
|
|
2212
2227
|
$$self.$$.update = () => {
|
|
2213
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex*/
|
|
2214
|
-
$$invalidate(
|
|
2228
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 384) {
|
|
2229
|
+
$$invalidate(6, rooms = floorplanData.floorDatas[floorIndex].rooms);
|
|
2215
2230
|
}
|
|
2216
2231
|
|
|
2217
|
-
if ($$self.$$.dirty & /*floorplanData, clientWidth*/
|
|
2232
|
+
if ($$self.$$.dirty & /*floorplanData, clientWidth*/ 272) {
|
|
2218
2233
|
{
|
|
2219
2234
|
const { max, min } = floorplanData.bounding;
|
|
2220
2235
|
const boundingWidth = max.x - min.x;
|
|
2221
|
-
$$invalidate(
|
|
2236
|
+
$$invalidate(5, pxmm = clientWidth / boundingWidth);
|
|
2222
2237
|
}
|
|
2223
2238
|
}
|
|
2224
2239
|
};
|
|
2225
2240
|
|
|
2226
2241
|
return [
|
|
2227
2242
|
hoveredRoom,
|
|
2243
|
+
getRoomAreaText,
|
|
2228
2244
|
getLabelElement,
|
|
2229
2245
|
adaptiveRoomLabelVisibleEnable,
|
|
2230
2246
|
clientWidth,
|
|
@@ -2247,11 +2263,12 @@ class RoomLabels extends internal.SvelteComponent {
|
|
|
2247
2263
|
create_fragment$n,
|
|
2248
2264
|
internal.safe_not_equal,
|
|
2249
2265
|
{
|
|
2250
|
-
floorIndex:
|
|
2251
|
-
floorplanData:
|
|
2266
|
+
floorIndex: 7,
|
|
2267
|
+
floorplanData: 8,
|
|
2252
2268
|
hoveredRoom: 0,
|
|
2253
|
-
|
|
2254
|
-
|
|
2269
|
+
getRoomAreaText: 1,
|
|
2270
|
+
getLabelElement: 2,
|
|
2271
|
+
adaptiveRoomLabelVisibleEnable: 3
|
|
2255
2272
|
},
|
|
2256
2273
|
add_css$i
|
|
2257
2274
|
);
|
|
@@ -2266,18 +2283,18 @@ function add_css$h(target) {
|
|
|
2266
2283
|
|
|
2267
2284
|
function get_each_context$a(ctx, list, i) {
|
|
2268
2285
|
const child_ctx = ctx.slice();
|
|
2269
|
-
child_ctx[
|
|
2270
|
-
child_ctx[
|
|
2286
|
+
child_ctx[11] = list[i];
|
|
2287
|
+
child_ctx[13] = i;
|
|
2271
2288
|
return child_ctx;
|
|
2272
2289
|
}
|
|
2273
2290
|
|
|
2274
2291
|
function get_each_context_1(ctx, list, i) {
|
|
2275
2292
|
const child_ctx = ctx.slice();
|
|
2276
|
-
child_ctx[
|
|
2293
|
+
child_ctx[14] = list[i];
|
|
2277
2294
|
return child_ctx;
|
|
2278
2295
|
}
|
|
2279
2296
|
|
|
2280
|
-
// (
|
|
2297
|
+
// (48:4) {#each rulerLabels as rulerLabel}
|
|
2281
2298
|
function create_each_block_1(ctx) {
|
|
2282
2299
|
let div;
|
|
2283
2300
|
|
|
@@ -2285,8 +2302,8 @@ function create_each_block_1(ctx) {
|
|
|
2285
2302
|
c() {
|
|
2286
2303
|
div = internal.element("div");
|
|
2287
2304
|
internal.attr(div, "class", "floorplan-plugin__rule-scale svelte-xt7p1v");
|
|
2288
|
-
internal.set_style(div, "left", /*rulerLabel*/ ctx[
|
|
2289
|
-
internal.set_style(div, "bottom", /*rulerLabel*/ ctx[
|
|
2305
|
+
internal.set_style(div, "left", /*rulerLabel*/ ctx[14].left * 100 + '%', false);
|
|
2306
|
+
internal.set_style(div, "bottom", /*rulerLabel*/ ctx[14].bottom * 100 + '%', false);
|
|
2290
2307
|
},
|
|
2291
2308
|
m(target, anchor) {
|
|
2292
2309
|
internal.insert(target, div, anchor);
|
|
@@ -2298,11 +2315,11 @@ function create_each_block_1(ctx) {
|
|
|
2298
2315
|
};
|
|
2299
2316
|
}
|
|
2300
2317
|
|
|
2301
|
-
// (
|
|
2318
|
+
// (57:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
|
|
2302
2319
|
function create_each_block$a(key_1, ctx) {
|
|
2303
2320
|
let div1;
|
|
2304
2321
|
let div0;
|
|
2305
|
-
let t0_value = /*textItem*/ ctx[
|
|
2322
|
+
let t0_value = /*getRuleDistanceText*/ ctx[1](/*textItem*/ ctx[11].distance) + "";
|
|
2306
2323
|
let t0;
|
|
2307
2324
|
let t1;
|
|
2308
2325
|
|
|
@@ -2315,10 +2332,10 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2315
2332
|
t0 = internal.text(t0_value);
|
|
2316
2333
|
t1 = internal.space();
|
|
2317
2334
|
internal.attr(div0, "class", "floorplan-plugin__rule-text svelte-xt7p1v");
|
|
2318
|
-
internal.toggle_class(div0, "is-row", /*isRow*/ ctx[
|
|
2335
|
+
internal.toggle_class(div0, "is-row", /*isRow*/ ctx[2]);
|
|
2319
2336
|
internal.attr(div1, "class", "floorplan-plugin__rule-text-item svelte-xt7p1v");
|
|
2320
|
-
internal.set_style(div1, "left", /*textItem*/ ctx[
|
|
2321
|
-
internal.set_style(div1, "bottom", /*textItem*/ ctx[
|
|
2337
|
+
internal.set_style(div1, "left", /*textItem*/ ctx[11].left * 100 + '%', false);
|
|
2338
|
+
internal.set_style(div1, "bottom", /*textItem*/ ctx[11].bottom * 100 + '%', false);
|
|
2322
2339
|
this.first = div1;
|
|
2323
2340
|
},
|
|
2324
2341
|
m(target, anchor) {
|
|
@@ -2329,6 +2346,7 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2329
2346
|
},
|
|
2330
2347
|
p(new_ctx, dirty) {
|
|
2331
2348
|
ctx = new_ctx;
|
|
2349
|
+
if (dirty & /*getRuleDistanceText*/ 2 && t0_value !== (t0_value = /*getRuleDistanceText*/ ctx[1](/*textItem*/ ctx[11].distance) + "")) internal.set_data(t0, t0_value);
|
|
2332
2350
|
},
|
|
2333
2351
|
d(detaching) {
|
|
2334
2352
|
if (detaching) internal.detach(div1);
|
|
@@ -2346,15 +2364,15 @@ function create_fragment$m(ctx) {
|
|
|
2346
2364
|
let each_blocks = [];
|
|
2347
2365
|
let each1_lookup = new Map();
|
|
2348
2366
|
let div3_class_value;
|
|
2349
|
-
let each_value_1 = /*rulerLabels*/ ctx[
|
|
2367
|
+
let each_value_1 = /*rulerLabels*/ ctx[3];
|
|
2350
2368
|
let each_blocks_1 = [];
|
|
2351
2369
|
|
|
2352
2370
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
2353
2371
|
each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
2354
2372
|
}
|
|
2355
2373
|
|
|
2356
|
-
let each_value = /*rulerTexts*/ ctx[
|
|
2357
|
-
const get_key = ctx => /*textItemIndex*/ ctx[
|
|
2374
|
+
let each_value = /*rulerTexts*/ ctx[4];
|
|
2375
|
+
const get_key = ctx => /*textItemIndex*/ ctx[13];
|
|
2358
2376
|
|
|
2359
2377
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2360
2378
|
let child_ctx = get_each_context$a(ctx, each_value, i);
|
|
@@ -2382,12 +2400,12 @@ function create_fragment$m(ctx) {
|
|
|
2382
2400
|
|
|
2383
2401
|
internal.attr(div0, "class", "floorplan-plugin__rule-line svelte-xt7p1v");
|
|
2384
2402
|
internal.attr(div1, "class", "floorplan-plugin__rule-scale-wrapper svelte-xt7p1v");
|
|
2385
|
-
internal.toggle_class(div1, "is-row", /*isRow*/ ctx[
|
|
2403
|
+
internal.toggle_class(div1, "is-row", /*isRow*/ ctx[2]);
|
|
2386
2404
|
internal.attr(div2, "class", "floorplan-plugin__rule-text-wrapper svelte-xt7p1v");
|
|
2387
2405
|
internal.attr(div3, "class", div3_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/ ctx[0] + " svelte-xt7p1v");
|
|
2388
|
-
internal.toggle_class(div3, "is-row", /*isRow*/ ctx[
|
|
2389
|
-
internal.set_style(div3, "width", /*isRow*/ ctx[
|
|
2390
|
-
internal.set_style(div3, "height", !/*isRow*/ ctx[
|
|
2406
|
+
internal.toggle_class(div3, "is-row", /*isRow*/ ctx[2]);
|
|
2407
|
+
internal.set_style(div3, "width", /*isRow*/ ctx[2] ? '100%' : 1 / 16 + 'rem', false);
|
|
2408
|
+
internal.set_style(div3, "height", !/*isRow*/ ctx[2] ? '100%' : 1 / 16 + 'rem', false);
|
|
2391
2409
|
},
|
|
2392
2410
|
m(target, anchor) {
|
|
2393
2411
|
internal.insert(target, div3, anchor);
|
|
@@ -2407,8 +2425,8 @@ function create_fragment$m(ctx) {
|
|
|
2407
2425
|
}
|
|
2408
2426
|
},
|
|
2409
2427
|
p(ctx, [dirty]) {
|
|
2410
|
-
if (dirty & /*rulerLabels*/
|
|
2411
|
-
each_value_1 = /*rulerLabels*/ ctx[
|
|
2428
|
+
if (dirty & /*rulerLabels*/ 8) {
|
|
2429
|
+
each_value_1 = /*rulerLabels*/ ctx[3];
|
|
2412
2430
|
let i;
|
|
2413
2431
|
|
|
2414
2432
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
@@ -2430,8 +2448,8 @@ function create_fragment$m(ctx) {
|
|
|
2430
2448
|
each_blocks_1.length = each_value_1.length;
|
|
2431
2449
|
}
|
|
2432
2450
|
|
|
2433
|
-
if (dirty & /*rulerTexts, isRow*/
|
|
2434
|
-
each_value = /*rulerTexts*/ ctx[
|
|
2451
|
+
if (dirty & /*rulerTexts, isRow, getRuleDistanceText*/ 22) {
|
|
2452
|
+
each_value = /*rulerTexts*/ ctx[4];
|
|
2435
2453
|
each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each1_lookup, div2, internal.destroy_block, create_each_block$a, null, get_each_context$a);
|
|
2436
2454
|
}
|
|
2437
2455
|
|
|
@@ -2439,8 +2457,8 @@ function create_fragment$m(ctx) {
|
|
|
2439
2457
|
internal.attr(div3, "class", div3_class_value);
|
|
2440
2458
|
}
|
|
2441
2459
|
|
|
2442
|
-
if (dirty & /*type, isRow*/
|
|
2443
|
-
internal.toggle_class(div3, "is-row", /*isRow*/ ctx[
|
|
2460
|
+
if (dirty & /*type, isRow*/ 5) {
|
|
2461
|
+
internal.toggle_class(div3, "is-row", /*isRow*/ ctx[2]);
|
|
2444
2462
|
}
|
|
2445
2463
|
},
|
|
2446
2464
|
i: internal.noop,
|
|
@@ -2463,6 +2481,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
2463
2481
|
let { type } = $$props;
|
|
2464
2482
|
let { data } = $$props;
|
|
2465
2483
|
let { bounding } = $$props;
|
|
2484
|
+
let { getRuleDistanceText } = $$props;
|
|
2466
2485
|
const isRow = type === 'top' || type === 'bottom';
|
|
2467
2486
|
const contentWidth = bounding.max.x - bounding.min.x - (padding$1 - exteriorWallOffset$1) * 2;
|
|
2468
2487
|
const contentHeight = bounding.max.y - bounding.min.y - (padding$1 - exteriorWallOffset$1) * 2;
|
|
@@ -2508,17 +2527,32 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
2508
2527
|
|
|
2509
2528
|
$$self.$$set = $$props => {
|
|
2510
2529
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
2511
|
-
if ('data' in $$props) $$invalidate(
|
|
2512
|
-
if ('bounding' in $$props) $$invalidate(
|
|
2530
|
+
if ('data' in $$props) $$invalidate(5, data = $$props.data);
|
|
2531
|
+
if ('bounding' in $$props) $$invalidate(6, bounding = $$props.bounding);
|
|
2532
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(1, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
2513
2533
|
};
|
|
2514
2534
|
|
|
2515
|
-
return [type, isRow, rulerLabels, rulerTexts, data, bounding];
|
|
2535
|
+
return [type, getRuleDistanceText, isRow, rulerLabels, rulerTexts, data, bounding];
|
|
2516
2536
|
}
|
|
2517
2537
|
|
|
2518
2538
|
class RuleItem extends internal.SvelteComponent {
|
|
2519
2539
|
constructor(options) {
|
|
2520
2540
|
super();
|
|
2521
|
-
|
|
2541
|
+
|
|
2542
|
+
internal.init(
|
|
2543
|
+
this,
|
|
2544
|
+
options,
|
|
2545
|
+
instance$m,
|
|
2546
|
+
create_fragment$m,
|
|
2547
|
+
internal.safe_not_equal,
|
|
2548
|
+
{
|
|
2549
|
+
type: 0,
|
|
2550
|
+
data: 5,
|
|
2551
|
+
bounding: 6,
|
|
2552
|
+
getRuleDistanceText: 1
|
|
2553
|
+
},
|
|
2554
|
+
add_css$h
|
|
2555
|
+
);
|
|
2522
2556
|
}
|
|
2523
2557
|
}
|
|
2524
2558
|
|
|
@@ -2530,12 +2564,12 @@ function add_css$g(target) {
|
|
|
2530
2564
|
|
|
2531
2565
|
function get_each_context$9(ctx, list, i) {
|
|
2532
2566
|
const child_ctx = ctx.slice();
|
|
2533
|
-
child_ctx[
|
|
2534
|
-
child_ctx[
|
|
2567
|
+
child_ctx[13] = list[i][0];
|
|
2568
|
+
child_ctx[14] = list[i][1];
|
|
2535
2569
|
return child_ctx;
|
|
2536
2570
|
}
|
|
2537
2571
|
|
|
2538
|
-
// (
|
|
2572
|
+
// (20:2) {#each ruleLabelArray as [type, data] (type)}
|
|
2539
2573
|
function create_each_block$9(key_1, ctx) {
|
|
2540
2574
|
let first;
|
|
2541
2575
|
let ruleitem;
|
|
@@ -2543,9 +2577,10 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2543
2577
|
|
|
2544
2578
|
const ruleitem_spread_levels = [
|
|
2545
2579
|
{
|
|
2546
|
-
type: /*type*/ ctx[
|
|
2547
|
-
data: /*data*/ ctx[
|
|
2548
|
-
bounding: /*bounding*/ ctx[
|
|
2580
|
+
type: /*type*/ ctx[13],
|
|
2581
|
+
data: /*data*/ ctx[14],
|
|
2582
|
+
bounding: /*bounding*/ ctx[1],
|
|
2583
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
|
|
2549
2584
|
}
|
|
2550
2585
|
];
|
|
2551
2586
|
|
|
@@ -2573,12 +2608,13 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2573
2608
|
p(new_ctx, dirty) {
|
|
2574
2609
|
ctx = new_ctx;
|
|
2575
2610
|
|
|
2576
|
-
const ruleitem_changes = (dirty & /*ruleLabelArray, bounding*/
|
|
2611
|
+
const ruleitem_changes = (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19)
|
|
2577
2612
|
? internal.get_spread_update(ruleitem_spread_levels, [
|
|
2578
2613
|
{
|
|
2579
|
-
type: /*type*/ ctx[
|
|
2580
|
-
data: /*data*/ ctx[
|
|
2581
|
-
bounding: /*bounding*/ ctx[
|
|
2614
|
+
type: /*type*/ ctx[13],
|
|
2615
|
+
data: /*data*/ ctx[14],
|
|
2616
|
+
bounding: /*bounding*/ ctx[1],
|
|
2617
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
|
|
2582
2618
|
}
|
|
2583
2619
|
])
|
|
2584
2620
|
: {};
|
|
@@ -2606,8 +2642,8 @@ function create_fragment$l(ctx) {
|
|
|
2606
2642
|
let each_blocks = [];
|
|
2607
2643
|
let each_1_lookup = new Map();
|
|
2608
2644
|
let current;
|
|
2609
|
-
let each_value = /*ruleLabelArray*/ ctx[
|
|
2610
|
-
const get_key = ctx => /*type*/ ctx[
|
|
2645
|
+
let each_value = /*ruleLabelArray*/ ctx[4];
|
|
2646
|
+
const get_key = ctx => /*type*/ ctx[13];
|
|
2611
2647
|
|
|
2612
2648
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2613
2649
|
let child_ctx = get_each_context$9(ctx, each_value, i);
|
|
@@ -2624,8 +2660,8 @@ function create_fragment$l(ctx) {
|
|
|
2624
2660
|
}
|
|
2625
2661
|
|
|
2626
2662
|
internal.attr(div, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3");
|
|
2627
|
-
internal.set_style(div, "width", /*width*/ ctx[
|
|
2628
|
-
internal.set_style(div, "height", /*height*/ ctx[
|
|
2663
|
+
internal.set_style(div, "width", /*width*/ ctx[3], false);
|
|
2664
|
+
internal.set_style(div, "height", /*height*/ ctx[2], false);
|
|
2629
2665
|
},
|
|
2630
2666
|
m(target, anchor) {
|
|
2631
2667
|
internal.insert(target, div, anchor);
|
|
@@ -2637,19 +2673,19 @@ function create_fragment$l(ctx) {
|
|
|
2637
2673
|
current = true;
|
|
2638
2674
|
},
|
|
2639
2675
|
p(ctx, [dirty]) {
|
|
2640
|
-
if (dirty & /*ruleLabelArray, bounding*/
|
|
2641
|
-
each_value = /*ruleLabelArray*/ ctx[
|
|
2676
|
+
if (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19) {
|
|
2677
|
+
each_value = /*ruleLabelArray*/ ctx[4];
|
|
2642
2678
|
internal.group_outros();
|
|
2643
2679
|
each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, internal.outro_and_destroy_block, create_each_block$9, null, get_each_context$9);
|
|
2644
2680
|
internal.check_outros();
|
|
2645
2681
|
}
|
|
2646
2682
|
|
|
2647
|
-
if (dirty & /*width*/
|
|
2648
|
-
internal.set_style(div, "width", /*width*/ ctx[
|
|
2683
|
+
if (dirty & /*width*/ 8) {
|
|
2684
|
+
internal.set_style(div, "width", /*width*/ ctx[3], false);
|
|
2649
2685
|
}
|
|
2650
2686
|
|
|
2651
|
-
if (dirty & /*height*/
|
|
2652
|
-
internal.set_style(div, "height", /*height*/ ctx[
|
|
2687
|
+
if (dirty & /*height*/ 4) {
|
|
2688
|
+
internal.set_style(div, "height", /*height*/ ctx[2], false);
|
|
2653
2689
|
}
|
|
2654
2690
|
},
|
|
2655
2691
|
i(local) {
|
|
@@ -2694,55 +2730,58 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2694
2730
|
let height;
|
|
2695
2731
|
let { floorIndex } = $$props;
|
|
2696
2732
|
let { floorplanData } = $$props;
|
|
2733
|
+
let { getRuleDistanceText } = $$props;
|
|
2697
2734
|
|
|
2698
2735
|
$$self.$$set = $$props => {
|
|
2699
|
-
if ('floorIndex' in $$props) $$invalidate(
|
|
2700
|
-
if ('floorplanData' in $$props) $$invalidate(
|
|
2736
|
+
if ('floorIndex' in $$props) $$invalidate(5, floorIndex = $$props.floorIndex);
|
|
2737
|
+
if ('floorplanData' in $$props) $$invalidate(6, floorplanData = $$props.floorplanData);
|
|
2738
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(0, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
2701
2739
|
};
|
|
2702
2740
|
|
|
2703
2741
|
$$self.$$.update = () => {
|
|
2704
|
-
if ($$self.$$.dirty & /*floorplanData*/
|
|
2705
|
-
$$invalidate(
|
|
2742
|
+
if ($$self.$$.dirty & /*floorplanData*/ 64) {
|
|
2743
|
+
$$invalidate(1, bounding = floorplanData.bounding);
|
|
2706
2744
|
}
|
|
2707
2745
|
|
|
2708
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex*/
|
|
2709
|
-
$$invalidate(
|
|
2746
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 96) {
|
|
2747
|
+
$$invalidate(11, ruleLabelData = floorplanData.floorDatas[floorIndex].rules);
|
|
2710
2748
|
}
|
|
2711
2749
|
|
|
2712
|
-
if ($$self.$$.dirty & /*ruleLabelData*/
|
|
2713
|
-
$$invalidate(
|
|
2750
|
+
if ($$self.$$.dirty & /*ruleLabelData*/ 2048) {
|
|
2751
|
+
$$invalidate(12, ruleLabelDataKeys = Object.keys(ruleLabelData));
|
|
2714
2752
|
}
|
|
2715
2753
|
|
|
2716
|
-
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/
|
|
2717
|
-
$$invalidate(
|
|
2754
|
+
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/ 6144) {
|
|
2755
|
+
$$invalidate(4, ruleLabelArray = ruleLabelDataKeys.map(key => [key, ruleLabelData[key]]));
|
|
2718
2756
|
}
|
|
2719
2757
|
|
|
2720
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2721
|
-
$$invalidate(
|
|
2758
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2759
|
+
$$invalidate(9, boundingWidth = bounding.max.x - bounding.min.x);
|
|
2722
2760
|
}
|
|
2723
2761
|
|
|
2724
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2725
|
-
$$invalidate(
|
|
2762
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2763
|
+
$$invalidate(7, boundingHeight = bounding.max.y - bounding.min.y);
|
|
2726
2764
|
}
|
|
2727
2765
|
|
|
2728
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2729
|
-
$$invalidate(
|
|
2766
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2767
|
+
$$invalidate(10, contentWidth = bounding.max.x - bounding.min.x - (padding - exteriorWallOffset) * 2);
|
|
2730
2768
|
}
|
|
2731
2769
|
|
|
2732
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2733
|
-
$$invalidate(
|
|
2770
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2771
|
+
$$invalidate(8, contentHeight = bounding.max.y - bounding.min.y - (padding - exteriorWallOffset) * 2);
|
|
2734
2772
|
}
|
|
2735
2773
|
|
|
2736
|
-
if ($$self.$$.dirty & /*contentWidth, boundingWidth*/
|
|
2737
|
-
$$invalidate(
|
|
2774
|
+
if ($$self.$$.dirty & /*contentWidth, boundingWidth*/ 1536) {
|
|
2775
|
+
$$invalidate(3, width = contentWidth / boundingWidth * 100 + '%');
|
|
2738
2776
|
}
|
|
2739
2777
|
|
|
2740
|
-
if ($$self.$$.dirty & /*contentHeight, boundingHeight*/
|
|
2741
|
-
$$invalidate(
|
|
2778
|
+
if ($$self.$$.dirty & /*contentHeight, boundingHeight*/ 384) {
|
|
2779
|
+
$$invalidate(2, height = contentHeight / boundingHeight * 100 + '%');
|
|
2742
2780
|
}
|
|
2743
2781
|
};
|
|
2744
2782
|
|
|
2745
2783
|
return [
|
|
2784
|
+
getRuleDistanceText,
|
|
2746
2785
|
bounding,
|
|
2747
2786
|
height,
|
|
2748
2787
|
width,
|
|
@@ -2761,7 +2800,20 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2761
2800
|
class RuleLabels extends internal.SvelteComponent {
|
|
2762
2801
|
constructor(options) {
|
|
2763
2802
|
super();
|
|
2764
|
-
|
|
2803
|
+
|
|
2804
|
+
internal.init(
|
|
2805
|
+
this,
|
|
2806
|
+
options,
|
|
2807
|
+
instance$l,
|
|
2808
|
+
create_fragment$l,
|
|
2809
|
+
internal.safe_not_equal,
|
|
2810
|
+
{
|
|
2811
|
+
floorIndex: 5,
|
|
2812
|
+
floorplanData: 6,
|
|
2813
|
+
getRuleDistanceText: 0
|
|
2814
|
+
},
|
|
2815
|
+
add_css$g
|
|
2816
|
+
);
|
|
2765
2817
|
}
|
|
2766
2818
|
}
|
|
2767
2819
|
|
|
@@ -3672,7 +3724,7 @@ function add_css$c(target) {
|
|
|
3672
3724
|
internal.append_styles(target, "svelte-bl8zrz", ".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}");
|
|
3673
3725
|
}
|
|
3674
3726
|
|
|
3675
|
-
// (
|
|
3727
|
+
// (22:2) {#if hoverEnable}
|
|
3676
3728
|
function create_if_block_2(ctx) {
|
|
3677
3729
|
let roomhighlight;
|
|
3678
3730
|
let current;
|
|
@@ -3681,7 +3733,7 @@ function create_if_block_2(ctx) {
|
|
|
3681
3733
|
{
|
|
3682
3734
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3683
3735
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3684
|
-
hoveredRoom: /*hoveredRoom*/ ctx[
|
|
3736
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10]
|
|
3685
3737
|
}
|
|
3686
3738
|
];
|
|
3687
3739
|
|
|
@@ -3702,12 +3754,12 @@ function create_if_block_2(ctx) {
|
|
|
3702
3754
|
current = true;
|
|
3703
3755
|
},
|
|
3704
3756
|
p(ctx, dirty) {
|
|
3705
|
-
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/
|
|
3757
|
+
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/ 1058)
|
|
3706
3758
|
? internal.get_spread_update(roomhighlight_spread_levels, [
|
|
3707
3759
|
{
|
|
3708
3760
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3709
3761
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3710
|
-
hoveredRoom: /*hoveredRoom*/ ctx[
|
|
3762
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10]
|
|
3711
3763
|
}
|
|
3712
3764
|
])
|
|
3713
3765
|
: {};
|
|
@@ -3729,7 +3781,7 @@ function create_if_block_2(ctx) {
|
|
|
3729
3781
|
};
|
|
3730
3782
|
}
|
|
3731
3783
|
|
|
3732
|
-
// (
|
|
3784
|
+
// (26:2) {#if roomLabelsEnable}
|
|
3733
3785
|
function create_if_block_1$3(ctx) {
|
|
3734
3786
|
let roomlabels;
|
|
3735
3787
|
let current;
|
|
@@ -3738,9 +3790,10 @@ function create_if_block_1$3(ctx) {
|
|
|
3738
3790
|
{
|
|
3739
3791
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3740
3792
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3793
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[6],
|
|
3794
|
+
getLabelElement: /*getLabelElement*/ ctx[7],
|
|
3795
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10],
|
|
3796
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
|
|
3744
3797
|
}
|
|
3745
3798
|
];
|
|
3746
3799
|
|
|
@@ -3761,14 +3814,15 @@ function create_if_block_1$3(ctx) {
|
|
|
3761
3814
|
current = true;
|
|
3762
3815
|
},
|
|
3763
3816
|
p(ctx, dirty) {
|
|
3764
|
-
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
3817
|
+
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getRoomAreaText, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 1762)
|
|
3765
3818
|
? internal.get_spread_update(roomlabels_spread_levels, [
|
|
3766
3819
|
{
|
|
3767
3820
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3768
3821
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3822
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[6],
|
|
3823
|
+
getLabelElement: /*getLabelElement*/ ctx[7],
|
|
3824
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10],
|
|
3825
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
|
|
3772
3826
|
}
|
|
3773
3827
|
])
|
|
3774
3828
|
: {};
|
|
@@ -3790,7 +3844,7 @@ function create_if_block_1$3(ctx) {
|
|
|
3790
3844
|
};
|
|
3791
3845
|
}
|
|
3792
3846
|
|
|
3793
|
-
// (
|
|
3847
|
+
// (38:2) {#if ruleLabelsEnable}
|
|
3794
3848
|
function create_if_block$6(ctx) {
|
|
3795
3849
|
let rulelabels;
|
|
3796
3850
|
let current;
|
|
@@ -3798,7 +3852,8 @@ function create_if_block$6(ctx) {
|
|
|
3798
3852
|
const rulelabels_spread_levels = [
|
|
3799
3853
|
{
|
|
3800
3854
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3801
|
-
floorIndex: /*floorIndex*/ ctx[1]
|
|
3855
|
+
floorIndex: /*floorIndex*/ ctx[1],
|
|
3856
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
|
|
3802
3857
|
}
|
|
3803
3858
|
];
|
|
3804
3859
|
|
|
@@ -3819,11 +3874,12 @@ function create_if_block$6(ctx) {
|
|
|
3819
3874
|
current = true;
|
|
3820
3875
|
},
|
|
3821
3876
|
p(ctx, dirty) {
|
|
3822
|
-
const rulelabels_changes = (dirty & /*floorplanData, floorIndex*/
|
|
3877
|
+
const rulelabels_changes = (dirty & /*floorplanData, floorIndex, getRuleDistanceText*/ 290)
|
|
3823
3878
|
? internal.get_spread_update(rulelabels_spread_levels, [
|
|
3824
3879
|
{
|
|
3825
3880
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3826
|
-
floorIndex: /*floorIndex*/ ctx[1]
|
|
3881
|
+
floorIndex: /*floorIndex*/ ctx[1],
|
|
3882
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
|
|
3827
3883
|
}
|
|
3828
3884
|
])
|
|
3829
3885
|
: {};
|
|
@@ -4052,7 +4108,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4052
4108
|
let { roomLabelsEnable } = $$props;
|
|
4053
4109
|
let { ruleLabelsEnable } = $$props;
|
|
4054
4110
|
let { floorplanData } = $$props;
|
|
4111
|
+
let { getRoomAreaText } = $$props;
|
|
4055
4112
|
let { getLabelElement } = $$props;
|
|
4113
|
+
let { getRuleDistanceText } = $$props;
|
|
4056
4114
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
4057
4115
|
const hoveredRoom = store.writable(undefined);
|
|
4058
4116
|
|
|
@@ -4063,8 +4121,10 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4063
4121
|
if ('roomLabelsEnable' in $$props) $$invalidate(3, roomLabelsEnable = $$props.roomLabelsEnable);
|
|
4064
4122
|
if ('ruleLabelsEnable' in $$props) $$invalidate(4, ruleLabelsEnable = $$props.ruleLabelsEnable);
|
|
4065
4123
|
if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
|
|
4066
|
-
if ('
|
|
4067
|
-
if ('
|
|
4124
|
+
if ('getRoomAreaText' in $$props) $$invalidate(6, getRoomAreaText = $$props.getRoomAreaText);
|
|
4125
|
+
if ('getLabelElement' in $$props) $$invalidate(7, getLabelElement = $$props.getLabelElement);
|
|
4126
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(8, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
4127
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(9, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
4068
4128
|
};
|
|
4069
4129
|
|
|
4070
4130
|
return [
|
|
@@ -4074,7 +4134,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4074
4134
|
roomLabelsEnable,
|
|
4075
4135
|
ruleLabelsEnable,
|
|
4076
4136
|
floorplanData,
|
|
4137
|
+
getRoomAreaText,
|
|
4077
4138
|
getLabelElement,
|
|
4139
|
+
getRuleDistanceText,
|
|
4078
4140
|
adaptiveRoomLabelVisibleEnable,
|
|
4079
4141
|
hoveredRoom
|
|
4080
4142
|
];
|
|
@@ -4097,8 +4159,10 @@ class CurrentFloor$1 extends internal.SvelteComponent {
|
|
|
4097
4159
|
roomLabelsEnable: 3,
|
|
4098
4160
|
ruleLabelsEnable: 4,
|
|
4099
4161
|
floorplanData: 5,
|
|
4100
|
-
|
|
4101
|
-
|
|
4162
|
+
getRoomAreaText: 6,
|
|
4163
|
+
getLabelElement: 7,
|
|
4164
|
+
getRuleDistanceText: 8,
|
|
4165
|
+
adaptiveRoomLabelVisibleEnable: 9
|
|
4102
4166
|
},
|
|
4103
4167
|
add_css$c
|
|
4104
4168
|
);
|
|
@@ -4113,11 +4177,11 @@ function add_css$b(target) {
|
|
|
4113
4177
|
|
|
4114
4178
|
function get_each_context$6(ctx, list, i) {
|
|
4115
4179
|
const child_ctx = ctx.slice();
|
|
4116
|
-
child_ctx[
|
|
4180
|
+
child_ctx[16] = list[i];
|
|
4117
4181
|
return child_ctx;
|
|
4118
4182
|
}
|
|
4119
4183
|
|
|
4120
|
-
// (
|
|
4184
|
+
// (24:0) {#if visible}
|
|
4121
4185
|
function create_if_block$5(ctx) {
|
|
4122
4186
|
let div;
|
|
4123
4187
|
let t0;
|
|
@@ -4184,7 +4248,7 @@ function create_if_block$5(ctx) {
|
|
|
4184
4248
|
p(new_ctx, dirty) {
|
|
4185
4249
|
ctx = new_ctx;
|
|
4186
4250
|
|
|
4187
|
-
if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/
|
|
4251
|
+
if (dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 62384) {
|
|
4188
4252
|
each_value = /*floorplanData*/ ctx[9].floorDatas;
|
|
4189
4253
|
let i;
|
|
4190
4254
|
|
|
@@ -4290,7 +4354,7 @@ function create_if_block$5(ctx) {
|
|
|
4290
4354
|
};
|
|
4291
4355
|
}
|
|
4292
4356
|
|
|
4293
|
-
// (
|
|
4357
|
+
// (26:4) {#each floorplanData.floorDatas as floorData}
|
|
4294
4358
|
function create_each_block$6(ctx) {
|
|
4295
4359
|
let currentfloor;
|
|
4296
4360
|
let current;
|
|
@@ -4299,16 +4363,18 @@ function create_each_block$6(ctx) {
|
|
|
4299
4363
|
{
|
|
4300
4364
|
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
4301
4365
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
4302
|
-
|
|
4366
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[12],
|
|
4367
|
+
getLabelElement: /*getLabelElement*/ ctx[13],
|
|
4368
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
|
|
4303
4369
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
4304
4370
|
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
4305
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
4371
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
|
|
4306
4372
|
},
|
|
4307
4373
|
{
|
|
4308
|
-
floorIndex: /*floorData*/ ctx[
|
|
4374
|
+
floorIndex: /*floorData*/ ctx[16].floorIndex
|
|
4309
4375
|
},
|
|
4310
4376
|
{
|
|
4311
|
-
isCurrent: /*floorData*/ ctx[
|
|
4377
|
+
isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
|
|
4312
4378
|
}
|
|
4313
4379
|
];
|
|
4314
4380
|
|
|
@@ -4329,21 +4395,23 @@ function create_each_block$6(ctx) {
|
|
|
4329
4395
|
current = true;
|
|
4330
4396
|
},
|
|
4331
4397
|
p(ctx, dirty) {
|
|
4332
|
-
const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/
|
|
4398
|
+
const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 62384)
|
|
4333
4399
|
? internal.get_spread_update(currentfloor_spread_levels, [
|
|
4334
|
-
dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/
|
|
4400
|
+
dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/ 62368 && {
|
|
4335
4401
|
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
4336
4402
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
4337
|
-
|
|
4403
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[12],
|
|
4404
|
+
getLabelElement: /*getLabelElement*/ ctx[13],
|
|
4405
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
|
|
4338
4406
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
4339
4407
|
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
4340
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
4408
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
|
|
4341
4409
|
},
|
|
4342
4410
|
dirty & /*floorplanData*/ 512 && {
|
|
4343
|
-
floorIndex: /*floorData*/ ctx[
|
|
4411
|
+
floorIndex: /*floorData*/ ctx[16].floorIndex
|
|
4344
4412
|
},
|
|
4345
4413
|
dirty & /*floorplanData, floorIndex*/ 528 && {
|
|
4346
|
-
isCurrent: /*floorData*/ ctx[
|
|
4414
|
+
isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
|
|
4347
4415
|
}
|
|
4348
4416
|
])
|
|
4349
4417
|
: {};
|
|
@@ -4365,7 +4433,7 @@ function create_each_block$6(ctx) {
|
|
|
4365
4433
|
};
|
|
4366
4434
|
}
|
|
4367
4435
|
|
|
4368
|
-
// (
|
|
4436
|
+
// (43:4) {#if compassEnable}
|
|
4369
4437
|
function create_if_block_1$2(ctx) {
|
|
4370
4438
|
let compass;
|
|
4371
4439
|
let current;
|
|
@@ -4474,7 +4542,9 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4474
4542
|
let { floorplanData } = $$props;
|
|
4475
4543
|
let { lastPanoramaLongitude } = $$props;
|
|
4476
4544
|
let { cameraImageUrl } = $$props;
|
|
4545
|
+
let { getRoomAreaText } = $$props;
|
|
4477
4546
|
let { getLabelElement } = $$props;
|
|
4547
|
+
let { getRuleDistanceText } = $$props;
|
|
4478
4548
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
4479
4549
|
|
|
4480
4550
|
$$self.$$set = $$props => {
|
|
@@ -4490,8 +4560,10 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4490
4560
|
if ('floorplanData' in $$props) $$invalidate(9, floorplanData = $$props.floorplanData);
|
|
4491
4561
|
if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
4492
4562
|
if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
|
|
4493
|
-
if ('
|
|
4494
|
-
if ('
|
|
4563
|
+
if ('getRoomAreaText' in $$props) $$invalidate(12, getRoomAreaText = $$props.getRoomAreaText);
|
|
4564
|
+
if ('getLabelElement' in $$props) $$invalidate(13, getLabelElement = $$props.getLabelElement);
|
|
4565
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(14, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
4566
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(15, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
4495
4567
|
};
|
|
4496
4568
|
|
|
4497
4569
|
return [
|
|
@@ -4507,7 +4579,9 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4507
4579
|
floorplanData,
|
|
4508
4580
|
lastPanoramaLongitude,
|
|
4509
4581
|
cameraImageUrl,
|
|
4582
|
+
getRoomAreaText,
|
|
4510
4583
|
getLabelElement,
|
|
4584
|
+
getRuleDistanceText,
|
|
4511
4585
|
adaptiveRoomLabelVisibleEnable
|
|
4512
4586
|
];
|
|
4513
4587
|
}
|
|
@@ -4535,8 +4609,10 @@ class Main$1 extends internal.SvelteComponent {
|
|
|
4535
4609
|
floorplanData: 9,
|
|
4536
4610
|
lastPanoramaLongitude: 10,
|
|
4537
4611
|
cameraImageUrl: 11,
|
|
4538
|
-
|
|
4539
|
-
|
|
4612
|
+
getRoomAreaText: 12,
|
|
4613
|
+
getLabelElement: 13,
|
|
4614
|
+
getRuleDistanceText: 14,
|
|
4615
|
+
adaptiveRoomLabelVisibleEnable: 15
|
|
4540
4616
|
},
|
|
4541
4617
|
add_css$b
|
|
4542
4618
|
);
|
|
@@ -5400,10 +5476,12 @@ class Controller$5 extends Controller$6 {
|
|
|
5400
5476
|
autoShowEnable: true,
|
|
5401
5477
|
ruleLabelsEnable: true,
|
|
5402
5478
|
roomLabelsEnable: true,
|
|
5479
|
+
adaptiveRoomLabelVisibleEnable: true,
|
|
5403
5480
|
cameraImageUrl: CAMERA_IMAGE,
|
|
5404
5481
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
5405
5482
|
getLabelElement: undefined,
|
|
5406
|
-
|
|
5483
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
5484
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
5407
5485
|
};
|
|
5408
5486
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
5409
5487
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -5476,12 +5554,10 @@ class Controller$5 extends Controller$6 {
|
|
|
5476
5554
|
const options = { userAction };
|
|
5477
5555
|
state.visible ? this._show(options) : this._hide(options);
|
|
5478
5556
|
}
|
|
5557
|
+
this.render();
|
|
5479
5558
|
}
|
|
5480
|
-
changeConfigs(
|
|
5481
|
-
const config = Object.assign(Object.assign({}, this.state.config), _config);
|
|
5559
|
+
changeConfigs(config, userAction = true) {
|
|
5482
5560
|
this.updateState({ config }, userAction);
|
|
5483
|
-
if (!this.container)
|
|
5484
|
-
return;
|
|
5485
5561
|
this.render();
|
|
5486
5562
|
}
|
|
5487
5563
|
async formatData(serverData) {
|
|
@@ -5489,7 +5565,8 @@ class Controller$5 extends Controller$6 {
|
|
|
5489
5565
|
}
|
|
5490
5566
|
updateState(state, userAction) {
|
|
5491
5567
|
const prevState = this.state;
|
|
5492
|
-
|
|
5568
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
5569
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
5493
5570
|
if (equal(this.state, prevState, { deep: true }))
|
|
5494
5571
|
return;
|
|
5495
5572
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6076,6 +6153,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6076
6153
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6077
6154
|
getLabelElement: undefined,
|
|
6078
6155
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6156
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6157
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6079
6158
|
};
|
|
6080
6159
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6081
6160
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6149,6 +6228,10 @@ class Controller$4 extends Controller$6 {
|
|
|
6149
6228
|
state.visible ? this._show(options) : this._hide(options);
|
|
6150
6229
|
}
|
|
6151
6230
|
}
|
|
6231
|
+
changeConfigs(config, userAction = true) {
|
|
6232
|
+
this.updateState({ config }, userAction);
|
|
6233
|
+
this.render();
|
|
6234
|
+
}
|
|
6152
6235
|
/** 更新户型图位置 */
|
|
6153
6236
|
updatePosition() {
|
|
6154
6237
|
var _a;
|
|
@@ -6167,7 +6250,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6167
6250
|
}
|
|
6168
6251
|
updateState(state, userAction) {
|
|
6169
6252
|
const prevState = this.state;
|
|
6170
|
-
|
|
6253
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6254
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6171
6255
|
if (equal(this.state, prevState, { deep: true }))
|
|
6172
6256
|
return;
|
|
6173
6257
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6504,6 +6588,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6504
6588
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6505
6589
|
getLabelElement: undefined,
|
|
6506
6590
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6591
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6592
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6507
6593
|
};
|
|
6508
6594
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6509
6595
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6605,6 +6691,10 @@ class Controller$3 extends Controller$6 {
|
|
|
6605
6691
|
state.visible ? this._show(options) : this._hide(options);
|
|
6606
6692
|
}
|
|
6607
6693
|
}
|
|
6694
|
+
changeConfigs(config, userAction = true) {
|
|
6695
|
+
this.updateState({ config }, userAction);
|
|
6696
|
+
this.render();
|
|
6697
|
+
}
|
|
6608
6698
|
async formatData(serverData) {
|
|
6609
6699
|
return await formatData(serverData.data);
|
|
6610
6700
|
}
|
|
@@ -6613,7 +6703,7 @@ class Controller$3 extends Controller$6 {
|
|
|
6613
6703
|
return;
|
|
6614
6704
|
this.isHiddenByHideFunc = false;
|
|
6615
6705
|
const { userAction } = options;
|
|
6616
|
-
this.hooks.emit('show', { userAction });
|
|
6706
|
+
this.hooks.emit('show', { userAction, auto: false });
|
|
6617
6707
|
if (this.five.getCurrentState().mode !== 'Topview') {
|
|
6618
6708
|
await changeMode(this.five, ['Topview', undefined, undefined, userAction]);
|
|
6619
6709
|
}
|
|
@@ -6623,14 +6713,14 @@ class Controller$3 extends Controller$6 {
|
|
|
6623
6713
|
const renderDuration = 500;
|
|
6624
6714
|
const modelOpacity = this.state.config.modelOpacity;
|
|
6625
6715
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
6626
|
-
this.hooks.emit('showAnimationEnded', { userAction });
|
|
6716
|
+
this.hooks.emit('showAnimationEnded', { userAction, auto: false });
|
|
6627
6717
|
this.render();
|
|
6628
6718
|
}
|
|
6629
6719
|
async _hide(options) {
|
|
6630
6720
|
if (!this.state.enabled)
|
|
6631
6721
|
return;
|
|
6632
6722
|
const { userAction } = options;
|
|
6633
|
-
this.hooks.emit('hide', { userAction });
|
|
6723
|
+
this.hooks.emit('hide', { userAction, auto: false });
|
|
6634
6724
|
const modelOpacity = 1;
|
|
6635
6725
|
const renderDuration = 0;
|
|
6636
6726
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
@@ -6647,7 +6737,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6647
6737
|
}
|
|
6648
6738
|
updateState(state, userAction) {
|
|
6649
6739
|
const prevState = this.state;
|
|
6650
|
-
|
|
6740
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6741
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6651
6742
|
if (equal(this.state, prevState, { deep: true }))
|
|
6652
6743
|
return;
|
|
6653
6744
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -9041,11 +9132,28 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
9041
9132
|
state.enable = false;
|
|
9042
9133
|
return true;
|
|
9043
9134
|
};
|
|
9135
|
+
function changeConfigs(config) {
|
|
9136
|
+
if (config.distanceText && config.distanceText !== state.options.distanceText) {
|
|
9137
|
+
const distanceText = config.distanceText;
|
|
9138
|
+
state.options.distanceText = distanceText;
|
|
9139
|
+
Object.values(__rule).forEach((item) => {
|
|
9140
|
+
item.rules.forEach((rule) => {
|
|
9141
|
+
const [origin, vertical] = rule.rule;
|
|
9142
|
+
const distance = origin.distanceTo(vertical);
|
|
9143
|
+
const textEle = rule.$element.querySelector('.PanoRulerPlugin-rule-label-name');
|
|
9144
|
+
if (!textEle)
|
|
9145
|
+
return;
|
|
9146
|
+
textEle.innerText = distanceText(distance);
|
|
9147
|
+
});
|
|
9148
|
+
});
|
|
9149
|
+
}
|
|
9150
|
+
}
|
|
9044
9151
|
return {
|
|
9045
9152
|
enable,
|
|
9046
9153
|
disable,
|
|
9047
9154
|
load,
|
|
9048
9155
|
state,
|
|
9156
|
+
changeConfigs,
|
|
9049
9157
|
};
|
|
9050
9158
|
};
|
|
9051
9159
|
|
|
@@ -10942,7 +11050,8 @@ function createDistanceItem(props) {
|
|
|
10942
11050
|
if (userDistanceItem) {
|
|
10943
11051
|
userDistanceItem.update({ line: line.toCompletelyJson(), polyline: line.getPolyline().toCompletelyJson() });
|
|
10944
11052
|
}
|
|
10945
|
-
const
|
|
11053
|
+
const distance = startPoint.position.clone().distanceTo(endPoint.position);
|
|
11054
|
+
const distanceString = props.line.model.params.getDistanceText(distance);
|
|
10946
11055
|
contentDom.innerText !== distanceString && (contentDom.innerText = distanceString);
|
|
10947
11056
|
}
|
|
10948
11057
|
function appendTo(container) {
|
|
@@ -11281,6 +11390,12 @@ const preventDefault = (e) => e.preventDefault();
|
|
|
11281
11390
|
class BaseController {
|
|
11282
11391
|
constructor(params) {
|
|
11283
11392
|
var _a, _b;
|
|
11393
|
+
Object.defineProperty(this, "model", {
|
|
11394
|
+
enumerable: true,
|
|
11395
|
+
configurable: true,
|
|
11396
|
+
writable: true,
|
|
11397
|
+
value: void 0
|
|
11398
|
+
});
|
|
11284
11399
|
Object.defineProperty(this, "five", {
|
|
11285
11400
|
enumerable: true,
|
|
11286
11401
|
configurable: true,
|
|
@@ -11293,7 +11408,13 @@ class BaseController {
|
|
|
11293
11408
|
writable: true,
|
|
11294
11409
|
value: void 0
|
|
11295
11410
|
});
|
|
11296
|
-
Object.defineProperty(this, "
|
|
11411
|
+
Object.defineProperty(this, "config", {
|
|
11412
|
+
enumerable: true,
|
|
11413
|
+
configurable: true,
|
|
11414
|
+
writable: true,
|
|
11415
|
+
value: void 0
|
|
11416
|
+
});
|
|
11417
|
+
Object.defineProperty(this, "dashed", {
|
|
11297
11418
|
enumerable: true,
|
|
11298
11419
|
configurable: true,
|
|
11299
11420
|
writable: true,
|
|
@@ -11352,6 +11473,7 @@ class BaseController {
|
|
|
11352
11473
|
configurable: true,
|
|
11353
11474
|
writable: true,
|
|
11354
11475
|
value: () => {
|
|
11476
|
+
this.dashed.distanceItem.update(this.five);
|
|
11355
11477
|
this.model.lines.forEach((line) => line.distanceItem.update(this.five));
|
|
11356
11478
|
}
|
|
11357
11479
|
});
|
|
@@ -11359,6 +11481,7 @@ class BaseController {
|
|
|
11359
11481
|
this.five = params.five;
|
|
11360
11482
|
this.hook = params.hook;
|
|
11361
11483
|
this.model = params.model;
|
|
11484
|
+
this.config = params.config;
|
|
11362
11485
|
this.magnifier = params.magnifier;
|
|
11363
11486
|
this.container = params.container;
|
|
11364
11487
|
this.fiveHelper = params.fiveHelper;
|
|
@@ -11367,6 +11490,10 @@ class BaseController {
|
|
|
11367
11490
|
// ==================== Groups ====================
|
|
11368
11491
|
this.group = params.group;
|
|
11369
11492
|
this.mouseGroup = params.mouseGroup;
|
|
11493
|
+
// ==================== 虚线 ====================
|
|
11494
|
+
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
11495
|
+
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
11496
|
+
this.dashed.mesh.name = 'dashLine';
|
|
11370
11497
|
const fiveElement = this.five.getElement();
|
|
11371
11498
|
if (fiveElement) {
|
|
11372
11499
|
fiveElement.addEventListener('touchstart', preventDefault);
|
|
@@ -11442,12 +11569,6 @@ class EditController extends BaseController {
|
|
|
11442
11569
|
writable: true,
|
|
11443
11570
|
value: 'edit'
|
|
11444
11571
|
});
|
|
11445
|
-
Object.defineProperty(this, "model", {
|
|
11446
|
-
enumerable: true,
|
|
11447
|
-
configurable: true,
|
|
11448
|
-
writable: true,
|
|
11449
|
-
value: new Model({ userDistanceItemCreator: this.userDistanceItemCreator })
|
|
11450
|
-
});
|
|
11451
11572
|
Object.defineProperty(this, "pressPoint", {
|
|
11452
11573
|
enumerable: true,
|
|
11453
11574
|
configurable: true,
|
|
@@ -11479,13 +11600,6 @@ class EditController extends BaseController {
|
|
|
11479
11600
|
writable: true,
|
|
11480
11601
|
value: null
|
|
11481
11602
|
});
|
|
11482
|
-
/** 鼠标点到上一个端点连接的虚线 */
|
|
11483
|
-
Object.defineProperty(this, "dashed", {
|
|
11484
|
-
enumerable: true,
|
|
11485
|
-
configurable: true,
|
|
11486
|
-
writable: true,
|
|
11487
|
-
value: void 0
|
|
11488
|
-
});
|
|
11489
11603
|
Object.defineProperty(this, "hammer", {
|
|
11490
11604
|
enumerable: true,
|
|
11491
11605
|
configurable: true,
|
|
@@ -11698,9 +11812,7 @@ class EditController extends BaseController {
|
|
|
11698
11812
|
this.dashed.distanceItem.update(this.five);
|
|
11699
11813
|
}
|
|
11700
11814
|
});
|
|
11701
|
-
|
|
11702
|
-
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
11703
|
-
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
11815
|
+
this.model = new Model(this.config);
|
|
11704
11816
|
// ==================== 事件监听 ====================
|
|
11705
11817
|
// five
|
|
11706
11818
|
this.five.on('cameraUpdate', this.onCameraUpdate);
|
|
@@ -12534,7 +12646,7 @@ class MixedController extends BaseController {
|
|
|
12534
12646
|
enumerable: true,
|
|
12535
12647
|
configurable: true,
|
|
12536
12648
|
writable: true,
|
|
12537
|
-
value: new Model(
|
|
12649
|
+
value: new Model(this.config)
|
|
12538
12650
|
});
|
|
12539
12651
|
Object.defineProperty(this, "hasAppendDashed", {
|
|
12540
12652
|
enumerable: true,
|
|
@@ -12572,13 +12684,6 @@ class MixedController extends BaseController {
|
|
|
12572
12684
|
writable: true,
|
|
12573
12685
|
value: void 0
|
|
12574
12686
|
});
|
|
12575
|
-
/** 圆环点到上一个端点连接的虚线 */
|
|
12576
|
-
Object.defineProperty(this, "dashed", {
|
|
12577
|
-
enumerable: true,
|
|
12578
|
-
configurable: true,
|
|
12579
|
-
writable: true,
|
|
12580
|
-
value: void 0
|
|
12581
|
-
});
|
|
12582
12687
|
/** 编辑线条发生改变时通知外部 */
|
|
12583
12688
|
Object.defineProperty(this, "onLineChanged", {
|
|
12584
12689
|
enumerable: true,
|
|
@@ -12781,10 +12886,6 @@ class MixedController extends BaseController {
|
|
|
12781
12886
|
onClick: this.deleteDomClickCallback,
|
|
12782
12887
|
cancelDelete: this.cancelDeleteClickCallback,
|
|
12783
12888
|
}).appendTo(this.container);
|
|
12784
|
-
// ==================== 虚线 ====================
|
|
12785
|
-
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
12786
|
-
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
12787
|
-
this.dashed.mesh.name = 'dashLine';
|
|
12788
12889
|
// ==================== 事件监听 ====================
|
|
12789
12890
|
// five
|
|
12790
12891
|
this.five.on('cameraUpdate', this.onCameraUpdate);
|
|
@@ -14158,6 +14259,12 @@ class MeasureController {
|
|
|
14158
14259
|
writable: true,
|
|
14159
14260
|
value: void 0
|
|
14160
14261
|
});
|
|
14262
|
+
Object.defineProperty(this, "config", {
|
|
14263
|
+
enumerable: true,
|
|
14264
|
+
configurable: true,
|
|
14265
|
+
writable: true,
|
|
14266
|
+
value: void 0
|
|
14267
|
+
});
|
|
14161
14268
|
Object.defineProperty(this, "fiveHelper", {
|
|
14162
14269
|
enumerable: true,
|
|
14163
14270
|
configurable: true,
|
|
@@ -14256,7 +14363,14 @@ class MeasureController {
|
|
|
14256
14363
|
});
|
|
14257
14364
|
this.five = five$1;
|
|
14258
14365
|
this.params = params;
|
|
14259
|
-
|
|
14366
|
+
const defaultConfig = {
|
|
14367
|
+
userDistanceItemCreator: undefined,
|
|
14368
|
+
getDistanceText(distance) {
|
|
14369
|
+
return distance.toFixed(2) + 'm';
|
|
14370
|
+
},
|
|
14371
|
+
};
|
|
14372
|
+
this.config = Object.assign(Object.assign({}, defaultConfig), omit(params, ['openParams', 'magnifierParams']));
|
|
14373
|
+
this.model = new Model(this.config);
|
|
14260
14374
|
this.fiveHelper = new FiveHelper(five$1);
|
|
14261
14375
|
// magnifier
|
|
14262
14376
|
this.magnifier = new Magnifier(five$1, (_a = params.magnifierParams) !== null && _a !== void 0 ? _a : { width: 190, height: 190, scale: 2 });
|
|
@@ -14278,6 +14392,7 @@ class MeasureController {
|
|
|
14278
14392
|
hook: this.hook,
|
|
14279
14393
|
group: this.group,
|
|
14280
14394
|
model: this.model,
|
|
14395
|
+
config: this.config,
|
|
14281
14396
|
magnifier: this.magnifier,
|
|
14282
14397
|
container: this.container,
|
|
14283
14398
|
fiveHelper: this.fiveHelper,
|
|
@@ -14412,6 +14527,14 @@ class MeasureController {
|
|
|
14412
14527
|
(_b = this.useUIController) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
14413
14528
|
this.useUIController = new UIController(this, this.controllerParams);
|
|
14414
14529
|
}
|
|
14530
|
+
changeConfigs(config) {
|
|
14531
|
+
var _a;
|
|
14532
|
+
if (config.getDistanceText && config.getDistanceText !== this.config.getDistanceText) {
|
|
14533
|
+
const getDistanceText = config.getDistanceText;
|
|
14534
|
+
this.config.getDistanceText = getDistanceText;
|
|
14535
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateDistanceUI();
|
|
14536
|
+
}
|
|
14537
|
+
}
|
|
14415
14538
|
}
|
|
14416
14539
|
|
|
14417
14540
|
const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|