@realsee/dnalogel 2.0.0 → 2.0.2-alpha
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/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- 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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/CSS3DRenderPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/CameraMovementPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/CameraMovementPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/CruisePlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/CruisePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/CruisePlugin/index.js +188 -5
- package/dist/GuideLinePlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/GuideLinePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/GuideLinePlugin/index.js +188 -5
- package/dist/ItemLabelPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/ItemLabelPlugin/index.js +2 -2
- package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- package/dist/ModelChassisCompassPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelChassisCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/ModelEntryDoorGuidePlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/ModelItemLabelPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/ModelItemLabelPlugin/index.js +2 -2
- package/dist/ModelRoomLabelPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelRoomLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/ModelRoomLabelPlugin/index.js +2 -2
- package/dist/ModelTVVideoPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelTVVideoPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/ModelViewPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/ModelViewPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/PanoCompassPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/PanoCursorRaycasterPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/PanoDoorLabelPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoDoorLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/PanoDoorLabelPlugin/index.js +1 -1
- 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/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- 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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoMeasurePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- 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/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- 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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoRulerPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/PanoRulerPlugin/index.js +17 -0
- package/dist/PanoRulerProPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoRulerProPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/PanoRulerProPlugin/index.js +2 -2
- package/dist/PanoSpatialTagPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/PanoSpatialTagPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/PanoSpatialTagPlugin/index.js +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- 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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/floorplan/MapviewFloorplanPlugin/index.js +250 -174
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/ModelFloorplanPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- 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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/floorplan/ModelFloorplanPlugin/index.js +257 -180
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/floorplan/PanoFloorplanRadarPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- 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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +9 -9
- package/dist/floorplan/TopviewFloorplanPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- 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/ModelFloorplanPlugin/Controller.d.ts +3 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +15 -7
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +250 -174
- package/dist/index.es.js +523 -228
- package/dist/index.js +523 -229
- package/dist/index.umd.js +527 -232
- 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/ItemLabelPlugin/ItemLabelComponent.js +1 -1
- package/libs/ItemLabelPlugin/ItemLabelItem.js +1 -1
- package/libs/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -1
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +1 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
- 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/PanoRulerProPlugin/RulerItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -1
- package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -1
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +1 -1
- package/libs/floorplan/Components/Camera.js +1 -1
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +33 -21
- package/libs/floorplan/Components/Main.js +32 -20
- package/libs/floorplan/Components/Normalmage.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +25 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +41 -35
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +47 -29
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +62 -44
- package/libs/floorplan/Components/SvgImage.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 +15 -7
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var FBXLoader = require('three/examples/jsm/loaders/FBXLoader');
|
|
|
15
15
|
var TWEEN = require('@tweenjs/tween.js');
|
|
16
16
|
var Hammer = require('hammerjs');
|
|
17
17
|
var classNames = require('classnames');
|
|
18
|
-
var getNormals = require('polyline-normals');
|
|
19
18
|
|
|
20
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
20
|
|
|
@@ -42,7 +41,6 @@ var TWEEN__namespace = /*#__PURE__*/_interopNamespace(TWEEN);
|
|
|
42
41
|
var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
|
|
43
42
|
var Hammer__default = /*#__PURE__*/_interopDefaultLegacy(Hammer);
|
|
44
43
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
45
|
-
var getNormals__default = /*#__PURE__*/_interopDefaultLegacy(getNormals);
|
|
46
44
|
|
|
47
45
|
/**
|
|
48
46
|
* Five 模型插件
|
|
@@ -491,7 +489,7 @@ const PanoCursorRaycasterPlugin = (five) => {
|
|
|
491
489
|
|
|
492
490
|
const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2SDQ1xh9ALH4yN0M2BNZrKwtFc9Fmkquuma5HJBzvLiIONBnx40B7QIzTdxCcNwj3dYlEoUmabAU+UFZDpxah22Ng2NjQXH0LrwccGwyEzXfWhWQwSYQHYuFevXj14/vnn37h79+7Nr7766gup/FX5PnAj33///f/46aef3vj444/vfPbZZz9IYGMcnDbkhEYQL001Hfsu775i+7j6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eoo/9WWyeK6OL5Ax/Edn2uKDEd9BM8tbzxe98IraJJM7CBP98JjHFmR+3vqxOXzmmWceaKU337CxGhqCTUVolIGMabAnhGgUb71iahI7fFf7FIFCb3j/18voiuemdd/Mu/+uE1sQWfeX3MBuyzx5B39P/fRcr4dcAT9p5bxl4zhIgNqgnlRkILKuf1654tIUCk2oLJYbQpr0ZqRrGt30C1tk4FnyQYccray31B3s9UQviG104IUGmZ8mH5v+3qF2w51nn332TzHCsI7KJzEVm6akEVuPhLWGhUeM0CAjvkHmxCM+uCYPD2R0f2Ilt7lB4tMGZ3i7qPqfe+65P6j3X1y5du3aZ3rSefrGjRsvkNxpI80AeTGC0NgGoakvuFYrtvDjD11okBF6m3yjdfze9eM7sbPQIC8sg8detlPdP7XCy8ASOh6IC534Qf126Au6Aq7S+0P9jOJ/f/jhh7dfeeWVN1C4c+cOv5zoxsQgKD7O/OgIT3OLgrrkLAMR9EuQYsXLlWO5ePNMJ25s7Fhv8EIraduDDOJI7kfh6FT98M6Ka/GrLbE0/131X79+/YVXX331+tNPP32b3nt1tGhXP/rooz/ruf9N/YzWQ/2e2c8Cfg7Wz8RC9WkeE8pj/rQltMRH/jXdsdreAEp04mg8u22zYhvZ9IPueLE4puMLfnjRKzKCbD4ZHv9oK/mwaPOlm/ukkbFwjKLj428j8t8DEEvN9xJoJuhsDI9lxOeHXr3zE8cGm7fpQMfNgR54ntXmYXzx1ltvbX64VUl4SH//66+/fl2/5ndLC/BHMV/Q6ypN06Bm3lgFaKMcEbj+bDHN88/curvewF4hjhNWasrwhy/0waIPjylyYjp49Ag++NhFhi7F+jeEFcc/H6w5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==';
|
|
493
491
|
|
|
494
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.
|
|
492
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.50.1 */
|
|
495
493
|
|
|
496
494
|
function add_css$q(target) {
|
|
497
495
|
internal.append_styles(target, "svelte-877671", ".room-label-item.svelte-877671{position:absolute;font-size:0.41667rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-877671{position:absolute;left:0;top:-3.33333rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.04167rem;min-width:1.66667rem;padding:0 0.3125rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-877671{position:absolute;top:-2.29167rem;height:2.5rem;width:1px;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-877671{font-size:0.52083rem}");
|
|
@@ -591,7 +589,7 @@ class RoomLabelItem extends internal.SvelteComponent {
|
|
|
591
589
|
}
|
|
592
590
|
}
|
|
593
591
|
|
|
594
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.
|
|
592
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.50.1 */
|
|
595
593
|
|
|
596
594
|
const { Map: Map_1 } = internal.globals;
|
|
597
595
|
|
|
@@ -1155,7 +1153,7 @@ function rad2Deg$1(rad) {
|
|
|
1155
1153
|
return (rad * 180) / Math.PI;
|
|
1156
1154
|
}
|
|
1157
1155
|
|
|
1158
|
-
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.
|
|
1156
|
+
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.50.1 */
|
|
1159
1157
|
|
|
1160
1158
|
function add_css$o(target) {
|
|
1161
1159
|
internal.append_styles(target, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
@@ -1260,7 +1258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orxwGeTsPIttvPlno0y3GAZfbHp6n3ynGAV0m99u/2J6H3znGAvW4n+J25tdY7xwFey1pvQe6/DlrjOMDLqfXW7N5pbs0YWhxgtpj0rl1uiaHFISzccSWohUCzOIemm0VKChwHOMutKCVwHOA4av/JVi0xtDiRpCRfRcvQ4lBfxSnG0OJc/+xTjKHFyVRMP38iDC0O92lZVRhanO+vcVWGFu9BRWkW7+Z3rapEizdy7ZVm8V5Gtr8AtSnix59eOmYAAAAASUVORK5CYII=';
|
|
1262
1260
|
|
|
1263
|
-
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.
|
|
1261
|
+
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.50.1 */
|
|
1264
1262
|
|
|
1265
1263
|
function add_css$n(target) {
|
|
1266
1264
|
internal.append_styles(target, "svelte-z9kwkx", ".floorplan-plugin__compass.svelte-z9kwkx{position:absolute;left:50%;top:-2.39583rem;width:12.03125rem;height:2.13542rem;will-change:opacity;transform-origin:center 9.58333rem}.floorplan-plugin__compass-image.svelte-z9kwkx{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-z9kwkx{position:absolute;left:50%;top:0.78125rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.52083rem;color:#fff}");
|
|
@@ -1360,7 +1358,7 @@ class Compass extends internal.SvelteComponent {
|
|
|
1360
1358
|
}
|
|
1361
1359
|
}
|
|
1362
1360
|
|
|
1363
|
-
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.
|
|
1361
|
+
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.50.1 */
|
|
1364
1362
|
|
|
1365
1363
|
function add_css$m(target) {
|
|
1366
1364
|
internal.append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
@@ -1410,7 +1408,7 @@ class Normalmage extends internal.SvelteComponent {
|
|
|
1410
1408
|
}
|
|
1411
1409
|
}
|
|
1412
1410
|
|
|
1413
|
-
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.
|
|
1411
|
+
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.50.1 */
|
|
1414
1412
|
|
|
1415
1413
|
function add_css$l(target) {
|
|
1416
1414
|
internal.append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
@@ -1477,7 +1475,7 @@ class SvgImage extends internal.SvelteComponent {
|
|
|
1477
1475
|
}
|
|
1478
1476
|
}
|
|
1479
1477
|
|
|
1480
|
-
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.
|
|
1478
|
+
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.50.1 */
|
|
1481
1479
|
|
|
1482
1480
|
function add_css$k(target) {
|
|
1483
1481
|
internal.append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
@@ -1678,13 +1676,13 @@ class BaseImage extends internal.SvelteComponent {
|
|
|
1678
1676
|
}
|
|
1679
1677
|
}
|
|
1680
1678
|
|
|
1681
|
-
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.
|
|
1679
|
+
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.50.1 */
|
|
1682
1680
|
|
|
1683
1681
|
function add_css$j(target) {
|
|
1684
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}");
|
|
1685
1683
|
}
|
|
1686
1684
|
|
|
1687
|
-
// (
|
|
1685
|
+
// (96:30)
|
|
1688
1686
|
function create_if_block_1$5(ctx) {
|
|
1689
1687
|
let html_tag;
|
|
1690
1688
|
let raw_value = /*userConfigElement*/ ctx[4].outerHTML + "";
|
|
@@ -1710,13 +1708,14 @@ function create_if_block_1$5(ctx) {
|
|
|
1710
1708
|
};
|
|
1711
1709
|
}
|
|
1712
1710
|
|
|
1713
|
-
// (
|
|
1711
|
+
// (90:2) {#if getLabelElement === undefined}
|
|
1714
1712
|
function create_if_block$9(ctx) {
|
|
1715
1713
|
let span0;
|
|
1716
1714
|
let t0_value = /*room*/ ctx[0].name + "";
|
|
1717
1715
|
let t0;
|
|
1718
1716
|
let t1;
|
|
1719
1717
|
let span1;
|
|
1718
|
+
let t2;
|
|
1720
1719
|
|
|
1721
1720
|
return {
|
|
1722
1721
|
c() {
|
|
@@ -1724,7 +1723,7 @@ function create_if_block$9(ctx) {
|
|
|
1724
1723
|
t0 = internal.text(t0_value);
|
|
1725
1724
|
t1 = internal.space();
|
|
1726
1725
|
span1 = internal.element("span");
|
|
1727
|
-
|
|
1726
|
+
t2 = internal.text(/*roomSizeDes*/ ctx[5]);
|
|
1728
1727
|
internal.attr(span0, "class", "floorplan-plugin__room-name");
|
|
1729
1728
|
internal.attr(span1, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
1730
1729
|
},
|
|
@@ -1733,9 +1732,11 @@ function create_if_block$9(ctx) {
|
|
|
1733
1732
|
internal.append(span0, t0);
|
|
1734
1733
|
internal.insert(target, t1, anchor);
|
|
1735
1734
|
internal.insert(target, span1, anchor);
|
|
1735
|
+
internal.append(span1, t2);
|
|
1736
1736
|
},
|
|
1737
1737
|
p(ctx, dirty) {
|
|
1738
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]);
|
|
1739
1740
|
},
|
|
1740
1741
|
d(detaching) {
|
|
1741
1742
|
if (detaching) internal.detach(span0);
|
|
@@ -1769,7 +1770,7 @@ function create_fragment$o(ctx) {
|
|
|
1769
1770
|
m(target, anchor) {
|
|
1770
1771
|
internal.insert(target, div, anchor);
|
|
1771
1772
|
if (if_block) if_block.m(div, null);
|
|
1772
|
-
/*div_binding*/ ctx[
|
|
1773
|
+
/*div_binding*/ ctx[16](div);
|
|
1773
1774
|
},
|
|
1774
1775
|
p(ctx, [dirty]) {
|
|
1775
1776
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
@@ -1797,7 +1798,7 @@ function create_fragment$o(ctx) {
|
|
|
1797
1798
|
if_block.d();
|
|
1798
1799
|
}
|
|
1799
1800
|
|
|
1800
|
-
/*div_binding*/ ctx[
|
|
1801
|
+
/*div_binding*/ ctx[16](null);
|
|
1801
1802
|
}
|
|
1802
1803
|
};
|
|
1803
1804
|
}
|
|
@@ -1820,12 +1821,14 @@ function isPointInPolygon(point, polygon) {
|
|
|
1820
1821
|
}
|
|
1821
1822
|
|
|
1822
1823
|
function instance$o($$self, $$props, $$invalidate) {
|
|
1824
|
+
let roomSizeDes;
|
|
1823
1825
|
let isLabelInRoom;
|
|
1824
1826
|
let userConfigElement;
|
|
1825
1827
|
let labelVisible;
|
|
1826
1828
|
let { pxmm } = $$props;
|
|
1827
1829
|
let { room } = $$props;
|
|
1828
1830
|
let { hoveredRoom } = $$props;
|
|
1831
|
+
let { getRoomAreaText } = $$props;
|
|
1829
1832
|
let { getLabelElement } = $$props;
|
|
1830
1833
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
1831
1834
|
|
|
@@ -1865,7 +1868,6 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1865
1868
|
const bodyWidth = document.body.clientWidth;
|
|
1866
1869
|
|
|
1867
1870
|
const bodyHeight = document.body.clientHeight;
|
|
1868
|
-
const roomSizeDes = room.size ? (room.size / 1000000).toFixed(1) + '㎡' : '';
|
|
1869
1871
|
|
|
1870
1872
|
// ====================================
|
|
1871
1873
|
const roomLabel = room.roomLabel;
|
|
@@ -1881,7 +1883,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1881
1883
|
let labelElementSize;
|
|
1882
1884
|
|
|
1883
1885
|
hoveredRoom.subscribe(function onHoverdRoomUpdate(_room) {
|
|
1884
|
-
$$invalidate(
|
|
1886
|
+
$$invalidate(13, isHoverd = !!_room && _room.id === room.id);
|
|
1885
1887
|
});
|
|
1886
1888
|
|
|
1887
1889
|
svelte.onMount(() => {
|
|
@@ -1891,7 +1893,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1891
1893
|
? void 0
|
|
1892
1894
|
: labelElement.getClientRects()[0];
|
|
1893
1895
|
|
|
1894
|
-
$$invalidate(
|
|
1896
|
+
$$invalidate(14, labelElementSize = {
|
|
1895
1897
|
width: labelDomRect.width,
|
|
1896
1898
|
height: labelDomRect.height
|
|
1897
1899
|
});
|
|
@@ -1908,13 +1910,18 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1908
1910
|
if ('pxmm' in $$props) $$invalidate(9, pxmm = $$props.pxmm);
|
|
1909
1911
|
if ('room' in $$props) $$invalidate(0, room = $$props.room);
|
|
1910
1912
|
if ('hoveredRoom' in $$props) $$invalidate(10, hoveredRoom = $$props.hoveredRoom);
|
|
1913
|
+
if ('getRoomAreaText' in $$props) $$invalidate(11, getRoomAreaText = $$props.getRoomAreaText);
|
|
1911
1914
|
if ('getLabelElement' in $$props) $$invalidate(1, getLabelElement = $$props.getLabelElement);
|
|
1912
|
-
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(
|
|
1915
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(12, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
1913
1916
|
};
|
|
1914
1917
|
|
|
1915
1918
|
$$self.$$.update = () => {
|
|
1916
|
-
if ($$self.$$.dirty & /*
|
|
1917
|
-
$$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
|
|
1918
1925
|
? isLabelInRoomCurry(room, labelElementSize)
|
|
1919
1926
|
: undefined);
|
|
1920
1927
|
}
|
|
@@ -1925,7 +1932,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1925
1932
|
: getLabelElement(room));
|
|
1926
1933
|
}
|
|
1927
1934
|
|
|
1928
|
-
if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/
|
|
1935
|
+
if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/ 45568) {
|
|
1929
1936
|
$$invalidate(3, labelVisible = adaptiveRoomLabelVisibleEnable
|
|
1930
1937
|
? isHoverd
|
|
1931
1938
|
? true
|
|
@@ -1948,6 +1955,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1948
1955
|
fontSize,
|
|
1949
1956
|
pxmm,
|
|
1950
1957
|
hoveredRoom,
|
|
1958
|
+
getRoomAreaText,
|
|
1951
1959
|
adaptiveRoomLabelVisibleEnable,
|
|
1952
1960
|
isHoverd,
|
|
1953
1961
|
labelElementSize,
|
|
@@ -1970,15 +1978,16 @@ class RoomLabel extends internal.SvelteComponent {
|
|
|
1970
1978
|
pxmm: 9,
|
|
1971
1979
|
room: 0,
|
|
1972
1980
|
hoveredRoom: 10,
|
|
1981
|
+
getRoomAreaText: 11,
|
|
1973
1982
|
getLabelElement: 1,
|
|
1974
|
-
adaptiveRoomLabelVisibleEnable:
|
|
1983
|
+
adaptiveRoomLabelVisibleEnable: 12
|
|
1975
1984
|
},
|
|
1976
1985
|
add_css$j
|
|
1977
1986
|
);
|
|
1978
1987
|
}
|
|
1979
1988
|
}
|
|
1980
1989
|
|
|
1981
|
-
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.
|
|
1990
|
+
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.50.1 */
|
|
1982
1991
|
|
|
1983
1992
|
function add_css$i(target) {
|
|
1984
1993
|
internal.append_styles(target, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
@@ -1986,19 +1995,19 @@ function add_css$i(target) {
|
|
|
1986
1995
|
|
|
1987
1996
|
function get_each_context$b(ctx, list, i) {
|
|
1988
1997
|
const child_ctx = ctx.slice();
|
|
1989
|
-
child_ctx[
|
|
1998
|
+
child_ctx[10] = list[i];
|
|
1990
1999
|
return child_ctx;
|
|
1991
2000
|
}
|
|
1992
2001
|
|
|
1993
|
-
// (
|
|
2002
|
+
// (18:0) {#if rooms}
|
|
1994
2003
|
function create_if_block$8(ctx) {
|
|
1995
2004
|
let div;
|
|
1996
2005
|
let each_blocks = [];
|
|
1997
2006
|
let each_1_lookup = new Map();
|
|
1998
2007
|
let div_resize_listener;
|
|
1999
2008
|
let current;
|
|
2000
|
-
let each_value = /*rooms*/ ctx[
|
|
2001
|
-
const get_key = ctx => /*room*/ ctx[
|
|
2009
|
+
let each_value = /*rooms*/ ctx[6];
|
|
2010
|
+
const get_key = ctx => /*room*/ ctx[10].id;
|
|
2002
2011
|
|
|
2003
2012
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2004
2013
|
let child_ctx = get_each_context$b(ctx, each_value, i);
|
|
@@ -2015,7 +2024,7 @@ function create_if_block$8(ctx) {
|
|
|
2015
2024
|
}
|
|
2016
2025
|
|
|
2017
2026
|
internal.attr(div, "class", "floorplan-plugin__room-labels svelte-13xux0b");
|
|
2018
|
-
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[
|
|
2027
|
+
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[9].call(div));
|
|
2019
2028
|
},
|
|
2020
2029
|
m(target, anchor) {
|
|
2021
2030
|
internal.insert(target, div, anchor);
|
|
@@ -2024,12 +2033,12 @@ function create_if_block$8(ctx) {
|
|
|
2024
2033
|
each_blocks[i].m(div, null);
|
|
2025
2034
|
}
|
|
2026
2035
|
|
|
2027
|
-
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));
|
|
2028
2037
|
current = true;
|
|
2029
2038
|
},
|
|
2030
2039
|
p(ctx, dirty) {
|
|
2031
|
-
if (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
2032
|
-
each_value = /*rooms*/ ctx[
|
|
2040
|
+
if (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111) {
|
|
2041
|
+
each_value = /*rooms*/ ctx[6];
|
|
2033
2042
|
internal.group_outros();
|
|
2034
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);
|
|
2035
2044
|
internal.check_outros();
|
|
@@ -2063,7 +2072,7 @@ function create_if_block$8(ctx) {
|
|
|
2063
2072
|
};
|
|
2064
2073
|
}
|
|
2065
2074
|
|
|
2066
|
-
// (
|
|
2075
|
+
// (20:4) {#each rooms as room (room.id)}
|
|
2067
2076
|
function create_each_block$b(key_1, ctx) {
|
|
2068
2077
|
let first;
|
|
2069
2078
|
let roomlabel;
|
|
@@ -2071,11 +2080,12 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2071
2080
|
|
|
2072
2081
|
const roomlabel_spread_levels = [
|
|
2073
2082
|
{
|
|
2074
|
-
pxmm: /*pxmm*/ ctx[
|
|
2075
|
-
room: /*room*/ ctx[
|
|
2076
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2083
|
+
pxmm: /*pxmm*/ ctx[5],
|
|
2084
|
+
room: /*room*/ ctx[10],
|
|
2085
|
+
getLabelElement: /*getLabelElement*/ ctx[2],
|
|
2086
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[1],
|
|
2077
2087
|
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
2078
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
2088
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
|
|
2079
2089
|
}
|
|
2080
2090
|
];
|
|
2081
2091
|
|
|
@@ -2103,14 +2113,15 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2103
2113
|
p(new_ctx, dirty) {
|
|
2104
2114
|
ctx = new_ctx;
|
|
2105
2115
|
|
|
2106
|
-
const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
2116
|
+
const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111)
|
|
2107
2117
|
? internal.get_spread_update(roomlabel_spread_levels, [
|
|
2108
2118
|
{
|
|
2109
|
-
pxmm: /*pxmm*/ ctx[
|
|
2110
|
-
room: /*room*/ ctx[
|
|
2111
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2119
|
+
pxmm: /*pxmm*/ ctx[5],
|
|
2120
|
+
room: /*room*/ ctx[10],
|
|
2121
|
+
getLabelElement: /*getLabelElement*/ ctx[2],
|
|
2122
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[1],
|
|
2112
2123
|
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
2113
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
2124
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
|
|
2114
2125
|
}
|
|
2115
2126
|
])
|
|
2116
2127
|
: {};
|
|
@@ -2136,7 +2147,7 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2136
2147
|
function create_fragment$n(ctx) {
|
|
2137
2148
|
let if_block_anchor;
|
|
2138
2149
|
let current;
|
|
2139
|
-
let if_block = /*rooms*/ ctx[
|
|
2150
|
+
let if_block = /*rooms*/ ctx[6] && create_if_block$8(ctx);
|
|
2140
2151
|
|
|
2141
2152
|
return {
|
|
2142
2153
|
c() {
|
|
@@ -2149,11 +2160,11 @@ function create_fragment$n(ctx) {
|
|
|
2149
2160
|
current = true;
|
|
2150
2161
|
},
|
|
2151
2162
|
p(ctx, [dirty]) {
|
|
2152
|
-
if (/*rooms*/ ctx[
|
|
2163
|
+
if (/*rooms*/ ctx[6]) {
|
|
2153
2164
|
if (if_block) {
|
|
2154
2165
|
if_block.p(ctx, dirty);
|
|
2155
2166
|
|
|
2156
|
-
if (dirty & /*rooms*/
|
|
2167
|
+
if (dirty & /*rooms*/ 64) {
|
|
2157
2168
|
internal.transition_in(if_block, 1);
|
|
2158
2169
|
}
|
|
2159
2170
|
} else {
|
|
@@ -2193,6 +2204,7 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
2193
2204
|
let { floorIndex } = $$props;
|
|
2194
2205
|
let { floorplanData } = $$props;
|
|
2195
2206
|
let { hoveredRoom } = $$props;
|
|
2207
|
+
let { getRoomAreaText } = $$props;
|
|
2196
2208
|
let { getLabelElement } = $$props;
|
|
2197
2209
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
2198
2210
|
let clientWidth = 0;
|
|
@@ -2200,33 +2212,35 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
2200
2212
|
|
|
2201
2213
|
function div_elementresize_handler() {
|
|
2202
2214
|
clientWidth = this.clientWidth;
|
|
2203
|
-
$$invalidate(
|
|
2215
|
+
$$invalidate(4, clientWidth);
|
|
2204
2216
|
}
|
|
2205
2217
|
|
|
2206
2218
|
$$self.$$set = $$props => {
|
|
2207
|
-
if ('floorIndex' in $$props) $$invalidate(
|
|
2208
|
-
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);
|
|
2209
2221
|
if ('hoveredRoom' in $$props) $$invalidate(0, hoveredRoom = $$props.hoveredRoom);
|
|
2210
|
-
if ('
|
|
2211
|
-
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);
|
|
2212
2225
|
};
|
|
2213
2226
|
|
|
2214
2227
|
$$self.$$.update = () => {
|
|
2215
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex*/
|
|
2216
|
-
$$invalidate(
|
|
2228
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 384) {
|
|
2229
|
+
$$invalidate(6, rooms = floorplanData.floorDatas[floorIndex].rooms);
|
|
2217
2230
|
}
|
|
2218
2231
|
|
|
2219
|
-
if ($$self.$$.dirty & /*floorplanData, clientWidth*/
|
|
2232
|
+
if ($$self.$$.dirty & /*floorplanData, clientWidth*/ 272) {
|
|
2220
2233
|
{
|
|
2221
2234
|
const { max, min } = floorplanData.bounding;
|
|
2222
2235
|
const boundingWidth = max.x - min.x;
|
|
2223
|
-
$$invalidate(
|
|
2236
|
+
$$invalidate(5, pxmm = clientWidth / boundingWidth);
|
|
2224
2237
|
}
|
|
2225
2238
|
}
|
|
2226
2239
|
};
|
|
2227
2240
|
|
|
2228
2241
|
return [
|
|
2229
2242
|
hoveredRoom,
|
|
2243
|
+
getRoomAreaText,
|
|
2230
2244
|
getLabelElement,
|
|
2231
2245
|
adaptiveRoomLabelVisibleEnable,
|
|
2232
2246
|
clientWidth,
|
|
@@ -2249,18 +2263,19 @@ class RoomLabels extends internal.SvelteComponent {
|
|
|
2249
2263
|
create_fragment$n,
|
|
2250
2264
|
internal.safe_not_equal,
|
|
2251
2265
|
{
|
|
2252
|
-
floorIndex:
|
|
2253
|
-
floorplanData:
|
|
2266
|
+
floorIndex: 7,
|
|
2267
|
+
floorplanData: 8,
|
|
2254
2268
|
hoveredRoom: 0,
|
|
2255
|
-
|
|
2256
|
-
|
|
2269
|
+
getRoomAreaText: 1,
|
|
2270
|
+
getLabelElement: 2,
|
|
2271
|
+
adaptiveRoomLabelVisibleEnable: 3
|
|
2257
2272
|
},
|
|
2258
2273
|
add_css$i
|
|
2259
2274
|
);
|
|
2260
2275
|
}
|
|
2261
2276
|
}
|
|
2262
2277
|
|
|
2263
|
-
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.
|
|
2278
|
+
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.50.1 */
|
|
2264
2279
|
|
|
2265
2280
|
function add_css$h(target) {
|
|
2266
2281
|
internal.append_styles(target, "svelte-xt7p1v", ".floorplan-plugin__rule-labels.svelte-xt7p1v.svelte-xt7p1v{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-xt7p1v.svelte-xt7p1v{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v.svelte-xt7p1v{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v.svelte-xt7p1v{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v.svelte-xt7p1v{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-xt7p1v.svelte-xt7p1v{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-xt7p1v.svelte-xt7p1v{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale.svelte-xt7p1v{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute}.floorplan-plugin__rule-labels--top.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-xt7p1v.svelte-xt7p1v{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-text-item.svelte-xt7p1v{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-xt7p1v.svelte-xt7p1v{width:-webkit-max-content;width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
|
|
@@ -2268,18 +2283,18 @@ function add_css$h(target) {
|
|
|
2268
2283
|
|
|
2269
2284
|
function get_each_context$a(ctx, list, i) {
|
|
2270
2285
|
const child_ctx = ctx.slice();
|
|
2271
|
-
child_ctx[
|
|
2272
|
-
child_ctx[
|
|
2286
|
+
child_ctx[11] = list[i];
|
|
2287
|
+
child_ctx[13] = i;
|
|
2273
2288
|
return child_ctx;
|
|
2274
2289
|
}
|
|
2275
2290
|
|
|
2276
2291
|
function get_each_context_1(ctx, list, i) {
|
|
2277
2292
|
const child_ctx = ctx.slice();
|
|
2278
|
-
child_ctx[
|
|
2293
|
+
child_ctx[14] = list[i];
|
|
2279
2294
|
return child_ctx;
|
|
2280
2295
|
}
|
|
2281
2296
|
|
|
2282
|
-
// (
|
|
2297
|
+
// (48:4) {#each rulerLabels as rulerLabel}
|
|
2283
2298
|
function create_each_block_1(ctx) {
|
|
2284
2299
|
let div;
|
|
2285
2300
|
|
|
@@ -2287,8 +2302,8 @@ function create_each_block_1(ctx) {
|
|
|
2287
2302
|
c() {
|
|
2288
2303
|
div = internal.element("div");
|
|
2289
2304
|
internal.attr(div, "class", "floorplan-plugin__rule-scale svelte-xt7p1v");
|
|
2290
|
-
internal.set_style(div, "left", /*rulerLabel*/ ctx[
|
|
2291
|
-
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);
|
|
2292
2307
|
},
|
|
2293
2308
|
m(target, anchor) {
|
|
2294
2309
|
internal.insert(target, div, anchor);
|
|
@@ -2300,11 +2315,11 @@ function create_each_block_1(ctx) {
|
|
|
2300
2315
|
};
|
|
2301
2316
|
}
|
|
2302
2317
|
|
|
2303
|
-
// (
|
|
2318
|
+
// (57:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
|
|
2304
2319
|
function create_each_block$a(key_1, ctx) {
|
|
2305
2320
|
let div1;
|
|
2306
2321
|
let div0;
|
|
2307
|
-
let t0_value = /*textItem*/ ctx[
|
|
2322
|
+
let t0_value = /*getRuleDistanceText*/ ctx[1](/*textItem*/ ctx[11].distance) + "";
|
|
2308
2323
|
let t0;
|
|
2309
2324
|
let t1;
|
|
2310
2325
|
|
|
@@ -2317,10 +2332,10 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2317
2332
|
t0 = internal.text(t0_value);
|
|
2318
2333
|
t1 = internal.space();
|
|
2319
2334
|
internal.attr(div0, "class", "floorplan-plugin__rule-text svelte-xt7p1v");
|
|
2320
|
-
internal.toggle_class(div0, "is-row", /*isRow*/ ctx[
|
|
2335
|
+
internal.toggle_class(div0, "is-row", /*isRow*/ ctx[2]);
|
|
2321
2336
|
internal.attr(div1, "class", "floorplan-plugin__rule-text-item svelte-xt7p1v");
|
|
2322
|
-
internal.set_style(div1, "left", /*textItem*/ ctx[
|
|
2323
|
-
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);
|
|
2324
2339
|
this.first = div1;
|
|
2325
2340
|
},
|
|
2326
2341
|
m(target, anchor) {
|
|
@@ -2331,6 +2346,7 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2331
2346
|
},
|
|
2332
2347
|
p(new_ctx, dirty) {
|
|
2333
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);
|
|
2334
2350
|
},
|
|
2335
2351
|
d(detaching) {
|
|
2336
2352
|
if (detaching) internal.detach(div1);
|
|
@@ -2348,15 +2364,15 @@ function create_fragment$m(ctx) {
|
|
|
2348
2364
|
let each_blocks = [];
|
|
2349
2365
|
let each1_lookup = new Map();
|
|
2350
2366
|
let div3_class_value;
|
|
2351
|
-
let each_value_1 = /*rulerLabels*/ ctx[
|
|
2367
|
+
let each_value_1 = /*rulerLabels*/ ctx[3];
|
|
2352
2368
|
let each_blocks_1 = [];
|
|
2353
2369
|
|
|
2354
2370
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
2355
2371
|
each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
2356
2372
|
}
|
|
2357
2373
|
|
|
2358
|
-
let each_value = /*rulerTexts*/ ctx[
|
|
2359
|
-
const get_key = ctx => /*textItemIndex*/ ctx[
|
|
2374
|
+
let each_value = /*rulerTexts*/ ctx[4];
|
|
2375
|
+
const get_key = ctx => /*textItemIndex*/ ctx[13];
|
|
2360
2376
|
|
|
2361
2377
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2362
2378
|
let child_ctx = get_each_context$a(ctx, each_value, i);
|
|
@@ -2384,12 +2400,12 @@ function create_fragment$m(ctx) {
|
|
|
2384
2400
|
|
|
2385
2401
|
internal.attr(div0, "class", "floorplan-plugin__rule-line svelte-xt7p1v");
|
|
2386
2402
|
internal.attr(div1, "class", "floorplan-plugin__rule-scale-wrapper svelte-xt7p1v");
|
|
2387
|
-
internal.toggle_class(div1, "is-row", /*isRow*/ ctx[
|
|
2403
|
+
internal.toggle_class(div1, "is-row", /*isRow*/ ctx[2]);
|
|
2388
2404
|
internal.attr(div2, "class", "floorplan-plugin__rule-text-wrapper svelte-xt7p1v");
|
|
2389
2405
|
internal.attr(div3, "class", div3_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/ ctx[0] + " svelte-xt7p1v");
|
|
2390
|
-
internal.toggle_class(div3, "is-row", /*isRow*/ ctx[
|
|
2391
|
-
internal.set_style(div3, "width", /*isRow*/ ctx[
|
|
2392
|
-
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);
|
|
2393
2409
|
},
|
|
2394
2410
|
m(target, anchor) {
|
|
2395
2411
|
internal.insert(target, div3, anchor);
|
|
@@ -2409,8 +2425,8 @@ function create_fragment$m(ctx) {
|
|
|
2409
2425
|
}
|
|
2410
2426
|
},
|
|
2411
2427
|
p(ctx, [dirty]) {
|
|
2412
|
-
if (dirty & /*rulerLabels*/
|
|
2413
|
-
each_value_1 = /*rulerLabels*/ ctx[
|
|
2428
|
+
if (dirty & /*rulerLabels*/ 8) {
|
|
2429
|
+
each_value_1 = /*rulerLabels*/ ctx[3];
|
|
2414
2430
|
let i;
|
|
2415
2431
|
|
|
2416
2432
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
@@ -2432,8 +2448,8 @@ function create_fragment$m(ctx) {
|
|
|
2432
2448
|
each_blocks_1.length = each_value_1.length;
|
|
2433
2449
|
}
|
|
2434
2450
|
|
|
2435
|
-
if (dirty & /*rulerTexts, isRow*/
|
|
2436
|
-
each_value = /*rulerTexts*/ ctx[
|
|
2451
|
+
if (dirty & /*rulerTexts, isRow, getRuleDistanceText*/ 22) {
|
|
2452
|
+
each_value = /*rulerTexts*/ ctx[4];
|
|
2437
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);
|
|
2438
2454
|
}
|
|
2439
2455
|
|
|
@@ -2441,8 +2457,8 @@ function create_fragment$m(ctx) {
|
|
|
2441
2457
|
internal.attr(div3, "class", div3_class_value);
|
|
2442
2458
|
}
|
|
2443
2459
|
|
|
2444
|
-
if (dirty & /*type, isRow*/
|
|
2445
|
-
internal.toggle_class(div3, "is-row", /*isRow*/ ctx[
|
|
2460
|
+
if (dirty & /*type, isRow*/ 5) {
|
|
2461
|
+
internal.toggle_class(div3, "is-row", /*isRow*/ ctx[2]);
|
|
2446
2462
|
}
|
|
2447
2463
|
},
|
|
2448
2464
|
i: internal.noop,
|
|
@@ -2465,6 +2481,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
2465
2481
|
let { type } = $$props;
|
|
2466
2482
|
let { data } = $$props;
|
|
2467
2483
|
let { bounding } = $$props;
|
|
2484
|
+
let { getRuleDistanceText } = $$props;
|
|
2468
2485
|
const isRow = type === 'top' || type === 'bottom';
|
|
2469
2486
|
const contentWidth = bounding.max.x - bounding.min.x - (padding$1 - exteriorWallOffset$1) * 2;
|
|
2470
2487
|
const contentHeight = bounding.max.y - bounding.min.y - (padding$1 - exteriorWallOffset$1) * 2;
|
|
@@ -2510,21 +2527,36 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
2510
2527
|
|
|
2511
2528
|
$$self.$$set = $$props => {
|
|
2512
2529
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
2513
|
-
if ('data' in $$props) $$invalidate(
|
|
2514
|
-
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);
|
|
2515
2533
|
};
|
|
2516
2534
|
|
|
2517
|
-
return [type, isRow, rulerLabels, rulerTexts, data, bounding];
|
|
2535
|
+
return [type, getRuleDistanceText, isRow, rulerLabels, rulerTexts, data, bounding];
|
|
2518
2536
|
}
|
|
2519
2537
|
|
|
2520
2538
|
class RuleItem extends internal.SvelteComponent {
|
|
2521
2539
|
constructor(options) {
|
|
2522
2540
|
super();
|
|
2523
|
-
|
|
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
|
+
);
|
|
2524
2556
|
}
|
|
2525
2557
|
}
|
|
2526
2558
|
|
|
2527
|
-
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.
|
|
2559
|
+
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.50.1 */
|
|
2528
2560
|
|
|
2529
2561
|
function add_css$g(target) {
|
|
2530
2562
|
internal.append_styles(target, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
|
|
@@ -2532,12 +2564,12 @@ function add_css$g(target) {
|
|
|
2532
2564
|
|
|
2533
2565
|
function get_each_context$9(ctx, list, i) {
|
|
2534
2566
|
const child_ctx = ctx.slice();
|
|
2535
|
-
child_ctx[
|
|
2536
|
-
child_ctx[
|
|
2567
|
+
child_ctx[13] = list[i][0];
|
|
2568
|
+
child_ctx[14] = list[i][1];
|
|
2537
2569
|
return child_ctx;
|
|
2538
2570
|
}
|
|
2539
2571
|
|
|
2540
|
-
// (
|
|
2572
|
+
// (20:2) {#each ruleLabelArray as [type, data] (type)}
|
|
2541
2573
|
function create_each_block$9(key_1, ctx) {
|
|
2542
2574
|
let first;
|
|
2543
2575
|
let ruleitem;
|
|
@@ -2545,9 +2577,10 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2545
2577
|
|
|
2546
2578
|
const ruleitem_spread_levels = [
|
|
2547
2579
|
{
|
|
2548
|
-
type: /*type*/ ctx[
|
|
2549
|
-
data: /*data*/ ctx[
|
|
2550
|
-
bounding: /*bounding*/ ctx[
|
|
2580
|
+
type: /*type*/ ctx[13],
|
|
2581
|
+
data: /*data*/ ctx[14],
|
|
2582
|
+
bounding: /*bounding*/ ctx[1],
|
|
2583
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
|
|
2551
2584
|
}
|
|
2552
2585
|
];
|
|
2553
2586
|
|
|
@@ -2575,12 +2608,13 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2575
2608
|
p(new_ctx, dirty) {
|
|
2576
2609
|
ctx = new_ctx;
|
|
2577
2610
|
|
|
2578
|
-
const ruleitem_changes = (dirty & /*ruleLabelArray, bounding*/
|
|
2611
|
+
const ruleitem_changes = (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19)
|
|
2579
2612
|
? internal.get_spread_update(ruleitem_spread_levels, [
|
|
2580
2613
|
{
|
|
2581
|
-
type: /*type*/ ctx[
|
|
2582
|
-
data: /*data*/ ctx[
|
|
2583
|
-
bounding: /*bounding*/ ctx[
|
|
2614
|
+
type: /*type*/ ctx[13],
|
|
2615
|
+
data: /*data*/ ctx[14],
|
|
2616
|
+
bounding: /*bounding*/ ctx[1],
|
|
2617
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
|
|
2584
2618
|
}
|
|
2585
2619
|
])
|
|
2586
2620
|
: {};
|
|
@@ -2608,8 +2642,8 @@ function create_fragment$l(ctx) {
|
|
|
2608
2642
|
let each_blocks = [];
|
|
2609
2643
|
let each_1_lookup = new Map();
|
|
2610
2644
|
let current;
|
|
2611
|
-
let each_value = /*ruleLabelArray*/ ctx[
|
|
2612
|
-
const get_key = ctx => /*type*/ ctx[
|
|
2645
|
+
let each_value = /*ruleLabelArray*/ ctx[4];
|
|
2646
|
+
const get_key = ctx => /*type*/ ctx[13];
|
|
2613
2647
|
|
|
2614
2648
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2615
2649
|
let child_ctx = get_each_context$9(ctx, each_value, i);
|
|
@@ -2626,8 +2660,8 @@ function create_fragment$l(ctx) {
|
|
|
2626
2660
|
}
|
|
2627
2661
|
|
|
2628
2662
|
internal.attr(div, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3");
|
|
2629
|
-
internal.set_style(div, "width", /*width*/ ctx[
|
|
2630
|
-
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);
|
|
2631
2665
|
},
|
|
2632
2666
|
m(target, anchor) {
|
|
2633
2667
|
internal.insert(target, div, anchor);
|
|
@@ -2639,19 +2673,19 @@ function create_fragment$l(ctx) {
|
|
|
2639
2673
|
current = true;
|
|
2640
2674
|
},
|
|
2641
2675
|
p(ctx, [dirty]) {
|
|
2642
|
-
if (dirty & /*ruleLabelArray, bounding*/
|
|
2643
|
-
each_value = /*ruleLabelArray*/ ctx[
|
|
2676
|
+
if (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19) {
|
|
2677
|
+
each_value = /*ruleLabelArray*/ ctx[4];
|
|
2644
2678
|
internal.group_outros();
|
|
2645
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);
|
|
2646
2680
|
internal.check_outros();
|
|
2647
2681
|
}
|
|
2648
2682
|
|
|
2649
|
-
if (dirty & /*width*/
|
|
2650
|
-
internal.set_style(div, "width", /*width*/ ctx[
|
|
2683
|
+
if (dirty & /*width*/ 8) {
|
|
2684
|
+
internal.set_style(div, "width", /*width*/ ctx[3], false);
|
|
2651
2685
|
}
|
|
2652
2686
|
|
|
2653
|
-
if (dirty & /*height*/
|
|
2654
|
-
internal.set_style(div, "height", /*height*/ ctx[
|
|
2687
|
+
if (dirty & /*height*/ 4) {
|
|
2688
|
+
internal.set_style(div, "height", /*height*/ ctx[2], false);
|
|
2655
2689
|
}
|
|
2656
2690
|
},
|
|
2657
2691
|
i(local) {
|
|
@@ -2696,55 +2730,58 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2696
2730
|
let height;
|
|
2697
2731
|
let { floorIndex } = $$props;
|
|
2698
2732
|
let { floorplanData } = $$props;
|
|
2733
|
+
let { getRuleDistanceText } = $$props;
|
|
2699
2734
|
|
|
2700
2735
|
$$self.$$set = $$props => {
|
|
2701
|
-
if ('floorIndex' in $$props) $$invalidate(
|
|
2702
|
-
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);
|
|
2703
2739
|
};
|
|
2704
2740
|
|
|
2705
2741
|
$$self.$$.update = () => {
|
|
2706
|
-
if ($$self.$$.dirty & /*floorplanData*/
|
|
2707
|
-
$$invalidate(
|
|
2742
|
+
if ($$self.$$.dirty & /*floorplanData*/ 64) {
|
|
2743
|
+
$$invalidate(1, bounding = floorplanData.bounding);
|
|
2708
2744
|
}
|
|
2709
2745
|
|
|
2710
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex*/
|
|
2711
|
-
$$invalidate(
|
|
2746
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 96) {
|
|
2747
|
+
$$invalidate(11, ruleLabelData = floorplanData.floorDatas[floorIndex].rules);
|
|
2712
2748
|
}
|
|
2713
2749
|
|
|
2714
|
-
if ($$self.$$.dirty & /*ruleLabelData*/
|
|
2715
|
-
$$invalidate(
|
|
2750
|
+
if ($$self.$$.dirty & /*ruleLabelData*/ 2048) {
|
|
2751
|
+
$$invalidate(12, ruleLabelDataKeys = Object.keys(ruleLabelData));
|
|
2716
2752
|
}
|
|
2717
2753
|
|
|
2718
|
-
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/
|
|
2719
|
-
$$invalidate(
|
|
2754
|
+
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/ 6144) {
|
|
2755
|
+
$$invalidate(4, ruleLabelArray = ruleLabelDataKeys.map(key => [key, ruleLabelData[key]]));
|
|
2720
2756
|
}
|
|
2721
2757
|
|
|
2722
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2723
|
-
$$invalidate(
|
|
2758
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2759
|
+
$$invalidate(9, boundingWidth = bounding.max.x - bounding.min.x);
|
|
2724
2760
|
}
|
|
2725
2761
|
|
|
2726
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2727
|
-
$$invalidate(
|
|
2762
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2763
|
+
$$invalidate(7, boundingHeight = bounding.max.y - bounding.min.y);
|
|
2728
2764
|
}
|
|
2729
2765
|
|
|
2730
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2731
|
-
$$invalidate(
|
|
2766
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2767
|
+
$$invalidate(10, contentWidth = bounding.max.x - bounding.min.x - (padding - exteriorWallOffset) * 2);
|
|
2732
2768
|
}
|
|
2733
2769
|
|
|
2734
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2735
|
-
$$invalidate(
|
|
2770
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2771
|
+
$$invalidate(8, contentHeight = bounding.max.y - bounding.min.y - (padding - exteriorWallOffset) * 2);
|
|
2736
2772
|
}
|
|
2737
2773
|
|
|
2738
|
-
if ($$self.$$.dirty & /*contentWidth, boundingWidth*/
|
|
2739
|
-
$$invalidate(
|
|
2774
|
+
if ($$self.$$.dirty & /*contentWidth, boundingWidth*/ 1536) {
|
|
2775
|
+
$$invalidate(3, width = contentWidth / boundingWidth * 100 + '%');
|
|
2740
2776
|
}
|
|
2741
2777
|
|
|
2742
|
-
if ($$self.$$.dirty & /*contentHeight, boundingHeight*/
|
|
2743
|
-
$$invalidate(
|
|
2778
|
+
if ($$self.$$.dirty & /*contentHeight, boundingHeight*/ 384) {
|
|
2779
|
+
$$invalidate(2, height = contentHeight / boundingHeight * 100 + '%');
|
|
2744
2780
|
}
|
|
2745
2781
|
};
|
|
2746
2782
|
|
|
2747
2783
|
return [
|
|
2784
|
+
getRuleDistanceText,
|
|
2748
2785
|
bounding,
|
|
2749
2786
|
height,
|
|
2750
2787
|
width,
|
|
@@ -2763,7 +2800,20 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2763
2800
|
class RuleLabels extends internal.SvelteComponent {
|
|
2764
2801
|
constructor(options) {
|
|
2765
2802
|
super();
|
|
2766
|
-
|
|
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
|
+
);
|
|
2767
2817
|
}
|
|
2768
2818
|
}
|
|
2769
2819
|
|
|
@@ -2818,7 +2868,7 @@ function getFloorIndexFromModelPosition(position, five) {
|
|
|
2818
2868
|
return floorIndex;
|
|
2819
2869
|
}
|
|
2820
2870
|
|
|
2821
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.
|
|
2871
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.50.1 */
|
|
2822
2872
|
|
|
2823
2873
|
function create_fragment$k(ctx) {
|
|
2824
2874
|
let path_1;
|
|
@@ -2869,7 +2919,7 @@ class RoomMaterial_0 extends internal.SvelteComponent {
|
|
|
2869
2919
|
}
|
|
2870
2920
|
}
|
|
2871
2921
|
|
|
2872
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.
|
|
2922
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.50.1 */
|
|
2873
2923
|
|
|
2874
2924
|
function create_fragment$j(ctx) {
|
|
2875
2925
|
let defs;
|
|
@@ -2958,7 +3008,7 @@ class RoomMaterial_1 extends internal.SvelteComponent {
|
|
|
2958
3008
|
}
|
|
2959
3009
|
}
|
|
2960
3010
|
|
|
2961
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.
|
|
3011
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.50.1 */
|
|
2962
3012
|
|
|
2963
3013
|
function create_fragment$i(ctx) {
|
|
2964
3014
|
let defs;
|
|
@@ -3085,7 +3135,7 @@ class RoomMaterial_2 extends internal.SvelteComponent {
|
|
|
3085
3135
|
}
|
|
3086
3136
|
}
|
|
3087
3137
|
|
|
3088
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.
|
|
3138
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.50.1 */
|
|
3089
3139
|
|
|
3090
3140
|
function add_css$f(target) {
|
|
3091
3141
|
internal.append_styles(target, "svelte-1dykexu", ".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}");
|
|
@@ -3390,7 +3440,7 @@ class RoomMaterial extends internal.SvelteComponent {
|
|
|
3390
3440
|
}
|
|
3391
3441
|
}
|
|
3392
3442
|
|
|
3393
|
-
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.
|
|
3443
|
+
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.50.1 */
|
|
3394
3444
|
|
|
3395
3445
|
function add_css$e(target) {
|
|
3396
3446
|
internal.append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
@@ -3480,7 +3530,7 @@ class Room extends internal.SvelteComponent {
|
|
|
3480
3530
|
}
|
|
3481
3531
|
}
|
|
3482
3532
|
|
|
3483
|
-
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.
|
|
3533
|
+
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.50.1 */
|
|
3484
3534
|
|
|
3485
3535
|
function add_css$d(target) {
|
|
3486
3536
|
internal.append_styles(target, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
|
|
@@ -3668,13 +3718,13 @@ class RoomHighlight extends internal.SvelteComponent {
|
|
|
3668
3718
|
}
|
|
3669
3719
|
}
|
|
3670
3720
|
|
|
3671
|
-
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.
|
|
3721
|
+
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.50.1 */
|
|
3672
3722
|
|
|
3673
3723
|
function add_css$c(target) {
|
|
3674
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}");
|
|
3675
3725
|
}
|
|
3676
3726
|
|
|
3677
|
-
// (
|
|
3727
|
+
// (22:2) {#if hoverEnable}
|
|
3678
3728
|
function create_if_block_2(ctx) {
|
|
3679
3729
|
let roomhighlight;
|
|
3680
3730
|
let current;
|
|
@@ -3683,7 +3733,7 @@ function create_if_block_2(ctx) {
|
|
|
3683
3733
|
{
|
|
3684
3734
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3685
3735
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3686
|
-
hoveredRoom: /*hoveredRoom*/ ctx[
|
|
3736
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10]
|
|
3687
3737
|
}
|
|
3688
3738
|
];
|
|
3689
3739
|
|
|
@@ -3704,12 +3754,12 @@ function create_if_block_2(ctx) {
|
|
|
3704
3754
|
current = true;
|
|
3705
3755
|
},
|
|
3706
3756
|
p(ctx, dirty) {
|
|
3707
|
-
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/
|
|
3757
|
+
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/ 1058)
|
|
3708
3758
|
? internal.get_spread_update(roomhighlight_spread_levels, [
|
|
3709
3759
|
{
|
|
3710
3760
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3711
3761
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3712
|
-
hoveredRoom: /*hoveredRoom*/ ctx[
|
|
3762
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10]
|
|
3713
3763
|
}
|
|
3714
3764
|
])
|
|
3715
3765
|
: {};
|
|
@@ -3731,7 +3781,7 @@ function create_if_block_2(ctx) {
|
|
|
3731
3781
|
};
|
|
3732
3782
|
}
|
|
3733
3783
|
|
|
3734
|
-
// (
|
|
3784
|
+
// (26:2) {#if roomLabelsEnable}
|
|
3735
3785
|
function create_if_block_1$3(ctx) {
|
|
3736
3786
|
let roomlabels;
|
|
3737
3787
|
let current;
|
|
@@ -3740,9 +3790,10 @@ function create_if_block_1$3(ctx) {
|
|
|
3740
3790
|
{
|
|
3741
3791
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3742
3792
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3793
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[6],
|
|
3794
|
+
getLabelElement: /*getLabelElement*/ ctx[7],
|
|
3795
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10],
|
|
3796
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
|
|
3746
3797
|
}
|
|
3747
3798
|
];
|
|
3748
3799
|
|
|
@@ -3763,14 +3814,15 @@ function create_if_block_1$3(ctx) {
|
|
|
3763
3814
|
current = true;
|
|
3764
3815
|
},
|
|
3765
3816
|
p(ctx, dirty) {
|
|
3766
|
-
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
3817
|
+
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getRoomAreaText, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 1762)
|
|
3767
3818
|
? internal.get_spread_update(roomlabels_spread_levels, [
|
|
3768
3819
|
{
|
|
3769
3820
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3770
3821
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3822
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[6],
|
|
3823
|
+
getLabelElement: /*getLabelElement*/ ctx[7],
|
|
3824
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10],
|
|
3825
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
|
|
3774
3826
|
}
|
|
3775
3827
|
])
|
|
3776
3828
|
: {};
|
|
@@ -3792,7 +3844,7 @@ function create_if_block_1$3(ctx) {
|
|
|
3792
3844
|
};
|
|
3793
3845
|
}
|
|
3794
3846
|
|
|
3795
|
-
// (
|
|
3847
|
+
// (38:2) {#if ruleLabelsEnable}
|
|
3796
3848
|
function create_if_block$6(ctx) {
|
|
3797
3849
|
let rulelabels;
|
|
3798
3850
|
let current;
|
|
@@ -3800,7 +3852,8 @@ function create_if_block$6(ctx) {
|
|
|
3800
3852
|
const rulelabels_spread_levels = [
|
|
3801
3853
|
{
|
|
3802
3854
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3803
|
-
floorIndex: /*floorIndex*/ ctx[1]
|
|
3855
|
+
floorIndex: /*floorIndex*/ ctx[1],
|
|
3856
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
|
|
3804
3857
|
}
|
|
3805
3858
|
];
|
|
3806
3859
|
|
|
@@ -3821,11 +3874,12 @@ function create_if_block$6(ctx) {
|
|
|
3821
3874
|
current = true;
|
|
3822
3875
|
},
|
|
3823
3876
|
p(ctx, dirty) {
|
|
3824
|
-
const rulelabels_changes = (dirty & /*floorplanData, floorIndex*/
|
|
3877
|
+
const rulelabels_changes = (dirty & /*floorplanData, floorIndex, getRuleDistanceText*/ 290)
|
|
3825
3878
|
? internal.get_spread_update(rulelabels_spread_levels, [
|
|
3826
3879
|
{
|
|
3827
3880
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3828
|
-
floorIndex: /*floorIndex*/ ctx[1]
|
|
3881
|
+
floorIndex: /*floorIndex*/ ctx[1],
|
|
3882
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
|
|
3829
3883
|
}
|
|
3830
3884
|
])
|
|
3831
3885
|
: {};
|
|
@@ -4054,7 +4108,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4054
4108
|
let { roomLabelsEnable } = $$props;
|
|
4055
4109
|
let { ruleLabelsEnable } = $$props;
|
|
4056
4110
|
let { floorplanData } = $$props;
|
|
4111
|
+
let { getRoomAreaText } = $$props;
|
|
4057
4112
|
let { getLabelElement } = $$props;
|
|
4113
|
+
let { getRuleDistanceText } = $$props;
|
|
4058
4114
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
4059
4115
|
const hoveredRoom = store.writable(undefined);
|
|
4060
4116
|
|
|
@@ -4065,8 +4121,10 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4065
4121
|
if ('roomLabelsEnable' in $$props) $$invalidate(3, roomLabelsEnable = $$props.roomLabelsEnable);
|
|
4066
4122
|
if ('ruleLabelsEnable' in $$props) $$invalidate(4, ruleLabelsEnable = $$props.ruleLabelsEnable);
|
|
4067
4123
|
if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
|
|
4068
|
-
if ('
|
|
4069
|
-
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);
|
|
4070
4128
|
};
|
|
4071
4129
|
|
|
4072
4130
|
return [
|
|
@@ -4076,7 +4134,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4076
4134
|
roomLabelsEnable,
|
|
4077
4135
|
ruleLabelsEnable,
|
|
4078
4136
|
floorplanData,
|
|
4137
|
+
getRoomAreaText,
|
|
4079
4138
|
getLabelElement,
|
|
4139
|
+
getRuleDistanceText,
|
|
4080
4140
|
adaptiveRoomLabelVisibleEnable,
|
|
4081
4141
|
hoveredRoom
|
|
4082
4142
|
];
|
|
@@ -4099,15 +4159,17 @@ class CurrentFloor$1 extends internal.SvelteComponent {
|
|
|
4099
4159
|
roomLabelsEnable: 3,
|
|
4100
4160
|
ruleLabelsEnable: 4,
|
|
4101
4161
|
floorplanData: 5,
|
|
4102
|
-
|
|
4103
|
-
|
|
4162
|
+
getRoomAreaText: 6,
|
|
4163
|
+
getLabelElement: 7,
|
|
4164
|
+
getRuleDistanceText: 8,
|
|
4165
|
+
adaptiveRoomLabelVisibleEnable: 9
|
|
4104
4166
|
},
|
|
4105
4167
|
add_css$c
|
|
4106
4168
|
);
|
|
4107
4169
|
}
|
|
4108
4170
|
}
|
|
4109
4171
|
|
|
4110
|
-
/* src/floorplan/Components/Main.svelte generated by Svelte v3.
|
|
4172
|
+
/* src/floorplan/Components/Main.svelte generated by Svelte v3.50.1 */
|
|
4111
4173
|
|
|
4112
4174
|
function add_css$b(target) {
|
|
4113
4175
|
internal.append_styles(target, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
|
|
@@ -4115,11 +4177,11 @@ function add_css$b(target) {
|
|
|
4115
4177
|
|
|
4116
4178
|
function get_each_context$6(ctx, list, i) {
|
|
4117
4179
|
const child_ctx = ctx.slice();
|
|
4118
|
-
child_ctx[
|
|
4180
|
+
child_ctx[16] = list[i];
|
|
4119
4181
|
return child_ctx;
|
|
4120
4182
|
}
|
|
4121
4183
|
|
|
4122
|
-
// (
|
|
4184
|
+
// (24:0) {#if visible}
|
|
4123
4185
|
function create_if_block$5(ctx) {
|
|
4124
4186
|
let div;
|
|
4125
4187
|
let t0;
|
|
@@ -4186,7 +4248,7 @@ function create_if_block$5(ctx) {
|
|
|
4186
4248
|
p(new_ctx, dirty) {
|
|
4187
4249
|
ctx = new_ctx;
|
|
4188
4250
|
|
|
4189
|
-
if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/
|
|
4251
|
+
if (dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 62384) {
|
|
4190
4252
|
each_value = /*floorplanData*/ ctx[9].floorDatas;
|
|
4191
4253
|
let i;
|
|
4192
4254
|
|
|
@@ -4292,7 +4354,7 @@ function create_if_block$5(ctx) {
|
|
|
4292
4354
|
};
|
|
4293
4355
|
}
|
|
4294
4356
|
|
|
4295
|
-
// (
|
|
4357
|
+
// (26:4) {#each floorplanData.floorDatas as floorData}
|
|
4296
4358
|
function create_each_block$6(ctx) {
|
|
4297
4359
|
let currentfloor;
|
|
4298
4360
|
let current;
|
|
@@ -4301,16 +4363,18 @@ function create_each_block$6(ctx) {
|
|
|
4301
4363
|
{
|
|
4302
4364
|
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
4303
4365
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
4304
|
-
|
|
4366
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[12],
|
|
4367
|
+
getLabelElement: /*getLabelElement*/ ctx[13],
|
|
4368
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
|
|
4305
4369
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
4306
4370
|
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
4307
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
4371
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
|
|
4308
4372
|
},
|
|
4309
4373
|
{
|
|
4310
|
-
floorIndex: /*floorData*/ ctx[
|
|
4374
|
+
floorIndex: /*floorData*/ ctx[16].floorIndex
|
|
4311
4375
|
},
|
|
4312
4376
|
{
|
|
4313
|
-
isCurrent: /*floorData*/ ctx[
|
|
4377
|
+
isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
|
|
4314
4378
|
}
|
|
4315
4379
|
];
|
|
4316
4380
|
|
|
@@ -4331,21 +4395,23 @@ function create_each_block$6(ctx) {
|
|
|
4331
4395
|
current = true;
|
|
4332
4396
|
},
|
|
4333
4397
|
p(ctx, dirty) {
|
|
4334
|
-
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)
|
|
4335
4399
|
? internal.get_spread_update(currentfloor_spread_levels, [
|
|
4336
|
-
dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/
|
|
4400
|
+
dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/ 62368 && {
|
|
4337
4401
|
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
4338
4402
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
4339
|
-
|
|
4403
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[12],
|
|
4404
|
+
getLabelElement: /*getLabelElement*/ ctx[13],
|
|
4405
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
|
|
4340
4406
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
4341
4407
|
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
4342
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
4408
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
|
|
4343
4409
|
},
|
|
4344
4410
|
dirty & /*floorplanData*/ 512 && {
|
|
4345
|
-
floorIndex: /*floorData*/ ctx[
|
|
4411
|
+
floorIndex: /*floorData*/ ctx[16].floorIndex
|
|
4346
4412
|
},
|
|
4347
4413
|
dirty & /*floorplanData, floorIndex*/ 528 && {
|
|
4348
|
-
isCurrent: /*floorData*/ ctx[
|
|
4414
|
+
isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
|
|
4349
4415
|
}
|
|
4350
4416
|
])
|
|
4351
4417
|
: {};
|
|
@@ -4367,7 +4433,7 @@ function create_each_block$6(ctx) {
|
|
|
4367
4433
|
};
|
|
4368
4434
|
}
|
|
4369
4435
|
|
|
4370
|
-
// (
|
|
4436
|
+
// (43:4) {#if compassEnable}
|
|
4371
4437
|
function create_if_block_1$2(ctx) {
|
|
4372
4438
|
let compass;
|
|
4373
4439
|
let current;
|
|
@@ -4476,7 +4542,9 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4476
4542
|
let { floorplanData } = $$props;
|
|
4477
4543
|
let { lastPanoramaLongitude } = $$props;
|
|
4478
4544
|
let { cameraImageUrl } = $$props;
|
|
4545
|
+
let { getRoomAreaText } = $$props;
|
|
4479
4546
|
let { getLabelElement } = $$props;
|
|
4547
|
+
let { getRuleDistanceText } = $$props;
|
|
4480
4548
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
4481
4549
|
|
|
4482
4550
|
$$self.$$set = $$props => {
|
|
@@ -4492,8 +4560,10 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4492
4560
|
if ('floorplanData' in $$props) $$invalidate(9, floorplanData = $$props.floorplanData);
|
|
4493
4561
|
if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
4494
4562
|
if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
|
|
4495
|
-
if ('
|
|
4496
|
-
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);
|
|
4497
4567
|
};
|
|
4498
4568
|
|
|
4499
4569
|
return [
|
|
@@ -4509,7 +4579,9 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4509
4579
|
floorplanData,
|
|
4510
4580
|
lastPanoramaLongitude,
|
|
4511
4581
|
cameraImageUrl,
|
|
4582
|
+
getRoomAreaText,
|
|
4512
4583
|
getLabelElement,
|
|
4584
|
+
getRuleDistanceText,
|
|
4513
4585
|
adaptiveRoomLabelVisibleEnable
|
|
4514
4586
|
];
|
|
4515
4587
|
}
|
|
@@ -4537,8 +4609,10 @@ class Main$1 extends internal.SvelteComponent {
|
|
|
4537
4609
|
floorplanData: 9,
|
|
4538
4610
|
lastPanoramaLongitude: 10,
|
|
4539
4611
|
cameraImageUrl: 11,
|
|
4540
|
-
|
|
4541
|
-
|
|
4612
|
+
getRoomAreaText: 12,
|
|
4613
|
+
getLabelElement: 13,
|
|
4614
|
+
getRuleDistanceText: 14,
|
|
4615
|
+
adaptiveRoomLabelVisibleEnable: 15
|
|
4542
4616
|
},
|
|
4543
4617
|
add_css$b
|
|
4544
4618
|
);
|
|
@@ -5402,10 +5476,12 @@ class Controller$5 extends Controller$6 {
|
|
|
5402
5476
|
autoShowEnable: true,
|
|
5403
5477
|
ruleLabelsEnable: true,
|
|
5404
5478
|
roomLabelsEnable: true,
|
|
5479
|
+
adaptiveRoomLabelVisibleEnable: true,
|
|
5405
5480
|
cameraImageUrl: CAMERA_IMAGE,
|
|
5406
5481
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
5407
5482
|
getLabelElement: undefined,
|
|
5408
|
-
|
|
5483
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
5484
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
5409
5485
|
};
|
|
5410
5486
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
5411
5487
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -5478,12 +5554,10 @@ class Controller$5 extends Controller$6 {
|
|
|
5478
5554
|
const options = { userAction };
|
|
5479
5555
|
state.visible ? this._show(options) : this._hide(options);
|
|
5480
5556
|
}
|
|
5557
|
+
this.render();
|
|
5481
5558
|
}
|
|
5482
|
-
changeConfigs(
|
|
5483
|
-
const config = Object.assign(Object.assign({}, this.state.config), _config);
|
|
5559
|
+
changeConfigs(config, userAction = true) {
|
|
5484
5560
|
this.updateState({ config }, userAction);
|
|
5485
|
-
if (!this.container)
|
|
5486
|
-
return;
|
|
5487
5561
|
this.render();
|
|
5488
5562
|
}
|
|
5489
5563
|
async formatData(serverData) {
|
|
@@ -5491,7 +5565,8 @@ class Controller$5 extends Controller$6 {
|
|
|
5491
5565
|
}
|
|
5492
5566
|
updateState(state, userAction) {
|
|
5493
5567
|
const prevState = this.state;
|
|
5494
|
-
|
|
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 });
|
|
5495
5570
|
if (equal(this.state, prevState, { deep: true }))
|
|
5496
5571
|
return;
|
|
5497
5572
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6734,7 +6809,7 @@ function throttle(func, wait = 200) {
|
|
|
6734
6809
|
};
|
|
6735
6810
|
}
|
|
6736
6811
|
|
|
6737
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.
|
|
6812
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.50.1 */
|
|
6738
6813
|
|
|
6739
6814
|
function add_css$a(target) {
|
|
6740
6815
|
internal.append_styles(target, "svelte-1ty3s4p", ".plugin-radar__camera-wrapper.svelte-1ty3s4p{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1ty3s4p{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1ty3s4p{position:absolute;left:-0.78125rem;top:-0.78125rem;width:0.88542rem;height:0.88542rem;transform-origin:0.78125rem 0.78125rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
|
|
@@ -6884,7 +6959,7 @@ class Camera extends internal.SvelteComponent {
|
|
|
6884
6959
|
}
|
|
6885
6960
|
}
|
|
6886
6961
|
|
|
6887
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.
|
|
6962
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.50.1 */
|
|
6888
6963
|
|
|
6889
6964
|
function add_css$9(target) {
|
|
6890
6965
|
internal.append_styles(target, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
|
|
@@ -7021,7 +7096,7 @@ class ExtraObjects extends internal.SvelteComponent {
|
|
|
7021
7096
|
}
|
|
7022
7097
|
}
|
|
7023
7098
|
|
|
7024
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.
|
|
7099
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.50.1 */
|
|
7025
7100
|
|
|
7026
7101
|
function create_if_block$4(ctx) {
|
|
7027
7102
|
let highlight;
|
|
@@ -7248,7 +7323,7 @@ class CurrentFloor extends internal.SvelteComponent {
|
|
|
7248
7323
|
}
|
|
7249
7324
|
}
|
|
7250
7325
|
|
|
7251
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.
|
|
7326
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.50.1 */
|
|
7252
7327
|
|
|
7253
7328
|
function add_css$8(target) {
|
|
7254
7329
|
internal.append_styles(target, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
@@ -9043,15 +9118,32 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
9043
9118
|
state.enable = false;
|
|
9044
9119
|
return true;
|
|
9045
9120
|
};
|
|
9121
|
+
function changeConfigs(config) {
|
|
9122
|
+
if (config.distanceText && config.distanceText !== state.options.distanceText) {
|
|
9123
|
+
const distanceText = config.distanceText;
|
|
9124
|
+
state.options.distanceText = distanceText;
|
|
9125
|
+
Object.values(__rule).forEach((item) => {
|
|
9126
|
+
item.rules.forEach((rule) => {
|
|
9127
|
+
const [origin, vertical] = rule.rule;
|
|
9128
|
+
const distance = origin.distanceTo(vertical);
|
|
9129
|
+
const textEle = rule.$element.querySelector('.PanoRulerPlugin-rule-label-name');
|
|
9130
|
+
if (!textEle)
|
|
9131
|
+
return;
|
|
9132
|
+
textEle.innerText = distanceText(distance);
|
|
9133
|
+
});
|
|
9134
|
+
});
|
|
9135
|
+
}
|
|
9136
|
+
}
|
|
9046
9137
|
return {
|
|
9047
9138
|
enable,
|
|
9048
9139
|
disable,
|
|
9049
9140
|
load,
|
|
9050
9141
|
state,
|
|
9142
|
+
changeConfigs,
|
|
9051
9143
|
};
|
|
9052
9144
|
};
|
|
9053
9145
|
|
|
9054
|
-
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.
|
|
9146
|
+
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.50.1 */
|
|
9055
9147
|
|
|
9056
9148
|
function add_css$7(target) {
|
|
9057
9149
|
internal.append_styles(target, "svelte-qy4ud2", ".PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2 em.svelte-qy4ud2{display:block;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-qy4ud2.svelte-qy4ud2{display:flex;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;align-items:center}.em-solid.svelte-qy4ud2.svelte-qy4ud2{height:100%;background:#ffffff}.em-dotted.svelte-qy4ud2.svelte-qy4ud2{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-qy4ud2.svelte-qy4ud2{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-qy4ud2.svelte-qy4ud2{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;-webkit-animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@-webkit-keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}");
|
|
@@ -9344,7 +9436,7 @@ class RulerItem extends internal.SvelteComponent {
|
|
|
9344
9436
|
}
|
|
9345
9437
|
}
|
|
9346
9438
|
|
|
9347
|
-
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.
|
|
9439
|
+
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.50.1 */
|
|
9348
9440
|
|
|
9349
9441
|
function get_each_context$3(ctx, list, i) {
|
|
9350
9442
|
const child_ctx = ctx.slice();
|
|
@@ -10944,7 +11036,8 @@ function createDistanceItem(props) {
|
|
|
10944
11036
|
if (userDistanceItem) {
|
|
10945
11037
|
userDistanceItem.update({ line: line.toCompletelyJson(), polyline: line.getPolyline().toCompletelyJson() });
|
|
10946
11038
|
}
|
|
10947
|
-
const
|
|
11039
|
+
const distance = startPoint.position.clone().distanceTo(endPoint.position);
|
|
11040
|
+
const distanceString = props.line.model.params.getDistanceText(distance);
|
|
10948
11041
|
contentDom.innerText !== distanceString && (contentDom.innerText = distanceString);
|
|
10949
11042
|
}
|
|
10950
11043
|
function appendTo(container) {
|
|
@@ -11283,6 +11376,12 @@ const preventDefault = (e) => e.preventDefault();
|
|
|
11283
11376
|
class BaseController {
|
|
11284
11377
|
constructor(params) {
|
|
11285
11378
|
var _a, _b;
|
|
11379
|
+
Object.defineProperty(this, "model", {
|
|
11380
|
+
enumerable: true,
|
|
11381
|
+
configurable: true,
|
|
11382
|
+
writable: true,
|
|
11383
|
+
value: void 0
|
|
11384
|
+
});
|
|
11286
11385
|
Object.defineProperty(this, "five", {
|
|
11287
11386
|
enumerable: true,
|
|
11288
11387
|
configurable: true,
|
|
@@ -11295,7 +11394,13 @@ class BaseController {
|
|
|
11295
11394
|
writable: true,
|
|
11296
11395
|
value: void 0
|
|
11297
11396
|
});
|
|
11298
|
-
Object.defineProperty(this, "
|
|
11397
|
+
Object.defineProperty(this, "config", {
|
|
11398
|
+
enumerable: true,
|
|
11399
|
+
configurable: true,
|
|
11400
|
+
writable: true,
|
|
11401
|
+
value: void 0
|
|
11402
|
+
});
|
|
11403
|
+
Object.defineProperty(this, "dashed", {
|
|
11299
11404
|
enumerable: true,
|
|
11300
11405
|
configurable: true,
|
|
11301
11406
|
writable: true,
|
|
@@ -11354,6 +11459,7 @@ class BaseController {
|
|
|
11354
11459
|
configurable: true,
|
|
11355
11460
|
writable: true,
|
|
11356
11461
|
value: () => {
|
|
11462
|
+
this.dashed.distanceItem.update(this.five);
|
|
11357
11463
|
this.model.lines.forEach((line) => line.distanceItem.update(this.five));
|
|
11358
11464
|
}
|
|
11359
11465
|
});
|
|
@@ -11361,6 +11467,7 @@ class BaseController {
|
|
|
11361
11467
|
this.five = params.five;
|
|
11362
11468
|
this.hook = params.hook;
|
|
11363
11469
|
this.model = params.model;
|
|
11470
|
+
this.config = params.config;
|
|
11364
11471
|
this.magnifier = params.magnifier;
|
|
11365
11472
|
this.container = params.container;
|
|
11366
11473
|
this.fiveHelper = params.fiveHelper;
|
|
@@ -11369,6 +11476,10 @@ class BaseController {
|
|
|
11369
11476
|
// ==================== Groups ====================
|
|
11370
11477
|
this.group = params.group;
|
|
11371
11478
|
this.mouseGroup = params.mouseGroup;
|
|
11479
|
+
// ==================== 虚线 ====================
|
|
11480
|
+
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
11481
|
+
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
11482
|
+
this.dashed.mesh.name = 'dashLine';
|
|
11372
11483
|
const fiveElement = this.five.getElement();
|
|
11373
11484
|
if (fiveElement) {
|
|
11374
11485
|
fiveElement.addEventListener('touchstart', preventDefault);
|
|
@@ -11444,12 +11555,6 @@ class EditController extends BaseController {
|
|
|
11444
11555
|
writable: true,
|
|
11445
11556
|
value: 'edit'
|
|
11446
11557
|
});
|
|
11447
|
-
Object.defineProperty(this, "model", {
|
|
11448
|
-
enumerable: true,
|
|
11449
|
-
configurable: true,
|
|
11450
|
-
writable: true,
|
|
11451
|
-
value: new Model({ userDistanceItemCreator: this.userDistanceItemCreator })
|
|
11452
|
-
});
|
|
11453
11558
|
Object.defineProperty(this, "pressPoint", {
|
|
11454
11559
|
enumerable: true,
|
|
11455
11560
|
configurable: true,
|
|
@@ -11481,13 +11586,6 @@ class EditController extends BaseController {
|
|
|
11481
11586
|
writable: true,
|
|
11482
11587
|
value: null
|
|
11483
11588
|
});
|
|
11484
|
-
/** 鼠标点到上一个端点连接的虚线 */
|
|
11485
|
-
Object.defineProperty(this, "dashed", {
|
|
11486
|
-
enumerable: true,
|
|
11487
|
-
configurable: true,
|
|
11488
|
-
writable: true,
|
|
11489
|
-
value: void 0
|
|
11490
|
-
});
|
|
11491
11589
|
Object.defineProperty(this, "hammer", {
|
|
11492
11590
|
enumerable: true,
|
|
11493
11591
|
configurable: true,
|
|
@@ -11700,9 +11798,7 @@ class EditController extends BaseController {
|
|
|
11700
11798
|
this.dashed.distanceItem.update(this.five);
|
|
11701
11799
|
}
|
|
11702
11800
|
});
|
|
11703
|
-
|
|
11704
|
-
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
11705
|
-
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
11801
|
+
this.model = new Model(this.config);
|
|
11706
11802
|
// ==================== 事件监听 ====================
|
|
11707
11803
|
// five
|
|
11708
11804
|
this.five.on('cameraUpdate', this.onCameraUpdate);
|
|
@@ -12536,7 +12632,7 @@ class MixedController extends BaseController {
|
|
|
12536
12632
|
enumerable: true,
|
|
12537
12633
|
configurable: true,
|
|
12538
12634
|
writable: true,
|
|
12539
|
-
value: new Model(
|
|
12635
|
+
value: new Model(this.config)
|
|
12540
12636
|
});
|
|
12541
12637
|
Object.defineProperty(this, "hasAppendDashed", {
|
|
12542
12638
|
enumerable: true,
|
|
@@ -12574,13 +12670,6 @@ class MixedController extends BaseController {
|
|
|
12574
12670
|
writable: true,
|
|
12575
12671
|
value: void 0
|
|
12576
12672
|
});
|
|
12577
|
-
/** 圆环点到上一个端点连接的虚线 */
|
|
12578
|
-
Object.defineProperty(this, "dashed", {
|
|
12579
|
-
enumerable: true,
|
|
12580
|
-
configurable: true,
|
|
12581
|
-
writable: true,
|
|
12582
|
-
value: void 0
|
|
12583
|
-
});
|
|
12584
12673
|
/** 编辑线条发生改变时通知外部 */
|
|
12585
12674
|
Object.defineProperty(this, "onLineChanged", {
|
|
12586
12675
|
enumerable: true,
|
|
@@ -12783,10 +12872,6 @@ class MixedController extends BaseController {
|
|
|
12783
12872
|
onClick: this.deleteDomClickCallback,
|
|
12784
12873
|
cancelDelete: this.cancelDeleteClickCallback,
|
|
12785
12874
|
}).appendTo(this.container);
|
|
12786
|
-
// ==================== 虚线 ====================
|
|
12787
|
-
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
12788
|
-
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
12789
|
-
this.dashed.mesh.name = 'dashLine';
|
|
12790
12875
|
// ==================== 事件监听 ====================
|
|
12791
12876
|
// five
|
|
12792
12877
|
this.five.on('cameraUpdate', this.onCameraUpdate);
|
|
@@ -14160,6 +14245,12 @@ class MeasureController {
|
|
|
14160
14245
|
writable: true,
|
|
14161
14246
|
value: void 0
|
|
14162
14247
|
});
|
|
14248
|
+
Object.defineProperty(this, "config", {
|
|
14249
|
+
enumerable: true,
|
|
14250
|
+
configurable: true,
|
|
14251
|
+
writable: true,
|
|
14252
|
+
value: void 0
|
|
14253
|
+
});
|
|
14163
14254
|
Object.defineProperty(this, "fiveHelper", {
|
|
14164
14255
|
enumerable: true,
|
|
14165
14256
|
configurable: true,
|
|
@@ -14258,7 +14349,14 @@ class MeasureController {
|
|
|
14258
14349
|
});
|
|
14259
14350
|
this.five = five$1;
|
|
14260
14351
|
this.params = params;
|
|
14261
|
-
|
|
14352
|
+
const defaultConfig = {
|
|
14353
|
+
userDistanceItemCreator: undefined,
|
|
14354
|
+
getDistanceText(distance) {
|
|
14355
|
+
return distance.toFixed(2) + 'm';
|
|
14356
|
+
},
|
|
14357
|
+
};
|
|
14358
|
+
this.config = Object.assign(Object.assign({}, defaultConfig), omit(params, ['openParams', 'magnifierParams']));
|
|
14359
|
+
this.model = new Model(this.config);
|
|
14262
14360
|
this.fiveHelper = new FiveHelper(five$1);
|
|
14263
14361
|
// magnifier
|
|
14264
14362
|
this.magnifier = new Magnifier(five$1, (_a = params.magnifierParams) !== null && _a !== void 0 ? _a : { width: 190, height: 190, scale: 2 });
|
|
@@ -14280,6 +14378,7 @@ class MeasureController {
|
|
|
14280
14378
|
hook: this.hook,
|
|
14281
14379
|
group: this.group,
|
|
14282
14380
|
model: this.model,
|
|
14381
|
+
config: this.config,
|
|
14283
14382
|
magnifier: this.magnifier,
|
|
14284
14383
|
container: this.container,
|
|
14285
14384
|
fiveHelper: this.fiveHelper,
|
|
@@ -14414,6 +14513,14 @@ class MeasureController {
|
|
|
14414
14513
|
(_b = this.useUIController) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
14415
14514
|
this.useUIController = new UIController(this, this.controllerParams);
|
|
14416
14515
|
}
|
|
14516
|
+
changeConfigs(config) {
|
|
14517
|
+
var _a;
|
|
14518
|
+
if (config.getDistanceText && config.getDistanceText !== this.config.getDistanceText) {
|
|
14519
|
+
const getDistanceText = config.getDistanceText;
|
|
14520
|
+
this.config.getDistanceText = getDistanceText;
|
|
14521
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateDistanceUI();
|
|
14522
|
+
}
|
|
14523
|
+
}
|
|
14417
14524
|
}
|
|
14418
14525
|
|
|
14419
14526
|
const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|
|
@@ -14422,7 +14529,7 @@ const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|
|
|
14422
14529
|
|
|
14423
14530
|
const currentTarget = store.writable(null);
|
|
14424
14531
|
|
|
14425
|
-
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.
|
|
14532
|
+
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.50.1 */
|
|
14426
14533
|
|
|
14427
14534
|
function add_css$6(target) {
|
|
14428
14535
|
internal.append_styles(target, "svelte-1kuu68s", ".PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-1kuu68s{transform:translate(-50%, -50%) scale(0.6);-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
@@ -14571,7 +14678,7 @@ class Origins extends internal.SvelteComponent {
|
|
|
14571
14678
|
}
|
|
14572
14679
|
}
|
|
14573
14680
|
|
|
14574
|
-
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.
|
|
14681
|
+
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.50.1 */
|
|
14575
14682
|
|
|
14576
14683
|
function add_css$5(target) {
|
|
14577
14684
|
internal.append_styles(target, "svelte-eb8bdm", ".PanoSpatialTagPlugin__tag-x.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm.svelte-eb8bdm{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-eb8bdm.svelte-eb8bdm{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line.svelte-eb8bdm{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm.svelte-eb8bdm{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-eb8bdm.svelte-eb8bdm{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content .svelte-eb8bdm{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 0) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
@@ -15497,7 +15604,7 @@ exports.DISPLAY_STRATEGY_TYPE = void 0;
|
|
|
15497
15604
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
15498
15605
|
})(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
|
|
15499
15606
|
|
|
15500
|
-
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
15607
|
+
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.50.1 */
|
|
15501
15608
|
|
|
15502
15609
|
function add_css$4(target) {
|
|
15503
15610
|
internal.append_styles(target, "svelte-n1c1kg", ".item-label-item.svelte-n1c1kg{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-n1c1kg{opacity:1;-webkit-animation:svelte-n1c1kg-fadeIn .3s ease-in;animation:svelte-n1c1kg-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-n1c1kg::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(0.83333rem);z-index:-1}.item-label-item__text-wrap.svelte-n1c1kg{padding:0.3125rem 0.3125rem 0;position:absolute;height:1.04167rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.52083rem;font-size:0.57292rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-n1c1kg{padding-bottom:0.20833rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:1px solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-n1c1kg{position:absolute;bottom:0;width:1px;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@-webkit-keyframes svelte-n1c1kg-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-n1c1kg-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
@@ -15623,7 +15730,7 @@ function debounce(func, wait = 200) {
|
|
|
15623
15730
|
};
|
|
15624
15731
|
}
|
|
15625
15732
|
|
|
15626
|
-
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
15733
|
+
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.50.1 */
|
|
15627
15734
|
|
|
15628
15735
|
function add_css$3(target) {
|
|
15629
15736
|
internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
@@ -16388,7 +16495,7 @@ exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = void 0;
|
|
|
16388
16495
|
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
16389
16496
|
})(exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
|
|
16390
16497
|
|
|
16391
|
-
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
16498
|
+
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.50.1 */
|
|
16392
16499
|
|
|
16393
16500
|
function add_css$2(target) {
|
|
16394
16501
|
internal.append_styles(target, "svelte-1mppr0a", ".item-label-item.svelte-1mppr0a.svelte-1mppr0a{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-animation:svelte-1mppr0a-fadeIn .3s ease-in;animation:svelte-1mppr0a-fadeIn .3s ease-in}.item-label-item.fold.svelte-1mppr0a>.item-label-item__text-wrap.svelte-1mppr0a{visibility:hidden}.item-label-item.fold.svelte-1mppr0a>.item-label-item__bar.anchor.svelte-1mppr0a{visibility:hidden}.item-label-item.fold.svelte-1mppr0a>.item-label-item__bar.anchor.svelte-1mppr0a:after{visibility:visible}.item-label-item__text-wrap.svelte-1mppr0a.svelte-1mppr0a{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:1.5px solid rgba(255, 255, 255, .65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-1mppr0a.svelte-1mppr0a{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-1mppr0a.svelte-1mppr0a{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-1mppr0a.svelte-1mppr0a{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-1mppr0a.svelte-1mppr0a{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 1px;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-1mppr0a.svelte-1mppr0a{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-1mppr0a.svelte-1mppr0a{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-1mppr0a.svelte-1mppr0a{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-1mppr0a.svelte-1mppr0a:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url(\"//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png \");background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@-webkit-keyframes svelte-1mppr0a-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-1mppr0a-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
@@ -16737,7 +16844,7 @@ function transform2RenderData(data) {
|
|
|
16737
16844
|
return data.map(label => (Object.assign({ observerIndex: undefined, visible: false, isFold: false }, label)));
|
|
16738
16845
|
}
|
|
16739
16846
|
|
|
16740
|
-
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
16847
|
+
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.50.1 */
|
|
16741
16848
|
|
|
16742
16849
|
function add_css$1(target) {
|
|
16743
16850
|
internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
@@ -17481,7 +17588,7 @@ class BasePanoPluginController extends Controller$7 {
|
|
|
17481
17588
|
}
|
|
17482
17589
|
}
|
|
17483
17590
|
|
|
17484
|
-
/* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.
|
|
17591
|
+
/* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.50.1 */
|
|
17485
17592
|
|
|
17486
17593
|
function add_css(target) {
|
|
17487
17594
|
internal.append_styles(target, "svelte-16kdbw2", ".plugin-DoorLabelPlugin-item.svelte-16kdbw2.svelte-16kdbw2{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-16kdbw2.svelte-16kdbw2{position:absolute;top:50%;left:50%;border-radius:2px;background:rgba(0, 0, 0, 0.35);line-height:0.625rem;padding:0.3125rem;white-space:nowrap;font-size:0.625rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-16kdbw2.svelte-16kdbw2::after{content:\"\";display:block;position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:2px;border:1px solid rgba(0, 0, 0, 0);-o-border-image:url(\"//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png\") 4;border-image:url(\"//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png\") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-16kdbw2.svelte-16kdbw2:active,.plugin-DoorLabelPlugin-cnt.svelte-16kdbw2.svelte-16kdbw2:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-16kdbw2.svelte-16kdbw2{background:url(\"//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg\") no-repeat;background-size:100%;display:inline-block;width:0.52083rem;height:0.52083rem;margin-left:0.20833rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-16kdbw2 .plugin-DoorLabelPlugin-txt.svelte-16kdbw2{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-16kdbw2 .plugin-DoorLabelPlugin-txt.svelte-16kdbw2{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-16kdbw2 .plugin-DoorLabelPlugin-txt.svelte-16kdbw2{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-16kdbw2 .plugin-DoorLabelPlugin-txt.svelte-16kdbw2{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-16kdbw2.svelte-16kdbw2{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-16kdbw2 .plugin-DoorLabelPlugin-icon.svelte-16kdbw2{background:url(\"//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg\") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-16kdbw2.svelte-16kdbw2:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-16kdbw2.svelte-16kdbw2:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}");
|
|
@@ -18114,6 +18221,193 @@ const PanoDoorLabelPlugin = (five) => {
|
|
|
18114
18221
|
return new PanoDoorLabelPluginController(five);
|
|
18115
18222
|
};
|
|
18116
18223
|
|
|
18224
|
+
var polylineMiterUtil = {};
|
|
18225
|
+
|
|
18226
|
+
var add_1 = add$1;
|
|
18227
|
+
|
|
18228
|
+
/**
|
|
18229
|
+
* Adds two vec2's
|
|
18230
|
+
*
|
|
18231
|
+
* @param {vec2} out the receiving vector
|
|
18232
|
+
* @param {vec2} a the first operand
|
|
18233
|
+
* @param {vec2} b the second operand
|
|
18234
|
+
* @returns {vec2} out
|
|
18235
|
+
*/
|
|
18236
|
+
function add$1(out, a, b) {
|
|
18237
|
+
out[0] = a[0] + b[0];
|
|
18238
|
+
out[1] = a[1] + b[1];
|
|
18239
|
+
return out
|
|
18240
|
+
}
|
|
18241
|
+
|
|
18242
|
+
var set_1 = set$1;
|
|
18243
|
+
|
|
18244
|
+
/**
|
|
18245
|
+
* Set the components of a vec2 to the given values
|
|
18246
|
+
*
|
|
18247
|
+
* @param {vec2} out the receiving vector
|
|
18248
|
+
* @param {Number} x X component
|
|
18249
|
+
* @param {Number} y Y component
|
|
18250
|
+
* @returns {vec2} out
|
|
18251
|
+
*/
|
|
18252
|
+
function set$1(out, x, y) {
|
|
18253
|
+
out[0] = x;
|
|
18254
|
+
out[1] = y;
|
|
18255
|
+
return out
|
|
18256
|
+
}
|
|
18257
|
+
|
|
18258
|
+
var normalize_1 = normalize$1;
|
|
18259
|
+
|
|
18260
|
+
/**
|
|
18261
|
+
* Normalize a vec2
|
|
18262
|
+
*
|
|
18263
|
+
* @param {vec2} out the receiving vector
|
|
18264
|
+
* @param {vec2} a vector to normalize
|
|
18265
|
+
* @returns {vec2} out
|
|
18266
|
+
*/
|
|
18267
|
+
function normalize$1(out, a) {
|
|
18268
|
+
var x = a[0],
|
|
18269
|
+
y = a[1];
|
|
18270
|
+
var len = x*x + y*y;
|
|
18271
|
+
if (len > 0) {
|
|
18272
|
+
//TODO: evaluate use of glm_invsqrt here?
|
|
18273
|
+
len = 1 / Math.sqrt(len);
|
|
18274
|
+
out[0] = a[0] * len;
|
|
18275
|
+
out[1] = a[1] * len;
|
|
18276
|
+
}
|
|
18277
|
+
return out
|
|
18278
|
+
}
|
|
18279
|
+
|
|
18280
|
+
var subtract_1 = subtract$1;
|
|
18281
|
+
|
|
18282
|
+
/**
|
|
18283
|
+
* Subtracts vector b from vector a
|
|
18284
|
+
*
|
|
18285
|
+
* @param {vec2} out the receiving vector
|
|
18286
|
+
* @param {vec2} a the first operand
|
|
18287
|
+
* @param {vec2} b the second operand
|
|
18288
|
+
* @returns {vec2} out
|
|
18289
|
+
*/
|
|
18290
|
+
function subtract$1(out, a, b) {
|
|
18291
|
+
out[0] = a[0] - b[0];
|
|
18292
|
+
out[1] = a[1] - b[1];
|
|
18293
|
+
return out
|
|
18294
|
+
}
|
|
18295
|
+
|
|
18296
|
+
var dot_1 = dot$1;
|
|
18297
|
+
|
|
18298
|
+
/**
|
|
18299
|
+
* Calculates the dot product of two vec2's
|
|
18300
|
+
*
|
|
18301
|
+
* @param {vec2} a the first operand
|
|
18302
|
+
* @param {vec2} b the second operand
|
|
18303
|
+
* @returns {Number} dot product of a and b
|
|
18304
|
+
*/
|
|
18305
|
+
function dot$1(a, b) {
|
|
18306
|
+
return a[0] * b[0] + a[1] * b[1]
|
|
18307
|
+
}
|
|
18308
|
+
|
|
18309
|
+
var add = add_1;
|
|
18310
|
+
var set = set_1;
|
|
18311
|
+
var normalize = normalize_1;
|
|
18312
|
+
var subtract = subtract_1;
|
|
18313
|
+
var dot = dot_1;
|
|
18314
|
+
|
|
18315
|
+
var tmp = [0, 0];
|
|
18316
|
+
|
|
18317
|
+
polylineMiterUtil.computeMiter = function computeMiter(tangent, miter, lineA, lineB, halfThick) {
|
|
18318
|
+
//get tangent line
|
|
18319
|
+
add(tangent, lineA, lineB);
|
|
18320
|
+
normalize(tangent, tangent);
|
|
18321
|
+
|
|
18322
|
+
//get miter as a unit vector
|
|
18323
|
+
set(miter, -tangent[1], tangent[0]);
|
|
18324
|
+
set(tmp, -lineA[1], lineA[0]);
|
|
18325
|
+
|
|
18326
|
+
//get the necessary length of our miter
|
|
18327
|
+
return halfThick / dot(miter, tmp)
|
|
18328
|
+
};
|
|
18329
|
+
|
|
18330
|
+
polylineMiterUtil.normal = function normal(out, dir) {
|
|
18331
|
+
//get perpendicular
|
|
18332
|
+
set(out, -dir[1], dir[0]);
|
|
18333
|
+
return out
|
|
18334
|
+
};
|
|
18335
|
+
|
|
18336
|
+
polylineMiterUtil.direction = function direction(out, a, b) {
|
|
18337
|
+
//get unit dir of two lines
|
|
18338
|
+
subtract(out, a, b);
|
|
18339
|
+
normalize(out, out);
|
|
18340
|
+
return out
|
|
18341
|
+
};
|
|
18342
|
+
|
|
18343
|
+
var util = polylineMiterUtil;
|
|
18344
|
+
|
|
18345
|
+
var lineA = [0, 0];
|
|
18346
|
+
var lineB = [0, 0];
|
|
18347
|
+
var tangent = [0, 0];
|
|
18348
|
+
var miter = [0, 0];
|
|
18349
|
+
|
|
18350
|
+
var polylineNormals = function(points, closed) {
|
|
18351
|
+
var curNormal = null;
|
|
18352
|
+
var out = [];
|
|
18353
|
+
if (closed) {
|
|
18354
|
+
points = points.slice();
|
|
18355
|
+
points.push(points[0]);
|
|
18356
|
+
}
|
|
18357
|
+
|
|
18358
|
+
var total = points.length;
|
|
18359
|
+
for (var i=1; i<total; i++) {
|
|
18360
|
+
var last = points[i-1];
|
|
18361
|
+
var cur = points[i];
|
|
18362
|
+
var next = i<points.length-1 ? points[i+1] : null;
|
|
18363
|
+
|
|
18364
|
+
util.direction(lineA, cur, last);
|
|
18365
|
+
if (!curNormal) {
|
|
18366
|
+
curNormal = [0, 0];
|
|
18367
|
+
util.normal(curNormal, lineA);
|
|
18368
|
+
}
|
|
18369
|
+
|
|
18370
|
+
if (i === 1) //add initial normals
|
|
18371
|
+
addNext(out, curNormal, 1);
|
|
18372
|
+
|
|
18373
|
+
if (!next) { //no miter, simple segment
|
|
18374
|
+
util.normal(curNormal, lineA); //reset normal
|
|
18375
|
+
addNext(out, curNormal, 1);
|
|
18376
|
+
} else { //miter with last
|
|
18377
|
+
//get unit dir of next line
|
|
18378
|
+
util.direction(lineB, next, cur);
|
|
18379
|
+
|
|
18380
|
+
//stores tangent & miter
|
|
18381
|
+
var miterLen = util.computeMiter(tangent, miter, lineA, lineB, 1);
|
|
18382
|
+
addNext(out, miter, miterLen);
|
|
18383
|
+
}
|
|
18384
|
+
}
|
|
18385
|
+
|
|
18386
|
+
//if the polyline is a closed loop, clean up the last normal
|
|
18387
|
+
if (points.length > 2 && closed) {
|
|
18388
|
+
var last2 = points[total-2];
|
|
18389
|
+
var cur2 = points[0];
|
|
18390
|
+
var next2 = points[1];
|
|
18391
|
+
|
|
18392
|
+
util.direction(lineA, cur2, last2);
|
|
18393
|
+
util.direction(lineB, next2, cur2);
|
|
18394
|
+
util.normal(curNormal, lineA);
|
|
18395
|
+
|
|
18396
|
+
var miterLen2 = util.computeMiter(tangent, miter, lineA, lineB, 1);
|
|
18397
|
+
out[0][0] = miter.slice();
|
|
18398
|
+
out[total-1][0] = miter.slice();
|
|
18399
|
+
out[0][1] = miterLen2;
|
|
18400
|
+
out[total-1][1] = miterLen2;
|
|
18401
|
+
out.pop();
|
|
18402
|
+
}
|
|
18403
|
+
|
|
18404
|
+
return out
|
|
18405
|
+
};
|
|
18406
|
+
|
|
18407
|
+
function addNext(out, normal, length) {
|
|
18408
|
+
out.push([[normal[0], normal[1]], length]);
|
|
18409
|
+
}
|
|
18410
|
+
|
|
18117
18411
|
// 定义常量
|
|
18118
18412
|
const TRIANGLE_NUMBER_OF_RECTANGLE = 2; // 每个矩形有两个三角形
|
|
18119
18413
|
const VERTEX_NUMBER_OF_TRIANGLE = 3; // 每个三角形有三个顶点
|
|
@@ -18231,7 +18525,7 @@ function getLineGeometry(curvePoints, unitWidth, unitHeight) {
|
|
|
18231
18525
|
const halfUnitWidth = unitWidth / 2;
|
|
18232
18526
|
const aspect = unitHeight / unitWidth; // 纵横比 height / width
|
|
18233
18527
|
const curvePointsLength = curvePoints.length;
|
|
18234
|
-
const normals =
|
|
18528
|
+
const normals = polylineNormals(curvePoints.map((p) => [p.x, p.z])); // curvePoints:每个点切线的向量「二维」
|
|
18235
18529
|
const rectangleNumber = curvePoints.length - 1; // 曲线上 N 个点,构成了 N - 1 个矩形
|
|
18236
18530
|
const indexNumber = rectangleNumber * TRIANGLE_NUMBER_OF_RECTANGLE * VERTEX_NUMBER_OF_TRIANGLE;
|
|
18237
18531
|
const verticesNumber = 2 * curvePointsLength; // 顶点数量(包含公用):每个曲线点对应两个顶点,N 个 点有 2N 个顶点
|