@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.es.js
CHANGED
|
@@ -13,7 +13,6 @@ import * as TWEEN from '@tweenjs/tween.js';
|
|
|
13
13
|
import TWEEN__default from '@tweenjs/tween.js';
|
|
14
14
|
import Hammer from 'hammerjs';
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import getNormals from 'polyline-normals';
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
* Five 模型插件
|
|
@@ -462,7 +461,7 @@ const PanoCursorRaycasterPlugin = (five) => {
|
|
|
462
461
|
|
|
463
462
|
const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGg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rSefrGjRsvkNxpI80AeTGC0NgGoakvuFYrtvDjD11okBF6m3yjdfze9eM7sbPQIC8sg8detlPdP7XCy8ASOh6IC534Qf126Au6Aq7S+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==';
|
|
464
463
|
|
|
465
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.
|
|
464
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.50.1 */
|
|
466
465
|
|
|
467
466
|
function add_css$q(target) {
|
|
468
467
|
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}");
|
|
@@ -562,7 +561,7 @@ class RoomLabelItem extends SvelteComponent {
|
|
|
562
561
|
}
|
|
563
562
|
}
|
|
564
563
|
|
|
565
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.
|
|
564
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.50.1 */
|
|
566
565
|
|
|
567
566
|
const { Map: Map_1 } = globals;
|
|
568
567
|
|
|
@@ -1126,7 +1125,7 @@ function rad2Deg$1(rad) {
|
|
|
1126
1125
|
return (rad * 180) / Math.PI;
|
|
1127
1126
|
}
|
|
1128
1127
|
|
|
1129
|
-
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.
|
|
1128
|
+
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.50.1 */
|
|
1130
1129
|
|
|
1131
1130
|
function add_css$o(target) {
|
|
1132
1131
|
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%}");
|
|
@@ -1231,7 +1230,7 @@ class Camera$1 extends SvelteComponent {
|
|
|
1231
1230
|
|
|
1232
1231
|
const COMPASS_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAMAAABdA4ieAAAC91BMVEUAAACOpP/H0P+yxP/a4/+asv/W3/+/z/+cs//S3f+mu//Q2//5+v/H1P/d5f/l6//y9f++zf/i6f+ww/+ovP/7/P/u8v/N2f+Mp//q7/+4yf+uwf+Wr/+7y/+1xv+Ho//x9P+9zP+2x/+swP+gt/+Oqf/Y4v/r8P/l7P/b4//F0/+juf+Zsv+XsP+Trf/p7v97mv9wj/+kuv+ftf/x9P92lf/3+f/I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S1UKIlq9gT95yILSugKRKciq2VhLaEpIVm3366j2pxaSMyf07YRUlND5qTynvGG6aaDOSWgnptFiIKoQLWmQ7pLphuOkTB0lqoZDSTGiVBrXE1iT0wbgEEn0gtSEEncoNfRV1uKKN/KqL+/4C1xYSA7XapjATRGU1hGxT3NtcGnUK0UJgZf7TuDWEls1yt9wiWsja7awzYRWttYgWYrPcLbejWqua2WaCqBSixQLvWe5mi06RWqv8TDOhNUrZC9sdm+Xuu5cpUqvU+wwzYbVVkIXYLHd/olekVpmpZ8KiMYbU7ma/EXJZBW5JrZl2V9bRnNWyWe4xt8TWTPd3FdEYSEFslnsoURlAi01FqN56f2br2xeOe9ytgbyf4nErGg/hl6RN4Jc5Lt++2rVjHMdCIIqiqtoRQW2mMogIyZFjlsB2B9wjjaY1PXa3wcbSPaEDR1fP9fVt8aPai2+f2+TlWu2l0yweZHlEO5S9cyu1lDKj5T/fWCH4jLaUnXMbvFyrzby8xRrayqUM2+ZWqvuM1nmpgHWkl8F9z9yG7LNa5yEMa0n8yHb93Er1oXjnoMVyFn3KQVcP7VRpFn+sDiznaiuHNufsHnkIwy7aPA/r5jbFGW3m7S12ku55WPN7Li1PPIRhN6sjtBjTmm+KmYcwPEOKs9tHF1JDHCoHLZ5DQ8yPBic9DoHjAKvsb85qjbFxHOCprMZaf5qdhlorxwGeTsPIttvPlno0y3GAZfbHp6n3ynGAV0m99u/2J6H3znGAvW4n+J25tdY7xwFey1pvQe6/DlrjOMDLqfXW7N5pbs0YWhxgtpj0rl1uiaHFISzccSWohUCzOIemm0VKChwHOMutKCVwHOA4av/JVi0xtDiRpCRfRcvQ4lBfxSnG0OJc/+xTjKHFyVRMP38iDC0O92lZVRhanO+vcVWGFu9BRWkW7+Z3rapEizdy7ZVm8V5Gtr8AtSnix59eOmYAAAAASUVORK5CYII=';
|
|
1233
1232
|
|
|
1234
|
-
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.
|
|
1233
|
+
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.50.1 */
|
|
1235
1234
|
|
|
1236
1235
|
function add_css$n(target) {
|
|
1237
1236
|
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}");
|
|
@@ -1331,7 +1330,7 @@ class Compass extends SvelteComponent {
|
|
|
1331
1330
|
}
|
|
1332
1331
|
}
|
|
1333
1332
|
|
|
1334
|
-
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.
|
|
1333
|
+
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.50.1 */
|
|
1335
1334
|
|
|
1336
1335
|
function add_css$m(target) {
|
|
1337
1336
|
append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
@@ -1381,7 +1380,7 @@ class Normalmage extends SvelteComponent {
|
|
|
1381
1380
|
}
|
|
1382
1381
|
}
|
|
1383
1382
|
|
|
1384
|
-
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.
|
|
1383
|
+
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.50.1 */
|
|
1385
1384
|
|
|
1386
1385
|
function add_css$l(target) {
|
|
1387
1386
|
append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
@@ -1448,7 +1447,7 @@ class SvgImage extends SvelteComponent {
|
|
|
1448
1447
|
}
|
|
1449
1448
|
}
|
|
1450
1449
|
|
|
1451
|
-
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.
|
|
1450
|
+
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.50.1 */
|
|
1452
1451
|
|
|
1453
1452
|
function add_css$k(target) {
|
|
1454
1453
|
append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
@@ -1649,13 +1648,13 @@ class BaseImage extends SvelteComponent {
|
|
|
1649
1648
|
}
|
|
1650
1649
|
}
|
|
1651
1650
|
|
|
1652
|
-
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.
|
|
1651
|
+
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.50.1 */
|
|
1653
1652
|
|
|
1654
1653
|
function add_css$j(target) {
|
|
1655
1654
|
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}");
|
|
1656
1655
|
}
|
|
1657
1656
|
|
|
1658
|
-
// (
|
|
1657
|
+
// (96:30)
|
|
1659
1658
|
function create_if_block_1$5(ctx) {
|
|
1660
1659
|
let html_tag;
|
|
1661
1660
|
let raw_value = /*userConfigElement*/ ctx[4].outerHTML + "";
|
|
@@ -1681,13 +1680,14 @@ function create_if_block_1$5(ctx) {
|
|
|
1681
1680
|
};
|
|
1682
1681
|
}
|
|
1683
1682
|
|
|
1684
|
-
// (
|
|
1683
|
+
// (90:2) {#if getLabelElement === undefined}
|
|
1685
1684
|
function create_if_block$9(ctx) {
|
|
1686
1685
|
let span0;
|
|
1687
1686
|
let t0_value = /*room*/ ctx[0].name + "";
|
|
1688
1687
|
let t0;
|
|
1689
1688
|
let t1;
|
|
1690
1689
|
let span1;
|
|
1690
|
+
let t2;
|
|
1691
1691
|
|
|
1692
1692
|
return {
|
|
1693
1693
|
c() {
|
|
@@ -1695,7 +1695,7 @@ function create_if_block$9(ctx) {
|
|
|
1695
1695
|
t0 = text(t0_value);
|
|
1696
1696
|
t1 = space();
|
|
1697
1697
|
span1 = element("span");
|
|
1698
|
-
|
|
1698
|
+
t2 = text(/*roomSizeDes*/ ctx[5]);
|
|
1699
1699
|
attr(span0, "class", "floorplan-plugin__room-name");
|
|
1700
1700
|
attr(span1, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
1701
1701
|
},
|
|
@@ -1704,9 +1704,11 @@ function create_if_block$9(ctx) {
|
|
|
1704
1704
|
append(span0, t0);
|
|
1705
1705
|
insert(target, t1, anchor);
|
|
1706
1706
|
insert(target, span1, anchor);
|
|
1707
|
+
append(span1, t2);
|
|
1707
1708
|
},
|
|
1708
1709
|
p(ctx, dirty) {
|
|
1709
1710
|
if (dirty & /*room*/ 1 && t0_value !== (t0_value = /*room*/ ctx[0].name + "")) set_data(t0, t0_value);
|
|
1711
|
+
if (dirty & /*roomSizeDes*/ 32) set_data(t2, /*roomSizeDes*/ ctx[5]);
|
|
1710
1712
|
},
|
|
1711
1713
|
d(detaching) {
|
|
1712
1714
|
if (detaching) detach(span0);
|
|
@@ -1740,7 +1742,7 @@ function create_fragment$o(ctx) {
|
|
|
1740
1742
|
m(target, anchor) {
|
|
1741
1743
|
insert(target, div, anchor);
|
|
1742
1744
|
if (if_block) if_block.m(div, null);
|
|
1743
|
-
/*div_binding*/ ctx[
|
|
1745
|
+
/*div_binding*/ ctx[16](div);
|
|
1744
1746
|
},
|
|
1745
1747
|
p(ctx, [dirty]) {
|
|
1746
1748
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
@@ -1768,7 +1770,7 @@ function create_fragment$o(ctx) {
|
|
|
1768
1770
|
if_block.d();
|
|
1769
1771
|
}
|
|
1770
1772
|
|
|
1771
|
-
/*div_binding*/ ctx[
|
|
1773
|
+
/*div_binding*/ ctx[16](null);
|
|
1772
1774
|
}
|
|
1773
1775
|
};
|
|
1774
1776
|
}
|
|
@@ -1791,12 +1793,14 @@ function isPointInPolygon(point, polygon) {
|
|
|
1791
1793
|
}
|
|
1792
1794
|
|
|
1793
1795
|
function instance$o($$self, $$props, $$invalidate) {
|
|
1796
|
+
let roomSizeDes;
|
|
1794
1797
|
let isLabelInRoom;
|
|
1795
1798
|
let userConfigElement;
|
|
1796
1799
|
let labelVisible;
|
|
1797
1800
|
let { pxmm } = $$props;
|
|
1798
1801
|
let { room } = $$props;
|
|
1799
1802
|
let { hoveredRoom } = $$props;
|
|
1803
|
+
let { getRoomAreaText } = $$props;
|
|
1800
1804
|
let { getLabelElement } = $$props;
|
|
1801
1805
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
1802
1806
|
|
|
@@ -1836,7 +1840,6 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1836
1840
|
const bodyWidth = document.body.clientWidth;
|
|
1837
1841
|
|
|
1838
1842
|
const bodyHeight = document.body.clientHeight;
|
|
1839
|
-
const roomSizeDes = room.size ? (room.size / 1000000).toFixed(1) + '㎡' : '';
|
|
1840
1843
|
|
|
1841
1844
|
// ====================================
|
|
1842
1845
|
const roomLabel = room.roomLabel;
|
|
@@ -1852,7 +1855,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1852
1855
|
let labelElementSize;
|
|
1853
1856
|
|
|
1854
1857
|
hoveredRoom.subscribe(function onHoverdRoomUpdate(_room) {
|
|
1855
|
-
$$invalidate(
|
|
1858
|
+
$$invalidate(13, isHoverd = !!_room && _room.id === room.id);
|
|
1856
1859
|
});
|
|
1857
1860
|
|
|
1858
1861
|
onMount(() => {
|
|
@@ -1862,7 +1865,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1862
1865
|
? void 0
|
|
1863
1866
|
: labelElement.getClientRects()[0];
|
|
1864
1867
|
|
|
1865
|
-
$$invalidate(
|
|
1868
|
+
$$invalidate(14, labelElementSize = {
|
|
1866
1869
|
width: labelDomRect.width,
|
|
1867
1870
|
height: labelDomRect.height
|
|
1868
1871
|
});
|
|
@@ -1879,13 +1882,18 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1879
1882
|
if ('pxmm' in $$props) $$invalidate(9, pxmm = $$props.pxmm);
|
|
1880
1883
|
if ('room' in $$props) $$invalidate(0, room = $$props.room);
|
|
1881
1884
|
if ('hoveredRoom' in $$props) $$invalidate(10, hoveredRoom = $$props.hoveredRoom);
|
|
1885
|
+
if ('getRoomAreaText' in $$props) $$invalidate(11, getRoomAreaText = $$props.getRoomAreaText);
|
|
1882
1886
|
if ('getLabelElement' in $$props) $$invalidate(1, getLabelElement = $$props.getLabelElement);
|
|
1883
|
-
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(
|
|
1887
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(12, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
1884
1888
|
};
|
|
1885
1889
|
|
|
1886
1890
|
$$self.$$.update = () => {
|
|
1887
|
-
if ($$self.$$.dirty & /*
|
|
1888
|
-
$$invalidate(
|
|
1891
|
+
if ($$self.$$.dirty & /*room, getRoomAreaText*/ 2049) {
|
|
1892
|
+
$$invalidate(5, roomSizeDes = room.size ? getRoomAreaText(room.size) : '');
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
if ($$self.$$.dirty & /*labelElementSize, room*/ 16385) {
|
|
1896
|
+
$$invalidate(15, isLabelInRoom = labelElementSize
|
|
1889
1897
|
? isLabelInRoomCurry(room, labelElementSize)
|
|
1890
1898
|
: undefined);
|
|
1891
1899
|
}
|
|
@@ -1896,7 +1904,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1896
1904
|
: getLabelElement(room));
|
|
1897
1905
|
}
|
|
1898
1906
|
|
|
1899
|
-
if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/
|
|
1907
|
+
if ($$self.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHoverd, isLabelInRoom, pxmm*/ 45568) {
|
|
1900
1908
|
$$invalidate(3, labelVisible = adaptiveRoomLabelVisibleEnable
|
|
1901
1909
|
? isHoverd
|
|
1902
1910
|
? true
|
|
@@ -1919,6 +1927,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1919
1927
|
fontSize,
|
|
1920
1928
|
pxmm,
|
|
1921
1929
|
hoveredRoom,
|
|
1930
|
+
getRoomAreaText,
|
|
1922
1931
|
adaptiveRoomLabelVisibleEnable,
|
|
1923
1932
|
isHoverd,
|
|
1924
1933
|
labelElementSize,
|
|
@@ -1941,15 +1950,16 @@ class RoomLabel extends SvelteComponent {
|
|
|
1941
1950
|
pxmm: 9,
|
|
1942
1951
|
room: 0,
|
|
1943
1952
|
hoveredRoom: 10,
|
|
1953
|
+
getRoomAreaText: 11,
|
|
1944
1954
|
getLabelElement: 1,
|
|
1945
|
-
adaptiveRoomLabelVisibleEnable:
|
|
1955
|
+
adaptiveRoomLabelVisibleEnable: 12
|
|
1946
1956
|
},
|
|
1947
1957
|
add_css$j
|
|
1948
1958
|
);
|
|
1949
1959
|
}
|
|
1950
1960
|
}
|
|
1951
1961
|
|
|
1952
|
-
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.
|
|
1962
|
+
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.50.1 */
|
|
1953
1963
|
|
|
1954
1964
|
function add_css$i(target) {
|
|
1955
1965
|
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}");
|
|
@@ -1957,19 +1967,19 @@ function add_css$i(target) {
|
|
|
1957
1967
|
|
|
1958
1968
|
function get_each_context$b(ctx, list, i) {
|
|
1959
1969
|
const child_ctx = ctx.slice();
|
|
1960
|
-
child_ctx[
|
|
1970
|
+
child_ctx[10] = list[i];
|
|
1961
1971
|
return child_ctx;
|
|
1962
1972
|
}
|
|
1963
1973
|
|
|
1964
|
-
// (
|
|
1974
|
+
// (18:0) {#if rooms}
|
|
1965
1975
|
function create_if_block$8(ctx) {
|
|
1966
1976
|
let div;
|
|
1967
1977
|
let each_blocks = [];
|
|
1968
1978
|
let each_1_lookup = new Map();
|
|
1969
1979
|
let div_resize_listener;
|
|
1970
1980
|
let current;
|
|
1971
|
-
let each_value = /*rooms*/ ctx[
|
|
1972
|
-
const get_key = ctx => /*room*/ ctx[
|
|
1981
|
+
let each_value = /*rooms*/ ctx[6];
|
|
1982
|
+
const get_key = ctx => /*room*/ ctx[10].id;
|
|
1973
1983
|
|
|
1974
1984
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
1975
1985
|
let child_ctx = get_each_context$b(ctx, each_value, i);
|
|
@@ -1986,7 +1996,7 @@ function create_if_block$8(ctx) {
|
|
|
1986
1996
|
}
|
|
1987
1997
|
|
|
1988
1998
|
attr(div, "class", "floorplan-plugin__room-labels svelte-13xux0b");
|
|
1989
|
-
add_render_callback(() => /*div_elementresize_handler*/ ctx[
|
|
1999
|
+
add_render_callback(() => /*div_elementresize_handler*/ ctx[9].call(div));
|
|
1990
2000
|
},
|
|
1991
2001
|
m(target, anchor) {
|
|
1992
2002
|
insert(target, div, anchor);
|
|
@@ -1995,12 +2005,12 @@ function create_if_block$8(ctx) {
|
|
|
1995
2005
|
each_blocks[i].m(div, null);
|
|
1996
2006
|
}
|
|
1997
2007
|
|
|
1998
|
-
div_resize_listener = add_resize_listener(div, /*div_elementresize_handler*/ ctx[
|
|
2008
|
+
div_resize_listener = add_resize_listener(div, /*div_elementresize_handler*/ ctx[9].bind(div));
|
|
1999
2009
|
current = true;
|
|
2000
2010
|
},
|
|
2001
2011
|
p(ctx, dirty) {
|
|
2002
|
-
if (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
2003
|
-
each_value = /*rooms*/ ctx[
|
|
2012
|
+
if (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111) {
|
|
2013
|
+
each_value = /*rooms*/ ctx[6];
|
|
2004
2014
|
group_outros();
|
|
2005
2015
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$b, null, get_each_context$b);
|
|
2006
2016
|
check_outros();
|
|
@@ -2034,7 +2044,7 @@ function create_if_block$8(ctx) {
|
|
|
2034
2044
|
};
|
|
2035
2045
|
}
|
|
2036
2046
|
|
|
2037
|
-
// (
|
|
2047
|
+
// (20:4) {#each rooms as room (room.id)}
|
|
2038
2048
|
function create_each_block$b(key_1, ctx) {
|
|
2039
2049
|
let first;
|
|
2040
2050
|
let roomlabel;
|
|
@@ -2042,11 +2052,12 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2042
2052
|
|
|
2043
2053
|
const roomlabel_spread_levels = [
|
|
2044
2054
|
{
|
|
2045
|
-
pxmm: /*pxmm*/ ctx[
|
|
2046
|
-
room: /*room*/ ctx[
|
|
2047
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2055
|
+
pxmm: /*pxmm*/ ctx[5],
|
|
2056
|
+
room: /*room*/ ctx[10],
|
|
2057
|
+
getLabelElement: /*getLabelElement*/ ctx[2],
|
|
2058
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[1],
|
|
2048
2059
|
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
2049
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
2060
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
|
|
2050
2061
|
}
|
|
2051
2062
|
];
|
|
2052
2063
|
|
|
@@ -2074,14 +2085,15 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2074
2085
|
p(new_ctx, dirty) {
|
|
2075
2086
|
ctx = new_ctx;
|
|
2076
2087
|
|
|
2077
|
-
const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
2088
|
+
const roomlabel_changes = (dirty & /*pxmm, rooms, getLabelElement, getRoomAreaText, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 111)
|
|
2078
2089
|
? get_spread_update(roomlabel_spread_levels, [
|
|
2079
2090
|
{
|
|
2080
|
-
pxmm: /*pxmm*/ ctx[
|
|
2081
|
-
room: /*room*/ ctx[
|
|
2082
|
-
getLabelElement: /*getLabelElement*/ ctx[
|
|
2091
|
+
pxmm: /*pxmm*/ ctx[5],
|
|
2092
|
+
room: /*room*/ ctx[10],
|
|
2093
|
+
getLabelElement: /*getLabelElement*/ ctx[2],
|
|
2094
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[1],
|
|
2083
2095
|
hoveredRoom: /*hoveredRoom*/ ctx[0],
|
|
2084
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
2096
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[3]
|
|
2085
2097
|
}
|
|
2086
2098
|
])
|
|
2087
2099
|
: {};
|
|
@@ -2107,7 +2119,7 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2107
2119
|
function create_fragment$n(ctx) {
|
|
2108
2120
|
let if_block_anchor;
|
|
2109
2121
|
let current;
|
|
2110
|
-
let if_block = /*rooms*/ ctx[
|
|
2122
|
+
let if_block = /*rooms*/ ctx[6] && create_if_block$8(ctx);
|
|
2111
2123
|
|
|
2112
2124
|
return {
|
|
2113
2125
|
c() {
|
|
@@ -2120,11 +2132,11 @@ function create_fragment$n(ctx) {
|
|
|
2120
2132
|
current = true;
|
|
2121
2133
|
},
|
|
2122
2134
|
p(ctx, [dirty]) {
|
|
2123
|
-
if (/*rooms*/ ctx[
|
|
2135
|
+
if (/*rooms*/ ctx[6]) {
|
|
2124
2136
|
if (if_block) {
|
|
2125
2137
|
if_block.p(ctx, dirty);
|
|
2126
2138
|
|
|
2127
|
-
if (dirty & /*rooms*/
|
|
2139
|
+
if (dirty & /*rooms*/ 64) {
|
|
2128
2140
|
transition_in(if_block, 1);
|
|
2129
2141
|
}
|
|
2130
2142
|
} else {
|
|
@@ -2164,6 +2176,7 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
2164
2176
|
let { floorIndex } = $$props;
|
|
2165
2177
|
let { floorplanData } = $$props;
|
|
2166
2178
|
let { hoveredRoom } = $$props;
|
|
2179
|
+
let { getRoomAreaText } = $$props;
|
|
2167
2180
|
let { getLabelElement } = $$props;
|
|
2168
2181
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
2169
2182
|
let clientWidth = 0;
|
|
@@ -2171,33 +2184,35 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
2171
2184
|
|
|
2172
2185
|
function div_elementresize_handler() {
|
|
2173
2186
|
clientWidth = this.clientWidth;
|
|
2174
|
-
$$invalidate(
|
|
2187
|
+
$$invalidate(4, clientWidth);
|
|
2175
2188
|
}
|
|
2176
2189
|
|
|
2177
2190
|
$$self.$$set = $$props => {
|
|
2178
|
-
if ('floorIndex' in $$props) $$invalidate(
|
|
2179
|
-
if ('floorplanData' in $$props) $$invalidate(
|
|
2191
|
+
if ('floorIndex' in $$props) $$invalidate(7, floorIndex = $$props.floorIndex);
|
|
2192
|
+
if ('floorplanData' in $$props) $$invalidate(8, floorplanData = $$props.floorplanData);
|
|
2180
2193
|
if ('hoveredRoom' in $$props) $$invalidate(0, hoveredRoom = $$props.hoveredRoom);
|
|
2181
|
-
if ('
|
|
2182
|
-
if ('
|
|
2194
|
+
if ('getRoomAreaText' in $$props) $$invalidate(1, getRoomAreaText = $$props.getRoomAreaText);
|
|
2195
|
+
if ('getLabelElement' in $$props) $$invalidate(2, getLabelElement = $$props.getLabelElement);
|
|
2196
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(3, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
2183
2197
|
};
|
|
2184
2198
|
|
|
2185
2199
|
$$self.$$.update = () => {
|
|
2186
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex*/
|
|
2187
|
-
$$invalidate(
|
|
2200
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 384) {
|
|
2201
|
+
$$invalidate(6, rooms = floorplanData.floorDatas[floorIndex].rooms);
|
|
2188
2202
|
}
|
|
2189
2203
|
|
|
2190
|
-
if ($$self.$$.dirty & /*floorplanData, clientWidth*/
|
|
2204
|
+
if ($$self.$$.dirty & /*floorplanData, clientWidth*/ 272) {
|
|
2191
2205
|
{
|
|
2192
2206
|
const { max, min } = floorplanData.bounding;
|
|
2193
2207
|
const boundingWidth = max.x - min.x;
|
|
2194
|
-
$$invalidate(
|
|
2208
|
+
$$invalidate(5, pxmm = clientWidth / boundingWidth);
|
|
2195
2209
|
}
|
|
2196
2210
|
}
|
|
2197
2211
|
};
|
|
2198
2212
|
|
|
2199
2213
|
return [
|
|
2200
2214
|
hoveredRoom,
|
|
2215
|
+
getRoomAreaText,
|
|
2201
2216
|
getLabelElement,
|
|
2202
2217
|
adaptiveRoomLabelVisibleEnable,
|
|
2203
2218
|
clientWidth,
|
|
@@ -2220,18 +2235,19 @@ class RoomLabels extends SvelteComponent {
|
|
|
2220
2235
|
create_fragment$n,
|
|
2221
2236
|
safe_not_equal,
|
|
2222
2237
|
{
|
|
2223
|
-
floorIndex:
|
|
2224
|
-
floorplanData:
|
|
2238
|
+
floorIndex: 7,
|
|
2239
|
+
floorplanData: 8,
|
|
2225
2240
|
hoveredRoom: 0,
|
|
2226
|
-
|
|
2227
|
-
|
|
2241
|
+
getRoomAreaText: 1,
|
|
2242
|
+
getLabelElement: 2,
|
|
2243
|
+
adaptiveRoomLabelVisibleEnable: 3
|
|
2228
2244
|
},
|
|
2229
2245
|
add_css$i
|
|
2230
2246
|
);
|
|
2231
2247
|
}
|
|
2232
2248
|
}
|
|
2233
2249
|
|
|
2234
|
-
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.
|
|
2250
|
+
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.50.1 */
|
|
2235
2251
|
|
|
2236
2252
|
function add_css$h(target) {
|
|
2237
2253
|
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}");
|
|
@@ -2239,18 +2255,18 @@ function add_css$h(target) {
|
|
|
2239
2255
|
|
|
2240
2256
|
function get_each_context$a(ctx, list, i) {
|
|
2241
2257
|
const child_ctx = ctx.slice();
|
|
2242
|
-
child_ctx[
|
|
2243
|
-
child_ctx[
|
|
2258
|
+
child_ctx[11] = list[i];
|
|
2259
|
+
child_ctx[13] = i;
|
|
2244
2260
|
return child_ctx;
|
|
2245
2261
|
}
|
|
2246
2262
|
|
|
2247
2263
|
function get_each_context_1(ctx, list, i) {
|
|
2248
2264
|
const child_ctx = ctx.slice();
|
|
2249
|
-
child_ctx[
|
|
2265
|
+
child_ctx[14] = list[i];
|
|
2250
2266
|
return child_ctx;
|
|
2251
2267
|
}
|
|
2252
2268
|
|
|
2253
|
-
// (
|
|
2269
|
+
// (48:4) {#each rulerLabels as rulerLabel}
|
|
2254
2270
|
function create_each_block_1(ctx) {
|
|
2255
2271
|
let div;
|
|
2256
2272
|
|
|
@@ -2258,8 +2274,8 @@ function create_each_block_1(ctx) {
|
|
|
2258
2274
|
c() {
|
|
2259
2275
|
div = element("div");
|
|
2260
2276
|
attr(div, "class", "floorplan-plugin__rule-scale svelte-xt7p1v");
|
|
2261
|
-
set_style(div, "left", /*rulerLabel*/ ctx[
|
|
2262
|
-
set_style(div, "bottom", /*rulerLabel*/ ctx[
|
|
2277
|
+
set_style(div, "left", /*rulerLabel*/ ctx[14].left * 100 + '%', false);
|
|
2278
|
+
set_style(div, "bottom", /*rulerLabel*/ ctx[14].bottom * 100 + '%', false);
|
|
2263
2279
|
},
|
|
2264
2280
|
m(target, anchor) {
|
|
2265
2281
|
insert(target, div, anchor);
|
|
@@ -2271,11 +2287,11 @@ function create_each_block_1(ctx) {
|
|
|
2271
2287
|
};
|
|
2272
2288
|
}
|
|
2273
2289
|
|
|
2274
|
-
// (
|
|
2290
|
+
// (57:4) {#each rulerTexts as textItem, textItemIndex (textItemIndex)}
|
|
2275
2291
|
function create_each_block$a(key_1, ctx) {
|
|
2276
2292
|
let div1;
|
|
2277
2293
|
let div0;
|
|
2278
|
-
let t0_value = /*textItem*/ ctx[
|
|
2294
|
+
let t0_value = /*getRuleDistanceText*/ ctx[1](/*textItem*/ ctx[11].distance) + "";
|
|
2279
2295
|
let t0;
|
|
2280
2296
|
let t1;
|
|
2281
2297
|
|
|
@@ -2288,10 +2304,10 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2288
2304
|
t0 = text(t0_value);
|
|
2289
2305
|
t1 = space();
|
|
2290
2306
|
attr(div0, "class", "floorplan-plugin__rule-text svelte-xt7p1v");
|
|
2291
|
-
toggle_class(div0, "is-row", /*isRow*/ ctx[
|
|
2307
|
+
toggle_class(div0, "is-row", /*isRow*/ ctx[2]);
|
|
2292
2308
|
attr(div1, "class", "floorplan-plugin__rule-text-item svelte-xt7p1v");
|
|
2293
|
-
set_style(div1, "left", /*textItem*/ ctx[
|
|
2294
|
-
set_style(div1, "bottom", /*textItem*/ ctx[
|
|
2309
|
+
set_style(div1, "left", /*textItem*/ ctx[11].left * 100 + '%', false);
|
|
2310
|
+
set_style(div1, "bottom", /*textItem*/ ctx[11].bottom * 100 + '%', false);
|
|
2295
2311
|
this.first = div1;
|
|
2296
2312
|
},
|
|
2297
2313
|
m(target, anchor) {
|
|
@@ -2302,6 +2318,7 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2302
2318
|
},
|
|
2303
2319
|
p(new_ctx, dirty) {
|
|
2304
2320
|
ctx = new_ctx;
|
|
2321
|
+
if (dirty & /*getRuleDistanceText*/ 2 && t0_value !== (t0_value = /*getRuleDistanceText*/ ctx[1](/*textItem*/ ctx[11].distance) + "")) set_data(t0, t0_value);
|
|
2305
2322
|
},
|
|
2306
2323
|
d(detaching) {
|
|
2307
2324
|
if (detaching) detach(div1);
|
|
@@ -2319,15 +2336,15 @@ function create_fragment$m(ctx) {
|
|
|
2319
2336
|
let each_blocks = [];
|
|
2320
2337
|
let each1_lookup = new Map();
|
|
2321
2338
|
let div3_class_value;
|
|
2322
|
-
let each_value_1 = /*rulerLabels*/ ctx[
|
|
2339
|
+
let each_value_1 = /*rulerLabels*/ ctx[3];
|
|
2323
2340
|
let each_blocks_1 = [];
|
|
2324
2341
|
|
|
2325
2342
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
2326
2343
|
each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
2327
2344
|
}
|
|
2328
2345
|
|
|
2329
|
-
let each_value = /*rulerTexts*/ ctx[
|
|
2330
|
-
const get_key = ctx => /*textItemIndex*/ ctx[
|
|
2346
|
+
let each_value = /*rulerTexts*/ ctx[4];
|
|
2347
|
+
const get_key = ctx => /*textItemIndex*/ ctx[13];
|
|
2331
2348
|
|
|
2332
2349
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2333
2350
|
let child_ctx = get_each_context$a(ctx, each_value, i);
|
|
@@ -2355,12 +2372,12 @@ function create_fragment$m(ctx) {
|
|
|
2355
2372
|
|
|
2356
2373
|
attr(div0, "class", "floorplan-plugin__rule-line svelte-xt7p1v");
|
|
2357
2374
|
attr(div1, "class", "floorplan-plugin__rule-scale-wrapper svelte-xt7p1v");
|
|
2358
|
-
toggle_class(div1, "is-row", /*isRow*/ ctx[
|
|
2375
|
+
toggle_class(div1, "is-row", /*isRow*/ ctx[2]);
|
|
2359
2376
|
attr(div2, "class", "floorplan-plugin__rule-text-wrapper svelte-xt7p1v");
|
|
2360
2377
|
attr(div3, "class", div3_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/ ctx[0] + " svelte-xt7p1v");
|
|
2361
|
-
toggle_class(div3, "is-row", /*isRow*/ ctx[
|
|
2362
|
-
set_style(div3, "width", /*isRow*/ ctx[
|
|
2363
|
-
set_style(div3, "height", !/*isRow*/ ctx[
|
|
2378
|
+
toggle_class(div3, "is-row", /*isRow*/ ctx[2]);
|
|
2379
|
+
set_style(div3, "width", /*isRow*/ ctx[2] ? '100%' : 1 / 16 + 'rem', false);
|
|
2380
|
+
set_style(div3, "height", !/*isRow*/ ctx[2] ? '100%' : 1 / 16 + 'rem', false);
|
|
2364
2381
|
},
|
|
2365
2382
|
m(target, anchor) {
|
|
2366
2383
|
insert(target, div3, anchor);
|
|
@@ -2380,8 +2397,8 @@ function create_fragment$m(ctx) {
|
|
|
2380
2397
|
}
|
|
2381
2398
|
},
|
|
2382
2399
|
p(ctx, [dirty]) {
|
|
2383
|
-
if (dirty & /*rulerLabels*/
|
|
2384
|
-
each_value_1 = /*rulerLabels*/ ctx[
|
|
2400
|
+
if (dirty & /*rulerLabels*/ 8) {
|
|
2401
|
+
each_value_1 = /*rulerLabels*/ ctx[3];
|
|
2385
2402
|
let i;
|
|
2386
2403
|
|
|
2387
2404
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
@@ -2403,8 +2420,8 @@ function create_fragment$m(ctx) {
|
|
|
2403
2420
|
each_blocks_1.length = each_value_1.length;
|
|
2404
2421
|
}
|
|
2405
2422
|
|
|
2406
|
-
if (dirty & /*rulerTexts, isRow*/
|
|
2407
|
-
each_value = /*rulerTexts*/ ctx[
|
|
2423
|
+
if (dirty & /*rulerTexts, isRow, getRuleDistanceText*/ 22) {
|
|
2424
|
+
each_value = /*rulerTexts*/ ctx[4];
|
|
2408
2425
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each1_lookup, div2, destroy_block, create_each_block$a, null, get_each_context$a);
|
|
2409
2426
|
}
|
|
2410
2427
|
|
|
@@ -2412,8 +2429,8 @@ function create_fragment$m(ctx) {
|
|
|
2412
2429
|
attr(div3, "class", div3_class_value);
|
|
2413
2430
|
}
|
|
2414
2431
|
|
|
2415
|
-
if (dirty & /*type, isRow*/
|
|
2416
|
-
toggle_class(div3, "is-row", /*isRow*/ ctx[
|
|
2432
|
+
if (dirty & /*type, isRow*/ 5) {
|
|
2433
|
+
toggle_class(div3, "is-row", /*isRow*/ ctx[2]);
|
|
2417
2434
|
}
|
|
2418
2435
|
},
|
|
2419
2436
|
i: noop$1,
|
|
@@ -2436,6 +2453,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
2436
2453
|
let { type } = $$props;
|
|
2437
2454
|
let { data } = $$props;
|
|
2438
2455
|
let { bounding } = $$props;
|
|
2456
|
+
let { getRuleDistanceText } = $$props;
|
|
2439
2457
|
const isRow = type === 'top' || type === 'bottom';
|
|
2440
2458
|
const contentWidth = bounding.max.x - bounding.min.x - (padding$1 - exteriorWallOffset$1) * 2;
|
|
2441
2459
|
const contentHeight = bounding.max.y - bounding.min.y - (padding$1 - exteriorWallOffset$1) * 2;
|
|
@@ -2481,21 +2499,36 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
2481
2499
|
|
|
2482
2500
|
$$self.$$set = $$props => {
|
|
2483
2501
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
2484
|
-
if ('data' in $$props) $$invalidate(
|
|
2485
|
-
if ('bounding' in $$props) $$invalidate(
|
|
2502
|
+
if ('data' in $$props) $$invalidate(5, data = $$props.data);
|
|
2503
|
+
if ('bounding' in $$props) $$invalidate(6, bounding = $$props.bounding);
|
|
2504
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(1, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
2486
2505
|
};
|
|
2487
2506
|
|
|
2488
|
-
return [type, isRow, rulerLabels, rulerTexts, data, bounding];
|
|
2507
|
+
return [type, getRuleDistanceText, isRow, rulerLabels, rulerTexts, data, bounding];
|
|
2489
2508
|
}
|
|
2490
2509
|
|
|
2491
2510
|
class RuleItem extends SvelteComponent {
|
|
2492
2511
|
constructor(options) {
|
|
2493
2512
|
super();
|
|
2494
|
-
|
|
2513
|
+
|
|
2514
|
+
init(
|
|
2515
|
+
this,
|
|
2516
|
+
options,
|
|
2517
|
+
instance$m,
|
|
2518
|
+
create_fragment$m,
|
|
2519
|
+
safe_not_equal,
|
|
2520
|
+
{
|
|
2521
|
+
type: 0,
|
|
2522
|
+
data: 5,
|
|
2523
|
+
bounding: 6,
|
|
2524
|
+
getRuleDistanceText: 1
|
|
2525
|
+
},
|
|
2526
|
+
add_css$h
|
|
2527
|
+
);
|
|
2495
2528
|
}
|
|
2496
2529
|
}
|
|
2497
2530
|
|
|
2498
|
-
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.
|
|
2531
|
+
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.50.1 */
|
|
2499
2532
|
|
|
2500
2533
|
function add_css$g(target) {
|
|
2501
2534
|
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}");
|
|
@@ -2503,12 +2536,12 @@ function add_css$g(target) {
|
|
|
2503
2536
|
|
|
2504
2537
|
function get_each_context$9(ctx, list, i) {
|
|
2505
2538
|
const child_ctx = ctx.slice();
|
|
2506
|
-
child_ctx[
|
|
2507
|
-
child_ctx[
|
|
2539
|
+
child_ctx[13] = list[i][0];
|
|
2540
|
+
child_ctx[14] = list[i][1];
|
|
2508
2541
|
return child_ctx;
|
|
2509
2542
|
}
|
|
2510
2543
|
|
|
2511
|
-
// (
|
|
2544
|
+
// (20:2) {#each ruleLabelArray as [type, data] (type)}
|
|
2512
2545
|
function create_each_block$9(key_1, ctx) {
|
|
2513
2546
|
let first;
|
|
2514
2547
|
let ruleitem;
|
|
@@ -2516,9 +2549,10 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2516
2549
|
|
|
2517
2550
|
const ruleitem_spread_levels = [
|
|
2518
2551
|
{
|
|
2519
|
-
type: /*type*/ ctx[
|
|
2520
|
-
data: /*data*/ ctx[
|
|
2521
|
-
bounding: /*bounding*/ ctx[
|
|
2552
|
+
type: /*type*/ ctx[13],
|
|
2553
|
+
data: /*data*/ ctx[14],
|
|
2554
|
+
bounding: /*bounding*/ ctx[1],
|
|
2555
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
|
|
2522
2556
|
}
|
|
2523
2557
|
];
|
|
2524
2558
|
|
|
@@ -2546,12 +2580,13 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2546
2580
|
p(new_ctx, dirty) {
|
|
2547
2581
|
ctx = new_ctx;
|
|
2548
2582
|
|
|
2549
|
-
const ruleitem_changes = (dirty & /*ruleLabelArray, bounding*/
|
|
2583
|
+
const ruleitem_changes = (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19)
|
|
2550
2584
|
? get_spread_update(ruleitem_spread_levels, [
|
|
2551
2585
|
{
|
|
2552
|
-
type: /*type*/ ctx[
|
|
2553
|
-
data: /*data*/ ctx[
|
|
2554
|
-
bounding: /*bounding*/ ctx[
|
|
2586
|
+
type: /*type*/ ctx[13],
|
|
2587
|
+
data: /*data*/ ctx[14],
|
|
2588
|
+
bounding: /*bounding*/ ctx[1],
|
|
2589
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[0]
|
|
2555
2590
|
}
|
|
2556
2591
|
])
|
|
2557
2592
|
: {};
|
|
@@ -2579,8 +2614,8 @@ function create_fragment$l(ctx) {
|
|
|
2579
2614
|
let each_blocks = [];
|
|
2580
2615
|
let each_1_lookup = new Map();
|
|
2581
2616
|
let current;
|
|
2582
|
-
let each_value = /*ruleLabelArray*/ ctx[
|
|
2583
|
-
const get_key = ctx => /*type*/ ctx[
|
|
2617
|
+
let each_value = /*ruleLabelArray*/ ctx[4];
|
|
2618
|
+
const get_key = ctx => /*type*/ ctx[13];
|
|
2584
2619
|
|
|
2585
2620
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2586
2621
|
let child_ctx = get_each_context$9(ctx, each_value, i);
|
|
@@ -2597,8 +2632,8 @@ function create_fragment$l(ctx) {
|
|
|
2597
2632
|
}
|
|
2598
2633
|
|
|
2599
2634
|
attr(div, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3");
|
|
2600
|
-
set_style(div, "width", /*width*/ ctx[
|
|
2601
|
-
set_style(div, "height", /*height*/ ctx[
|
|
2635
|
+
set_style(div, "width", /*width*/ ctx[3], false);
|
|
2636
|
+
set_style(div, "height", /*height*/ ctx[2], false);
|
|
2602
2637
|
},
|
|
2603
2638
|
m(target, anchor) {
|
|
2604
2639
|
insert(target, div, anchor);
|
|
@@ -2610,19 +2645,19 @@ function create_fragment$l(ctx) {
|
|
|
2610
2645
|
current = true;
|
|
2611
2646
|
},
|
|
2612
2647
|
p(ctx, [dirty]) {
|
|
2613
|
-
if (dirty & /*ruleLabelArray, bounding*/
|
|
2614
|
-
each_value = /*ruleLabelArray*/ ctx[
|
|
2648
|
+
if (dirty & /*ruleLabelArray, bounding, getRuleDistanceText*/ 19) {
|
|
2649
|
+
each_value = /*ruleLabelArray*/ ctx[4];
|
|
2615
2650
|
group_outros();
|
|
2616
2651
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$9, null, get_each_context$9);
|
|
2617
2652
|
check_outros();
|
|
2618
2653
|
}
|
|
2619
2654
|
|
|
2620
|
-
if (dirty & /*width*/
|
|
2621
|
-
set_style(div, "width", /*width*/ ctx[
|
|
2655
|
+
if (dirty & /*width*/ 8) {
|
|
2656
|
+
set_style(div, "width", /*width*/ ctx[3], false);
|
|
2622
2657
|
}
|
|
2623
2658
|
|
|
2624
|
-
if (dirty & /*height*/
|
|
2625
|
-
set_style(div, "height", /*height*/ ctx[
|
|
2659
|
+
if (dirty & /*height*/ 4) {
|
|
2660
|
+
set_style(div, "height", /*height*/ ctx[2], false);
|
|
2626
2661
|
}
|
|
2627
2662
|
},
|
|
2628
2663
|
i(local) {
|
|
@@ -2667,55 +2702,58 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2667
2702
|
let height;
|
|
2668
2703
|
let { floorIndex } = $$props;
|
|
2669
2704
|
let { floorplanData } = $$props;
|
|
2705
|
+
let { getRuleDistanceText } = $$props;
|
|
2670
2706
|
|
|
2671
2707
|
$$self.$$set = $$props => {
|
|
2672
|
-
if ('floorIndex' in $$props) $$invalidate(
|
|
2673
|
-
if ('floorplanData' in $$props) $$invalidate(
|
|
2708
|
+
if ('floorIndex' in $$props) $$invalidate(5, floorIndex = $$props.floorIndex);
|
|
2709
|
+
if ('floorplanData' in $$props) $$invalidate(6, floorplanData = $$props.floorplanData);
|
|
2710
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(0, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
2674
2711
|
};
|
|
2675
2712
|
|
|
2676
2713
|
$$self.$$.update = () => {
|
|
2677
|
-
if ($$self.$$.dirty & /*floorplanData*/
|
|
2678
|
-
$$invalidate(
|
|
2714
|
+
if ($$self.$$.dirty & /*floorplanData*/ 64) {
|
|
2715
|
+
$$invalidate(1, bounding = floorplanData.bounding);
|
|
2679
2716
|
}
|
|
2680
2717
|
|
|
2681
|
-
if ($$self.$$.dirty & /*floorplanData, floorIndex*/
|
|
2682
|
-
$$invalidate(
|
|
2718
|
+
if ($$self.$$.dirty & /*floorplanData, floorIndex*/ 96) {
|
|
2719
|
+
$$invalidate(11, ruleLabelData = floorplanData.floorDatas[floorIndex].rules);
|
|
2683
2720
|
}
|
|
2684
2721
|
|
|
2685
|
-
if ($$self.$$.dirty & /*ruleLabelData*/
|
|
2686
|
-
$$invalidate(
|
|
2722
|
+
if ($$self.$$.dirty & /*ruleLabelData*/ 2048) {
|
|
2723
|
+
$$invalidate(12, ruleLabelDataKeys = Object.keys(ruleLabelData));
|
|
2687
2724
|
}
|
|
2688
2725
|
|
|
2689
|
-
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/
|
|
2690
|
-
$$invalidate(
|
|
2726
|
+
if ($$self.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/ 6144) {
|
|
2727
|
+
$$invalidate(4, ruleLabelArray = ruleLabelDataKeys.map(key => [key, ruleLabelData[key]]));
|
|
2691
2728
|
}
|
|
2692
2729
|
|
|
2693
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2694
|
-
$$invalidate(
|
|
2730
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2731
|
+
$$invalidate(9, boundingWidth = bounding.max.x - bounding.min.x);
|
|
2695
2732
|
}
|
|
2696
2733
|
|
|
2697
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2698
|
-
$$invalidate(
|
|
2734
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2735
|
+
$$invalidate(7, boundingHeight = bounding.max.y - bounding.min.y);
|
|
2699
2736
|
}
|
|
2700
2737
|
|
|
2701
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2702
|
-
$$invalidate(
|
|
2738
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2739
|
+
$$invalidate(10, contentWidth = bounding.max.x - bounding.min.x - (padding - exteriorWallOffset) * 2);
|
|
2703
2740
|
}
|
|
2704
2741
|
|
|
2705
|
-
if ($$self.$$.dirty & /*bounding*/
|
|
2706
|
-
$$invalidate(
|
|
2742
|
+
if ($$self.$$.dirty & /*bounding*/ 2) {
|
|
2743
|
+
$$invalidate(8, contentHeight = bounding.max.y - bounding.min.y - (padding - exteriorWallOffset) * 2);
|
|
2707
2744
|
}
|
|
2708
2745
|
|
|
2709
|
-
if ($$self.$$.dirty & /*contentWidth, boundingWidth*/
|
|
2710
|
-
$$invalidate(
|
|
2746
|
+
if ($$self.$$.dirty & /*contentWidth, boundingWidth*/ 1536) {
|
|
2747
|
+
$$invalidate(3, width = contentWidth / boundingWidth * 100 + '%');
|
|
2711
2748
|
}
|
|
2712
2749
|
|
|
2713
|
-
if ($$self.$$.dirty & /*contentHeight, boundingHeight*/
|
|
2714
|
-
$$invalidate(
|
|
2750
|
+
if ($$self.$$.dirty & /*contentHeight, boundingHeight*/ 384) {
|
|
2751
|
+
$$invalidate(2, height = contentHeight / boundingHeight * 100 + '%');
|
|
2715
2752
|
}
|
|
2716
2753
|
};
|
|
2717
2754
|
|
|
2718
2755
|
return [
|
|
2756
|
+
getRuleDistanceText,
|
|
2719
2757
|
bounding,
|
|
2720
2758
|
height,
|
|
2721
2759
|
width,
|
|
@@ -2734,7 +2772,20 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2734
2772
|
class RuleLabels extends SvelteComponent {
|
|
2735
2773
|
constructor(options) {
|
|
2736
2774
|
super();
|
|
2737
|
-
|
|
2775
|
+
|
|
2776
|
+
init(
|
|
2777
|
+
this,
|
|
2778
|
+
options,
|
|
2779
|
+
instance$l,
|
|
2780
|
+
create_fragment$l,
|
|
2781
|
+
safe_not_equal,
|
|
2782
|
+
{
|
|
2783
|
+
floorIndex: 5,
|
|
2784
|
+
floorplanData: 6,
|
|
2785
|
+
getRuleDistanceText: 0
|
|
2786
|
+
},
|
|
2787
|
+
add_css$g
|
|
2788
|
+
);
|
|
2738
2789
|
}
|
|
2739
2790
|
}
|
|
2740
2791
|
|
|
@@ -2789,7 +2840,7 @@ function getFloorIndexFromModelPosition(position, five) {
|
|
|
2789
2840
|
return floorIndex;
|
|
2790
2841
|
}
|
|
2791
2842
|
|
|
2792
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.
|
|
2843
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.50.1 */
|
|
2793
2844
|
|
|
2794
2845
|
function create_fragment$k(ctx) {
|
|
2795
2846
|
let path_1;
|
|
@@ -2840,7 +2891,7 @@ class RoomMaterial_0 extends SvelteComponent {
|
|
|
2840
2891
|
}
|
|
2841
2892
|
}
|
|
2842
2893
|
|
|
2843
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.
|
|
2894
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.50.1 */
|
|
2844
2895
|
|
|
2845
2896
|
function create_fragment$j(ctx) {
|
|
2846
2897
|
let defs;
|
|
@@ -2929,7 +2980,7 @@ class RoomMaterial_1 extends SvelteComponent {
|
|
|
2929
2980
|
}
|
|
2930
2981
|
}
|
|
2931
2982
|
|
|
2932
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.
|
|
2983
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.50.1 */
|
|
2933
2984
|
|
|
2934
2985
|
function create_fragment$i(ctx) {
|
|
2935
2986
|
let defs;
|
|
@@ -3056,7 +3107,7 @@ class RoomMaterial_2 extends SvelteComponent {
|
|
|
3056
3107
|
}
|
|
3057
3108
|
}
|
|
3058
3109
|
|
|
3059
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.
|
|
3110
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.50.1 */
|
|
3060
3111
|
|
|
3061
3112
|
function add_css$f(target) {
|
|
3062
3113
|
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}");
|
|
@@ -3361,7 +3412,7 @@ class RoomMaterial extends SvelteComponent {
|
|
|
3361
3412
|
}
|
|
3362
3413
|
}
|
|
3363
3414
|
|
|
3364
|
-
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.
|
|
3415
|
+
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.50.1 */
|
|
3365
3416
|
|
|
3366
3417
|
function add_css$e(target) {
|
|
3367
3418
|
append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
@@ -3451,7 +3502,7 @@ class Room extends SvelteComponent {
|
|
|
3451
3502
|
}
|
|
3452
3503
|
}
|
|
3453
3504
|
|
|
3454
|
-
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.
|
|
3505
|
+
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.50.1 */
|
|
3455
3506
|
|
|
3456
3507
|
function add_css$d(target) {
|
|
3457
3508
|
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}");
|
|
@@ -3639,13 +3690,13 @@ class RoomHighlight extends SvelteComponent {
|
|
|
3639
3690
|
}
|
|
3640
3691
|
}
|
|
3641
3692
|
|
|
3642
|
-
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.
|
|
3693
|
+
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.50.1 */
|
|
3643
3694
|
|
|
3644
3695
|
function add_css$c(target) {
|
|
3645
3696
|
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}");
|
|
3646
3697
|
}
|
|
3647
3698
|
|
|
3648
|
-
// (
|
|
3699
|
+
// (22:2) {#if hoverEnable}
|
|
3649
3700
|
function create_if_block_2(ctx) {
|
|
3650
3701
|
let roomhighlight;
|
|
3651
3702
|
let current;
|
|
@@ -3654,7 +3705,7 @@ function create_if_block_2(ctx) {
|
|
|
3654
3705
|
{
|
|
3655
3706
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3656
3707
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3657
|
-
hoveredRoom: /*hoveredRoom*/ ctx[
|
|
3708
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10]
|
|
3658
3709
|
}
|
|
3659
3710
|
];
|
|
3660
3711
|
|
|
@@ -3675,12 +3726,12 @@ function create_if_block_2(ctx) {
|
|
|
3675
3726
|
current = true;
|
|
3676
3727
|
},
|
|
3677
3728
|
p(ctx, dirty) {
|
|
3678
|
-
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/
|
|
3729
|
+
const roomhighlight_changes = (dirty & /*floorIndex, floorplanData, hoveredRoom*/ 1058)
|
|
3679
3730
|
? get_spread_update(roomhighlight_spread_levels, [
|
|
3680
3731
|
{
|
|
3681
3732
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3682
3733
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3683
|
-
hoveredRoom: /*hoveredRoom*/ ctx[
|
|
3734
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10]
|
|
3684
3735
|
}
|
|
3685
3736
|
])
|
|
3686
3737
|
: {};
|
|
@@ -3702,7 +3753,7 @@ function create_if_block_2(ctx) {
|
|
|
3702
3753
|
};
|
|
3703
3754
|
}
|
|
3704
3755
|
|
|
3705
|
-
// (
|
|
3756
|
+
// (26:2) {#if roomLabelsEnable}
|
|
3706
3757
|
function create_if_block_1$3(ctx) {
|
|
3707
3758
|
let roomlabels;
|
|
3708
3759
|
let current;
|
|
@@ -3711,9 +3762,10 @@ function create_if_block_1$3(ctx) {
|
|
|
3711
3762
|
{
|
|
3712
3763
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3713
3764
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3765
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[6],
|
|
3766
|
+
getLabelElement: /*getLabelElement*/ ctx[7],
|
|
3767
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10],
|
|
3768
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
|
|
3717
3769
|
}
|
|
3718
3770
|
];
|
|
3719
3771
|
|
|
@@ -3734,14 +3786,15 @@ function create_if_block_1$3(ctx) {
|
|
|
3734
3786
|
current = true;
|
|
3735
3787
|
},
|
|
3736
3788
|
p(ctx, dirty) {
|
|
3737
|
-
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/
|
|
3789
|
+
const roomlabels_changes = (dirty & /*floorplanData, floorIndex, getRoomAreaText, getLabelElement, hoveredRoom, adaptiveRoomLabelVisibleEnable*/ 1762)
|
|
3738
3790
|
? get_spread_update(roomlabels_spread_levels, [
|
|
3739
3791
|
{
|
|
3740
3792
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3741
3793
|
floorIndex: /*floorIndex*/ ctx[1],
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3794
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[6],
|
|
3795
|
+
getLabelElement: /*getLabelElement*/ ctx[7],
|
|
3796
|
+
hoveredRoom: /*hoveredRoom*/ ctx[10],
|
|
3797
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[9]
|
|
3745
3798
|
}
|
|
3746
3799
|
])
|
|
3747
3800
|
: {};
|
|
@@ -3763,7 +3816,7 @@ function create_if_block_1$3(ctx) {
|
|
|
3763
3816
|
};
|
|
3764
3817
|
}
|
|
3765
3818
|
|
|
3766
|
-
// (
|
|
3819
|
+
// (38:2) {#if ruleLabelsEnable}
|
|
3767
3820
|
function create_if_block$6(ctx) {
|
|
3768
3821
|
let rulelabels;
|
|
3769
3822
|
let current;
|
|
@@ -3771,7 +3824,8 @@ function create_if_block$6(ctx) {
|
|
|
3771
3824
|
const rulelabels_spread_levels = [
|
|
3772
3825
|
{
|
|
3773
3826
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3774
|
-
floorIndex: /*floorIndex*/ ctx[1]
|
|
3827
|
+
floorIndex: /*floorIndex*/ ctx[1],
|
|
3828
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
|
|
3775
3829
|
}
|
|
3776
3830
|
];
|
|
3777
3831
|
|
|
@@ -3792,11 +3846,12 @@ function create_if_block$6(ctx) {
|
|
|
3792
3846
|
current = true;
|
|
3793
3847
|
},
|
|
3794
3848
|
p(ctx, dirty) {
|
|
3795
|
-
const rulelabels_changes = (dirty & /*floorplanData, floorIndex*/
|
|
3849
|
+
const rulelabels_changes = (dirty & /*floorplanData, floorIndex, getRuleDistanceText*/ 290)
|
|
3796
3850
|
? get_spread_update(rulelabels_spread_levels, [
|
|
3797
3851
|
{
|
|
3798
3852
|
floorplanData: /*floorplanData*/ ctx[5],
|
|
3799
|
-
floorIndex: /*floorIndex*/ ctx[1]
|
|
3853
|
+
floorIndex: /*floorIndex*/ ctx[1],
|
|
3854
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[8]
|
|
3800
3855
|
}
|
|
3801
3856
|
])
|
|
3802
3857
|
: {};
|
|
@@ -4025,7 +4080,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4025
4080
|
let { roomLabelsEnable } = $$props;
|
|
4026
4081
|
let { ruleLabelsEnable } = $$props;
|
|
4027
4082
|
let { floorplanData } = $$props;
|
|
4083
|
+
let { getRoomAreaText } = $$props;
|
|
4028
4084
|
let { getLabelElement } = $$props;
|
|
4085
|
+
let { getRuleDistanceText } = $$props;
|
|
4029
4086
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
4030
4087
|
const hoveredRoom = writable(undefined);
|
|
4031
4088
|
|
|
@@ -4036,8 +4093,10 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4036
4093
|
if ('roomLabelsEnable' in $$props) $$invalidate(3, roomLabelsEnable = $$props.roomLabelsEnable);
|
|
4037
4094
|
if ('ruleLabelsEnable' in $$props) $$invalidate(4, ruleLabelsEnable = $$props.ruleLabelsEnable);
|
|
4038
4095
|
if ('floorplanData' in $$props) $$invalidate(5, floorplanData = $$props.floorplanData);
|
|
4039
|
-
if ('
|
|
4040
|
-
if ('
|
|
4096
|
+
if ('getRoomAreaText' in $$props) $$invalidate(6, getRoomAreaText = $$props.getRoomAreaText);
|
|
4097
|
+
if ('getLabelElement' in $$props) $$invalidate(7, getLabelElement = $$props.getLabelElement);
|
|
4098
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(8, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
4099
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(9, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
4041
4100
|
};
|
|
4042
4101
|
|
|
4043
4102
|
return [
|
|
@@ -4047,7 +4106,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
4047
4106
|
roomLabelsEnable,
|
|
4048
4107
|
ruleLabelsEnable,
|
|
4049
4108
|
floorplanData,
|
|
4109
|
+
getRoomAreaText,
|
|
4050
4110
|
getLabelElement,
|
|
4111
|
+
getRuleDistanceText,
|
|
4051
4112
|
adaptiveRoomLabelVisibleEnable,
|
|
4052
4113
|
hoveredRoom
|
|
4053
4114
|
];
|
|
@@ -4070,15 +4131,17 @@ class CurrentFloor$1 extends SvelteComponent {
|
|
|
4070
4131
|
roomLabelsEnable: 3,
|
|
4071
4132
|
ruleLabelsEnable: 4,
|
|
4072
4133
|
floorplanData: 5,
|
|
4073
|
-
|
|
4074
|
-
|
|
4134
|
+
getRoomAreaText: 6,
|
|
4135
|
+
getLabelElement: 7,
|
|
4136
|
+
getRuleDistanceText: 8,
|
|
4137
|
+
adaptiveRoomLabelVisibleEnable: 9
|
|
4075
4138
|
},
|
|
4076
4139
|
add_css$c
|
|
4077
4140
|
);
|
|
4078
4141
|
}
|
|
4079
4142
|
}
|
|
4080
4143
|
|
|
4081
|
-
/* src/floorplan/Components/Main.svelte generated by Svelte v3.
|
|
4144
|
+
/* src/floorplan/Components/Main.svelte generated by Svelte v3.50.1 */
|
|
4082
4145
|
|
|
4083
4146
|
function add_css$b(target) {
|
|
4084
4147
|
append_styles(target, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
|
|
@@ -4086,11 +4149,11 @@ function add_css$b(target) {
|
|
|
4086
4149
|
|
|
4087
4150
|
function get_each_context$6(ctx, list, i) {
|
|
4088
4151
|
const child_ctx = ctx.slice();
|
|
4089
|
-
child_ctx[
|
|
4152
|
+
child_ctx[16] = list[i];
|
|
4090
4153
|
return child_ctx;
|
|
4091
4154
|
}
|
|
4092
4155
|
|
|
4093
|
-
// (
|
|
4156
|
+
// (24:0) {#if visible}
|
|
4094
4157
|
function create_if_block$5(ctx) {
|
|
4095
4158
|
let div;
|
|
4096
4159
|
let t0;
|
|
@@ -4157,7 +4220,7 @@ function create_if_block$5(ctx) {
|
|
|
4157
4220
|
p(new_ctx, dirty) {
|
|
4158
4221
|
ctx = new_ctx;
|
|
4159
4222
|
|
|
4160
|
-
if (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/
|
|
4223
|
+
if (dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 62384) {
|
|
4161
4224
|
each_value = /*floorplanData*/ ctx[9].floorDatas;
|
|
4162
4225
|
let i;
|
|
4163
4226
|
|
|
@@ -4263,7 +4326,7 @@ function create_if_block$5(ctx) {
|
|
|
4263
4326
|
};
|
|
4264
4327
|
}
|
|
4265
4328
|
|
|
4266
|
-
// (
|
|
4329
|
+
// (26:4) {#each floorplanData.floorDatas as floorData}
|
|
4267
4330
|
function create_each_block$6(ctx) {
|
|
4268
4331
|
let currentfloor;
|
|
4269
4332
|
let current;
|
|
@@ -4272,16 +4335,18 @@ function create_each_block$6(ctx) {
|
|
|
4272
4335
|
{
|
|
4273
4336
|
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
4274
4337
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
4275
|
-
|
|
4338
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[12],
|
|
4339
|
+
getLabelElement: /*getLabelElement*/ ctx[13],
|
|
4340
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
|
|
4276
4341
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
4277
4342
|
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
4278
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
4343
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
|
|
4279
4344
|
},
|
|
4280
4345
|
{
|
|
4281
|
-
floorIndex: /*floorData*/ ctx[
|
|
4346
|
+
floorIndex: /*floorData*/ ctx[16].floorIndex
|
|
4282
4347
|
},
|
|
4283
4348
|
{
|
|
4284
|
-
isCurrent: /*floorData*/ ctx[
|
|
4349
|
+
isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
|
|
4285
4350
|
}
|
|
4286
4351
|
];
|
|
4287
4352
|
|
|
@@ -4302,21 +4367,23 @@ function create_each_block$6(ctx) {
|
|
|
4302
4367
|
current = true;
|
|
4303
4368
|
},
|
|
4304
4369
|
p(ctx, dirty) {
|
|
4305
|
-
const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/
|
|
4370
|
+
const currentfloor_changes = (dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable, floorIndex*/ 62384)
|
|
4306
4371
|
? get_spread_update(currentfloor_spread_levels, [
|
|
4307
|
-
dirty & /*hoverEnable, floorplanData, getLabelElement, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/
|
|
4372
|
+
dirty & /*hoverEnable, floorplanData, getRoomAreaText, getLabelElement, getRuleDistanceText, roomLabelsEnable, ruleLabelsEnable, adaptiveRoomLabelVisibleEnable*/ 62368 && {
|
|
4308
4373
|
hoverEnable: /*hoverEnable*/ ctx[5],
|
|
4309
4374
|
floorplanData: /*floorplanData*/ ctx[9],
|
|
4310
|
-
|
|
4375
|
+
getRoomAreaText: /*getRoomAreaText*/ ctx[12],
|
|
4376
|
+
getLabelElement: /*getLabelElement*/ ctx[13],
|
|
4377
|
+
getRuleDistanceText: /*getRuleDistanceText*/ ctx[14],
|
|
4311
4378
|
roomLabelsEnable: /*roomLabelsEnable*/ ctx[7],
|
|
4312
4379
|
ruleLabelsEnable: /*ruleLabelsEnable*/ ctx[8],
|
|
4313
|
-
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[
|
|
4380
|
+
adaptiveRoomLabelVisibleEnable: /*adaptiveRoomLabelVisibleEnable*/ ctx[15]
|
|
4314
4381
|
},
|
|
4315
4382
|
dirty & /*floorplanData*/ 512 && {
|
|
4316
|
-
floorIndex: /*floorData*/ ctx[
|
|
4383
|
+
floorIndex: /*floorData*/ ctx[16].floorIndex
|
|
4317
4384
|
},
|
|
4318
4385
|
dirty & /*floorplanData, floorIndex*/ 528 && {
|
|
4319
|
-
isCurrent: /*floorData*/ ctx[
|
|
4386
|
+
isCurrent: /*floorData*/ ctx[16].floorIndex === /*floorIndex*/ ctx[4]
|
|
4320
4387
|
}
|
|
4321
4388
|
])
|
|
4322
4389
|
: {};
|
|
@@ -4338,7 +4405,7 @@ function create_each_block$6(ctx) {
|
|
|
4338
4405
|
};
|
|
4339
4406
|
}
|
|
4340
4407
|
|
|
4341
|
-
// (
|
|
4408
|
+
// (43:4) {#if compassEnable}
|
|
4342
4409
|
function create_if_block_1$2(ctx) {
|
|
4343
4410
|
let compass;
|
|
4344
4411
|
let current;
|
|
@@ -4447,7 +4514,9 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4447
4514
|
let { floorplanData } = $$props;
|
|
4448
4515
|
let { lastPanoramaLongitude } = $$props;
|
|
4449
4516
|
let { cameraImageUrl } = $$props;
|
|
4517
|
+
let { getRoomAreaText } = $$props;
|
|
4450
4518
|
let { getLabelElement } = $$props;
|
|
4519
|
+
let { getRuleDistanceText } = $$props;
|
|
4451
4520
|
let { adaptiveRoomLabelVisibleEnable } = $$props;
|
|
4452
4521
|
|
|
4453
4522
|
$$self.$$set = $$props => {
|
|
@@ -4463,8 +4532,10 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4463
4532
|
if ('floorplanData' in $$props) $$invalidate(9, floorplanData = $$props.floorplanData);
|
|
4464
4533
|
if ('lastPanoramaLongitude' in $$props) $$invalidate(10, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
4465
4534
|
if ('cameraImageUrl' in $$props) $$invalidate(11, cameraImageUrl = $$props.cameraImageUrl);
|
|
4466
|
-
if ('
|
|
4467
|
-
if ('
|
|
4535
|
+
if ('getRoomAreaText' in $$props) $$invalidate(12, getRoomAreaText = $$props.getRoomAreaText);
|
|
4536
|
+
if ('getLabelElement' in $$props) $$invalidate(13, getLabelElement = $$props.getLabelElement);
|
|
4537
|
+
if ('getRuleDistanceText' in $$props) $$invalidate(14, getRuleDistanceText = $$props.getRuleDistanceText);
|
|
4538
|
+
if ('adaptiveRoomLabelVisibleEnable' in $$props) $$invalidate(15, adaptiveRoomLabelVisibleEnable = $$props.adaptiveRoomLabelVisibleEnable);
|
|
4468
4539
|
};
|
|
4469
4540
|
|
|
4470
4541
|
return [
|
|
@@ -4480,7 +4551,9 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4480
4551
|
floorplanData,
|
|
4481
4552
|
lastPanoramaLongitude,
|
|
4482
4553
|
cameraImageUrl,
|
|
4554
|
+
getRoomAreaText,
|
|
4483
4555
|
getLabelElement,
|
|
4556
|
+
getRuleDistanceText,
|
|
4484
4557
|
adaptiveRoomLabelVisibleEnable
|
|
4485
4558
|
];
|
|
4486
4559
|
}
|
|
@@ -4508,8 +4581,10 @@ class Main$1 extends SvelteComponent {
|
|
|
4508
4581
|
floorplanData: 9,
|
|
4509
4582
|
lastPanoramaLongitude: 10,
|
|
4510
4583
|
cameraImageUrl: 11,
|
|
4511
|
-
|
|
4512
|
-
|
|
4584
|
+
getRoomAreaText: 12,
|
|
4585
|
+
getLabelElement: 13,
|
|
4586
|
+
getRuleDistanceText: 14,
|
|
4587
|
+
adaptiveRoomLabelVisibleEnable: 15
|
|
4513
4588
|
},
|
|
4514
4589
|
add_css$b
|
|
4515
4590
|
);
|
|
@@ -5373,10 +5448,12 @@ class Controller$5 extends Controller$6 {
|
|
|
5373
5448
|
autoShowEnable: true,
|
|
5374
5449
|
ruleLabelsEnable: true,
|
|
5375
5450
|
roomLabelsEnable: true,
|
|
5451
|
+
adaptiveRoomLabelVisibleEnable: true,
|
|
5376
5452
|
cameraImageUrl: CAMERA_IMAGE,
|
|
5377
5453
|
attachedTo: FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
5378
5454
|
getLabelElement: undefined,
|
|
5379
|
-
|
|
5455
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
5456
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
5380
5457
|
};
|
|
5381
5458
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
5382
5459
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -5449,12 +5526,10 @@ class Controller$5 extends Controller$6 {
|
|
|
5449
5526
|
const options = { userAction };
|
|
5450
5527
|
state.visible ? this._show(options) : this._hide(options);
|
|
5451
5528
|
}
|
|
5529
|
+
this.render();
|
|
5452
5530
|
}
|
|
5453
|
-
changeConfigs(
|
|
5454
|
-
const config = Object.assign(Object.assign({}, this.state.config), _config);
|
|
5531
|
+
changeConfigs(config, userAction = true) {
|
|
5455
5532
|
this.updateState({ config }, userAction);
|
|
5456
|
-
if (!this.container)
|
|
5457
|
-
return;
|
|
5458
5533
|
this.render();
|
|
5459
5534
|
}
|
|
5460
5535
|
async formatData(serverData) {
|
|
@@ -5462,7 +5537,8 @@ class Controller$5 extends Controller$6 {
|
|
|
5462
5537
|
}
|
|
5463
5538
|
updateState(state, userAction) {
|
|
5464
5539
|
const prevState = this.state;
|
|
5465
|
-
|
|
5540
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
5541
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
5466
5542
|
if (equal(this.state, prevState, { deep: true }))
|
|
5467
5543
|
return;
|
|
5468
5544
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6705,7 +6781,7 @@ function throttle(func, wait = 200) {
|
|
|
6705
6781
|
};
|
|
6706
6782
|
}
|
|
6707
6783
|
|
|
6708
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.
|
|
6784
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.50.1 */
|
|
6709
6785
|
|
|
6710
6786
|
function add_css$a(target) {
|
|
6711
6787
|
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%}");
|
|
@@ -6855,7 +6931,7 @@ class Camera extends SvelteComponent {
|
|
|
6855
6931
|
}
|
|
6856
6932
|
}
|
|
6857
6933
|
|
|
6858
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.
|
|
6934
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.50.1 */
|
|
6859
6935
|
|
|
6860
6936
|
function add_css$9(target) {
|
|
6861
6937
|
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%)}");
|
|
@@ -6992,7 +7068,7 @@ class ExtraObjects extends SvelteComponent {
|
|
|
6992
7068
|
}
|
|
6993
7069
|
}
|
|
6994
7070
|
|
|
6995
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.
|
|
7071
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.50.1 */
|
|
6996
7072
|
|
|
6997
7073
|
function create_if_block$4(ctx) {
|
|
6998
7074
|
let highlight;
|
|
@@ -7219,7 +7295,7 @@ class CurrentFloor extends SvelteComponent {
|
|
|
7219
7295
|
}
|
|
7220
7296
|
}
|
|
7221
7297
|
|
|
7222
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.
|
|
7298
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.50.1 */
|
|
7223
7299
|
|
|
7224
7300
|
function add_css$8(target) {
|
|
7225
7301
|
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}");
|
|
@@ -9014,15 +9090,32 @@ const PanoRulerPlugin = (five, params) => {
|
|
|
9014
9090
|
state.enable = false;
|
|
9015
9091
|
return true;
|
|
9016
9092
|
};
|
|
9093
|
+
function changeConfigs(config) {
|
|
9094
|
+
if (config.distanceText && config.distanceText !== state.options.distanceText) {
|
|
9095
|
+
const distanceText = config.distanceText;
|
|
9096
|
+
state.options.distanceText = distanceText;
|
|
9097
|
+
Object.values(__rule).forEach((item) => {
|
|
9098
|
+
item.rules.forEach((rule) => {
|
|
9099
|
+
const [origin, vertical] = rule.rule;
|
|
9100
|
+
const distance = origin.distanceTo(vertical);
|
|
9101
|
+
const textEle = rule.$element.querySelector('.PanoRulerPlugin-rule-label-name');
|
|
9102
|
+
if (!textEle)
|
|
9103
|
+
return;
|
|
9104
|
+
textEle.innerText = distanceText(distance);
|
|
9105
|
+
});
|
|
9106
|
+
});
|
|
9107
|
+
}
|
|
9108
|
+
}
|
|
9017
9109
|
return {
|
|
9018
9110
|
enable,
|
|
9019
9111
|
disable,
|
|
9020
9112
|
load,
|
|
9021
9113
|
state,
|
|
9114
|
+
changeConfigs,
|
|
9022
9115
|
};
|
|
9023
9116
|
};
|
|
9024
9117
|
|
|
9025
|
-
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.
|
|
9118
|
+
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.50.1 */
|
|
9026
9119
|
|
|
9027
9120
|
function add_css$7(target) {
|
|
9028
9121
|
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)}}");
|
|
@@ -9315,7 +9408,7 @@ class RulerItem extends SvelteComponent {
|
|
|
9315
9408
|
}
|
|
9316
9409
|
}
|
|
9317
9410
|
|
|
9318
|
-
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.
|
|
9411
|
+
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.50.1 */
|
|
9319
9412
|
|
|
9320
9413
|
function get_each_context$3(ctx, list, i) {
|
|
9321
9414
|
const child_ctx = ctx.slice();
|
|
@@ -10915,7 +11008,8 @@ function createDistanceItem(props) {
|
|
|
10915
11008
|
if (userDistanceItem) {
|
|
10916
11009
|
userDistanceItem.update({ line: line.toCompletelyJson(), polyline: line.getPolyline().toCompletelyJson() });
|
|
10917
11010
|
}
|
|
10918
|
-
const
|
|
11011
|
+
const distance = startPoint.position.clone().distanceTo(endPoint.position);
|
|
11012
|
+
const distanceString = props.line.model.params.getDistanceText(distance);
|
|
10919
11013
|
contentDom.innerText !== distanceString && (contentDom.innerText = distanceString);
|
|
10920
11014
|
}
|
|
10921
11015
|
function appendTo(container) {
|
|
@@ -11254,6 +11348,12 @@ const preventDefault = (e) => e.preventDefault();
|
|
|
11254
11348
|
class BaseController {
|
|
11255
11349
|
constructor(params) {
|
|
11256
11350
|
var _a, _b;
|
|
11351
|
+
Object.defineProperty(this, "model", {
|
|
11352
|
+
enumerable: true,
|
|
11353
|
+
configurable: true,
|
|
11354
|
+
writable: true,
|
|
11355
|
+
value: void 0
|
|
11356
|
+
});
|
|
11257
11357
|
Object.defineProperty(this, "five", {
|
|
11258
11358
|
enumerable: true,
|
|
11259
11359
|
configurable: true,
|
|
@@ -11266,7 +11366,13 @@ class BaseController {
|
|
|
11266
11366
|
writable: true,
|
|
11267
11367
|
value: void 0
|
|
11268
11368
|
});
|
|
11269
|
-
Object.defineProperty(this, "
|
|
11369
|
+
Object.defineProperty(this, "config", {
|
|
11370
|
+
enumerable: true,
|
|
11371
|
+
configurable: true,
|
|
11372
|
+
writable: true,
|
|
11373
|
+
value: void 0
|
|
11374
|
+
});
|
|
11375
|
+
Object.defineProperty(this, "dashed", {
|
|
11270
11376
|
enumerable: true,
|
|
11271
11377
|
configurable: true,
|
|
11272
11378
|
writable: true,
|
|
@@ -11325,6 +11431,7 @@ class BaseController {
|
|
|
11325
11431
|
configurable: true,
|
|
11326
11432
|
writable: true,
|
|
11327
11433
|
value: () => {
|
|
11434
|
+
this.dashed.distanceItem.update(this.five);
|
|
11328
11435
|
this.model.lines.forEach((line) => line.distanceItem.update(this.five));
|
|
11329
11436
|
}
|
|
11330
11437
|
});
|
|
@@ -11332,6 +11439,7 @@ class BaseController {
|
|
|
11332
11439
|
this.five = params.five;
|
|
11333
11440
|
this.hook = params.hook;
|
|
11334
11441
|
this.model = params.model;
|
|
11442
|
+
this.config = params.config;
|
|
11335
11443
|
this.magnifier = params.magnifier;
|
|
11336
11444
|
this.container = params.container;
|
|
11337
11445
|
this.fiveHelper = params.fiveHelper;
|
|
@@ -11340,6 +11448,10 @@ class BaseController {
|
|
|
11340
11448
|
// ==================== Groups ====================
|
|
11341
11449
|
this.group = params.group;
|
|
11342
11450
|
this.mouseGroup = params.mouseGroup;
|
|
11451
|
+
// ==================== 虚线 ====================
|
|
11452
|
+
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
11453
|
+
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
11454
|
+
this.dashed.mesh.name = 'dashLine';
|
|
11343
11455
|
const fiveElement = this.five.getElement();
|
|
11344
11456
|
if (fiveElement) {
|
|
11345
11457
|
fiveElement.addEventListener('touchstart', preventDefault);
|
|
@@ -11415,12 +11527,6 @@ class EditController extends BaseController {
|
|
|
11415
11527
|
writable: true,
|
|
11416
11528
|
value: 'edit'
|
|
11417
11529
|
});
|
|
11418
|
-
Object.defineProperty(this, "model", {
|
|
11419
|
-
enumerable: true,
|
|
11420
|
-
configurable: true,
|
|
11421
|
-
writable: true,
|
|
11422
|
-
value: new Model({ userDistanceItemCreator: this.userDistanceItemCreator })
|
|
11423
|
-
});
|
|
11424
11530
|
Object.defineProperty(this, "pressPoint", {
|
|
11425
11531
|
enumerable: true,
|
|
11426
11532
|
configurable: true,
|
|
@@ -11452,13 +11558,6 @@ class EditController extends BaseController {
|
|
|
11452
11558
|
writable: true,
|
|
11453
11559
|
value: null
|
|
11454
11560
|
});
|
|
11455
|
-
/** 鼠标点到上一个端点连接的虚线 */
|
|
11456
|
-
Object.defineProperty(this, "dashed", {
|
|
11457
|
-
enumerable: true,
|
|
11458
|
-
configurable: true,
|
|
11459
|
-
writable: true,
|
|
11460
|
-
value: void 0
|
|
11461
|
-
});
|
|
11462
11561
|
Object.defineProperty(this, "hammer", {
|
|
11463
11562
|
enumerable: true,
|
|
11464
11563
|
configurable: true,
|
|
@@ -11671,9 +11770,7 @@ class EditController extends BaseController {
|
|
|
11671
11770
|
this.dashed.distanceItem.update(this.five);
|
|
11672
11771
|
}
|
|
11673
11772
|
});
|
|
11674
|
-
|
|
11675
|
-
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
11676
|
-
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
11773
|
+
this.model = new Model(this.config);
|
|
11677
11774
|
// ==================== 事件监听 ====================
|
|
11678
11775
|
// five
|
|
11679
11776
|
this.five.on('cameraUpdate', this.onCameraUpdate);
|
|
@@ -12507,7 +12604,7 @@ class MixedController extends BaseController {
|
|
|
12507
12604
|
enumerable: true,
|
|
12508
12605
|
configurable: true,
|
|
12509
12606
|
writable: true,
|
|
12510
|
-
value: new Model(
|
|
12607
|
+
value: new Model(this.config)
|
|
12511
12608
|
});
|
|
12512
12609
|
Object.defineProperty(this, "hasAppendDashed", {
|
|
12513
12610
|
enumerable: true,
|
|
@@ -12545,13 +12642,6 @@ class MixedController extends BaseController {
|
|
|
12545
12642
|
writable: true,
|
|
12546
12643
|
value: void 0
|
|
12547
12644
|
});
|
|
12548
|
-
/** 圆环点到上一个端点连接的虚线 */
|
|
12549
|
-
Object.defineProperty(this, "dashed", {
|
|
12550
|
-
enumerable: true,
|
|
12551
|
-
configurable: true,
|
|
12552
|
-
writable: true,
|
|
12553
|
-
value: void 0
|
|
12554
|
-
});
|
|
12555
12645
|
/** 编辑线条发生改变时通知外部 */
|
|
12556
12646
|
Object.defineProperty(this, "onLineChanged", {
|
|
12557
12647
|
enumerable: true,
|
|
@@ -12754,10 +12844,6 @@ class MixedController extends BaseController {
|
|
|
12754
12844
|
onClick: this.deleteDomClickCallback,
|
|
12755
12845
|
cancelDelete: this.cancelDeleteClickCallback,
|
|
12756
12846
|
}).appendTo(this.container);
|
|
12757
|
-
// ==================== 虚线 ====================
|
|
12758
|
-
this.dashed = new Line(new Point([0, 0, 0]), new Point([0, 0, 0]), this.model);
|
|
12759
|
-
this.dashed.mesh.setMaterial({ dashed: true, dashScale: 100 });
|
|
12760
|
-
this.dashed.mesh.name = 'dashLine';
|
|
12761
12847
|
// ==================== 事件监听 ====================
|
|
12762
12848
|
// five
|
|
12763
12849
|
this.five.on('cameraUpdate', this.onCameraUpdate);
|
|
@@ -14131,6 +14217,12 @@ class MeasureController {
|
|
|
14131
14217
|
writable: true,
|
|
14132
14218
|
value: void 0
|
|
14133
14219
|
});
|
|
14220
|
+
Object.defineProperty(this, "config", {
|
|
14221
|
+
enumerable: true,
|
|
14222
|
+
configurable: true,
|
|
14223
|
+
writable: true,
|
|
14224
|
+
value: void 0
|
|
14225
|
+
});
|
|
14134
14226
|
Object.defineProperty(this, "fiveHelper", {
|
|
14135
14227
|
enumerable: true,
|
|
14136
14228
|
configurable: true,
|
|
@@ -14229,7 +14321,14 @@ class MeasureController {
|
|
|
14229
14321
|
});
|
|
14230
14322
|
this.five = five;
|
|
14231
14323
|
this.params = params;
|
|
14232
|
-
|
|
14324
|
+
const defaultConfig = {
|
|
14325
|
+
userDistanceItemCreator: undefined,
|
|
14326
|
+
getDistanceText(distance) {
|
|
14327
|
+
return distance.toFixed(2) + 'm';
|
|
14328
|
+
},
|
|
14329
|
+
};
|
|
14330
|
+
this.config = Object.assign(Object.assign({}, defaultConfig), omit(params, ['openParams', 'magnifierParams']));
|
|
14331
|
+
this.model = new Model(this.config);
|
|
14233
14332
|
this.fiveHelper = new FiveHelper(five);
|
|
14234
14333
|
// magnifier
|
|
14235
14334
|
this.magnifier = new Magnifier(five, (_a = params.magnifierParams) !== null && _a !== void 0 ? _a : { width: 190, height: 190, scale: 2 });
|
|
@@ -14251,6 +14350,7 @@ class MeasureController {
|
|
|
14251
14350
|
hook: this.hook,
|
|
14252
14351
|
group: this.group,
|
|
14253
14352
|
model: this.model,
|
|
14353
|
+
config: this.config,
|
|
14254
14354
|
magnifier: this.magnifier,
|
|
14255
14355
|
container: this.container,
|
|
14256
14356
|
fiveHelper: this.fiveHelper,
|
|
@@ -14385,6 +14485,14 @@ class MeasureController {
|
|
|
14385
14485
|
(_b = this.useUIController) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
14386
14486
|
this.useUIController = new UIController(this, this.controllerParams);
|
|
14387
14487
|
}
|
|
14488
|
+
changeConfigs(config) {
|
|
14489
|
+
var _a;
|
|
14490
|
+
if (config.getDistanceText && config.getDistanceText !== this.config.getDistanceText) {
|
|
14491
|
+
const getDistanceText = config.getDistanceText;
|
|
14492
|
+
this.config.getDistanceText = getDistanceText;
|
|
14493
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateDistanceUI();
|
|
14494
|
+
}
|
|
14495
|
+
}
|
|
14388
14496
|
}
|
|
14389
14497
|
|
|
14390
14498
|
const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|
|
@@ -14393,7 +14501,7 @@ const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|
|
|
14393
14501
|
|
|
14394
14502
|
const currentTarget = writable(null);
|
|
14395
14503
|
|
|
14396
|
-
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.
|
|
14504
|
+
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.50.1 */
|
|
14397
14505
|
|
|
14398
14506
|
function add_css$6(target) {
|
|
14399
14507
|
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}}");
|
|
@@ -14542,7 +14650,7 @@ class Origins extends SvelteComponent {
|
|
|
14542
14650
|
}
|
|
14543
14651
|
}
|
|
14544
14652
|
|
|
14545
|
-
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.
|
|
14653
|
+
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.50.1 */
|
|
14546
14654
|
|
|
14547
14655
|
function add_css$5(target) {
|
|
14548
14656
|
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)}}");
|
|
@@ -15468,7 +15576,7 @@ var DISPLAY_STRATEGY_TYPE;
|
|
|
15468
15576
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
15469
15577
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
15470
15578
|
|
|
15471
|
-
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
15579
|
+
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.50.1 */
|
|
15472
15580
|
|
|
15473
15581
|
function add_css$4(target) {
|
|
15474
15582
|
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 }}");
|
|
@@ -15594,7 +15702,7 @@ function debounce(func, wait = 200) {
|
|
|
15594
15702
|
};
|
|
15595
15703
|
}
|
|
15596
15704
|
|
|
15597
|
-
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
15705
|
+
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.50.1 */
|
|
15598
15706
|
|
|
15599
15707
|
function add_css$3(target) {
|
|
15600
15708
|
append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
@@ -16359,7 +16467,7 @@ var ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE;
|
|
|
16359
16467
|
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
16360
16468
|
})(ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
|
|
16361
16469
|
|
|
16362
|
-
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
16470
|
+
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.50.1 */
|
|
16363
16471
|
|
|
16364
16472
|
function add_css$2(target) {
|
|
16365
16473
|
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 }}");
|
|
@@ -16708,7 +16816,7 @@ function transform2RenderData(data) {
|
|
|
16708
16816
|
return data.map(label => (Object.assign({ observerIndex: undefined, visible: false, isFold: false }, label)));
|
|
16709
16817
|
}
|
|
16710
16818
|
|
|
16711
|
-
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
16819
|
+
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.50.1 */
|
|
16712
16820
|
|
|
16713
16821
|
function add_css$1(target) {
|
|
16714
16822
|
append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
@@ -17452,7 +17560,7 @@ class BasePanoPluginController extends Controller$7 {
|
|
|
17452
17560
|
}
|
|
17453
17561
|
}
|
|
17454
17562
|
|
|
17455
|
-
/* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.
|
|
17563
|
+
/* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.50.1 */
|
|
17456
17564
|
|
|
17457
17565
|
function add_css(target) {
|
|
17458
17566
|
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)}");
|
|
@@ -18085,6 +18193,193 @@ const PanoDoorLabelPlugin = (five) => {
|
|
|
18085
18193
|
return new PanoDoorLabelPluginController(five);
|
|
18086
18194
|
};
|
|
18087
18195
|
|
|
18196
|
+
var polylineMiterUtil = {};
|
|
18197
|
+
|
|
18198
|
+
var add_1 = add$1;
|
|
18199
|
+
|
|
18200
|
+
/**
|
|
18201
|
+
* Adds two vec2's
|
|
18202
|
+
*
|
|
18203
|
+
* @param {vec2} out the receiving vector
|
|
18204
|
+
* @param {vec2} a the first operand
|
|
18205
|
+
* @param {vec2} b the second operand
|
|
18206
|
+
* @returns {vec2} out
|
|
18207
|
+
*/
|
|
18208
|
+
function add$1(out, a, b) {
|
|
18209
|
+
out[0] = a[0] + b[0];
|
|
18210
|
+
out[1] = a[1] + b[1];
|
|
18211
|
+
return out
|
|
18212
|
+
}
|
|
18213
|
+
|
|
18214
|
+
var set_1 = set$1;
|
|
18215
|
+
|
|
18216
|
+
/**
|
|
18217
|
+
* Set the components of a vec2 to the given values
|
|
18218
|
+
*
|
|
18219
|
+
* @param {vec2} out the receiving vector
|
|
18220
|
+
* @param {Number} x X component
|
|
18221
|
+
* @param {Number} y Y component
|
|
18222
|
+
* @returns {vec2} out
|
|
18223
|
+
*/
|
|
18224
|
+
function set$1(out, x, y) {
|
|
18225
|
+
out[0] = x;
|
|
18226
|
+
out[1] = y;
|
|
18227
|
+
return out
|
|
18228
|
+
}
|
|
18229
|
+
|
|
18230
|
+
var normalize_1 = normalize$1;
|
|
18231
|
+
|
|
18232
|
+
/**
|
|
18233
|
+
* Normalize a vec2
|
|
18234
|
+
*
|
|
18235
|
+
* @param {vec2} out the receiving vector
|
|
18236
|
+
* @param {vec2} a vector to normalize
|
|
18237
|
+
* @returns {vec2} out
|
|
18238
|
+
*/
|
|
18239
|
+
function normalize$1(out, a) {
|
|
18240
|
+
var x = a[0],
|
|
18241
|
+
y = a[1];
|
|
18242
|
+
var len = x*x + y*y;
|
|
18243
|
+
if (len > 0) {
|
|
18244
|
+
//TODO: evaluate use of glm_invsqrt here?
|
|
18245
|
+
len = 1 / Math.sqrt(len);
|
|
18246
|
+
out[0] = a[0] * len;
|
|
18247
|
+
out[1] = a[1] * len;
|
|
18248
|
+
}
|
|
18249
|
+
return out
|
|
18250
|
+
}
|
|
18251
|
+
|
|
18252
|
+
var subtract_1 = subtract$1;
|
|
18253
|
+
|
|
18254
|
+
/**
|
|
18255
|
+
* Subtracts vector b from vector a
|
|
18256
|
+
*
|
|
18257
|
+
* @param {vec2} out the receiving vector
|
|
18258
|
+
* @param {vec2} a the first operand
|
|
18259
|
+
* @param {vec2} b the second operand
|
|
18260
|
+
* @returns {vec2} out
|
|
18261
|
+
*/
|
|
18262
|
+
function subtract$1(out, a, b) {
|
|
18263
|
+
out[0] = a[0] - b[0];
|
|
18264
|
+
out[1] = a[1] - b[1];
|
|
18265
|
+
return out
|
|
18266
|
+
}
|
|
18267
|
+
|
|
18268
|
+
var dot_1 = dot$1;
|
|
18269
|
+
|
|
18270
|
+
/**
|
|
18271
|
+
* Calculates the dot product of two vec2's
|
|
18272
|
+
*
|
|
18273
|
+
* @param {vec2} a the first operand
|
|
18274
|
+
* @param {vec2} b the second operand
|
|
18275
|
+
* @returns {Number} dot product of a and b
|
|
18276
|
+
*/
|
|
18277
|
+
function dot$1(a, b) {
|
|
18278
|
+
return a[0] * b[0] + a[1] * b[1]
|
|
18279
|
+
}
|
|
18280
|
+
|
|
18281
|
+
var add = add_1;
|
|
18282
|
+
var set = set_1;
|
|
18283
|
+
var normalize = normalize_1;
|
|
18284
|
+
var subtract = subtract_1;
|
|
18285
|
+
var dot = dot_1;
|
|
18286
|
+
|
|
18287
|
+
var tmp = [0, 0];
|
|
18288
|
+
|
|
18289
|
+
polylineMiterUtil.computeMiter = function computeMiter(tangent, miter, lineA, lineB, halfThick) {
|
|
18290
|
+
//get tangent line
|
|
18291
|
+
add(tangent, lineA, lineB);
|
|
18292
|
+
normalize(tangent, tangent);
|
|
18293
|
+
|
|
18294
|
+
//get miter as a unit vector
|
|
18295
|
+
set(miter, -tangent[1], tangent[0]);
|
|
18296
|
+
set(tmp, -lineA[1], lineA[0]);
|
|
18297
|
+
|
|
18298
|
+
//get the necessary length of our miter
|
|
18299
|
+
return halfThick / dot(miter, tmp)
|
|
18300
|
+
};
|
|
18301
|
+
|
|
18302
|
+
polylineMiterUtil.normal = function normal(out, dir) {
|
|
18303
|
+
//get perpendicular
|
|
18304
|
+
set(out, -dir[1], dir[0]);
|
|
18305
|
+
return out
|
|
18306
|
+
};
|
|
18307
|
+
|
|
18308
|
+
polylineMiterUtil.direction = function direction(out, a, b) {
|
|
18309
|
+
//get unit dir of two lines
|
|
18310
|
+
subtract(out, a, b);
|
|
18311
|
+
normalize(out, out);
|
|
18312
|
+
return out
|
|
18313
|
+
};
|
|
18314
|
+
|
|
18315
|
+
var util = polylineMiterUtil;
|
|
18316
|
+
|
|
18317
|
+
var lineA = [0, 0];
|
|
18318
|
+
var lineB = [0, 0];
|
|
18319
|
+
var tangent = [0, 0];
|
|
18320
|
+
var miter = [0, 0];
|
|
18321
|
+
|
|
18322
|
+
var polylineNormals = function(points, closed) {
|
|
18323
|
+
var curNormal = null;
|
|
18324
|
+
var out = [];
|
|
18325
|
+
if (closed) {
|
|
18326
|
+
points = points.slice();
|
|
18327
|
+
points.push(points[0]);
|
|
18328
|
+
}
|
|
18329
|
+
|
|
18330
|
+
var total = points.length;
|
|
18331
|
+
for (var i=1; i<total; i++) {
|
|
18332
|
+
var last = points[i-1];
|
|
18333
|
+
var cur = points[i];
|
|
18334
|
+
var next = i<points.length-1 ? points[i+1] : null;
|
|
18335
|
+
|
|
18336
|
+
util.direction(lineA, cur, last);
|
|
18337
|
+
if (!curNormal) {
|
|
18338
|
+
curNormal = [0, 0];
|
|
18339
|
+
util.normal(curNormal, lineA);
|
|
18340
|
+
}
|
|
18341
|
+
|
|
18342
|
+
if (i === 1) //add initial normals
|
|
18343
|
+
addNext(out, curNormal, 1);
|
|
18344
|
+
|
|
18345
|
+
if (!next) { //no miter, simple segment
|
|
18346
|
+
util.normal(curNormal, lineA); //reset normal
|
|
18347
|
+
addNext(out, curNormal, 1);
|
|
18348
|
+
} else { //miter with last
|
|
18349
|
+
//get unit dir of next line
|
|
18350
|
+
util.direction(lineB, next, cur);
|
|
18351
|
+
|
|
18352
|
+
//stores tangent & miter
|
|
18353
|
+
var miterLen = util.computeMiter(tangent, miter, lineA, lineB, 1);
|
|
18354
|
+
addNext(out, miter, miterLen);
|
|
18355
|
+
}
|
|
18356
|
+
}
|
|
18357
|
+
|
|
18358
|
+
//if the polyline is a closed loop, clean up the last normal
|
|
18359
|
+
if (points.length > 2 && closed) {
|
|
18360
|
+
var last2 = points[total-2];
|
|
18361
|
+
var cur2 = points[0];
|
|
18362
|
+
var next2 = points[1];
|
|
18363
|
+
|
|
18364
|
+
util.direction(lineA, cur2, last2);
|
|
18365
|
+
util.direction(lineB, next2, cur2);
|
|
18366
|
+
util.normal(curNormal, lineA);
|
|
18367
|
+
|
|
18368
|
+
var miterLen2 = util.computeMiter(tangent, miter, lineA, lineB, 1);
|
|
18369
|
+
out[0][0] = miter.slice();
|
|
18370
|
+
out[total-1][0] = miter.slice();
|
|
18371
|
+
out[0][1] = miterLen2;
|
|
18372
|
+
out[total-1][1] = miterLen2;
|
|
18373
|
+
out.pop();
|
|
18374
|
+
}
|
|
18375
|
+
|
|
18376
|
+
return out
|
|
18377
|
+
};
|
|
18378
|
+
|
|
18379
|
+
function addNext(out, normal, length) {
|
|
18380
|
+
out.push([[normal[0], normal[1]], length]);
|
|
18381
|
+
}
|
|
18382
|
+
|
|
18088
18383
|
// 定义常量
|
|
18089
18384
|
const TRIANGLE_NUMBER_OF_RECTANGLE = 2; // 每个矩形有两个三角形
|
|
18090
18385
|
const VERTEX_NUMBER_OF_TRIANGLE = 3; // 每个三角形有三个顶点
|
|
@@ -18202,7 +18497,7 @@ function getLineGeometry(curvePoints, unitWidth, unitHeight) {
|
|
|
18202
18497
|
const halfUnitWidth = unitWidth / 2;
|
|
18203
18498
|
const aspect = unitHeight / unitWidth; // 纵横比 height / width
|
|
18204
18499
|
const curvePointsLength = curvePoints.length;
|
|
18205
|
-
const normals =
|
|
18500
|
+
const normals = polylineNormals(curvePoints.map((p) => [p.x, p.z])); // curvePoints:每个点切线的向量「二维」
|
|
18206
18501
|
const rectangleNumber = curvePoints.length - 1; // 曲线上 N 个点,构成了 N - 1 个矩形
|
|
18207
18502
|
const indexNumber = rectangleNumber * TRIANGLE_NUMBER_OF_RECTANGLE * VERTEX_NUMBER_OF_TRIANGLE;
|
|
18208
18503
|
const verticesNumber = 2 * curvePointsLength; // 顶点数量(包含公用):每个曲线点对应两个顶点,N 个 点有 2N 个顶点
|