@realsee/dnalogel 2.1.0-alpha.10 → 2.1.0-alpha.12
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/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CruisePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CruisePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/index.js +723 -311
- package/dist/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/index.es.js +922 -510
- package/dist/index.js +922 -510
- package/dist/index.umd.js +922 -514
- 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/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +23 -51
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.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/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.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/Object3DHelperState.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 +1 -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/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/PanoTagPlugin/Components/Common/Media.js +347 -194
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +216 -0
- package/libs/PanoTagPlugin/Components/Common/Text.js +18 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -0
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +37 -17
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/libs/PanoTagPlugin/controller/TagComputer.js +14 -22
- package/libs/PanoTagPlugin/controller/index.d.ts +9 -4
- package/libs/PanoTagPlugin/controller/index.js +50 -23
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +12 -11
- package/libs/PanoTagPlugin/mocks/mock1.js +12 -7
- package/libs/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/libs/PanoTagPlugin/mocks/mock3.js +21 -22
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/libs/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/libs/PanoTagPlugin/utils/constants.js +5 -0
- package/libs/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/package.json +1 -1
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/libs/CSS3DRenderPlugin/Plugin.js +0 -182
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -18
- package/libs/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/getLineGeometry.js +0 -64
- package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +0 -159
package/dist/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var Hammer = require('hammerjs');
|
|
|
17
17
|
var classNames = require('classnames');
|
|
18
18
|
var objectAssignDeep = require('object-assign-deep');
|
|
19
19
|
var anime = require('animejs');
|
|
20
|
+
var svelte$1 = require('swiper/svelte');
|
|
21
|
+
var swiper = require('swiper');
|
|
22
|
+
require('swiper/css');
|
|
23
|
+
require('swiper/css/autoplay');
|
|
20
24
|
|
|
21
25
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
26
|
|
|
@@ -330,7 +334,7 @@ function evenNumber(num, config) {
|
|
|
330
334
|
return roundNum % 2 === 0 ? roundNum : roundNum + Number((config === null || config === void 0 ? void 0 : config.smaller) ? -1 : 1);
|
|
331
335
|
}
|
|
332
336
|
|
|
333
|
-
function random() {
|
|
337
|
+
function random$1() {
|
|
334
338
|
return Math.random().toString(36).slice(-6);
|
|
335
339
|
}
|
|
336
340
|
|
|
@@ -917,7 +921,7 @@ class CSS3DRender {
|
|
|
917
921
|
}
|
|
918
922
|
|
|
919
923
|
const VERSION$5 = 'v2.0.0';
|
|
920
|
-
const PLUGIN_NAME$4 = `CSS3DRenderPlugin-${random()}@${VERSION$5}`;
|
|
924
|
+
const PLUGIN_NAME$4 = `CSS3DRenderPlugin-${random$1()}@${VERSION$5}`;
|
|
921
925
|
class Controller$8 extends CSS3DRender {
|
|
922
926
|
constructor(five) {
|
|
923
927
|
super();
|
|
@@ -1110,11 +1114,11 @@ const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAY
|
|
|
1110
1114
|
|
|
1111
1115
|
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.50.1 */
|
|
1112
1116
|
|
|
1113
|
-
function add_css$
|
|
1117
|
+
function add_css$M(target) {
|
|
1114
1118
|
internal.append_styles(target, "svelte-1d7uzh5", ".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;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-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}");
|
|
1115
1119
|
}
|
|
1116
1120
|
|
|
1117
|
-
function create_fragment$
|
|
1121
|
+
function create_fragment$R(ctx) {
|
|
1118
1122
|
let div1;
|
|
1119
1123
|
let span;
|
|
1120
1124
|
let t0_value = /*roomLabel*/ ctx[0].name + "";
|
|
@@ -1181,7 +1185,7 @@ function create_fragment$Q(ctx) {
|
|
|
1181
1185
|
};
|
|
1182
1186
|
}
|
|
1183
1187
|
|
|
1184
|
-
function instance$
|
|
1188
|
+
function instance$R($$self, $$props, $$invalidate) {
|
|
1185
1189
|
let { five } = $$props;
|
|
1186
1190
|
let { roomLabel } = $$props;
|
|
1187
1191
|
|
|
@@ -1204,7 +1208,7 @@ function instance$Q($$self, $$props, $$invalidate) {
|
|
|
1204
1208
|
class RoomLabelItem extends internal.SvelteComponent {
|
|
1205
1209
|
constructor(options) {
|
|
1206
1210
|
super();
|
|
1207
|
-
internal.init(this, options, instance$
|
|
1211
|
+
internal.init(this, options, instance$R, create_fragment$R, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$M);
|
|
1208
1212
|
}
|
|
1209
1213
|
}
|
|
1210
1214
|
|
|
@@ -1212,7 +1216,7 @@ class RoomLabelItem extends internal.SvelteComponent {
|
|
|
1212
1216
|
|
|
1213
1217
|
const { Map: Map_1 } = internal.globals;
|
|
1214
1218
|
|
|
1215
|
-
function add_css$
|
|
1219
|
+
function add_css$L(target) {
|
|
1216
1220
|
internal.append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
1217
1221
|
}
|
|
1218
1222
|
|
|
@@ -1271,7 +1275,7 @@ function create_each_block$i(key_1, ctx) {
|
|
|
1271
1275
|
};
|
|
1272
1276
|
}
|
|
1273
1277
|
|
|
1274
|
-
function create_fragment$
|
|
1278
|
+
function create_fragment$Q(ctx) {
|
|
1275
1279
|
let div;
|
|
1276
1280
|
let each_blocks = [];
|
|
1277
1281
|
let each_1_lookup = new Map_1();
|
|
@@ -1343,7 +1347,7 @@ function create_fragment$P(ctx) {
|
|
|
1343
1347
|
};
|
|
1344
1348
|
}
|
|
1345
1349
|
|
|
1346
|
-
function instance$
|
|
1350
|
+
function instance$Q($$self, $$props, $$invalidate) {
|
|
1347
1351
|
let rendererSize;
|
|
1348
1352
|
let { five } = $$props;
|
|
1349
1353
|
let { roomLabels } = $$props;
|
|
@@ -1468,7 +1472,7 @@ function instance$P($$self, $$props, $$invalidate) {
|
|
|
1468
1472
|
class RoomLabelItems extends internal.SvelteComponent {
|
|
1469
1473
|
constructor(options) {
|
|
1470
1474
|
super();
|
|
1471
|
-
internal.init(this, options, instance$
|
|
1475
|
+
internal.init(this, options, instance$Q, create_fragment$Q, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$L);
|
|
1472
1476
|
}
|
|
1473
1477
|
}
|
|
1474
1478
|
|
|
@@ -1774,11 +1778,11 @@ function rad2Deg$1(rad) {
|
|
|
1774
1778
|
|
|
1775
1779
|
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.50.1 */
|
|
1776
1780
|
|
|
1777
|
-
function add_css$
|
|
1781
|
+
function add_css$K(target) {
|
|
1778
1782
|
internal.append_styles(target, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
1779
1783
|
}
|
|
1780
1784
|
|
|
1781
|
-
function create_fragment$
|
|
1785
|
+
function create_fragment$P(ctx) {
|
|
1782
1786
|
let div1;
|
|
1783
1787
|
let div0;
|
|
1784
1788
|
|
|
@@ -1815,7 +1819,7 @@ function create_fragment$O(ctx) {
|
|
|
1815
1819
|
};
|
|
1816
1820
|
}
|
|
1817
1821
|
|
|
1818
|
-
function instance$
|
|
1822
|
+
function instance$P($$self, $$props, $$invalidate) {
|
|
1819
1823
|
let { panoIndex } = $$props;
|
|
1820
1824
|
let { floorplanData } = $$props;
|
|
1821
1825
|
let { lastPanoramaLongitude } = $$props;
|
|
@@ -1861,8 +1865,8 @@ class Camera$1 extends internal.SvelteComponent {
|
|
|
1861
1865
|
internal.init(
|
|
1862
1866
|
this,
|
|
1863
1867
|
options,
|
|
1864
|
-
instance$
|
|
1865
|
-
create_fragment$
|
|
1868
|
+
instance$P,
|
|
1869
|
+
create_fragment$P,
|
|
1866
1870
|
internal.safe_not_equal,
|
|
1867
1871
|
{
|
|
1868
1872
|
panoIndex: 5,
|
|
@@ -1870,7 +1874,7 @@ class Camera$1 extends internal.SvelteComponent {
|
|
|
1870
1874
|
lastPanoramaLongitude: 7,
|
|
1871
1875
|
cameraImageUrl: 0
|
|
1872
1876
|
},
|
|
1873
|
-
add_css$
|
|
1877
|
+
add_css$K
|
|
1874
1878
|
);
|
|
1875
1879
|
}
|
|
1876
1880
|
}
|
|
@@ -1879,12 +1883,12 @@ const COMPASS_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAM
|
|
|
1879
1883
|
|
|
1880
1884
|
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.50.1 */
|
|
1881
1885
|
|
|
1882
|
-
function add_css$
|
|
1886
|
+
function add_css$J(target) {
|
|
1883
1887
|
internal.append_styles(target, "svelte-rpkaro", ".floorplan-plugin__compass.svelte-rpkaro{position:absolute;left:50%;top:-2.875rem;width:14.4375rem;height:2.5625rem;will-change:opacity;transform-origin:center 11.5rem}.floorplan-plugin__compass-image.svelte-rpkaro{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-rpkaro{position:absolute;left:50%;top:0.9375rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.625rem;color:#fff}");
|
|
1884
1888
|
}
|
|
1885
1889
|
|
|
1886
1890
|
// (14:0) {#if canCompassShow}
|
|
1887
|
-
function create_if_block$
|
|
1891
|
+
function create_if_block$t(ctx) {
|
|
1888
1892
|
let div1;
|
|
1889
1893
|
let div0;
|
|
1890
1894
|
let t0;
|
|
@@ -1920,9 +1924,9 @@ function create_if_block$s(ctx) {
|
|
|
1920
1924
|
};
|
|
1921
1925
|
}
|
|
1922
1926
|
|
|
1923
|
-
function create_fragment$
|
|
1927
|
+
function create_fragment$O(ctx) {
|
|
1924
1928
|
let if_block_anchor;
|
|
1925
|
-
let if_block = /*canCompassShow*/ ctx[1] && create_if_block$
|
|
1929
|
+
let if_block = /*canCompassShow*/ ctx[1] && create_if_block$t(ctx);
|
|
1926
1930
|
|
|
1927
1931
|
return {
|
|
1928
1932
|
c() {
|
|
@@ -1949,7 +1953,7 @@ function rad2Deg(rad) {
|
|
|
1949
1953
|
return rad / Math.PI * 180;
|
|
1950
1954
|
}
|
|
1951
1955
|
|
|
1952
|
-
function instance$
|
|
1956
|
+
function instance$O($$self, $$props, $$invalidate) {
|
|
1953
1957
|
var _a;
|
|
1954
1958
|
let { floorplanData } = $$props;
|
|
1955
1959
|
let { northDesc } = $$props;
|
|
@@ -1973,17 +1977,17 @@ function instance$N($$self, $$props, $$invalidate) {
|
|
|
1973
1977
|
class Compass extends internal.SvelteComponent {
|
|
1974
1978
|
constructor(options) {
|
|
1975
1979
|
super();
|
|
1976
|
-
internal.init(this, options, instance$
|
|
1980
|
+
internal.init(this, options, instance$O, create_fragment$O, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$J);
|
|
1977
1981
|
}
|
|
1978
1982
|
}
|
|
1979
1983
|
|
|
1980
1984
|
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.50.1 */
|
|
1981
1985
|
|
|
1982
|
-
function add_css$
|
|
1986
|
+
function add_css$I(target) {
|
|
1983
1987
|
internal.append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
1984
1988
|
}
|
|
1985
1989
|
|
|
1986
|
-
function create_fragment$
|
|
1990
|
+
function create_fragment$N(ctx) {
|
|
1987
1991
|
let img;
|
|
1988
1992
|
let img_src_value;
|
|
1989
1993
|
|
|
@@ -2010,7 +2014,7 @@ function create_fragment$M(ctx) {
|
|
|
2010
2014
|
};
|
|
2011
2015
|
}
|
|
2012
2016
|
|
|
2013
|
-
function instance$
|
|
2017
|
+
function instance$N($$self, $$props, $$invalidate) {
|
|
2014
2018
|
let { url } = $$props;
|
|
2015
2019
|
|
|
2016
2020
|
$$self.$$set = $$props => {
|
|
@@ -2023,17 +2027,17 @@ function instance$M($$self, $$props, $$invalidate) {
|
|
|
2023
2027
|
class Normalmage extends internal.SvelteComponent {
|
|
2024
2028
|
constructor(options) {
|
|
2025
2029
|
super();
|
|
2026
|
-
internal.init(this, options, instance$
|
|
2030
|
+
internal.init(this, options, instance$N, create_fragment$N, internal.safe_not_equal, { url: 0 }, add_css$I);
|
|
2027
2031
|
}
|
|
2028
2032
|
}
|
|
2029
2033
|
|
|
2030
2034
|
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.50.1 */
|
|
2031
2035
|
|
|
2032
|
-
function add_css$
|
|
2036
|
+
function add_css$H(target) {
|
|
2033
2037
|
internal.append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
2034
2038
|
}
|
|
2035
2039
|
|
|
2036
|
-
function create_fragment$
|
|
2040
|
+
function create_fragment$M(ctx) {
|
|
2037
2041
|
let div;
|
|
2038
2042
|
let html_tag;
|
|
2039
2043
|
let t;
|
|
@@ -2066,7 +2070,7 @@ function create_fragment$L(ctx) {
|
|
|
2066
2070
|
};
|
|
2067
2071
|
}
|
|
2068
2072
|
|
|
2069
|
-
function instance$
|
|
2073
|
+
function instance$M($$self, $$props, $$invalidate) {
|
|
2070
2074
|
let { content } = $$props;
|
|
2071
2075
|
|
|
2072
2076
|
const svgStyle = `
|
|
@@ -2090,18 +2094,18 @@ function instance$L($$self, $$props, $$invalidate) {
|
|
|
2090
2094
|
class SvgImage extends internal.SvelteComponent {
|
|
2091
2095
|
constructor(options) {
|
|
2092
2096
|
super();
|
|
2093
|
-
internal.init(this, options, instance$
|
|
2097
|
+
internal.init(this, options, instance$M, create_fragment$M, internal.safe_not_equal, { content: 0 }, add_css$H);
|
|
2094
2098
|
}
|
|
2095
2099
|
}
|
|
2096
2100
|
|
|
2097
2101
|
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.50.1 */
|
|
2098
2102
|
|
|
2099
|
-
function add_css$
|
|
2103
|
+
function add_css$G(target) {
|
|
2100
2104
|
internal.append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
2101
2105
|
}
|
|
2102
2106
|
|
|
2103
2107
|
// (13:22)
|
|
2104
|
-
function create_if_block_1$
|
|
2108
|
+
function create_if_block_1$e(ctx) {
|
|
2105
2109
|
let normalimage;
|
|
2106
2110
|
let current;
|
|
2107
2111
|
normalimage = new Normalmage({ props: { url: /*imageData*/ ctx[1].url } });
|
|
@@ -2135,7 +2139,7 @@ function create_if_block_1$d(ctx) {
|
|
|
2135
2139
|
}
|
|
2136
2140
|
|
|
2137
2141
|
// (11:2) {#if svgContent}
|
|
2138
|
-
function create_if_block$
|
|
2142
|
+
function create_if_block$s(ctx) {
|
|
2139
2143
|
let svgimage;
|
|
2140
2144
|
let current;
|
|
2141
2145
|
|
|
@@ -2171,12 +2175,12 @@ function create_if_block$r(ctx) {
|
|
|
2171
2175
|
};
|
|
2172
2176
|
}
|
|
2173
2177
|
|
|
2174
|
-
function create_fragment$
|
|
2178
|
+
function create_fragment$L(ctx) {
|
|
2175
2179
|
let div;
|
|
2176
2180
|
let current_block_type_index;
|
|
2177
2181
|
let if_block;
|
|
2178
2182
|
let current;
|
|
2179
|
-
const if_block_creators = [create_if_block$
|
|
2183
|
+
const if_block_creators = [create_if_block$s, create_if_block_1$e];
|
|
2180
2184
|
const if_blocks = [];
|
|
2181
2185
|
|
|
2182
2186
|
function select_block_type(ctx, dirty) {
|
|
@@ -2259,7 +2263,7 @@ function create_fragment$K(ctx) {
|
|
|
2259
2263
|
};
|
|
2260
2264
|
}
|
|
2261
2265
|
|
|
2262
|
-
function instance$
|
|
2266
|
+
function instance$L($$self, $$props, $$invalidate) {
|
|
2263
2267
|
let imageData;
|
|
2264
2268
|
let svgContent;
|
|
2265
2269
|
var _a, _b;
|
|
@@ -2291,18 +2295,18 @@ function instance$K($$self, $$props, $$invalidate) {
|
|
|
2291
2295
|
class BaseImage extends internal.SvelteComponent {
|
|
2292
2296
|
constructor(options) {
|
|
2293
2297
|
super();
|
|
2294
|
-
internal.init(this, options, instance$
|
|
2298
|
+
internal.init(this, options, instance$L, create_fragment$L, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$G);
|
|
2295
2299
|
}
|
|
2296
2300
|
}
|
|
2297
2301
|
|
|
2298
2302
|
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.50.1 */
|
|
2299
2303
|
|
|
2300
|
-
function add_css$
|
|
2304
|
+
function add_css$F(target) {
|
|
2301
2305
|
internal.append_styles(target, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
|
|
2302
2306
|
}
|
|
2303
2307
|
|
|
2304
2308
|
// (95:30)
|
|
2305
|
-
function create_if_block_1$
|
|
2309
|
+
function create_if_block_1$d(ctx) {
|
|
2306
2310
|
let html_tag;
|
|
2307
2311
|
let raw_value = /*userConfigElement*/ ctx[4].outerHTML + "";
|
|
2308
2312
|
let html_anchor;
|
|
@@ -2328,7 +2332,7 @@ function create_if_block_1$c(ctx) {
|
|
|
2328
2332
|
}
|
|
2329
2333
|
|
|
2330
2334
|
// (89:2) {#if getLabelElement === undefined}
|
|
2331
|
-
function create_if_block$
|
|
2335
|
+
function create_if_block$r(ctx) {
|
|
2332
2336
|
let span0;
|
|
2333
2337
|
let t0_value = /*room*/ ctx[0].name + "";
|
|
2334
2338
|
let t0;
|
|
@@ -2362,12 +2366,12 @@ function create_if_block$q(ctx) {
|
|
|
2362
2366
|
};
|
|
2363
2367
|
}
|
|
2364
2368
|
|
|
2365
|
-
function create_fragment$
|
|
2369
|
+
function create_fragment$K(ctx) {
|
|
2366
2370
|
let div;
|
|
2367
2371
|
|
|
2368
2372
|
function select_block_type(ctx, dirty) {
|
|
2369
|
-
if (/*getLabelElement*/ ctx[1] === undefined) return create_if_block$
|
|
2370
|
-
if (/*userConfigElement*/ ctx[4]) return create_if_block_1$
|
|
2373
|
+
if (/*getLabelElement*/ ctx[1] === undefined) return create_if_block$r;
|
|
2374
|
+
if (/*userConfigElement*/ ctx[4]) return create_if_block_1$d;
|
|
2371
2375
|
}
|
|
2372
2376
|
|
|
2373
2377
|
let current_block_type = select_block_type(ctx);
|
|
@@ -2436,7 +2440,7 @@ function isPointInPolygon(point, polygon) {
|
|
|
2436
2440
|
return inside;
|
|
2437
2441
|
}
|
|
2438
2442
|
|
|
2439
|
-
function instance$
|
|
2443
|
+
function instance$K($$self, $$props, $$invalidate) {
|
|
2440
2444
|
let isLabelInRoom;
|
|
2441
2445
|
let userConfigElement;
|
|
2442
2446
|
let labelVisible;
|
|
@@ -2580,8 +2584,8 @@ class RoomLabel extends internal.SvelteComponent {
|
|
|
2580
2584
|
internal.init(
|
|
2581
2585
|
this,
|
|
2582
2586
|
options,
|
|
2583
|
-
instance$
|
|
2584
|
-
create_fragment$
|
|
2587
|
+
instance$K,
|
|
2588
|
+
create_fragment$K,
|
|
2585
2589
|
internal.safe_not_equal,
|
|
2586
2590
|
{
|
|
2587
2591
|
pxmm: 9,
|
|
@@ -2590,14 +2594,14 @@ class RoomLabel extends internal.SvelteComponent {
|
|
|
2590
2594
|
getLabelElement: 1,
|
|
2591
2595
|
adaptiveRoomLabelVisibleEnable: 11
|
|
2592
2596
|
},
|
|
2593
|
-
add_css$
|
|
2597
|
+
add_css$F
|
|
2594
2598
|
);
|
|
2595
2599
|
}
|
|
2596
2600
|
}
|
|
2597
2601
|
|
|
2598
2602
|
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.50.1 */
|
|
2599
2603
|
|
|
2600
|
-
function add_css$
|
|
2604
|
+
function add_css$E(target) {
|
|
2601
2605
|
internal.append_styles(target, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
2602
2606
|
}
|
|
2603
2607
|
|
|
@@ -2608,7 +2612,7 @@ function get_each_context$h(ctx, list, i) {
|
|
|
2608
2612
|
}
|
|
2609
2613
|
|
|
2610
2614
|
// (17:0) {#if rooms}
|
|
2611
|
-
function create_if_block$
|
|
2615
|
+
function create_if_block$q(ctx) {
|
|
2612
2616
|
let div;
|
|
2613
2617
|
let each_blocks = [];
|
|
2614
2618
|
let each_1_lookup = new Map();
|
|
@@ -2750,10 +2754,10 @@ function create_each_block$h(key_1, ctx) {
|
|
|
2750
2754
|
};
|
|
2751
2755
|
}
|
|
2752
2756
|
|
|
2753
|
-
function create_fragment$
|
|
2757
|
+
function create_fragment$J(ctx) {
|
|
2754
2758
|
let if_block_anchor;
|
|
2755
2759
|
let current;
|
|
2756
|
-
let if_block = /*rooms*/ ctx[5] && create_if_block$
|
|
2760
|
+
let if_block = /*rooms*/ ctx[5] && create_if_block$q(ctx);
|
|
2757
2761
|
|
|
2758
2762
|
return {
|
|
2759
2763
|
c() {
|
|
@@ -2774,7 +2778,7 @@ function create_fragment$I(ctx) {
|
|
|
2774
2778
|
internal.transition_in(if_block, 1);
|
|
2775
2779
|
}
|
|
2776
2780
|
} else {
|
|
2777
|
-
if_block = create_if_block$
|
|
2781
|
+
if_block = create_if_block$q(ctx);
|
|
2778
2782
|
if_block.c();
|
|
2779
2783
|
internal.transition_in(if_block, 1);
|
|
2780
2784
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2805,7 +2809,7 @@ function create_fragment$I(ctx) {
|
|
|
2805
2809
|
};
|
|
2806
2810
|
}
|
|
2807
2811
|
|
|
2808
|
-
function instance$
|
|
2812
|
+
function instance$J($$self, $$props, $$invalidate) {
|
|
2809
2813
|
let rooms;
|
|
2810
2814
|
let { floorIndex } = $$props;
|
|
2811
2815
|
let { floorplanData } = $$props;
|
|
@@ -2862,8 +2866,8 @@ class RoomLabels extends internal.SvelteComponent {
|
|
|
2862
2866
|
internal.init(
|
|
2863
2867
|
this,
|
|
2864
2868
|
options,
|
|
2865
|
-
instance$
|
|
2866
|
-
create_fragment$
|
|
2869
|
+
instance$J,
|
|
2870
|
+
create_fragment$J,
|
|
2867
2871
|
internal.safe_not_equal,
|
|
2868
2872
|
{
|
|
2869
2873
|
floorIndex: 6,
|
|
@@ -2872,14 +2876,14 @@ class RoomLabels extends internal.SvelteComponent {
|
|
|
2872
2876
|
getLabelElement: 1,
|
|
2873
2877
|
adaptiveRoomLabelVisibleEnable: 2
|
|
2874
2878
|
},
|
|
2875
|
-
add_css$
|
|
2879
|
+
add_css$E
|
|
2876
2880
|
);
|
|
2877
2881
|
}
|
|
2878
2882
|
}
|
|
2879
2883
|
|
|
2880
2884
|
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.50.1 */
|
|
2881
2885
|
|
|
2882
|
-
function add_css$
|
|
2886
|
+
function add_css$D(target) {
|
|
2883
2887
|
internal.append_styles(target, "svelte-xt7p1v", ".floorplan-plugin__rule-labels.svelte-xt7p1v.svelte-xt7p1v{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-xt7p1v.svelte-xt7p1v{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v.svelte-xt7p1v{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v.svelte-xt7p1v{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v.svelte-xt7p1v{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-xt7p1v.svelte-xt7p1v{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-xt7p1v.svelte-xt7p1v{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale.svelte-xt7p1v{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute}.floorplan-plugin__rule-labels--top.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-xt7p1v.svelte-xt7p1v{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-text-item.svelte-xt7p1v{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-xt7p1v.svelte-xt7p1v{width:-webkit-max-content;width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
|
|
2884
2888
|
}
|
|
2885
2889
|
|
|
@@ -2955,7 +2959,7 @@ function create_each_block$g(key_1, ctx) {
|
|
|
2955
2959
|
};
|
|
2956
2960
|
}
|
|
2957
2961
|
|
|
2958
|
-
function create_fragment$
|
|
2962
|
+
function create_fragment$I(ctx) {
|
|
2959
2963
|
let div3;
|
|
2960
2964
|
let div0;
|
|
2961
2965
|
let t0;
|
|
@@ -3078,7 +3082,7 @@ function create_fragment$H(ctx) {
|
|
|
3078
3082
|
const padding$1 = 1000;
|
|
3079
3083
|
const exteriorWallOffset$1 = 180;
|
|
3080
3084
|
|
|
3081
|
-
function instance$
|
|
3085
|
+
function instance$I($$self, $$props, $$invalidate) {
|
|
3082
3086
|
let { type } = $$props;
|
|
3083
3087
|
let { data } = $$props;
|
|
3084
3088
|
let { bounding } = $$props;
|
|
@@ -3137,13 +3141,13 @@ function instance$H($$self, $$props, $$invalidate) {
|
|
|
3137
3141
|
class RuleItem extends internal.SvelteComponent {
|
|
3138
3142
|
constructor(options) {
|
|
3139
3143
|
super();
|
|
3140
|
-
internal.init(this, options, instance$
|
|
3144
|
+
internal.init(this, options, instance$I, create_fragment$I, internal.safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$D);
|
|
3141
3145
|
}
|
|
3142
3146
|
}
|
|
3143
3147
|
|
|
3144
3148
|
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.50.1 */
|
|
3145
3149
|
|
|
3146
|
-
function add_css$
|
|
3150
|
+
function add_css$C(target) {
|
|
3147
3151
|
internal.append_styles(target, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
|
|
3148
3152
|
}
|
|
3149
3153
|
|
|
@@ -3220,7 +3224,7 @@ function create_each_block$f(key_1, ctx) {
|
|
|
3220
3224
|
};
|
|
3221
3225
|
}
|
|
3222
3226
|
|
|
3223
|
-
function create_fragment$
|
|
3227
|
+
function create_fragment$H(ctx) {
|
|
3224
3228
|
let div;
|
|
3225
3229
|
let each_blocks = [];
|
|
3226
3230
|
let each_1_lookup = new Map();
|
|
@@ -3300,7 +3304,7 @@ function create_fragment$G(ctx) {
|
|
|
3300
3304
|
const padding = 1000;
|
|
3301
3305
|
const exteriorWallOffset = 180;
|
|
3302
3306
|
|
|
3303
|
-
function instance$
|
|
3307
|
+
function instance$H($$self, $$props, $$invalidate) {
|
|
3304
3308
|
let bounding;
|
|
3305
3309
|
let ruleLabelData;
|
|
3306
3310
|
let ruleLabelDataKeys;
|
|
@@ -3380,7 +3384,7 @@ function instance$G($$self, $$props, $$invalidate) {
|
|
|
3380
3384
|
class RuleLabels extends internal.SvelteComponent {
|
|
3381
3385
|
constructor(options) {
|
|
3382
3386
|
super();
|
|
3383
|
-
internal.init(this, options, instance$
|
|
3387
|
+
internal.init(this, options, instance$H, create_fragment$H, internal.safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$C);
|
|
3384
3388
|
}
|
|
3385
3389
|
}
|
|
3386
3390
|
|
|
@@ -3437,7 +3441,7 @@ function getFloorIndexFromModelPosition(position, five) {
|
|
|
3437
3441
|
|
|
3438
3442
|
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.50.1 */
|
|
3439
3443
|
|
|
3440
|
-
function create_fragment$
|
|
3444
|
+
function create_fragment$G(ctx) {
|
|
3441
3445
|
let path_1;
|
|
3442
3446
|
|
|
3443
3447
|
return {
|
|
@@ -3462,7 +3466,7 @@ function create_fragment$F(ctx) {
|
|
|
3462
3466
|
};
|
|
3463
3467
|
}
|
|
3464
3468
|
|
|
3465
|
-
function instance$
|
|
3469
|
+
function instance$G($$self, $$props, $$invalidate) {
|
|
3466
3470
|
let d;
|
|
3467
3471
|
let { path } = $$props;
|
|
3468
3472
|
|
|
@@ -3482,13 +3486,13 @@ function instance$F($$self, $$props, $$invalidate) {
|
|
|
3482
3486
|
class RoomMaterial_0 extends internal.SvelteComponent {
|
|
3483
3487
|
constructor(options) {
|
|
3484
3488
|
super();
|
|
3485
|
-
internal.init(this, options, instance$
|
|
3489
|
+
internal.init(this, options, instance$G, create_fragment$G, internal.safe_not_equal, { path: 1 });
|
|
3486
3490
|
}
|
|
3487
3491
|
}
|
|
3488
3492
|
|
|
3489
3493
|
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.50.1 */
|
|
3490
3494
|
|
|
3491
|
-
function create_fragment$
|
|
3495
|
+
function create_fragment$F(ctx) {
|
|
3492
3496
|
let defs;
|
|
3493
3497
|
let pattern;
|
|
3494
3498
|
let rect;
|
|
@@ -3549,7 +3553,7 @@ function create_fragment$E(ctx) {
|
|
|
3549
3553
|
|
|
3550
3554
|
const halfWidth = 6;
|
|
3551
3555
|
|
|
3552
|
-
function instance$
|
|
3556
|
+
function instance$F($$self, $$props, $$invalidate) {
|
|
3553
3557
|
let d;
|
|
3554
3558
|
let { path } = $$props;
|
|
3555
3559
|
const width = halfWidth * 2;
|
|
@@ -3571,13 +3575,13 @@ function instance$E($$self, $$props, $$invalidate) {
|
|
|
3571
3575
|
class RoomMaterial_1 extends internal.SvelteComponent {
|
|
3572
3576
|
constructor(options) {
|
|
3573
3577
|
super();
|
|
3574
|
-
internal.init(this, options, instance$
|
|
3578
|
+
internal.init(this, options, instance$F, create_fragment$F, internal.safe_not_equal, { path: 3 });
|
|
3575
3579
|
}
|
|
3576
3580
|
}
|
|
3577
3581
|
|
|
3578
3582
|
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.50.1 */
|
|
3579
3583
|
|
|
3580
|
-
function create_fragment$
|
|
3584
|
+
function create_fragment$E(ctx) {
|
|
3581
3585
|
let defs;
|
|
3582
3586
|
let pattern0;
|
|
3583
3587
|
let rect0;
|
|
@@ -3678,7 +3682,7 @@ function create_fragment$D(ctx) {
|
|
|
3678
3682
|
};
|
|
3679
3683
|
}
|
|
3680
3684
|
|
|
3681
|
-
function instance$
|
|
3685
|
+
function instance$E($$self, $$props, $$invalidate) {
|
|
3682
3686
|
let d;
|
|
3683
3687
|
let { path } = $$props;
|
|
3684
3688
|
|
|
@@ -3698,13 +3702,13 @@ function instance$D($$self, $$props, $$invalidate) {
|
|
|
3698
3702
|
class RoomMaterial_2 extends internal.SvelteComponent {
|
|
3699
3703
|
constructor(options) {
|
|
3700
3704
|
super();
|
|
3701
|
-
internal.init(this, options, instance$
|
|
3705
|
+
internal.init(this, options, instance$E, create_fragment$E, internal.safe_not_equal, { path: 1 });
|
|
3702
3706
|
}
|
|
3703
3707
|
}
|
|
3704
3708
|
|
|
3705
3709
|
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.50.1 */
|
|
3706
3710
|
|
|
3707
|
-
function add_css$
|
|
3711
|
+
function add_css$B(target) {
|
|
3708
3712
|
internal.append_styles(target, "svelte-1dykexu", ".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}");
|
|
3709
3713
|
}
|
|
3710
3714
|
|
|
@@ -3715,7 +3719,7 @@ function get_each_context$e(ctx, list, i) {
|
|
|
3715
3719
|
}
|
|
3716
3720
|
|
|
3717
3721
|
// (19:6) {:else}
|
|
3718
|
-
function create_else_block$
|
|
3722
|
+
function create_else_block$4(ctx) {
|
|
3719
3723
|
let roommaterial_1;
|
|
3720
3724
|
let current;
|
|
3721
3725
|
roommaterial_1 = new RoomMaterial_1({ props: { path: /*room*/ ctx[5].path } });
|
|
@@ -3749,7 +3753,7 @@ function create_else_block$3(ctx) {
|
|
|
3749
3753
|
}
|
|
3750
3754
|
|
|
3751
3755
|
// (17:37)
|
|
3752
|
-
function create_if_block_1$
|
|
3756
|
+
function create_if_block_1$c(ctx) {
|
|
3753
3757
|
let roommaterial_2;
|
|
3754
3758
|
let current;
|
|
3755
3759
|
roommaterial_2 = new RoomMaterial_2({ props: { path: /*room*/ ctx[5].path } });
|
|
@@ -3783,7 +3787,7 @@ function create_if_block_1$b(ctx) {
|
|
|
3783
3787
|
}
|
|
3784
3788
|
|
|
3785
3789
|
// (15:6) {#if room.floorType === 1}
|
|
3786
|
-
function create_if_block$
|
|
3790
|
+
function create_if_block$p(ctx) {
|
|
3787
3791
|
let roommaterial_0;
|
|
3788
3792
|
let current;
|
|
3789
3793
|
roommaterial_0 = new RoomMaterial_0({ props: { path: /*room*/ ctx[5].path } });
|
|
@@ -3822,7 +3826,7 @@ function create_each_block$e(ctx) {
|
|
|
3822
3826
|
let current_block_type_index;
|
|
3823
3827
|
let if_block;
|
|
3824
3828
|
let current;
|
|
3825
|
-
const if_block_creators = [create_if_block$
|
|
3829
|
+
const if_block_creators = [create_if_block$p, create_if_block_1$c, create_else_block$4];
|
|
3826
3830
|
const if_blocks = [];
|
|
3827
3831
|
|
|
3828
3832
|
function select_block_type(ctx, dirty) {
|
|
@@ -3891,7 +3895,7 @@ function create_each_block$e(ctx) {
|
|
|
3891
3895
|
};
|
|
3892
3896
|
}
|
|
3893
3897
|
|
|
3894
|
-
function create_fragment$
|
|
3898
|
+
function create_fragment$D(ctx) {
|
|
3895
3899
|
let div;
|
|
3896
3900
|
let current;
|
|
3897
3901
|
let each_value = /*rooms*/ ctx[0];
|
|
@@ -3977,7 +3981,7 @@ function create_fragment$C(ctx) {
|
|
|
3977
3981
|
};
|
|
3978
3982
|
}
|
|
3979
3983
|
|
|
3980
|
-
function instance$
|
|
3984
|
+
function instance$D($$self, $$props, $$invalidate) {
|
|
3981
3985
|
let rooms;
|
|
3982
3986
|
let { floorIndex } = $$props;
|
|
3983
3987
|
let { floorplanData } = $$props;
|
|
@@ -4003,17 +4007,17 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
4003
4007
|
class RoomMaterial extends internal.SvelteComponent {
|
|
4004
4008
|
constructor(options) {
|
|
4005
4009
|
super();
|
|
4006
|
-
internal.init(this, options, instance$
|
|
4010
|
+
internal.init(this, options, instance$D, create_fragment$D, internal.safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$B);
|
|
4007
4011
|
}
|
|
4008
4012
|
}
|
|
4009
4013
|
|
|
4010
4014
|
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.50.1 */
|
|
4011
4015
|
|
|
4012
|
-
function add_css$
|
|
4016
|
+
function add_css$A(target) {
|
|
4013
4017
|
internal.append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
4014
4018
|
}
|
|
4015
4019
|
|
|
4016
|
-
function create_fragment$
|
|
4020
|
+
function create_fragment$C(ctx) {
|
|
4017
4021
|
let path;
|
|
4018
4022
|
let mounted;
|
|
4019
4023
|
let dispose;
|
|
@@ -4048,7 +4052,7 @@ function create_fragment$B(ctx) {
|
|
|
4048
4052
|
};
|
|
4049
4053
|
}
|
|
4050
4054
|
|
|
4051
|
-
function instance$
|
|
4055
|
+
function instance$C($$self, $$props, $$invalidate) {
|
|
4052
4056
|
let { room } = $$props;
|
|
4053
4057
|
let { floorplanData } = $$props;
|
|
4054
4058
|
let { hoveredRoom } = $$props;
|
|
@@ -4084,22 +4088,22 @@ class Room extends internal.SvelteComponent {
|
|
|
4084
4088
|
internal.init(
|
|
4085
4089
|
this,
|
|
4086
4090
|
options,
|
|
4087
|
-
instance$
|
|
4088
|
-
create_fragment$
|
|
4091
|
+
instance$C,
|
|
4092
|
+
create_fragment$C,
|
|
4089
4093
|
internal.safe_not_equal,
|
|
4090
4094
|
{
|
|
4091
4095
|
room: 3,
|
|
4092
4096
|
floorplanData: 4,
|
|
4093
4097
|
hoveredRoom: 5
|
|
4094
4098
|
},
|
|
4095
|
-
add_css$
|
|
4099
|
+
add_css$A
|
|
4096
4100
|
);
|
|
4097
4101
|
}
|
|
4098
4102
|
}
|
|
4099
4103
|
|
|
4100
4104
|
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.50.1 */
|
|
4101
4105
|
|
|
4102
|
-
function add_css$
|
|
4106
|
+
function add_css$z(target) {
|
|
4103
4107
|
internal.append_styles(target, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
|
|
4104
4108
|
}
|
|
4105
4109
|
|
|
@@ -4175,7 +4179,7 @@ function create_each_block$d(key_1, ctx) {
|
|
|
4175
4179
|
};
|
|
4176
4180
|
}
|
|
4177
4181
|
|
|
4178
|
-
function create_fragment$
|
|
4182
|
+
function create_fragment$B(ctx) {
|
|
4179
4183
|
let div;
|
|
4180
4184
|
let svg;
|
|
4181
4185
|
let each_blocks = [];
|
|
@@ -4249,7 +4253,7 @@ function create_fragment$A(ctx) {
|
|
|
4249
4253
|
};
|
|
4250
4254
|
}
|
|
4251
4255
|
|
|
4252
|
-
function instance$
|
|
4256
|
+
function instance$B($$self, $$props, $$invalidate) {
|
|
4253
4257
|
let { floorIndex } = $$props;
|
|
4254
4258
|
let { floorplanData } = $$props;
|
|
4255
4259
|
let { hoveredRoom } = $$props;
|
|
@@ -4272,22 +4276,22 @@ class RoomHighlight extends internal.SvelteComponent {
|
|
|
4272
4276
|
internal.init(
|
|
4273
4277
|
this,
|
|
4274
4278
|
options,
|
|
4275
|
-
instance$
|
|
4276
|
-
create_fragment$
|
|
4279
|
+
instance$B,
|
|
4280
|
+
create_fragment$B,
|
|
4277
4281
|
internal.safe_not_equal,
|
|
4278
4282
|
{
|
|
4279
4283
|
floorIndex: 0,
|
|
4280
4284
|
floorplanData: 1,
|
|
4281
4285
|
hoveredRoom: 2
|
|
4282
4286
|
},
|
|
4283
|
-
add_css$
|
|
4287
|
+
add_css$z
|
|
4284
4288
|
);
|
|
4285
4289
|
}
|
|
4286
4290
|
}
|
|
4287
4291
|
|
|
4288
4292
|
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.50.1 */
|
|
4289
4293
|
|
|
4290
|
-
function add_css$
|
|
4294
|
+
function add_css$y(target) {
|
|
4291
4295
|
internal.append_styles(target, "svelte-bl8zrz", ".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}");
|
|
4292
4296
|
}
|
|
4293
4297
|
|
|
@@ -4349,7 +4353,7 @@ function create_if_block_2$4(ctx) {
|
|
|
4349
4353
|
}
|
|
4350
4354
|
|
|
4351
4355
|
// (24:2) {#if roomLabelsEnable}
|
|
4352
|
-
function create_if_block_1$
|
|
4356
|
+
function create_if_block_1$b(ctx) {
|
|
4353
4357
|
let roomlabels;
|
|
4354
4358
|
let current;
|
|
4355
4359
|
|
|
@@ -4410,7 +4414,7 @@ function create_if_block_1$a(ctx) {
|
|
|
4410
4414
|
}
|
|
4411
4415
|
|
|
4412
4416
|
// (27:2) {#if ruleLabelsEnable}
|
|
4413
|
-
function create_if_block$
|
|
4417
|
+
function create_if_block$o(ctx) {
|
|
4414
4418
|
let rulelabels;
|
|
4415
4419
|
let current;
|
|
4416
4420
|
|
|
@@ -4464,7 +4468,7 @@ function create_if_block$n(ctx) {
|
|
|
4464
4468
|
};
|
|
4465
4469
|
}
|
|
4466
4470
|
|
|
4467
|
-
function create_fragment$
|
|
4471
|
+
function create_fragment$A(ctx) {
|
|
4468
4472
|
let div;
|
|
4469
4473
|
let roommaterial;
|
|
4470
4474
|
let t0;
|
|
@@ -4505,8 +4509,8 @@ function create_fragment$z(ctx) {
|
|
|
4505
4509
|
}
|
|
4506
4510
|
|
|
4507
4511
|
baseimage = new BaseImage({ props: baseimage_props });
|
|
4508
|
-
let if_block1 = /*roomLabelsEnable*/ ctx[3] && create_if_block_1$
|
|
4509
|
-
let if_block2 = /*ruleLabelsEnable*/ ctx[4] && create_if_block$
|
|
4512
|
+
let if_block1 = /*roomLabelsEnable*/ ctx[3] && create_if_block_1$b(ctx);
|
|
4513
|
+
let if_block2 = /*ruleLabelsEnable*/ ctx[4] && create_if_block$o(ctx);
|
|
4510
4514
|
|
|
4511
4515
|
return {
|
|
4512
4516
|
c() {
|
|
@@ -4592,7 +4596,7 @@ function create_fragment$z(ctx) {
|
|
|
4592
4596
|
internal.transition_in(if_block1, 1);
|
|
4593
4597
|
}
|
|
4594
4598
|
} else {
|
|
4595
|
-
if_block1 = create_if_block_1$
|
|
4599
|
+
if_block1 = create_if_block_1$b(ctx);
|
|
4596
4600
|
if_block1.c();
|
|
4597
4601
|
internal.transition_in(if_block1, 1);
|
|
4598
4602
|
if_block1.m(div, t3);
|
|
@@ -4615,7 +4619,7 @@ function create_fragment$z(ctx) {
|
|
|
4615
4619
|
internal.transition_in(if_block2, 1);
|
|
4616
4620
|
}
|
|
4617
4621
|
} else {
|
|
4618
|
-
if_block2 = create_if_block$
|
|
4622
|
+
if_block2 = create_if_block$o(ctx);
|
|
4619
4623
|
if_block2.c();
|
|
4620
4624
|
internal.transition_in(if_block2, 1);
|
|
4621
4625
|
if_block2.m(div, null);
|
|
@@ -4664,7 +4668,7 @@ function create_fragment$z(ctx) {
|
|
|
4664
4668
|
};
|
|
4665
4669
|
}
|
|
4666
4670
|
|
|
4667
|
-
function instance$
|
|
4671
|
+
function instance$A($$self, $$props, $$invalidate) {
|
|
4668
4672
|
let { isCurrent } = $$props;
|
|
4669
4673
|
let { floorIndex } = $$props;
|
|
4670
4674
|
let { hoverEnable } = $$props;
|
|
@@ -4706,8 +4710,8 @@ class CurrentFloor$1 extends internal.SvelteComponent {
|
|
|
4706
4710
|
internal.init(
|
|
4707
4711
|
this,
|
|
4708
4712
|
options,
|
|
4709
|
-
instance$
|
|
4710
|
-
create_fragment$
|
|
4713
|
+
instance$A,
|
|
4714
|
+
create_fragment$A,
|
|
4711
4715
|
internal.safe_not_equal,
|
|
4712
4716
|
{
|
|
4713
4717
|
isCurrent: 0,
|
|
@@ -4719,14 +4723,14 @@ class CurrentFloor$1 extends internal.SvelteComponent {
|
|
|
4719
4723
|
getLabelElement: 6,
|
|
4720
4724
|
adaptiveRoomLabelVisibleEnable: 7
|
|
4721
4725
|
},
|
|
4722
|
-
add_css$
|
|
4726
|
+
add_css$y
|
|
4723
4727
|
);
|
|
4724
4728
|
}
|
|
4725
4729
|
}
|
|
4726
4730
|
|
|
4727
4731
|
/* src/floorplan/Components/Main.svelte generated by Svelte v3.50.1 */
|
|
4728
4732
|
|
|
4729
|
-
function add_css$
|
|
4733
|
+
function add_css$x(target) {
|
|
4730
4734
|
internal.append_styles(target, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
|
|
4731
4735
|
}
|
|
4732
4736
|
|
|
@@ -4737,7 +4741,7 @@ function get_each_context$c(ctx, list, i) {
|
|
|
4737
4741
|
}
|
|
4738
4742
|
|
|
4739
4743
|
// (22:0) {#if visible}
|
|
4740
|
-
function create_if_block$
|
|
4744
|
+
function create_if_block$n(ctx) {
|
|
4741
4745
|
let div;
|
|
4742
4746
|
let t0;
|
|
4743
4747
|
let camera;
|
|
@@ -4771,7 +4775,7 @@ function create_if_block$m(ctx) {
|
|
|
4771
4775
|
}
|
|
4772
4776
|
|
|
4773
4777
|
camera = new Camera$1({ props: camera_props });
|
|
4774
|
-
let if_block = /*compassEnable*/ ctx[6] && create_if_block_1$
|
|
4778
|
+
let if_block = /*compassEnable*/ ctx[6] && create_if_block_1$a(ctx);
|
|
4775
4779
|
|
|
4776
4780
|
return {
|
|
4777
4781
|
c() {
|
|
@@ -4851,7 +4855,7 @@ function create_if_block$m(ctx) {
|
|
|
4851
4855
|
internal.transition_in(if_block, 1);
|
|
4852
4856
|
}
|
|
4853
4857
|
} else {
|
|
4854
|
-
if_block = create_if_block_1$
|
|
4858
|
+
if_block = create_if_block_1$a(ctx);
|
|
4855
4859
|
if_block.c();
|
|
4856
4860
|
internal.transition_in(if_block, 1);
|
|
4857
4861
|
if_block.m(div, null);
|
|
@@ -4985,7 +4989,7 @@ function create_each_block$c(ctx) {
|
|
|
4985
4989
|
}
|
|
4986
4990
|
|
|
4987
4991
|
// (39:4) {#if compassEnable}
|
|
4988
|
-
function create_if_block_1$
|
|
4992
|
+
function create_if_block_1$a(ctx) {
|
|
4989
4993
|
let compass;
|
|
4990
4994
|
let current;
|
|
4991
4995
|
|
|
@@ -5025,10 +5029,10 @@ function create_if_block_1$9(ctx) {
|
|
|
5025
5029
|
};
|
|
5026
5030
|
}
|
|
5027
5031
|
|
|
5028
|
-
function create_fragment$
|
|
5032
|
+
function create_fragment$z(ctx) {
|
|
5029
5033
|
let if_block_anchor;
|
|
5030
5034
|
let current;
|
|
5031
|
-
let if_block = /*visible*/ ctx[1] && create_if_block$
|
|
5035
|
+
let if_block = /*visible*/ ctx[1] && create_if_block$n(ctx);
|
|
5032
5036
|
|
|
5033
5037
|
return {
|
|
5034
5038
|
c() {
|
|
@@ -5049,7 +5053,7 @@ function create_fragment$y(ctx) {
|
|
|
5049
5053
|
internal.transition_in(if_block, 1);
|
|
5050
5054
|
}
|
|
5051
5055
|
} else {
|
|
5052
|
-
if_block = create_if_block$
|
|
5056
|
+
if_block = create_if_block$n(ctx);
|
|
5053
5057
|
if_block.c();
|
|
5054
5058
|
internal.transition_in(if_block, 1);
|
|
5055
5059
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -5080,7 +5084,7 @@ function create_fragment$y(ctx) {
|
|
|
5080
5084
|
};
|
|
5081
5085
|
}
|
|
5082
5086
|
|
|
5083
|
-
function instance$
|
|
5087
|
+
function instance$z($$self, $$props, $$invalidate) {
|
|
5084
5088
|
let { duration = 0 } = $$props;
|
|
5085
5089
|
let { visible } = $$props;
|
|
5086
5090
|
let { northDesc } = $$props;
|
|
@@ -5138,8 +5142,8 @@ class Main$1 extends internal.SvelteComponent {
|
|
|
5138
5142
|
internal.init(
|
|
5139
5143
|
this,
|
|
5140
5144
|
options,
|
|
5141
|
-
instance$
|
|
5142
|
-
create_fragment$
|
|
5145
|
+
instance$z,
|
|
5146
|
+
create_fragment$z,
|
|
5143
5147
|
internal.safe_not_equal,
|
|
5144
5148
|
{
|
|
5145
5149
|
duration: 0,
|
|
@@ -5157,7 +5161,7 @@ class Main$1 extends internal.SvelteComponent {
|
|
|
5157
5161
|
getLabelElement: 12,
|
|
5158
5162
|
adaptiveRoomLabelVisibleEnable: 13
|
|
5159
5163
|
},
|
|
5160
|
-
add_css$
|
|
5164
|
+
add_css$x
|
|
5161
5165
|
);
|
|
5162
5166
|
}
|
|
5163
5167
|
}
|
|
@@ -7353,11 +7357,11 @@ function throttle$1(func, wait = 200) {
|
|
|
7353
7357
|
|
|
7354
7358
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.50.1 */
|
|
7355
7359
|
|
|
7356
|
-
function add_css$
|
|
7360
|
+
function add_css$w(target) {
|
|
7357
7361
|
internal.append_styles(target, "svelte-1nqrlxd", ".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
|
|
7358
7362
|
}
|
|
7359
7363
|
|
|
7360
|
-
function create_fragment$
|
|
7364
|
+
function create_fragment$y(ctx) {
|
|
7361
7365
|
let div2;
|
|
7362
7366
|
let div1;
|
|
7363
7367
|
let div0;
|
|
@@ -7407,7 +7411,7 @@ function getCameraRotateTransform(longitude) {
|
|
|
7407
7411
|
return `rotate(${rotate}deg)`;
|
|
7408
7412
|
}
|
|
7409
7413
|
|
|
7410
|
-
function instance$
|
|
7414
|
+
function instance$y($$self, $$props, $$invalidate) {
|
|
7411
7415
|
let positionTransform;
|
|
7412
7416
|
let rotateTransform;
|
|
7413
7417
|
let { five } = $$props;
|
|
@@ -7487,8 +7491,8 @@ class Camera extends internal.SvelteComponent {
|
|
|
7487
7491
|
internal.init(
|
|
7488
7492
|
this,
|
|
7489
7493
|
options,
|
|
7490
|
-
instance$
|
|
7491
|
-
create_fragment$
|
|
7494
|
+
instance$y,
|
|
7495
|
+
create_fragment$y,
|
|
7492
7496
|
internal.safe_not_equal,
|
|
7493
7497
|
{
|
|
7494
7498
|
five: 3,
|
|
@@ -7496,14 +7500,14 @@ class Camera extends internal.SvelteComponent {
|
|
|
7496
7500
|
floorplanData: 5,
|
|
7497
7501
|
cameraImageUrl: 0
|
|
7498
7502
|
},
|
|
7499
|
-
add_css$
|
|
7503
|
+
add_css$w
|
|
7500
7504
|
);
|
|
7501
7505
|
}
|
|
7502
7506
|
}
|
|
7503
7507
|
|
|
7504
7508
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.50.1 */
|
|
7505
7509
|
|
|
7506
|
-
function add_css$
|
|
7510
|
+
function add_css$v(target) {
|
|
7507
7511
|
internal.append_styles(target, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
|
|
7508
7512
|
}
|
|
7509
7513
|
|
|
@@ -7573,7 +7577,7 @@ function create_each_block$b(key_1, ctx) {
|
|
|
7573
7577
|
};
|
|
7574
7578
|
}
|
|
7575
7579
|
|
|
7576
|
-
function create_fragment$
|
|
7580
|
+
function create_fragment$x(ctx) {
|
|
7577
7581
|
let div;
|
|
7578
7582
|
let each_blocks = [];
|
|
7579
7583
|
let each_1_lookup = new Map();
|
|
@@ -7621,7 +7625,7 @@ function create_fragment$w(ctx) {
|
|
|
7621
7625
|
};
|
|
7622
7626
|
}
|
|
7623
7627
|
|
|
7624
|
-
function instance$
|
|
7628
|
+
function instance$x($$self, $$props, $$invalidate) {
|
|
7625
7629
|
let { extraObjects = [] } = $$props;
|
|
7626
7630
|
|
|
7627
7631
|
$$self.$$set = $$props => {
|
|
@@ -7634,13 +7638,13 @@ function instance$w($$self, $$props, $$invalidate) {
|
|
|
7634
7638
|
class ExtraObjects extends internal.SvelteComponent {
|
|
7635
7639
|
constructor(options) {
|
|
7636
7640
|
super();
|
|
7637
|
-
internal.init(this, options, instance$
|
|
7641
|
+
internal.init(this, options, instance$x, create_fragment$x, internal.safe_not_equal, { extraObjects: 0 }, add_css$v);
|
|
7638
7642
|
}
|
|
7639
7643
|
}
|
|
7640
7644
|
|
|
7641
7645
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.50.1 */
|
|
7642
7646
|
|
|
7643
|
-
function create_if_block$
|
|
7647
|
+
function create_if_block$m(ctx) {
|
|
7644
7648
|
let highlight;
|
|
7645
7649
|
let current;
|
|
7646
7650
|
|
|
@@ -7700,7 +7704,7 @@ function create_if_block$l(ctx) {
|
|
|
7700
7704
|
};
|
|
7701
7705
|
}
|
|
7702
7706
|
|
|
7703
|
-
function create_fragment$
|
|
7707
|
+
function create_fragment$w(ctx) {
|
|
7704
7708
|
let baseimage;
|
|
7705
7709
|
let t0;
|
|
7706
7710
|
let extraobjects;
|
|
@@ -7729,7 +7733,7 @@ function create_fragment$v(ctx) {
|
|
|
7729
7733
|
}
|
|
7730
7734
|
});
|
|
7731
7735
|
|
|
7732
|
-
let if_block = /*hoverEnable*/ ctx[3] && create_if_block$
|
|
7736
|
+
let if_block = /*hoverEnable*/ ctx[3] && create_if_block$m(ctx);
|
|
7733
7737
|
|
|
7734
7738
|
return {
|
|
7735
7739
|
c() {
|
|
@@ -7772,7 +7776,7 @@ function create_fragment$v(ctx) {
|
|
|
7772
7776
|
internal.transition_in(if_block, 1);
|
|
7773
7777
|
}
|
|
7774
7778
|
} else {
|
|
7775
|
-
if_block = create_if_block$
|
|
7779
|
+
if_block = create_if_block$m(ctx);
|
|
7776
7780
|
if_block.c();
|
|
7777
7781
|
internal.transition_in(if_block, 1);
|
|
7778
7782
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -7811,7 +7815,7 @@ function create_fragment$v(ctx) {
|
|
|
7811
7815
|
};
|
|
7812
7816
|
}
|
|
7813
7817
|
|
|
7814
|
-
function instance$
|
|
7818
|
+
function instance$w($$self, $$props, $$invalidate) {
|
|
7815
7819
|
let currentFloorExtraObjects;
|
|
7816
7820
|
let { five } = $$props;
|
|
7817
7821
|
let { pxmm } = $$props;
|
|
@@ -7854,7 +7858,7 @@ class CurrentFloor extends internal.SvelteComponent {
|
|
|
7854
7858
|
constructor(options) {
|
|
7855
7859
|
super();
|
|
7856
7860
|
|
|
7857
|
-
internal.init(this, options, instance$
|
|
7861
|
+
internal.init(this, options, instance$w, create_fragment$w, internal.safe_not_equal, {
|
|
7858
7862
|
five: 0,
|
|
7859
7863
|
pxmm: 1,
|
|
7860
7864
|
floorIndex: 2,
|
|
@@ -7867,16 +7871,16 @@ class CurrentFloor extends internal.SvelteComponent {
|
|
|
7867
7871
|
|
|
7868
7872
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.50.1 */
|
|
7869
7873
|
|
|
7870
|
-
function add_css$
|
|
7874
|
+
function add_css$u(target) {
|
|
7871
7875
|
internal.append_styles(target, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
7872
7876
|
}
|
|
7873
7877
|
|
|
7874
7878
|
// (41:0) {#if visible}
|
|
7875
|
-
function create_if_block$
|
|
7879
|
+
function create_if_block$l(ctx) {
|
|
7876
7880
|
let div;
|
|
7877
7881
|
let div_resize_listener;
|
|
7878
7882
|
let current;
|
|
7879
|
-
let if_block = /*clientWidth*/ ctx[6] !== 0 && create_if_block_1$
|
|
7883
|
+
let if_block = /*clientWidth*/ ctx[6] !== 0 && create_if_block_1$9(ctx);
|
|
7880
7884
|
|
|
7881
7885
|
return {
|
|
7882
7886
|
c() {
|
|
@@ -7900,7 +7904,7 @@ function create_if_block$k(ctx) {
|
|
|
7900
7904
|
internal.transition_in(if_block, 1);
|
|
7901
7905
|
}
|
|
7902
7906
|
} else {
|
|
7903
|
-
if_block = create_if_block_1$
|
|
7907
|
+
if_block = create_if_block_1$9(ctx);
|
|
7904
7908
|
if_block.c();
|
|
7905
7909
|
internal.transition_in(if_block, 1);
|
|
7906
7910
|
if_block.m(div, null);
|
|
@@ -7933,7 +7937,7 @@ function create_if_block$k(ctx) {
|
|
|
7933
7937
|
}
|
|
7934
7938
|
|
|
7935
7939
|
// (43:4) {#if clientWidth !== 0}
|
|
7936
|
-
function create_if_block_1$
|
|
7940
|
+
function create_if_block_1$9(ctx) {
|
|
7937
7941
|
let div;
|
|
7938
7942
|
let currentfloor;
|
|
7939
7943
|
let t;
|
|
@@ -8051,10 +8055,10 @@ function create_if_block_1$8(ctx) {
|
|
|
8051
8055
|
};
|
|
8052
8056
|
}
|
|
8053
8057
|
|
|
8054
|
-
function create_fragment$
|
|
8058
|
+
function create_fragment$v(ctx) {
|
|
8055
8059
|
let if_block_anchor;
|
|
8056
8060
|
let current;
|
|
8057
|
-
let if_block = /*visible*/ ctx[1] && create_if_block$
|
|
8061
|
+
let if_block = /*visible*/ ctx[1] && create_if_block$l(ctx);
|
|
8058
8062
|
|
|
8059
8063
|
return {
|
|
8060
8064
|
c() {
|
|
@@ -8075,7 +8079,7 @@ function create_fragment$u(ctx) {
|
|
|
8075
8079
|
internal.transition_in(if_block, 1);
|
|
8076
8080
|
}
|
|
8077
8081
|
} else {
|
|
8078
|
-
if_block = create_if_block$
|
|
8082
|
+
if_block = create_if_block$l(ctx);
|
|
8079
8083
|
if_block.c();
|
|
8080
8084
|
internal.transition_in(if_block, 1);
|
|
8081
8085
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -8106,7 +8110,7 @@ function create_fragment$u(ctx) {
|
|
|
8106
8110
|
};
|
|
8107
8111
|
}
|
|
8108
8112
|
|
|
8109
|
-
function instance$
|
|
8113
|
+
function instance$v($$self, $$props, $$invalidate) {
|
|
8110
8114
|
let { five } = $$props;
|
|
8111
8115
|
let { visible } = $$props;
|
|
8112
8116
|
let { hoverEnable } = $$props;
|
|
@@ -8192,8 +8196,8 @@ class Main extends internal.SvelteComponent {
|
|
|
8192
8196
|
internal.init(
|
|
8193
8197
|
this,
|
|
8194
8198
|
options,
|
|
8195
|
-
instance$
|
|
8196
|
-
create_fragment$
|
|
8199
|
+
instance$v,
|
|
8200
|
+
create_fragment$v,
|
|
8197
8201
|
internal.safe_not_equal,
|
|
8198
8202
|
{
|
|
8199
8203
|
five: 0,
|
|
@@ -8203,7 +8207,7 @@ class Main extends internal.SvelteComponent {
|
|
|
8203
8207
|
cameraImageUrl: 4,
|
|
8204
8208
|
extraObjects: 5
|
|
8205
8209
|
},
|
|
8206
|
-
add_css$
|
|
8210
|
+
add_css$u
|
|
8207
8211
|
);
|
|
8208
8212
|
}
|
|
8209
8213
|
}
|
|
@@ -9672,7 +9676,7 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
9672
9676
|
|
|
9673
9677
|
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.50.1 */
|
|
9674
9678
|
|
|
9675
|
-
function add_css$
|
|
9679
|
+
function add_css$t(target) {
|
|
9676
9680
|
internal.append_styles(target, "svelte-qy4ud2", ".PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2 em.svelte-qy4ud2{display:block;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-qy4ud2.svelte-qy4ud2{display:flex;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;align-items:center}.em-solid.svelte-qy4ud2.svelte-qy4ud2{height:100%;background:#ffffff}.em-dotted.svelte-qy4ud2.svelte-qy4ud2{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-qy4ud2.svelte-qy4ud2{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-qy4ud2.svelte-qy4ud2{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;-webkit-animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@-webkit-keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}");
|
|
9677
9681
|
}
|
|
9678
9682
|
|
|
@@ -9683,7 +9687,7 @@ function get_each_context$a(ctx, list, i) {
|
|
|
9683
9687
|
}
|
|
9684
9688
|
|
|
9685
9689
|
// (28:2) {:else}
|
|
9686
|
-
function create_else_block$
|
|
9690
|
+
function create_else_block$3(ctx) {
|
|
9687
9691
|
let div;
|
|
9688
9692
|
let each_value = /*rulerItemProp*/ ctx[0].children;
|
|
9689
9693
|
let each_blocks = [];
|
|
@@ -9741,7 +9745,7 @@ function create_else_block$2(ctx) {
|
|
|
9741
9745
|
}
|
|
9742
9746
|
|
|
9743
9747
|
// (26:2) {#if rulerItemProp.children.length === 0}
|
|
9744
|
-
function create_if_block$
|
|
9748
|
+
function create_if_block$k(ctx) {
|
|
9745
9749
|
let em;
|
|
9746
9750
|
let em_class_value;
|
|
9747
9751
|
|
|
@@ -9810,7 +9814,7 @@ function create_each_block$a(ctx) {
|
|
|
9810
9814
|
};
|
|
9811
9815
|
}
|
|
9812
9816
|
|
|
9813
|
-
function create_fragment$
|
|
9817
|
+
function create_fragment$u(ctx) {
|
|
9814
9818
|
let div2;
|
|
9815
9819
|
let t0;
|
|
9816
9820
|
let div1;
|
|
@@ -9825,8 +9829,8 @@ function create_fragment$t(ctx) {
|
|
|
9825
9829
|
let style_transform = `rotate(${/*rulerItemProp*/ ctx[0].rotateDeg}deg)`;
|
|
9826
9830
|
|
|
9827
9831
|
function select_block_type(ctx, dirty) {
|
|
9828
|
-
if (/*rulerItemProp*/ ctx[0].children.length === 0) return create_if_block$
|
|
9829
|
-
return create_else_block$
|
|
9832
|
+
if (/*rulerItemProp*/ ctx[0].children.length === 0) return create_if_block$k;
|
|
9833
|
+
return create_else_block$3;
|
|
9830
9834
|
}
|
|
9831
9835
|
|
|
9832
9836
|
let current_block_type = select_block_type(ctx);
|
|
@@ -9924,7 +9928,7 @@ function create_fragment$t(ctx) {
|
|
|
9924
9928
|
};
|
|
9925
9929
|
}
|
|
9926
9930
|
|
|
9927
|
-
function instance$
|
|
9931
|
+
function instance$u($$self, $$props, $$invalidate) {
|
|
9928
9932
|
let vars;
|
|
9929
9933
|
let { rulerItemProp } = $$props;
|
|
9930
9934
|
let _visible = true;
|
|
@@ -9959,7 +9963,7 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
|
9959
9963
|
class RulerItem extends internal.SvelteComponent {
|
|
9960
9964
|
constructor(options) {
|
|
9961
9965
|
super();
|
|
9962
|
-
internal.init(this, options, instance$
|
|
9966
|
+
internal.init(this, options, instance$u, create_fragment$u, internal.safe_not_equal, { rulerItemProp: 0 }, add_css$t);
|
|
9963
9967
|
}
|
|
9964
9968
|
}
|
|
9965
9969
|
|
|
@@ -10008,7 +10012,7 @@ function create_each_block$9(ctx) {
|
|
|
10008
10012
|
};
|
|
10009
10013
|
}
|
|
10010
10014
|
|
|
10011
|
-
function create_fragment$
|
|
10015
|
+
function create_fragment$t(ctx) {
|
|
10012
10016
|
let div;
|
|
10013
10017
|
let current;
|
|
10014
10018
|
let each_value = /*rulerItemProp*/ ctx[0];
|
|
@@ -10092,7 +10096,7 @@ function create_fragment$s(ctx) {
|
|
|
10092
10096
|
};
|
|
10093
10097
|
}
|
|
10094
10098
|
|
|
10095
|
-
function instance$
|
|
10099
|
+
function instance$t($$self, $$props, $$invalidate) {
|
|
10096
10100
|
var _a, _b, _c, _d;
|
|
10097
10101
|
let { five: five$1 } = $$props;
|
|
10098
10102
|
let { rulerDatas } = $$props;
|
|
@@ -10310,7 +10314,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10310
10314
|
class RulerItems extends internal.SvelteComponent {
|
|
10311
10315
|
constructor(options) {
|
|
10312
10316
|
super();
|
|
10313
|
-
internal.init(this, options, instance$
|
|
10317
|
+
internal.init(this, options, instance$t, create_fragment$t, internal.safe_not_equal, { five: 1, rulerDatas: 2, options: 3 });
|
|
10314
10318
|
}
|
|
10315
10319
|
}
|
|
10316
10320
|
|
|
@@ -15043,7 +15047,7 @@ const currentTarget = store.writable(null);
|
|
|
15043
15047
|
|
|
15044
15048
|
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.50.1 */
|
|
15045
15049
|
|
|
15046
|
-
function add_css$
|
|
15050
|
+
function add_css$s(target) {
|
|
15047
15051
|
internal.append_styles(target, "svelte-1kuu68s", ".PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-1kuu68s{transform:translate(-50%, -50%) scale(0.6);-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
15048
15052
|
}
|
|
15049
15053
|
|
|
@@ -15110,7 +15114,7 @@ function create_each_block$8(ctx) {
|
|
|
15110
15114
|
};
|
|
15111
15115
|
}
|
|
15112
15116
|
|
|
15113
|
-
function create_fragment$
|
|
15117
|
+
function create_fragment$s(ctx) {
|
|
15114
15118
|
let each_1_anchor;
|
|
15115
15119
|
let each_value = /*origins*/ ctx[0];
|
|
15116
15120
|
let each_blocks = [];
|
|
@@ -15167,7 +15171,7 @@ function create_fragment$r(ctx) {
|
|
|
15167
15171
|
};
|
|
15168
15172
|
}
|
|
15169
15173
|
|
|
15170
|
-
function instance$
|
|
15174
|
+
function instance$s($$self, $$props, $$invalidate) {
|
|
15171
15175
|
let { origins } = $$props;
|
|
15172
15176
|
|
|
15173
15177
|
const handleClick = id => {
|
|
@@ -15186,17 +15190,17 @@ function instance$r($$self, $$props, $$invalidate) {
|
|
|
15186
15190
|
class Origins extends internal.SvelteComponent {
|
|
15187
15191
|
constructor(options) {
|
|
15188
15192
|
super();
|
|
15189
|
-
internal.init(this, options, instance$
|
|
15193
|
+
internal.init(this, options, instance$s, create_fragment$s, internal.safe_not_equal, { origins: 0 }, add_css$s);
|
|
15190
15194
|
}
|
|
15191
15195
|
}
|
|
15192
15196
|
|
|
15193
15197
|
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.50.1 */
|
|
15194
15198
|
|
|
15195
|
-
function add_css$
|
|
15199
|
+
function add_css$r(target) {
|
|
15196
15200
|
internal.append_styles(target, "svelte-eb8bdm", ".PanoSpatialTagPlugin__tag-x.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm.svelte-eb8bdm{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-eb8bdm.svelte-eb8bdm{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line.svelte-eb8bdm{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm.svelte-eb8bdm{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-eb8bdm.svelte-eb8bdm{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content .svelte-eb8bdm{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 0) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
15197
15201
|
}
|
|
15198
15202
|
|
|
15199
|
-
function create_fragment$
|
|
15203
|
+
function create_fragment$r(ctx) {
|
|
15200
15204
|
let div4;
|
|
15201
15205
|
let div0;
|
|
15202
15206
|
let t0;
|
|
@@ -15311,7 +15315,7 @@ function create_fragment$q(ctx) {
|
|
|
15311
15315
|
};
|
|
15312
15316
|
}
|
|
15313
15317
|
|
|
15314
|
-
function instance$
|
|
15318
|
+
function instance$r($$self, $$props, $$invalidate) {
|
|
15315
15319
|
let { id } = $$props;
|
|
15316
15320
|
let { upsideDown } = $$props;
|
|
15317
15321
|
let { content } = $$props;
|
|
@@ -15448,8 +15452,8 @@ class Tag$1 extends internal.SvelteComponent {
|
|
|
15448
15452
|
internal.init(
|
|
15449
15453
|
this,
|
|
15450
15454
|
options,
|
|
15451
|
-
instance$
|
|
15452
|
-
create_fragment$
|
|
15455
|
+
instance$r,
|
|
15456
|
+
create_fragment$r,
|
|
15453
15457
|
internal.safe_not_equal,
|
|
15454
15458
|
{
|
|
15455
15459
|
id: 0,
|
|
@@ -15464,7 +15468,7 @@ class Tag$1 extends internal.SvelteComponent {
|
|
|
15464
15468
|
events: 14,
|
|
15465
15469
|
hooks: 15
|
|
15466
15470
|
},
|
|
15467
|
-
add_css$
|
|
15471
|
+
add_css$r
|
|
15468
15472
|
);
|
|
15469
15473
|
}
|
|
15470
15474
|
}
|
|
@@ -16118,11 +16122,11 @@ exports.DISPLAY_STRATEGY_TYPE = void 0;
|
|
|
16118
16122
|
|
|
16119
16123
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.50.1 */
|
|
16120
16124
|
|
|
16121
|
-
function add_css$
|
|
16125
|
+
function add_css$q(target) {
|
|
16122
16126
|
internal.append_styles(target, "svelte-lmta6z", ".item-label-item.svelte-lmta6z{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-lmta6z{opacity:1;-webkit-animation:svelte-lmta6z-fadeIn .3s ease-in;animation:svelte-lmta6z-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-lmta6z::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-lmta6z{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-lmta6z{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem 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-lmta6z{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@-webkit-keyframes svelte-lmta6z-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-lmta6z-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
16123
16127
|
}
|
|
16124
16128
|
|
|
16125
|
-
function create_fragment$
|
|
16129
|
+
function create_fragment$q(ctx) {
|
|
16126
16130
|
let div2;
|
|
16127
16131
|
let div0;
|
|
16128
16132
|
let span;
|
|
@@ -16203,7 +16207,7 @@ function create_fragment$p(ctx) {
|
|
|
16203
16207
|
};
|
|
16204
16208
|
}
|
|
16205
16209
|
|
|
16206
|
-
function instance$
|
|
16210
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
16207
16211
|
let { itemLabel } = $$props;
|
|
16208
16212
|
let { hooks } = $$props;
|
|
16209
16213
|
|
|
@@ -16223,7 +16227,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
16223
16227
|
class ItemLabelItem$1 extends internal.SvelteComponent {
|
|
16224
16228
|
constructor(options) {
|
|
16225
16229
|
super();
|
|
16226
|
-
internal.init(this, options, instance$
|
|
16230
|
+
internal.init(this, options, instance$q, create_fragment$q, internal.safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$q);
|
|
16227
16231
|
}
|
|
16228
16232
|
}
|
|
16229
16233
|
|
|
@@ -16244,7 +16248,7 @@ function debounce$1(func, wait = 200) {
|
|
|
16244
16248
|
|
|
16245
16249
|
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.50.1 */
|
|
16246
16250
|
|
|
16247
|
-
function add_css$
|
|
16251
|
+
function add_css$p(target) {
|
|
16248
16252
|
internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
16249
16253
|
}
|
|
16250
16254
|
|
|
@@ -16303,7 +16307,7 @@ function create_each_block$7(key_1, ctx) {
|
|
|
16303
16307
|
};
|
|
16304
16308
|
}
|
|
16305
16309
|
|
|
16306
|
-
function create_fragment$
|
|
16310
|
+
function create_fragment$p(ctx) {
|
|
16307
16311
|
let div;
|
|
16308
16312
|
let each_blocks = [];
|
|
16309
16313
|
let each_1_lookup = new Map();
|
|
@@ -16383,7 +16387,7 @@ function create_fragment$o(ctx) {
|
|
|
16383
16387
|
let cssHeight = 26;
|
|
16384
16388
|
let basicWidth$1 = 11;
|
|
16385
16389
|
|
|
16386
|
-
function instance$
|
|
16390
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
16387
16391
|
const { Raycaster, Vector3 } = THREE__namespace;
|
|
16388
16392
|
let { five } = $$props;
|
|
16389
16393
|
let { modelOcclusionEnable } = $$props;
|
|
@@ -16585,8 +16589,8 @@ class ItemLabelComponent$1 extends internal.SvelteComponent {
|
|
|
16585
16589
|
internal.init(
|
|
16586
16590
|
this,
|
|
16587
16591
|
options,
|
|
16588
|
-
instance$
|
|
16589
|
-
create_fragment$
|
|
16592
|
+
instance$p,
|
|
16593
|
+
create_fragment$p,
|
|
16590
16594
|
internal.safe_not_equal,
|
|
16591
16595
|
{
|
|
16592
16596
|
five: 5,
|
|
@@ -16595,7 +16599,7 @@ class ItemLabelComponent$1 extends internal.SvelteComponent {
|
|
|
16595
16599
|
hooks: 0,
|
|
16596
16600
|
displayStrategyType: 8
|
|
16597
16601
|
},
|
|
16598
|
-
add_css$
|
|
16602
|
+
add_css$p
|
|
16599
16603
|
);
|
|
16600
16604
|
}
|
|
16601
16605
|
}
|
|
@@ -17009,12 +17013,12 @@ exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = void 0;
|
|
|
17009
17013
|
|
|
17010
17014
|
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.50.1 */
|
|
17011
17015
|
|
|
17012
|
-
function add_css$
|
|
17016
|
+
function add_css$o(target) {
|
|
17013
17017
|
internal.append_styles(target, "svelte-pd1uj6", ".item-label-item.svelte-pd1uj6.svelte-pd1uj6{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-pd1uj6-fadeIn .3s ease-in;animation:svelte-pd1uj6-fadeIn .3s ease-in}.item-label-item.fold.svelte-pd1uj6>.item-label-item__text-wrap.svelte-pd1uj6{visibility:hidden}.item-label-item.fold.svelte-pd1uj6>.item-label-item__bar.anchor.svelte-pd1uj6{visibility:hidden}.item-label-item.fold.svelte-pd1uj6>.item-label-item__bar.anchor.svelte-pd1uj6:after{visibility:visible}.item-label-item__text-wrap.svelte-pd1uj6.svelte-pd1uj6{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;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:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;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-pd1uj6.svelte-pd1uj6{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-pd1uj6.svelte-pd1uj6{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-pd1uj6.svelte-pd1uj6{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-pd1uj6.svelte-pd1uj6{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;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-pd1uj6.svelte-pd1uj6{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-pd1uj6.svelte-pd1uj6{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-pd1uj6.svelte-pd1uj6{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-pd1uj6.svelte-pd1uj6:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;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.65625rem, 50%)}@-webkit-keyframes svelte-pd1uj6-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-pd1uj6-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
17014
17018
|
}
|
|
17015
17019
|
|
|
17016
17020
|
// (34:8) {:else}
|
|
17017
|
-
function create_else_block$
|
|
17021
|
+
function create_else_block$2(ctx) {
|
|
17018
17022
|
let t0;
|
|
17019
17023
|
let div;
|
|
17020
17024
|
let span0;
|
|
@@ -17024,7 +17028,7 @@ function create_else_block$1(ctx) {
|
|
|
17024
17028
|
let span1;
|
|
17025
17029
|
let t3_value = /*itemLabel*/ ctx[0].name + "";
|
|
17026
17030
|
let t3;
|
|
17027
|
-
let if_block = /*itemLabel*/ ctx[0].icon && create_if_block_1$
|
|
17031
|
+
let if_block = /*itemLabel*/ ctx[0].icon && create_if_block_1$8(ctx);
|
|
17028
17032
|
|
|
17029
17033
|
return {
|
|
17030
17034
|
c() {
|
|
@@ -17055,7 +17059,7 @@ function create_else_block$1(ctx) {
|
|
|
17055
17059
|
if (if_block) {
|
|
17056
17060
|
if_block.p(ctx, dirty);
|
|
17057
17061
|
} else {
|
|
17058
|
-
if_block = create_if_block_1$
|
|
17062
|
+
if_block = create_if_block_1$8(ctx);
|
|
17059
17063
|
if_block.c();
|
|
17060
17064
|
if_block.m(t0.parentNode, t0);
|
|
17061
17065
|
}
|
|
@@ -17076,7 +17080,7 @@ function create_else_block$1(ctx) {
|
|
|
17076
17080
|
}
|
|
17077
17081
|
|
|
17078
17082
|
// (32:8) {#if Boolean(typeof itemLabel.render === 'function')}
|
|
17079
|
-
function create_if_block$
|
|
17083
|
+
function create_if_block$j(ctx) {
|
|
17080
17084
|
let div;
|
|
17081
17085
|
|
|
17082
17086
|
return {
|
|
@@ -17096,7 +17100,7 @@ function create_if_block$i(ctx) {
|
|
|
17096
17100
|
}
|
|
17097
17101
|
|
|
17098
17102
|
// (35:12) {#if itemLabel.icon}
|
|
17099
|
-
function create_if_block_1$
|
|
17103
|
+
function create_if_block_1$8(ctx) {
|
|
17100
17104
|
let div1;
|
|
17101
17105
|
let div0;
|
|
17102
17106
|
let div0_style_value;
|
|
@@ -17133,7 +17137,7 @@ function create_if_block_1$7(ctx) {
|
|
|
17133
17137
|
};
|
|
17134
17138
|
}
|
|
17135
17139
|
|
|
17136
|
-
function create_fragment$
|
|
17140
|
+
function create_fragment$o(ctx) {
|
|
17137
17141
|
let div2;
|
|
17138
17142
|
let div0;
|
|
17139
17143
|
let show_if;
|
|
@@ -17148,8 +17152,8 @@ function create_fragment$n(ctx) {
|
|
|
17148
17152
|
function select_block_type(ctx, dirty) {
|
|
17149
17153
|
if (dirty & /*itemLabel*/ 1) show_if = null;
|
|
17150
17154
|
if (show_if == null) show_if = !!Boolean(typeof /*itemLabel*/ ctx[0].render === 'function');
|
|
17151
|
-
if (show_if) return create_if_block$
|
|
17152
|
-
return create_else_block$
|
|
17155
|
+
if (show_if) return create_if_block$j;
|
|
17156
|
+
return create_else_block$2;
|
|
17153
17157
|
}
|
|
17154
17158
|
|
|
17155
17159
|
let current_block_type = select_block_type(ctx, -1);
|
|
@@ -17240,7 +17244,7 @@ function create_fragment$n(ctx) {
|
|
|
17240
17244
|
};
|
|
17241
17245
|
}
|
|
17242
17246
|
|
|
17243
|
-
function instance$
|
|
17247
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
17244
17248
|
let { itemLabel } = $$props;
|
|
17245
17249
|
let { hooks } = $$props;
|
|
17246
17250
|
let { anchorEnabled } = $$props;
|
|
@@ -17304,8 +17308,8 @@ class ItemLabelItem extends internal.SvelteComponent {
|
|
|
17304
17308
|
internal.init(
|
|
17305
17309
|
this,
|
|
17306
17310
|
options,
|
|
17307
|
-
instance$
|
|
17308
|
-
create_fragment$
|
|
17311
|
+
instance$o,
|
|
17312
|
+
create_fragment$o,
|
|
17309
17313
|
internal.safe_not_equal,
|
|
17310
17314
|
{
|
|
17311
17315
|
itemLabel: 0,
|
|
@@ -17313,7 +17317,7 @@ class ItemLabelItem extends internal.SvelteComponent {
|
|
|
17313
17317
|
anchorEnabled: 1,
|
|
17314
17318
|
onIconClick: 2
|
|
17315
17319
|
},
|
|
17316
|
-
add_css$
|
|
17320
|
+
add_css$o
|
|
17317
17321
|
);
|
|
17318
17322
|
}
|
|
17319
17323
|
}
|
|
@@ -17358,7 +17362,7 @@ function transform2RenderData(data) {
|
|
|
17358
17362
|
|
|
17359
17363
|
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.50.1 */
|
|
17360
17364
|
|
|
17361
|
-
function add_css$
|
|
17365
|
+
function add_css$n(target) {
|
|
17362
17366
|
internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
17363
17367
|
}
|
|
17364
17368
|
|
|
@@ -17369,7 +17373,7 @@ function get_each_context$6(ctx, list, i) {
|
|
|
17369
17373
|
}
|
|
17370
17374
|
|
|
17371
17375
|
// (234:2) {#if itemLabelItem.visible}
|
|
17372
|
-
function create_if_block$
|
|
17376
|
+
function create_if_block$i(ctx) {
|
|
17373
17377
|
let itemlabelitem;
|
|
17374
17378
|
let current;
|
|
17375
17379
|
|
|
@@ -17417,7 +17421,7 @@ function create_each_block$6(key_1, ctx) {
|
|
|
17417
17421
|
let first;
|
|
17418
17422
|
let if_block_anchor;
|
|
17419
17423
|
let current;
|
|
17420
|
-
let if_block = /*itemLabelItem*/ ctx[31].visible && create_if_block$
|
|
17424
|
+
let if_block = /*itemLabelItem*/ ctx[31].visible && create_if_block$i(ctx);
|
|
17421
17425
|
|
|
17422
17426
|
return {
|
|
17423
17427
|
key: key_1,
|
|
@@ -17445,7 +17449,7 @@ function create_each_block$6(key_1, ctx) {
|
|
|
17445
17449
|
internal.transition_in(if_block, 1);
|
|
17446
17450
|
}
|
|
17447
17451
|
} else {
|
|
17448
|
-
if_block = create_if_block$
|
|
17452
|
+
if_block = create_if_block$i(ctx);
|
|
17449
17453
|
if_block.c();
|
|
17450
17454
|
internal.transition_in(if_block, 1);
|
|
17451
17455
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -17477,7 +17481,7 @@ function create_each_block$6(key_1, ctx) {
|
|
|
17477
17481
|
};
|
|
17478
17482
|
}
|
|
17479
17483
|
|
|
17480
|
-
function create_fragment$
|
|
17484
|
+
function create_fragment$n(ctx) {
|
|
17481
17485
|
let div;
|
|
17482
17486
|
let each_blocks = [];
|
|
17483
17487
|
let each_1_lookup = new Map();
|
|
@@ -17555,7 +17559,7 @@ function create_fragment$m(ctx) {
|
|
|
17555
17559
|
}
|
|
17556
17560
|
let basicWidth = 11;
|
|
17557
17561
|
|
|
17558
|
-
function instance$
|
|
17562
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
17559
17563
|
const { Raycaster, Vector3 } = THREE__namespace;
|
|
17560
17564
|
let { five: five$1 } = $$props;
|
|
17561
17565
|
let { modelOcclusionEnable } = $$props;
|
|
@@ -17848,8 +17852,8 @@ class ItemLabelComponent extends internal.SvelteComponent {
|
|
|
17848
17852
|
internal.init(
|
|
17849
17853
|
this,
|
|
17850
17854
|
options,
|
|
17851
|
-
instance$
|
|
17852
|
-
create_fragment$
|
|
17855
|
+
instance$n,
|
|
17856
|
+
create_fragment$n,
|
|
17853
17857
|
internal.safe_not_equal,
|
|
17854
17858
|
{
|
|
17855
17859
|
five: 7,
|
|
@@ -17860,7 +17864,7 @@ class ItemLabelComponent extends internal.SvelteComponent {
|
|
|
17860
17864
|
displayStrategyType: 11,
|
|
17861
17865
|
maxVisibleDistance: 12
|
|
17862
17866
|
},
|
|
17863
|
-
add_css$
|
|
17867
|
+
add_css$n,
|
|
17864
17868
|
[-1, -1]
|
|
17865
17869
|
);
|
|
17866
17870
|
}
|
|
@@ -18102,11 +18106,11 @@ class BasePanoPluginController extends Controller$7 {
|
|
|
18102
18106
|
|
|
18103
18107
|
/* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.50.1 */
|
|
18104
18108
|
|
|
18105
|
-
function add_css$
|
|
18109
|
+
function add_css$m(target) {
|
|
18106
18110
|
internal.append_styles(target, "svelte-wpy7pz", ".plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;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-wpy7pz.svelte-wpy7pz::after{content:\"\";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem 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-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url(\"//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg\") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url(\"//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg\") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}");
|
|
18107
18111
|
}
|
|
18108
18112
|
|
|
18109
|
-
function create_fragment$
|
|
18113
|
+
function create_fragment$m(ctx) {
|
|
18110
18114
|
let div1;
|
|
18111
18115
|
let div0;
|
|
18112
18116
|
let span;
|
|
@@ -18161,7 +18165,7 @@ function create_fragment$l(ctx) {
|
|
|
18161
18165
|
};
|
|
18162
18166
|
}
|
|
18163
18167
|
|
|
18164
|
-
function instance$
|
|
18168
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
18165
18169
|
let { props } = $$props;
|
|
18166
18170
|
let { onClick } = $$props;
|
|
18167
18171
|
let divElement;
|
|
@@ -18234,7 +18238,7 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
18234
18238
|
class DoorLabelItem extends internal.SvelteComponent {
|
|
18235
18239
|
constructor(options) {
|
|
18236
18240
|
super();
|
|
18237
|
-
internal.init(this, options, instance$
|
|
18241
|
+
internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { props: 0, onClick: 1 }, add_css$m);
|
|
18238
18242
|
}
|
|
18239
18243
|
}
|
|
18240
18244
|
|
|
@@ -20353,12 +20357,12 @@ exports.LinkType = void 0;
|
|
|
20353
20357
|
|
|
20354
20358
|
/* src/PanoTagPlugin/Components/Common/Line/Straight.svelte generated by Svelte v3.50.1 */
|
|
20355
20359
|
|
|
20356
|
-
function add_css$
|
|
20360
|
+
function add_css$l(target) {
|
|
20357
20361
|
internal.append_styles(target, "svelte-1omzoh4", ".straight-line.svelte-1omzoh4{display:block;width:100%;height:100%;overflow:visible}");
|
|
20358
20362
|
}
|
|
20359
20363
|
|
|
20360
20364
|
// (17:2) {#if unfolded}
|
|
20361
|
-
function create_if_block$
|
|
20365
|
+
function create_if_block$h(ctx) {
|
|
20362
20366
|
let path;
|
|
20363
20367
|
let path_intro;
|
|
20364
20368
|
let path_outro;
|
|
@@ -20416,13 +20420,13 @@ function create_if_block$g(ctx) {
|
|
|
20416
20420
|
};
|
|
20417
20421
|
}
|
|
20418
20422
|
|
|
20419
|
-
function create_fragment$
|
|
20423
|
+
function create_fragment$l(ctx) {
|
|
20420
20424
|
let svg;
|
|
20421
20425
|
let defs;
|
|
20422
20426
|
let linearGradient;
|
|
20423
20427
|
let stop0;
|
|
20424
20428
|
let stop1;
|
|
20425
|
-
let if_block = /*unfolded*/ ctx[3] && create_if_block$
|
|
20429
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$h(ctx);
|
|
20426
20430
|
|
|
20427
20431
|
return {
|
|
20428
20432
|
c() {
|
|
@@ -20461,7 +20465,7 @@ function create_fragment$k(ctx) {
|
|
|
20461
20465
|
internal.transition_in(if_block, 1);
|
|
20462
20466
|
}
|
|
20463
20467
|
} else {
|
|
20464
|
-
if_block = create_if_block$
|
|
20468
|
+
if_block = create_if_block$h(ctx);
|
|
20465
20469
|
if_block.c();
|
|
20466
20470
|
internal.transition_in(if_block, 1);
|
|
20467
20471
|
if_block.m(svg, null);
|
|
@@ -20489,7 +20493,7 @@ function create_fragment$k(ctx) {
|
|
|
20489
20493
|
};
|
|
20490
20494
|
}
|
|
20491
20495
|
|
|
20492
|
-
function instance$
|
|
20496
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
20493
20497
|
let { inDelay = 0 } = $$props;
|
|
20494
20498
|
let { duration = 0 } = $$props;
|
|
20495
20499
|
let { outDelay = 0 } = $$props;
|
|
@@ -20513,8 +20517,8 @@ class Straight extends internal.SvelteComponent {
|
|
|
20513
20517
|
internal.init(
|
|
20514
20518
|
this,
|
|
20515
20519
|
options,
|
|
20516
|
-
instance$
|
|
20517
|
-
create_fragment$
|
|
20520
|
+
instance$l,
|
|
20521
|
+
create_fragment$l,
|
|
20518
20522
|
internal.safe_not_equal,
|
|
20519
20523
|
{
|
|
20520
20524
|
inDelay: 0,
|
|
@@ -20522,19 +20526,19 @@ class Straight extends internal.SvelteComponent {
|
|
|
20522
20526
|
outDelay: 2,
|
|
20523
20527
|
unfolded: 3
|
|
20524
20528
|
},
|
|
20525
|
-
add_css$
|
|
20529
|
+
add_css$l
|
|
20526
20530
|
);
|
|
20527
20531
|
}
|
|
20528
20532
|
}
|
|
20529
20533
|
|
|
20530
20534
|
/* src/PanoTagPlugin/Components/Common/Shadow.svelte generated by Svelte v3.50.1 */
|
|
20531
20535
|
|
|
20532
|
-
function add_css$
|
|
20536
|
+
function add_css$k(target) {
|
|
20533
20537
|
internal.append_styles(target, "svelte-faoauy", ".shadow.svelte-faoauy{position:absolute}");
|
|
20534
20538
|
}
|
|
20535
20539
|
|
|
20536
20540
|
// (23:0) {#if visible}
|
|
20537
|
-
function create_if_block$
|
|
20541
|
+
function create_if_block$g(ctx) {
|
|
20538
20542
|
let div;
|
|
20539
20543
|
let div_style_value;
|
|
20540
20544
|
let div_intro;
|
|
@@ -20630,9 +20634,9 @@ function create_if_block$f(ctx) {
|
|
|
20630
20634
|
};
|
|
20631
20635
|
}
|
|
20632
20636
|
|
|
20633
|
-
function create_fragment$
|
|
20637
|
+
function create_fragment$k(ctx) {
|
|
20634
20638
|
let if_block_anchor;
|
|
20635
|
-
let if_block = /*visible*/ ctx[2] && create_if_block$
|
|
20639
|
+
let if_block = /*visible*/ ctx[2] && create_if_block$g(ctx);
|
|
20636
20640
|
|
|
20637
20641
|
return {
|
|
20638
20642
|
c() {
|
|
@@ -20652,7 +20656,7 @@ function create_fragment$j(ctx) {
|
|
|
20652
20656
|
internal.transition_in(if_block, 1);
|
|
20653
20657
|
}
|
|
20654
20658
|
} else {
|
|
20655
|
-
if_block = create_if_block$
|
|
20659
|
+
if_block = create_if_block$g(ctx);
|
|
20656
20660
|
if_block.c();
|
|
20657
20661
|
internal.transition_in(if_block, 1);
|
|
20658
20662
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -20684,7 +20688,7 @@ function px2rem(value) {
|
|
|
20684
20688
|
return typeof value === 'number' ? value / 16 + 'rem' : value;
|
|
20685
20689
|
}
|
|
20686
20690
|
|
|
20687
|
-
function instance$
|
|
20691
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
20688
20692
|
let { inDelay = 1000 } = $$props;
|
|
20689
20693
|
let { outDelay = 1000 } = $$props;
|
|
20690
20694
|
let { visible = true } = $$props;
|
|
@@ -20742,8 +20746,8 @@ class Shadow extends internal.SvelteComponent {
|
|
|
20742
20746
|
internal.init(
|
|
20743
20747
|
this,
|
|
20744
20748
|
options,
|
|
20745
|
-
instance$
|
|
20746
|
-
create_fragment$
|
|
20749
|
+
instance$k,
|
|
20750
|
+
create_fragment$k,
|
|
20747
20751
|
internal.safe_not_equal,
|
|
20748
20752
|
{
|
|
20749
20753
|
inDelay: 0,
|
|
@@ -20761,14 +20765,19 @@ class Shadow extends internal.SvelteComponent {
|
|
|
20761
20765
|
opacity: 12,
|
|
20762
20766
|
zIndex: 13
|
|
20763
20767
|
},
|
|
20764
|
-
add_css$
|
|
20768
|
+
add_css$k
|
|
20765
20769
|
);
|
|
20766
20770
|
}
|
|
20767
20771
|
}
|
|
20768
20772
|
|
|
20773
|
+
function random() {
|
|
20774
|
+
return Math.random().toString(36).slice(-6);
|
|
20775
|
+
}
|
|
20776
|
+
const RANDON_STRING = random();
|
|
20777
|
+
|
|
20769
20778
|
/* src/PanoTagPlugin/Components/Common/Text.svelte generated by Svelte v3.50.1 */
|
|
20770
20779
|
|
|
20771
|
-
function add_css$
|
|
20780
|
+
function add_css$j(target) {
|
|
20772
20781
|
internal.append_styles(target, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
20773
20782
|
}
|
|
20774
20783
|
|
|
@@ -20780,7 +20789,7 @@ function get_each_context$5(ctx, list, i) {
|
|
|
20780
20789
|
return child_ctx;
|
|
20781
20790
|
}
|
|
20782
20791
|
|
|
20783
|
-
// (
|
|
20792
|
+
// (79:0) {#each contentList as item, index}
|
|
20784
20793
|
function create_each_block$5(ctx) {
|
|
20785
20794
|
let span;
|
|
20786
20795
|
let t_value = /*item*/ ctx[10] + "";
|
|
@@ -20817,7 +20826,7 @@ function create_each_block$5(ctx) {
|
|
|
20817
20826
|
};
|
|
20818
20827
|
}
|
|
20819
20828
|
|
|
20820
|
-
function create_fragment$
|
|
20829
|
+
function create_fragment$j(ctx) {
|
|
20821
20830
|
let each_1_anchor;
|
|
20822
20831
|
let each_value = /*contentList*/ ctx[1];
|
|
20823
20832
|
let each_blocks = [];
|
|
@@ -20874,7 +20883,7 @@ function create_fragment$i(ctx) {
|
|
|
20874
20883
|
};
|
|
20875
20884
|
}
|
|
20876
20885
|
|
|
20877
|
-
function instance$
|
|
20886
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
20878
20887
|
let contentList;
|
|
20879
20888
|
let { inDelay = 0 } = $$props;
|
|
20880
20889
|
let { outDelay = 0 } = $$props;
|
|
@@ -20948,7 +20957,22 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
20948
20957
|
|
|
20949
20958
|
$$self.$$.update = () => {
|
|
20950
20959
|
if ($$self.$$.dirty & /*content*/ 16) {
|
|
20951
|
-
|
|
20960
|
+
// v0.3.7 emoji support
|
|
20961
|
+
$$invalidate(1, contentList = (() => {
|
|
20962
|
+
const result = [];
|
|
20963
|
+
|
|
20964
|
+
// eslint-disable-next-line prettier/prettier
|
|
20965
|
+
const emojiRegExp = new RegExp(/\p{RI}\p{RI}|\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?(\u{200D}\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?)+|\p{EPres}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?|\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})/gu);
|
|
20966
|
+
|
|
20967
|
+
const emojiSplitFlag = `__EMOJI_SPLIT_${RANDON_STRING}__`;
|
|
20968
|
+
const emojiFlag = `__EMOJI_${RANDON_STRING}__`;
|
|
20969
|
+
|
|
20970
|
+
content.slice().replace(emojiRegExp, emoji => `${emojiSplitFlag}${emojiFlag}${emoji}${emojiSplitFlag}`).split(emojiSplitFlag).forEach(item => {
|
|
20971
|
+
if (item.startsWith(emojiFlag)) return result.push(item.slice(emojiFlag.length)); else return result.push(...item.split(''));
|
|
20972
|
+
});
|
|
20973
|
+
|
|
20974
|
+
return result.filter(Boolean);
|
|
20975
|
+
})());
|
|
20952
20976
|
}
|
|
20953
20977
|
|
|
20954
20978
|
if ($$self.$$.dirty & /*unfolded*/ 32) {
|
|
@@ -20968,8 +20992,8 @@ class Text extends internal.SvelteComponent {
|
|
|
20968
20992
|
internal.init(
|
|
20969
20993
|
this,
|
|
20970
20994
|
options,
|
|
20971
|
-
instance$
|
|
20972
|
-
create_fragment$
|
|
20995
|
+
instance$j,
|
|
20996
|
+
create_fragment$j,
|
|
20973
20997
|
internal.safe_not_equal,
|
|
20974
20998
|
{
|
|
20975
20999
|
inDelay: 2,
|
|
@@ -20977,7 +21001,7 @@ class Text extends internal.SvelteComponent {
|
|
|
20977
21001
|
content: 4,
|
|
20978
21002
|
unfolded: 5
|
|
20979
21003
|
},
|
|
20980
|
-
add_css$
|
|
21004
|
+
add_css$j
|
|
20981
21005
|
);
|
|
20982
21006
|
}
|
|
20983
21007
|
}
|
|
@@ -20987,12 +21011,12 @@ const Image_Play = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAA
|
|
|
20987
21011
|
|
|
20988
21012
|
/* src/PanoTagPlugin/Components/Common/Arrow.svelte generated by Svelte v3.50.1 */
|
|
20989
21013
|
|
|
20990
|
-
function add_css$
|
|
21014
|
+
function add_css$i(target) {
|
|
20991
21015
|
internal.append_styles(target, "svelte-1ogmlqq", ".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}");
|
|
20992
21016
|
}
|
|
20993
21017
|
|
|
20994
21018
|
// (12:0) {#if visible}
|
|
20995
|
-
function create_if_block$
|
|
21019
|
+
function create_if_block$f(ctx) {
|
|
20996
21020
|
let div1;
|
|
20997
21021
|
let shadow;
|
|
20998
21022
|
let t;
|
|
@@ -21085,10 +21109,10 @@ function create_if_block$e(ctx) {
|
|
|
21085
21109
|
};
|
|
21086
21110
|
}
|
|
21087
21111
|
|
|
21088
|
-
function create_fragment$
|
|
21112
|
+
function create_fragment$i(ctx) {
|
|
21089
21113
|
let if_block_anchor;
|
|
21090
21114
|
let current;
|
|
21091
|
-
let if_block = /*visible*/ ctx[1] && create_if_block$
|
|
21115
|
+
let if_block = /*visible*/ ctx[1] && create_if_block$f(ctx);
|
|
21092
21116
|
|
|
21093
21117
|
return {
|
|
21094
21118
|
c() {
|
|
@@ -21109,7 +21133,7 @@ function create_fragment$h(ctx) {
|
|
|
21109
21133
|
internal.transition_in(if_block, 1);
|
|
21110
21134
|
}
|
|
21111
21135
|
} else {
|
|
21112
|
-
if_block = create_if_block$
|
|
21136
|
+
if_block = create_if_block$f(ctx);
|
|
21113
21137
|
if_block.c();
|
|
21114
21138
|
internal.transition_in(if_block, 1);
|
|
21115
21139
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -21140,7 +21164,7 @@ function create_fragment$h(ctx) {
|
|
|
21140
21164
|
};
|
|
21141
21165
|
}
|
|
21142
21166
|
|
|
21143
|
-
function instance$
|
|
21167
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
21144
21168
|
let { direction = 'right' } = $$props;
|
|
21145
21169
|
let { visible = true } = $$props;
|
|
21146
21170
|
let { duration = 0 } = $$props;
|
|
@@ -21169,8 +21193,8 @@ class Arrow extends internal.SvelteComponent {
|
|
|
21169
21193
|
internal.init(
|
|
21170
21194
|
this,
|
|
21171
21195
|
options,
|
|
21172
|
-
instance$
|
|
21173
|
-
create_fragment$
|
|
21196
|
+
instance$i,
|
|
21197
|
+
create_fragment$i,
|
|
21174
21198
|
internal.safe_not_equal,
|
|
21175
21199
|
{
|
|
21176
21200
|
direction: 0,
|
|
@@ -21179,14 +21203,14 @@ class Arrow extends internal.SvelteComponent {
|
|
|
21179
21203
|
inDelay: 3,
|
|
21180
21204
|
outDelay: 4
|
|
21181
21205
|
},
|
|
21182
|
-
add_css$
|
|
21206
|
+
add_css$i
|
|
21183
21207
|
);
|
|
21184
21208
|
}
|
|
21185
21209
|
}
|
|
21186
21210
|
|
|
21187
21211
|
/* src/PanoTagPlugin/Components/Common/MultiLineText.svelte generated by Svelte v3.50.1 */
|
|
21188
21212
|
|
|
21189
|
-
function add_css$
|
|
21213
|
+
function add_css$h(target) {
|
|
21190
21214
|
internal.append_styles(target, "svelte-1fuzm7v", ".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}");
|
|
21191
21215
|
}
|
|
21192
21216
|
|
|
@@ -21258,7 +21282,7 @@ function create_each_block$4(key_1, ctx) {
|
|
|
21258
21282
|
}
|
|
21259
21283
|
|
|
21260
21284
|
// (28:0) {#if lineHeight < textHeight}
|
|
21261
|
-
function create_if_block$
|
|
21285
|
+
function create_if_block$e(ctx) {
|
|
21262
21286
|
let div;
|
|
21263
21287
|
let arrow;
|
|
21264
21288
|
let current;
|
|
@@ -21305,7 +21329,7 @@ function create_if_block$d(ctx) {
|
|
|
21305
21329
|
};
|
|
21306
21330
|
}
|
|
21307
21331
|
|
|
21308
|
-
function create_fragment$
|
|
21332
|
+
function create_fragment$h(ctx) {
|
|
21309
21333
|
let each_blocks = [];
|
|
21310
21334
|
let each_1_lookup = new Map();
|
|
21311
21335
|
let t;
|
|
@@ -21320,7 +21344,7 @@ function create_fragment$g(ctx) {
|
|
|
21320
21344
|
each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
|
|
21321
21345
|
}
|
|
21322
21346
|
|
|
21323
|
-
let if_block = /*lineHeight*/ ctx[3] < /*textHeight*/ ctx[4] && create_if_block$
|
|
21347
|
+
let if_block = /*lineHeight*/ ctx[3] < /*textHeight*/ ctx[4] && create_if_block$e(ctx);
|
|
21324
21348
|
|
|
21325
21349
|
return {
|
|
21326
21350
|
c() {
|
|
@@ -21358,7 +21382,7 @@ function create_fragment$g(ctx) {
|
|
|
21358
21382
|
internal.transition_in(if_block, 1);
|
|
21359
21383
|
}
|
|
21360
21384
|
} else {
|
|
21361
|
-
if_block = create_if_block$
|
|
21385
|
+
if_block = create_if_block$e(ctx);
|
|
21362
21386
|
if_block.c();
|
|
21363
21387
|
internal.transition_in(if_block, 1);
|
|
21364
21388
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -21403,7 +21427,7 @@ function create_fragment$g(ctx) {
|
|
|
21403
21427
|
};
|
|
21404
21428
|
}
|
|
21405
21429
|
|
|
21406
|
-
function instance$
|
|
21430
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
21407
21431
|
let transform;
|
|
21408
21432
|
let arrowDirection;
|
|
21409
21433
|
let foldTextDelay;
|
|
@@ -21478,27 +21502,27 @@ class MultiLineText extends internal.SvelteComponent {
|
|
|
21478
21502
|
internal.init(
|
|
21479
21503
|
this,
|
|
21480
21504
|
options,
|
|
21481
|
-
instance$
|
|
21482
|
-
create_fragment$
|
|
21505
|
+
instance$h,
|
|
21506
|
+
create_fragment$h,
|
|
21483
21507
|
internal.safe_not_equal,
|
|
21484
21508
|
{
|
|
21485
21509
|
visible: 0,
|
|
21486
21510
|
textUnfolded: 8,
|
|
21487
21511
|
textItems: 1
|
|
21488
21512
|
},
|
|
21489
|
-
add_css$
|
|
21513
|
+
add_css$h
|
|
21490
21514
|
);
|
|
21491
21515
|
}
|
|
21492
21516
|
}
|
|
21493
21517
|
|
|
21494
21518
|
/* src/PanoTagPlugin/Components/Tag/TextTag.svelte generated by Svelte v3.50.1 */
|
|
21495
21519
|
|
|
21496
|
-
function add_css$
|
|
21520
|
+
function add_css$g(target) {
|
|
21497
21521
|
internal.append_styles(target, "svelte-4fxqxl", ".line.svelte-4fxqxl{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4fxqxl{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
|
|
21498
21522
|
}
|
|
21499
21523
|
|
|
21500
21524
|
// (29:0) {#if tag.state}
|
|
21501
|
-
function create_if_block$
|
|
21525
|
+
function create_if_block$d(ctx) {
|
|
21502
21526
|
let shadow;
|
|
21503
21527
|
let t0;
|
|
21504
21528
|
let div0;
|
|
@@ -21616,10 +21640,10 @@ function create_if_block$c(ctx) {
|
|
|
21616
21640
|
};
|
|
21617
21641
|
}
|
|
21618
21642
|
|
|
21619
|
-
function create_fragment$
|
|
21643
|
+
function create_fragment$g(ctx) {
|
|
21620
21644
|
let if_block_anchor;
|
|
21621
21645
|
let current;
|
|
21622
|
-
let if_block = /*tag*/ ctx[0].state && create_if_block$
|
|
21646
|
+
let if_block = /*tag*/ ctx[0].state && create_if_block$d(ctx);
|
|
21623
21647
|
|
|
21624
21648
|
return {
|
|
21625
21649
|
c() {
|
|
@@ -21640,7 +21664,7 @@ function create_fragment$f(ctx) {
|
|
|
21640
21664
|
internal.transition_in(if_block, 1);
|
|
21641
21665
|
}
|
|
21642
21666
|
} else {
|
|
21643
|
-
if_block = create_if_block$
|
|
21667
|
+
if_block = create_if_block$d(ctx);
|
|
21644
21668
|
if_block.c();
|
|
21645
21669
|
internal.transition_in(if_block, 1);
|
|
21646
21670
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -21671,7 +21695,7 @@ function create_fragment$f(ctx) {
|
|
|
21671
21695
|
};
|
|
21672
21696
|
}
|
|
21673
21697
|
|
|
21674
|
-
function instance$
|
|
21698
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
21675
21699
|
let unfolded;
|
|
21676
21700
|
let text;
|
|
21677
21701
|
let foldTextDelay;
|
|
@@ -21746,18 +21770,18 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
21746
21770
|
class TextTag extends internal.SvelteComponent {
|
|
21747
21771
|
constructor(options) {
|
|
21748
21772
|
super();
|
|
21749
|
-
internal.init(this, options, instance$
|
|
21773
|
+
internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { tag: 0 }, add_css$g);
|
|
21750
21774
|
}
|
|
21751
21775
|
}
|
|
21752
21776
|
|
|
21753
21777
|
/* src/PanoTagPlugin/Components/Common/Line/Polyline.svelte generated by Svelte v3.50.1 */
|
|
21754
21778
|
|
|
21755
|
-
function add_css$
|
|
21779
|
+
function add_css$f(target) {
|
|
21756
21780
|
internal.append_styles(target, "svelte-e72ouh", ".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}");
|
|
21757
21781
|
}
|
|
21758
21782
|
|
|
21759
21783
|
// (18:2) {#if unfolded}
|
|
21760
|
-
function create_if_block$
|
|
21784
|
+
function create_if_block$c(ctx) {
|
|
21761
21785
|
let path;
|
|
21762
21786
|
let path_intro;
|
|
21763
21787
|
let path_outro;
|
|
@@ -21817,13 +21841,13 @@ function create_if_block$b(ctx) {
|
|
|
21817
21841
|
};
|
|
21818
21842
|
}
|
|
21819
21843
|
|
|
21820
|
-
function create_fragment$
|
|
21844
|
+
function create_fragment$f(ctx) {
|
|
21821
21845
|
let svg;
|
|
21822
21846
|
let defs;
|
|
21823
21847
|
let linearGradient;
|
|
21824
21848
|
let stop0;
|
|
21825
21849
|
let stop1;
|
|
21826
|
-
let if_block = /*unfolded*/ ctx[3] && create_if_block$
|
|
21850
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$c(ctx);
|
|
21827
21851
|
|
|
21828
21852
|
return {
|
|
21829
21853
|
c() {
|
|
@@ -21861,7 +21885,7 @@ function create_fragment$e(ctx) {
|
|
|
21861
21885
|
internal.transition_in(if_block, 1);
|
|
21862
21886
|
}
|
|
21863
21887
|
} else {
|
|
21864
|
-
if_block = create_if_block$
|
|
21888
|
+
if_block = create_if_block$c(ctx);
|
|
21865
21889
|
if_block.c();
|
|
21866
21890
|
internal.transition_in(if_block, 1);
|
|
21867
21891
|
if_block.m(svg, null);
|
|
@@ -21889,7 +21913,7 @@ function create_fragment$e(ctx) {
|
|
|
21889
21913
|
};
|
|
21890
21914
|
}
|
|
21891
21915
|
|
|
21892
|
-
function instance$
|
|
21916
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
21893
21917
|
let { inDelay = 0 } = $$props;
|
|
21894
21918
|
let { duration = 0 } = $$props;
|
|
21895
21919
|
let { outDelay = 0 } = $$props;
|
|
@@ -21913,8 +21937,8 @@ class Polyline extends internal.SvelteComponent {
|
|
|
21913
21937
|
internal.init(
|
|
21914
21938
|
this,
|
|
21915
21939
|
options,
|
|
21916
|
-
instance$
|
|
21917
|
-
create_fragment$
|
|
21940
|
+
instance$f,
|
|
21941
|
+
create_fragment$f,
|
|
21918
21942
|
internal.safe_not_equal,
|
|
21919
21943
|
{
|
|
21920
21944
|
inDelay: 0,
|
|
@@ -21922,98 +21946,295 @@ class Polyline extends internal.SvelteComponent {
|
|
|
21922
21946
|
outDelay: 2,
|
|
21923
21947
|
unfolded: 3
|
|
21924
21948
|
},
|
|
21925
|
-
add_css$
|
|
21949
|
+
add_css$f
|
|
21926
21950
|
);
|
|
21927
21951
|
}
|
|
21928
21952
|
}
|
|
21929
21953
|
|
|
21954
|
+
/* src/PanoTagPlugin/Components/Common/MediaItem.svelte generated by Svelte v3.50.1 */
|
|
21955
|
+
|
|
21956
|
+
function add_css$e(target) {
|
|
21957
|
+
internal.append_styles(target, "svelte-6jwk1w", ".media-item.svelte-6jwk1w{height:100%}.media-content.svelte-6jwk1w{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-6jwk1w{width:1.75rem;height:1.75rem;background-size:100%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}");
|
|
21958
|
+
}
|
|
21959
|
+
|
|
21960
|
+
// (6:0) {#if media}
|
|
21961
|
+
function create_if_block$b(ctx) {
|
|
21962
|
+
let div;
|
|
21963
|
+
let div_style_value;
|
|
21964
|
+
|
|
21965
|
+
function select_block_type(ctx, dirty) {
|
|
21966
|
+
if (/*media*/ ctx[0].type === 'Image') return create_if_block_1$7;
|
|
21967
|
+
if (/*media*/ ctx[0].type === 'Video') return create_if_block_2$3;
|
|
21968
|
+
}
|
|
21969
|
+
|
|
21970
|
+
let current_block_type = select_block_type(ctx);
|
|
21971
|
+
let if_block = current_block_type && current_block_type(ctx);
|
|
21972
|
+
|
|
21973
|
+
return {
|
|
21974
|
+
c() {
|
|
21975
|
+
div = internal.element("div");
|
|
21976
|
+
if (if_block) if_block.c();
|
|
21977
|
+
internal.attr(div, "class", "media-item svelte-6jwk1w");
|
|
21978
|
+
internal.attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[1]};`);
|
|
21979
|
+
},
|
|
21980
|
+
m(target, anchor) {
|
|
21981
|
+
internal.insert(target, div, anchor);
|
|
21982
|
+
if (if_block) if_block.m(div, null);
|
|
21983
|
+
},
|
|
21984
|
+
p(ctx, dirty) {
|
|
21985
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
21986
|
+
if_block.p(ctx, dirty);
|
|
21987
|
+
} else {
|
|
21988
|
+
if (if_block) if_block.d(1);
|
|
21989
|
+
if_block = current_block_type && current_block_type(ctx);
|
|
21990
|
+
|
|
21991
|
+
if (if_block) {
|
|
21992
|
+
if_block.c();
|
|
21993
|
+
if_block.m(div, null);
|
|
21994
|
+
}
|
|
21995
|
+
}
|
|
21996
|
+
|
|
21997
|
+
if (dirty & /*objectFit*/ 2 && div_style_value !== (div_style_value = `object-fit: ${/*objectFit*/ ctx[1]};`)) {
|
|
21998
|
+
internal.attr(div, "style", div_style_value);
|
|
21999
|
+
}
|
|
22000
|
+
},
|
|
22001
|
+
d(detaching) {
|
|
22002
|
+
if (detaching) internal.detach(div);
|
|
22003
|
+
|
|
22004
|
+
if (if_block) {
|
|
22005
|
+
if_block.d();
|
|
22006
|
+
}
|
|
22007
|
+
}
|
|
22008
|
+
};
|
|
22009
|
+
}
|
|
22010
|
+
|
|
22011
|
+
// (10:37)
|
|
22012
|
+
function create_if_block_2$3(ctx) {
|
|
22013
|
+
let video;
|
|
22014
|
+
let video_src_value;
|
|
22015
|
+
let video_poster_value;
|
|
22016
|
+
let video_preload_value;
|
|
22017
|
+
let t;
|
|
22018
|
+
let div;
|
|
22019
|
+
|
|
22020
|
+
return {
|
|
22021
|
+
c() {
|
|
22022
|
+
video = internal.element("video");
|
|
22023
|
+
t = internal.space();
|
|
22024
|
+
div = internal.element("div");
|
|
22025
|
+
internal.attr(video, "class", "media-content svelte-6jwk1w");
|
|
22026
|
+
if (!internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[0].url)) internal.attr(video, "src", video_src_value);
|
|
22027
|
+
internal.attr(video, "poster", video_poster_value = /*media*/ ctx[0].videoCoverUrl ?? undefined);
|
|
22028
|
+
internal.attr(video, "preload", video_preload_value = /*media*/ ctx[0].videoCoverUrl ? undefined : 'auto');
|
|
22029
|
+
video.playsInline = true;
|
|
22030
|
+
internal.attr(video, "paused", "");
|
|
22031
|
+
video.loop = false;
|
|
22032
|
+
internal.attr(video, "crossorigin", "");
|
|
22033
|
+
video.controls = false;
|
|
22034
|
+
video.muted = true;
|
|
22035
|
+
internal.attr(div, "class", "video-icon svelte-6jwk1w");
|
|
22036
|
+
internal.set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
22037
|
+
},
|
|
22038
|
+
m(target, anchor) {
|
|
22039
|
+
internal.insert(target, video, anchor);
|
|
22040
|
+
internal.insert(target, t, anchor);
|
|
22041
|
+
internal.insert(target, div, anchor);
|
|
22042
|
+
},
|
|
22043
|
+
p(ctx, dirty) {
|
|
22044
|
+
if (dirty & /*media*/ 1 && !internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[0].url)) {
|
|
22045
|
+
internal.attr(video, "src", video_src_value);
|
|
22046
|
+
}
|
|
22047
|
+
|
|
22048
|
+
if (dirty & /*media*/ 1 && video_poster_value !== (video_poster_value = /*media*/ ctx[0].videoCoverUrl ?? undefined)) {
|
|
22049
|
+
internal.attr(video, "poster", video_poster_value);
|
|
22050
|
+
}
|
|
22051
|
+
|
|
22052
|
+
if (dirty & /*media*/ 1 && video_preload_value !== (video_preload_value = /*media*/ ctx[0].videoCoverUrl ? undefined : 'auto')) {
|
|
22053
|
+
internal.attr(video, "preload", video_preload_value);
|
|
22054
|
+
}
|
|
22055
|
+
},
|
|
22056
|
+
d(detaching) {
|
|
22057
|
+
if (detaching) internal.detach(video);
|
|
22058
|
+
if (detaching) internal.detach(t);
|
|
22059
|
+
if (detaching) internal.detach(div);
|
|
22060
|
+
}
|
|
22061
|
+
};
|
|
22062
|
+
}
|
|
22063
|
+
|
|
22064
|
+
// (8:4) {#if media.type === 'Image'}
|
|
22065
|
+
function create_if_block_1$7(ctx) {
|
|
22066
|
+
let img;
|
|
22067
|
+
let img_src_value;
|
|
22068
|
+
let img_alt_value;
|
|
22069
|
+
|
|
22070
|
+
return {
|
|
22071
|
+
c() {
|
|
22072
|
+
img = internal.element("img");
|
|
22073
|
+
internal.attr(img, "class", "media-content svelte-6jwk1w");
|
|
22074
|
+
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[0].url)) internal.attr(img, "src", img_src_value);
|
|
22075
|
+
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[0].name);
|
|
22076
|
+
},
|
|
22077
|
+
m(target, anchor) {
|
|
22078
|
+
internal.insert(target, img, anchor);
|
|
22079
|
+
},
|
|
22080
|
+
p(ctx, dirty) {
|
|
22081
|
+
if (dirty & /*media*/ 1 && !internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[0].url)) {
|
|
22082
|
+
internal.attr(img, "src", img_src_value);
|
|
22083
|
+
}
|
|
22084
|
+
|
|
22085
|
+
if (dirty & /*media*/ 1 && img_alt_value !== (img_alt_value = /*media*/ ctx[0].name)) {
|
|
22086
|
+
internal.attr(img, "alt", img_alt_value);
|
|
22087
|
+
}
|
|
22088
|
+
},
|
|
22089
|
+
d(detaching) {
|
|
22090
|
+
if (detaching) internal.detach(img);
|
|
22091
|
+
}
|
|
22092
|
+
};
|
|
22093
|
+
}
|
|
22094
|
+
|
|
22095
|
+
function create_fragment$e(ctx) {
|
|
22096
|
+
let if_block_anchor;
|
|
22097
|
+
let if_block = /*media*/ ctx[0] && create_if_block$b(ctx);
|
|
22098
|
+
|
|
22099
|
+
return {
|
|
22100
|
+
c() {
|
|
22101
|
+
if (if_block) if_block.c();
|
|
22102
|
+
if_block_anchor = internal.empty();
|
|
22103
|
+
},
|
|
22104
|
+
m(target, anchor) {
|
|
22105
|
+
if (if_block) if_block.m(target, anchor);
|
|
22106
|
+
internal.insert(target, if_block_anchor, anchor);
|
|
22107
|
+
},
|
|
22108
|
+
p(ctx, [dirty]) {
|
|
22109
|
+
if (/*media*/ ctx[0]) {
|
|
22110
|
+
if (if_block) {
|
|
22111
|
+
if_block.p(ctx, dirty);
|
|
22112
|
+
} else {
|
|
22113
|
+
if_block = create_if_block$b(ctx);
|
|
22114
|
+
if_block.c();
|
|
22115
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
22116
|
+
}
|
|
22117
|
+
} else if (if_block) {
|
|
22118
|
+
if_block.d(1);
|
|
22119
|
+
if_block = null;
|
|
22120
|
+
}
|
|
22121
|
+
},
|
|
22122
|
+
i: internal.noop,
|
|
22123
|
+
o: internal.noop,
|
|
22124
|
+
d(detaching) {
|
|
22125
|
+
if (if_block) if_block.d(detaching);
|
|
22126
|
+
if (detaching) internal.detach(if_block_anchor);
|
|
22127
|
+
}
|
|
22128
|
+
};
|
|
22129
|
+
}
|
|
22130
|
+
|
|
22131
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
22132
|
+
let { media } = $$props;
|
|
22133
|
+
let { objectFit = 'cover' } = $$props;
|
|
22134
|
+
|
|
22135
|
+
$$self.$$set = $$props => {
|
|
22136
|
+
if ('media' in $$props) $$invalidate(0, media = $$props.media);
|
|
22137
|
+
if ('objectFit' in $$props) $$invalidate(1, objectFit = $$props.objectFit);
|
|
22138
|
+
};
|
|
22139
|
+
|
|
22140
|
+
return [media, objectFit];
|
|
22141
|
+
}
|
|
22142
|
+
|
|
22143
|
+
class MediaItem extends internal.SvelteComponent {
|
|
22144
|
+
constructor(options) {
|
|
22145
|
+
super();
|
|
22146
|
+
internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { media: 0, objectFit: 1 }, add_css$e);
|
|
22147
|
+
}
|
|
22148
|
+
}
|
|
22149
|
+
|
|
21930
22150
|
/* src/PanoTagPlugin/Components/Common/Media.svelte generated by Svelte v3.50.1 */
|
|
21931
22151
|
|
|
21932
22152
|
function add_css$d(target) {
|
|
21933
|
-
internal.append_styles(target, "svelte-
|
|
22153
|
+
internal.append_styles(target, "svelte-ai0lv9", ".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}");
|
|
21934
22154
|
}
|
|
21935
22155
|
|
|
21936
22156
|
function get_each_context$3(ctx, list, i) {
|
|
21937
22157
|
const child_ctx = ctx.slice();
|
|
21938
|
-
child_ctx[
|
|
22158
|
+
child_ctx[14] = list[i];
|
|
21939
22159
|
return child_ctx;
|
|
21940
22160
|
}
|
|
21941
22161
|
|
|
21942
|
-
// (
|
|
22162
|
+
// (24:0) {#if unfolded}
|
|
21943
22163
|
function create_if_block$a(ctx) {
|
|
21944
22164
|
let div;
|
|
22165
|
+
let current_block_type_index;
|
|
22166
|
+
let if_block;
|
|
21945
22167
|
let div_intro;
|
|
21946
22168
|
let div_outro;
|
|
21947
22169
|
let current;
|
|
21948
|
-
|
|
21949
|
-
|
|
22170
|
+
const if_block_creators = [create_if_block_1$6, create_else_block$1];
|
|
22171
|
+
const if_blocks = [];
|
|
21950
22172
|
|
|
21951
|
-
|
|
21952
|
-
|
|
22173
|
+
function select_block_type(ctx, dirty) {
|
|
22174
|
+
if (/*carouselEnabled*/ ctx[11]) return 0;
|
|
22175
|
+
return 1;
|
|
21953
22176
|
}
|
|
21954
22177
|
|
|
22178
|
+
current_block_type_index = select_block_type(ctx);
|
|
22179
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
22180
|
+
|
|
21955
22181
|
return {
|
|
21956
22182
|
c() {
|
|
21957
22183
|
div = internal.element("div");
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21961
|
-
}
|
|
21962
|
-
|
|
21963
|
-
internal.attr(div, "class", "media svelte-129jnm");
|
|
21964
|
-
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[3]);
|
|
22184
|
+
if_block.c();
|
|
22185
|
+
internal.attr(div, "class", "media svelte-ai0lv9");
|
|
22186
|
+
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
|
|
21965
22187
|
},
|
|
21966
22188
|
m(target, anchor) {
|
|
21967
22189
|
internal.insert(target, div, anchor);
|
|
21968
|
-
|
|
21969
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
21970
|
-
each_blocks[i].m(div, null);
|
|
21971
|
-
}
|
|
21972
|
-
|
|
22190
|
+
if_blocks[current_block_type_index].m(div, null);
|
|
21973
22191
|
current = true;
|
|
21974
22192
|
},
|
|
21975
22193
|
p(new_ctx, dirty) {
|
|
21976
22194
|
ctx = new_ctx;
|
|
22195
|
+
let previous_block_index = current_block_type_index;
|
|
22196
|
+
current_block_type_index = select_block_type(ctx);
|
|
21977
22197
|
|
|
21978
|
-
if (
|
|
21979
|
-
|
|
21980
|
-
|
|
22198
|
+
if (current_block_type_index === previous_block_index) {
|
|
22199
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
22200
|
+
} else {
|
|
22201
|
+
internal.group_outros();
|
|
21981
22202
|
|
|
21982
|
-
|
|
21983
|
-
|
|
22203
|
+
internal.transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
22204
|
+
if_blocks[previous_block_index] = null;
|
|
22205
|
+
});
|
|
21984
22206
|
|
|
21985
|
-
|
|
21986
|
-
|
|
21987
|
-
} else {
|
|
21988
|
-
each_blocks[i] = create_each_block$3(child_ctx);
|
|
21989
|
-
each_blocks[i].c();
|
|
21990
|
-
each_blocks[i].m(div, null);
|
|
21991
|
-
}
|
|
21992
|
-
}
|
|
22207
|
+
internal.check_outros();
|
|
22208
|
+
if_block = if_blocks[current_block_type_index];
|
|
21993
22209
|
|
|
21994
|
-
|
|
21995
|
-
|
|
22210
|
+
if (!if_block) {
|
|
22211
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
22212
|
+
if_block.c();
|
|
22213
|
+
} else {
|
|
22214
|
+
if_block.p(ctx, dirty);
|
|
21996
22215
|
}
|
|
21997
22216
|
|
|
21998
|
-
|
|
22217
|
+
internal.transition_in(if_block, 1);
|
|
22218
|
+
if_block.m(div, null);
|
|
21999
22219
|
}
|
|
22000
22220
|
|
|
22001
|
-
if (!current || dirty & /*unfolded*/
|
|
22002
|
-
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[
|
|
22221
|
+
if (!current || dirty & /*unfolded*/ 16) {
|
|
22222
|
+
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
|
|
22003
22223
|
}
|
|
22004
22224
|
},
|
|
22005
22225
|
i(local) {
|
|
22006
22226
|
if (current) return;
|
|
22227
|
+
internal.transition_in(if_block);
|
|
22007
22228
|
|
|
22008
22229
|
if (local) {
|
|
22009
22230
|
internal.add_render_callback(() => {
|
|
22010
22231
|
if (div_outro) div_outro.end(1);
|
|
22011
22232
|
|
|
22012
|
-
div_intro = internal.create_in_transition(div, transition.fly, /*animation*/ ctx[
|
|
22233
|
+
div_intro = internal.create_in_transition(div, transition.fly, /*animation*/ ctx[5]
|
|
22013
22234
|
? {
|
|
22014
22235
|
y: 4,
|
|
22015
|
-
duration: /*duration*/ ctx[
|
|
22016
|
-
delay: /*inDelay*/ ctx[
|
|
22236
|
+
duration: /*duration*/ ctx[3],
|
|
22237
|
+
delay: /*inDelay*/ ctx[1],
|
|
22017
22238
|
easing: easing.linear
|
|
22018
22239
|
}
|
|
22019
22240
|
: undefined);
|
|
@@ -22025,14 +22246,15 @@ function create_if_block$a(ctx) {
|
|
|
22025
22246
|
current = true;
|
|
22026
22247
|
},
|
|
22027
22248
|
o(local) {
|
|
22249
|
+
internal.transition_out(if_block);
|
|
22028
22250
|
if (div_intro) div_intro.invalidate();
|
|
22029
22251
|
|
|
22030
22252
|
if (local) {
|
|
22031
|
-
div_outro = internal.create_out_transition(div, transition.fly, /*animation*/ ctx[
|
|
22253
|
+
div_outro = internal.create_out_transition(div, transition.fly, /*animation*/ ctx[5]
|
|
22032
22254
|
? {
|
|
22033
22255
|
y: 4,
|
|
22034
|
-
duration: /*duration*/ ctx[
|
|
22035
|
-
delay: /*outDelay*/ ctx[
|
|
22256
|
+
duration: /*duration*/ ctx[3],
|
|
22257
|
+
delay: /*outDelay*/ ctx[2],
|
|
22036
22258
|
easing: easing.linear
|
|
22037
22259
|
}
|
|
22038
22260
|
: undefined);
|
|
@@ -22042,211 +22264,295 @@ function create_if_block$a(ctx) {
|
|
|
22042
22264
|
},
|
|
22043
22265
|
d(detaching) {
|
|
22044
22266
|
if (detaching) internal.detach(div);
|
|
22045
|
-
|
|
22267
|
+
if_blocks[current_block_type_index].d();
|
|
22046
22268
|
if (detaching && div_outro) div_outro.end();
|
|
22047
22269
|
}
|
|
22048
22270
|
};
|
|
22049
22271
|
}
|
|
22050
22272
|
|
|
22051
|
-
// (
|
|
22052
|
-
function
|
|
22053
|
-
let
|
|
22054
|
-
let
|
|
22055
|
-
|
|
22273
|
+
// (80:4) {:else}
|
|
22274
|
+
function create_else_block$1(ctx) {
|
|
22275
|
+
let mediaitem;
|
|
22276
|
+
let current;
|
|
22277
|
+
|
|
22278
|
+
mediaitem = new MediaItem({
|
|
22279
|
+
props: {
|
|
22280
|
+
media: /*mediaData*/ ctx[0][0],
|
|
22281
|
+
objectFit: /*objectFit*/ ctx[6]
|
|
22282
|
+
}
|
|
22283
|
+
});
|
|
22056
22284
|
|
|
22057
22285
|
return {
|
|
22058
22286
|
c() {
|
|
22059
|
-
|
|
22060
|
-
internal.attr(video, "class", "media-content svelte-129jnm");
|
|
22061
|
-
if (!internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) internal.attr(video, "src", video_src_value);
|
|
22062
|
-
internal.attr(video, "poster", video_poster_value = /*media*/ ctx[9].videoCoverUrl);
|
|
22063
|
-
video.playsInline = true;
|
|
22064
|
-
internal.attr(video, "paused", "");
|
|
22065
|
-
video.loop = false;
|
|
22066
|
-
internal.attr(video, "preload", "auto");
|
|
22067
|
-
internal.attr(video, "crossorigin", "");
|
|
22068
|
-
video.controls = false;
|
|
22069
|
-
video.muted = true;
|
|
22287
|
+
internal.create_component(mediaitem.$$.fragment);
|
|
22070
22288
|
},
|
|
22071
22289
|
m(target, anchor) {
|
|
22072
|
-
internal.
|
|
22290
|
+
internal.mount_component(mediaitem, target, anchor);
|
|
22291
|
+
current = true;
|
|
22073
22292
|
},
|
|
22074
22293
|
p(ctx, dirty) {
|
|
22075
|
-
|
|
22076
|
-
|
|
22077
|
-
|
|
22078
|
-
|
|
22079
|
-
|
|
22080
|
-
|
|
22081
|
-
|
|
22294
|
+
const mediaitem_changes = {};
|
|
22295
|
+
if (dirty & /*mediaData*/ 1) mediaitem_changes.media = /*mediaData*/ ctx[0][0];
|
|
22296
|
+
if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
|
|
22297
|
+
mediaitem.$set(mediaitem_changes);
|
|
22298
|
+
},
|
|
22299
|
+
i(local) {
|
|
22300
|
+
if (current) return;
|
|
22301
|
+
internal.transition_in(mediaitem.$$.fragment, local);
|
|
22302
|
+
current = true;
|
|
22303
|
+
},
|
|
22304
|
+
o(local) {
|
|
22305
|
+
internal.transition_out(mediaitem.$$.fragment, local);
|
|
22306
|
+
current = false;
|
|
22082
22307
|
},
|
|
22083
22308
|
d(detaching) {
|
|
22084
|
-
|
|
22309
|
+
internal.destroy_component(mediaitem, detaching);
|
|
22085
22310
|
}
|
|
22086
22311
|
};
|
|
22087
22312
|
}
|
|
22088
22313
|
|
|
22089
|
-
// (
|
|
22090
|
-
function
|
|
22091
|
-
let
|
|
22092
|
-
let
|
|
22093
|
-
|
|
22314
|
+
// (31:4) {#if carouselEnabled}
|
|
22315
|
+
function create_if_block_1$6(ctx) {
|
|
22316
|
+
let swiper$1;
|
|
22317
|
+
let current;
|
|
22318
|
+
|
|
22319
|
+
swiper$1 = new svelte$1.Swiper({
|
|
22320
|
+
props: {
|
|
22321
|
+
style: "height: 100%",
|
|
22322
|
+
modules: [swiper.Autoplay],
|
|
22323
|
+
spaceBetween: 30,
|
|
22324
|
+
autoplay: /*autoplay*/ ctx[10]
|
|
22325
|
+
? noTypecheck({
|
|
22326
|
+
delay: 2000,
|
|
22327
|
+
stopOnLastSlide: false,
|
|
22328
|
+
disableOnInteraction: false
|
|
22329
|
+
})
|
|
22330
|
+
: false,
|
|
22331
|
+
loop: true,
|
|
22332
|
+
$$slots: { default: [create_default_slot] },
|
|
22333
|
+
$$scope: { ctx }
|
|
22334
|
+
}
|
|
22335
|
+
});
|
|
22336
|
+
|
|
22337
|
+
swiper$1.$on("slideChange", /*slideChange_handler*/ ctx[13]);
|
|
22094
22338
|
|
|
22095
22339
|
return {
|
|
22096
22340
|
c() {
|
|
22097
|
-
|
|
22098
|
-
internal.attr(img, "class", "media-content svelte-129jnm");
|
|
22099
|
-
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) internal.attr(img, "src", img_src_value);
|
|
22100
|
-
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
22341
|
+
internal.create_component(swiper$1.$$.fragment);
|
|
22101
22342
|
},
|
|
22102
22343
|
m(target, anchor) {
|
|
22103
|
-
internal.
|
|
22344
|
+
internal.mount_component(swiper$1, target, anchor);
|
|
22345
|
+
current = true;
|
|
22104
22346
|
},
|
|
22105
22347
|
p(ctx, dirty) {
|
|
22106
|
-
|
|
22107
|
-
|
|
22108
|
-
|
|
22348
|
+
const swiper_changes = {};
|
|
22349
|
+
|
|
22350
|
+
if (dirty & /*autoplay*/ 1024) swiper_changes.autoplay = /*autoplay*/ ctx[10]
|
|
22351
|
+
? noTypecheck({
|
|
22352
|
+
delay: 2000,
|
|
22353
|
+
stopOnLastSlide: false,
|
|
22354
|
+
disableOnInteraction: false
|
|
22355
|
+
})
|
|
22356
|
+
: false;
|
|
22109
22357
|
|
|
22110
|
-
if (dirty &
|
|
22111
|
-
|
|
22358
|
+
if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
|
|
22359
|
+
swiper_changes.$$scope = { dirty, ctx };
|
|
22112
22360
|
}
|
|
22361
|
+
|
|
22362
|
+
swiper$1.$set(swiper_changes);
|
|
22363
|
+
},
|
|
22364
|
+
i(local) {
|
|
22365
|
+
if (current) return;
|
|
22366
|
+
internal.transition_in(swiper$1.$$.fragment, local);
|
|
22367
|
+
current = true;
|
|
22368
|
+
},
|
|
22369
|
+
o(local) {
|
|
22370
|
+
internal.transition_out(swiper$1.$$.fragment, local);
|
|
22371
|
+
current = false;
|
|
22113
22372
|
},
|
|
22114
22373
|
d(detaching) {
|
|
22115
|
-
|
|
22374
|
+
internal.destroy_component(swiper$1, detaching);
|
|
22116
22375
|
}
|
|
22117
22376
|
};
|
|
22118
22377
|
}
|
|
22119
22378
|
|
|
22120
|
-
// (
|
|
22121
|
-
function
|
|
22122
|
-
let
|
|
22123
|
-
let
|
|
22124
|
-
let
|
|
22379
|
+
// (75:10) <SwiperSlide>
|
|
22380
|
+
function create_default_slot_1(ctx) {
|
|
22381
|
+
let mediaitem;
|
|
22382
|
+
let t;
|
|
22383
|
+
let current;
|
|
22384
|
+
|
|
22385
|
+
mediaitem = new MediaItem({
|
|
22386
|
+
props: {
|
|
22387
|
+
media: /*media*/ ctx[14],
|
|
22388
|
+
objectFit: /*objectFit*/ ctx[6]
|
|
22389
|
+
}
|
|
22390
|
+
});
|
|
22125
22391
|
|
|
22126
22392
|
return {
|
|
22127
22393
|
c() {
|
|
22128
|
-
|
|
22129
|
-
internal.
|
|
22130
|
-
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) internal.attr(img, "src", img_src_value);
|
|
22131
|
-
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
22394
|
+
internal.create_component(mediaitem.$$.fragment);
|
|
22395
|
+
t = internal.space();
|
|
22132
22396
|
},
|
|
22133
22397
|
m(target, anchor) {
|
|
22134
|
-
internal.
|
|
22398
|
+
internal.mount_component(mediaitem, target, anchor);
|
|
22399
|
+
internal.insert(target, t, anchor);
|
|
22400
|
+
current = true;
|
|
22135
22401
|
},
|
|
22136
22402
|
p(ctx, dirty) {
|
|
22137
|
-
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
22142
|
-
|
|
22143
|
-
|
|
22403
|
+
const mediaitem_changes = {};
|
|
22404
|
+
if (dirty & /*mediaDataList*/ 256) mediaitem_changes.media = /*media*/ ctx[14];
|
|
22405
|
+
if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
|
|
22406
|
+
mediaitem.$set(mediaitem_changes);
|
|
22407
|
+
},
|
|
22408
|
+
i(local) {
|
|
22409
|
+
if (current) return;
|
|
22410
|
+
internal.transition_in(mediaitem.$$.fragment, local);
|
|
22411
|
+
current = true;
|
|
22412
|
+
},
|
|
22413
|
+
o(local) {
|
|
22414
|
+
internal.transition_out(mediaitem.$$.fragment, local);
|
|
22415
|
+
current = false;
|
|
22144
22416
|
},
|
|
22145
22417
|
d(detaching) {
|
|
22146
|
-
|
|
22418
|
+
internal.destroy_component(mediaitem, detaching);
|
|
22419
|
+
if (detaching) internal.detach(t);
|
|
22147
22420
|
}
|
|
22148
22421
|
};
|
|
22149
22422
|
}
|
|
22150
22423
|
|
|
22151
|
-
// (
|
|
22152
|
-
function
|
|
22153
|
-
let
|
|
22424
|
+
// (74:8) {#each mediaDataList as media}
|
|
22425
|
+
function create_each_block$3(ctx) {
|
|
22426
|
+
let swiperslide;
|
|
22427
|
+
let current;
|
|
22428
|
+
|
|
22429
|
+
swiperslide = new svelte$1.SwiperSlide({
|
|
22430
|
+
props: {
|
|
22431
|
+
$$slots: { default: [create_default_slot_1] },
|
|
22432
|
+
$$scope: { ctx }
|
|
22433
|
+
}
|
|
22434
|
+
});
|
|
22154
22435
|
|
|
22155
22436
|
return {
|
|
22156
22437
|
c() {
|
|
22157
|
-
|
|
22158
|
-
internal.attr(div, "class", "video-icon svelte-129jnm");
|
|
22159
|
-
internal.set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
22438
|
+
internal.create_component(swiperslide.$$.fragment);
|
|
22160
22439
|
},
|
|
22161
22440
|
m(target, anchor) {
|
|
22162
|
-
internal.
|
|
22441
|
+
internal.mount_component(swiperslide, target, anchor);
|
|
22442
|
+
current = true;
|
|
22443
|
+
},
|
|
22444
|
+
p(ctx, dirty) {
|
|
22445
|
+
const swiperslide_changes = {};
|
|
22446
|
+
|
|
22447
|
+
if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
|
|
22448
|
+
swiperslide_changes.$$scope = { dirty, ctx };
|
|
22449
|
+
}
|
|
22450
|
+
|
|
22451
|
+
swiperslide.$set(swiperslide_changes);
|
|
22452
|
+
},
|
|
22453
|
+
i(local) {
|
|
22454
|
+
if (current) return;
|
|
22455
|
+
internal.transition_in(swiperslide.$$.fragment, local);
|
|
22456
|
+
current = true;
|
|
22457
|
+
},
|
|
22458
|
+
o(local) {
|
|
22459
|
+
internal.transition_out(swiperslide.$$.fragment, local);
|
|
22460
|
+
current = false;
|
|
22163
22461
|
},
|
|
22164
|
-
p: internal.noop,
|
|
22165
22462
|
d(detaching) {
|
|
22166
|
-
|
|
22463
|
+
internal.destroy_component(swiperslide, detaching);
|
|
22167
22464
|
}
|
|
22168
22465
|
};
|
|
22169
22466
|
}
|
|
22170
22467
|
|
|
22171
|
-
// (
|
|
22172
|
-
function
|
|
22173
|
-
let
|
|
22174
|
-
let
|
|
22175
|
-
let
|
|
22176
|
-
let
|
|
22468
|
+
// (32:6) <Swiper style="height: 100%" modules={[Autoplay]} spaceBetween={30} autoplay={autoplay ? noTypecheck({ delay: 2000, stopOnLastSlide: false, disableOnInteraction: false }) : false} loop on:slideChange={async (event) => { if (!autoplay) return if (!autoplayConfig.autoplayVideo) return const swiper = event.detail[0] if (!swiper) return const index = swiper.realIndex // loop 完一圈后,swiper.realIndex 会重复一次,比如有三张图片 [0,1,2],slideChange 触发后输出的 index 为 [0,1,2,0,0,1,2,0,0,1,2,0], 添加 lastAutoPlayIndex 判断后,输出为[0,1,2,0,1,2,0,1,2,0] if (index === lastAutoPlayIndex) return lastAutoPlayIndex = index const media = mediaDataList[index] if (!media) return if (media.type !== 'Video') return // 先暂停自动轮播 swiper.autoplay.stop() // 播放视频 await new Promise((resolve) => { const video = swiper.slides[swiper.activeIndex]?.querySelector('video') if (!video) { resolve(noTypecheck(null)) return } video.play() video.onerror = () => resolve(noTypecheck(null)) video.onended = () => resolve(noTypecheck(null)) video.onclick = () => { video.pause() resolve(noTypecheck(null)) } }) // 恢复自动轮播 swiper.autoplay.start() }} >
|
|
22469
|
+
function create_default_slot(ctx) {
|
|
22470
|
+
let each_1_anchor;
|
|
22471
|
+
let current;
|
|
22472
|
+
let each_value = /*mediaDataList*/ ctx[8];
|
|
22473
|
+
let each_blocks = [];
|
|
22177
22474
|
|
|
22178
|
-
|
|
22179
|
-
|
|
22180
|
-
if (/*media*/ ctx[9].type === 'Video' && /*media*/ ctx[9].videoCoverUrl) return create_if_block_3$2;
|
|
22181
|
-
if (/*media*/ ctx[9].type === 'Video' && !/*media*/ ctx[9].videoCoverUrl) return create_if_block_4$2;
|
|
22475
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
22476
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
|
22182
22477
|
}
|
|
22183
22478
|
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22479
|
+
const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
|
|
22480
|
+
each_blocks[i] = null;
|
|
22481
|
+
});
|
|
22187
22482
|
|
|
22188
22483
|
return {
|
|
22189
22484
|
c() {
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
internal.attr(div, "class", "carousel-item svelte-129jnm");
|
|
22196
|
-
internal.attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[5]};`);
|
|
22485
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
22486
|
+
each_blocks[i].c();
|
|
22487
|
+
}
|
|
22488
|
+
|
|
22489
|
+
each_1_anchor = internal.empty();
|
|
22197
22490
|
},
|
|
22198
22491
|
m(target, anchor) {
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
|
|
22202
|
-
|
|
22203
|
-
internal.
|
|
22492
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
22493
|
+
each_blocks[i].m(target, anchor);
|
|
22494
|
+
}
|
|
22495
|
+
|
|
22496
|
+
internal.insert(target, each_1_anchor, anchor);
|
|
22497
|
+
current = true;
|
|
22204
22498
|
},
|
|
22205
22499
|
p(ctx, dirty) {
|
|
22206
|
-
if (
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
|
-
if (if_block0) if_block0.d(1);
|
|
22210
|
-
if_block0 = current_block_type && current_block_type(ctx);
|
|
22500
|
+
if (dirty & /*mediaDataList, objectFit*/ 320) {
|
|
22501
|
+
each_value = /*mediaDataList*/ ctx[8];
|
|
22502
|
+
let i;
|
|
22211
22503
|
|
|
22212
|
-
|
|
22213
|
-
|
|
22214
|
-
|
|
22504
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
22505
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
|
22506
|
+
|
|
22507
|
+
if (each_blocks[i]) {
|
|
22508
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
22509
|
+
internal.transition_in(each_blocks[i], 1);
|
|
22510
|
+
} else {
|
|
22511
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
|
22512
|
+
each_blocks[i].c();
|
|
22513
|
+
internal.transition_in(each_blocks[i], 1);
|
|
22514
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
22515
|
+
}
|
|
22215
22516
|
}
|
|
22216
|
-
}
|
|
22217
22517
|
|
|
22218
|
-
|
|
22219
|
-
|
|
22220
|
-
|
|
22221
|
-
|
|
22222
|
-
if_block1 = create_if_block_1$6();
|
|
22223
|
-
if_block1.c();
|
|
22224
|
-
if_block1.m(div, t1);
|
|
22518
|
+
internal.group_outros();
|
|
22519
|
+
|
|
22520
|
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
|
22521
|
+
out(i);
|
|
22225
22522
|
}
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
if_block1 = null;
|
|
22523
|
+
|
|
22524
|
+
internal.check_outros();
|
|
22229
22525
|
}
|
|
22526
|
+
},
|
|
22527
|
+
i(local) {
|
|
22528
|
+
if (current) return;
|
|
22230
22529
|
|
|
22231
|
-
|
|
22232
|
-
internal.
|
|
22530
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
22531
|
+
internal.transition_in(each_blocks[i]);
|
|
22233
22532
|
}
|
|
22533
|
+
|
|
22534
|
+
current = true;
|
|
22234
22535
|
},
|
|
22235
|
-
|
|
22236
|
-
|
|
22536
|
+
o(local) {
|
|
22537
|
+
each_blocks = each_blocks.filter(Boolean);
|
|
22237
22538
|
|
|
22238
|
-
|
|
22239
|
-
|
|
22539
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
22540
|
+
internal.transition_out(each_blocks[i]);
|
|
22240
22541
|
}
|
|
22241
22542
|
|
|
22242
|
-
|
|
22543
|
+
current = false;
|
|
22544
|
+
},
|
|
22545
|
+
d(detaching) {
|
|
22546
|
+
internal.destroy_each(each_blocks, detaching);
|
|
22547
|
+
if (detaching) internal.detach(each_1_anchor);
|
|
22243
22548
|
}
|
|
22244
22549
|
};
|
|
22245
22550
|
}
|
|
22246
22551
|
|
|
22247
22552
|
function create_fragment$d(ctx) {
|
|
22248
22553
|
let if_block_anchor;
|
|
22249
|
-
let
|
|
22554
|
+
let current;
|
|
22555
|
+
let if_block = /*unfolded*/ ctx[4] && create_if_block$a(ctx);
|
|
22250
22556
|
|
|
22251
22557
|
return {
|
|
22252
22558
|
c() {
|
|
@@ -22256,13 +22562,14 @@ function create_fragment$d(ctx) {
|
|
|
22256
22562
|
m(target, anchor) {
|
|
22257
22563
|
if (if_block) if_block.m(target, anchor);
|
|
22258
22564
|
internal.insert(target, if_block_anchor, anchor);
|
|
22565
|
+
current = true;
|
|
22259
22566
|
},
|
|
22260
22567
|
p(ctx, [dirty]) {
|
|
22261
|
-
if (/*unfolded*/ ctx[
|
|
22568
|
+
if (/*unfolded*/ ctx[4]) {
|
|
22262
22569
|
if (if_block) {
|
|
22263
22570
|
if_block.p(ctx, dirty);
|
|
22264
22571
|
|
|
22265
|
-
if (dirty & /*unfolded*/
|
|
22572
|
+
if (dirty & /*unfolded*/ 16) {
|
|
22266
22573
|
internal.transition_in(if_block, 1);
|
|
22267
22574
|
}
|
|
22268
22575
|
} else {
|
|
@@ -22282,10 +22589,13 @@ function create_fragment$d(ctx) {
|
|
|
22282
22589
|
}
|
|
22283
22590
|
},
|
|
22284
22591
|
i(local) {
|
|
22592
|
+
if (current) return;
|
|
22285
22593
|
internal.transition_in(if_block);
|
|
22594
|
+
current = true;
|
|
22286
22595
|
},
|
|
22287
22596
|
o(local) {
|
|
22288
22597
|
internal.transition_out(if_block);
|
|
22598
|
+
current = false;
|
|
22289
22599
|
},
|
|
22290
22600
|
d(detaching) {
|
|
22291
22601
|
if (if_block) if_block.d(detaching);
|
|
@@ -22295,7 +22605,9 @@ function create_fragment$d(ctx) {
|
|
|
22295
22605
|
}
|
|
22296
22606
|
|
|
22297
22607
|
function instance$d($$self, $$props, $$invalidate) {
|
|
22608
|
+
let carouselEnabled;
|
|
22298
22609
|
let mediaDataList;
|
|
22610
|
+
let autoplay;
|
|
22299
22611
|
let { mediaData } = $$props;
|
|
22300
22612
|
let { inDelay = 0 } = $$props;
|
|
22301
22613
|
let { outDelay = 0 } = $$props;
|
|
@@ -22304,34 +22616,93 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
22304
22616
|
let { animation = true } = $$props;
|
|
22305
22617
|
let { objectFit = 'cover' } = $$props;
|
|
22306
22618
|
let { enableCarousel = true } = $$props;
|
|
22619
|
+
let { autoplayConfig = { autoplay: true, autoplayVideo: false } } = $$props;
|
|
22620
|
+
let lastAutoPlayIndex = null;
|
|
22621
|
+
|
|
22622
|
+
const slideChange_handler = async event => {
|
|
22623
|
+
if (!autoplay) return;
|
|
22624
|
+
if (!autoplayConfig.autoplayVideo) return;
|
|
22625
|
+
const swiper = event.detail[0];
|
|
22626
|
+
if (!swiper) return;
|
|
22627
|
+
const index = swiper.realIndex;
|
|
22628
|
+
|
|
22629
|
+
// loop 完一圈后,swiper.realIndex 会重复一次,比如有三张图片 [0,1,2],slideChange 触发后输出的 index 为 [0,1,2,0,0,1,2,0,0,1,2,0], 添加 lastAutoPlayIndex 判断后,输出为[0,1,2,0,1,2,0,1,2,0]
|
|
22630
|
+
if (index === lastAutoPlayIndex) return;
|
|
22631
|
+
|
|
22632
|
+
$$invalidate(9, lastAutoPlayIndex = index);
|
|
22633
|
+
const media = mediaDataList[index];
|
|
22634
|
+
if (!media) return;
|
|
22635
|
+
if (media.type !== 'Video') return;
|
|
22636
|
+
|
|
22637
|
+
// 先暂停自动轮播
|
|
22638
|
+
swiper.autoplay.stop();
|
|
22639
|
+
|
|
22640
|
+
// 播放视频
|
|
22641
|
+
await new Promise(resolve => {
|
|
22642
|
+
const video = swiper.slides[swiper.activeIndex]?.querySelector('video');
|
|
22643
|
+
|
|
22644
|
+
if (!video) {
|
|
22645
|
+
resolve(noTypecheck(null));
|
|
22646
|
+
return;
|
|
22647
|
+
}
|
|
22648
|
+
|
|
22649
|
+
video.play();
|
|
22650
|
+
video.onerror = () => resolve(noTypecheck(null));
|
|
22651
|
+
video.onended = () => resolve(noTypecheck(null));
|
|
22652
|
+
|
|
22653
|
+
video.onclick = () => {
|
|
22654
|
+
video.pause();
|
|
22655
|
+
resolve(noTypecheck(null));
|
|
22656
|
+
};
|
|
22657
|
+
});
|
|
22658
|
+
|
|
22659
|
+
// 恢复自动轮播
|
|
22660
|
+
swiper.autoplay.start();
|
|
22661
|
+
};
|
|
22307
22662
|
|
|
22308
22663
|
$$self.$$set = $$props => {
|
|
22309
|
-
if ('mediaData' in $$props) $$invalidate(
|
|
22310
|
-
if ('inDelay' in $$props) $$invalidate(
|
|
22311
|
-
if ('outDelay' in $$props) $$invalidate(
|
|
22312
|
-
if ('duration' in $$props) $$invalidate(
|
|
22313
|
-
if ('unfolded' in $$props) $$invalidate(
|
|
22314
|
-
if ('animation' in $$props) $$invalidate(
|
|
22315
|
-
if ('objectFit' in $$props) $$invalidate(
|
|
22316
|
-
if ('enableCarousel' in $$props) $$invalidate(
|
|
22664
|
+
if ('mediaData' in $$props) $$invalidate(0, mediaData = $$props.mediaData);
|
|
22665
|
+
if ('inDelay' in $$props) $$invalidate(1, inDelay = $$props.inDelay);
|
|
22666
|
+
if ('outDelay' in $$props) $$invalidate(2, outDelay = $$props.outDelay);
|
|
22667
|
+
if ('duration' in $$props) $$invalidate(3, duration = $$props.duration);
|
|
22668
|
+
if ('unfolded' in $$props) $$invalidate(4, unfolded = $$props.unfolded);
|
|
22669
|
+
if ('animation' in $$props) $$invalidate(5, animation = $$props.animation);
|
|
22670
|
+
if ('objectFit' in $$props) $$invalidate(6, objectFit = $$props.objectFit);
|
|
22671
|
+
if ('enableCarousel' in $$props) $$invalidate(12, enableCarousel = $$props.enableCarousel);
|
|
22672
|
+
if ('autoplayConfig' in $$props) $$invalidate(7, autoplayConfig = $$props.autoplayConfig);
|
|
22317
22673
|
};
|
|
22318
22674
|
|
|
22319
22675
|
$$self.$$.update = () => {
|
|
22320
|
-
if ($$self.$$.dirty & /*enableCarousel, mediaData*/
|
|
22321
|
-
$$invalidate(
|
|
22676
|
+
if ($$self.$$.dirty & /*enableCarousel, mediaData*/ 4097) {
|
|
22677
|
+
$$invalidate(11, carouselEnabled = enableCarousel && (mediaData === null || mediaData === void 0
|
|
22678
|
+
? void 0
|
|
22679
|
+
: mediaData.length) > 1);
|
|
22680
|
+
}
|
|
22681
|
+
|
|
22682
|
+
if ($$self.$$.dirty & /*mediaData*/ 1) {
|
|
22683
|
+
$$invalidate(8, mediaDataList = mediaData);
|
|
22684
|
+
}
|
|
22685
|
+
|
|
22686
|
+
if ($$self.$$.dirty & /*mediaDataList, autoplayConfig*/ 384) {
|
|
22687
|
+
$$invalidate(10, autoplay = mediaDataList.length > 1 && autoplayConfig.autoplay);
|
|
22322
22688
|
}
|
|
22323
22689
|
};
|
|
22324
22690
|
|
|
22325
22691
|
return [
|
|
22692
|
+
mediaData,
|
|
22326
22693
|
inDelay,
|
|
22327
22694
|
outDelay,
|
|
22328
22695
|
duration,
|
|
22329
22696
|
unfolded,
|
|
22330
22697
|
animation,
|
|
22331
22698
|
objectFit,
|
|
22699
|
+
autoplayConfig,
|
|
22332
22700
|
mediaDataList,
|
|
22333
|
-
|
|
22334
|
-
|
|
22701
|
+
lastAutoPlayIndex,
|
|
22702
|
+
autoplay,
|
|
22703
|
+
carouselEnabled,
|
|
22704
|
+
enableCarousel,
|
|
22705
|
+
slideChange_handler
|
|
22335
22706
|
];
|
|
22336
22707
|
}
|
|
22337
22708
|
|
|
@@ -22346,14 +22717,15 @@ class Media extends internal.SvelteComponent {
|
|
|
22346
22717
|
create_fragment$d,
|
|
22347
22718
|
internal.safe_not_equal,
|
|
22348
22719
|
{
|
|
22349
|
-
mediaData:
|
|
22350
|
-
inDelay:
|
|
22351
|
-
outDelay:
|
|
22352
|
-
duration:
|
|
22353
|
-
unfolded:
|
|
22354
|
-
animation:
|
|
22355
|
-
objectFit:
|
|
22356
|
-
enableCarousel:
|
|
22720
|
+
mediaData: 0,
|
|
22721
|
+
inDelay: 1,
|
|
22722
|
+
outDelay: 2,
|
|
22723
|
+
duration: 3,
|
|
22724
|
+
unfolded: 4,
|
|
22725
|
+
animation: 5,
|
|
22726
|
+
objectFit: 6,
|
|
22727
|
+
enableCarousel: 12,
|
|
22728
|
+
autoplayConfig: 7
|
|
22357
22729
|
},
|
|
22358
22730
|
add_css$d
|
|
22359
22731
|
);
|
|
@@ -22587,6 +22959,7 @@ function create_if_block_1$5(ctx) {
|
|
|
22587
22959
|
|
|
22588
22960
|
media = new Media({
|
|
22589
22961
|
props: {
|
|
22962
|
+
autoplayConfig: { autoplay: false },
|
|
22590
22963
|
unfolded: /*unfolded*/ ctx[4],
|
|
22591
22964
|
mediaData: /*mediaData*/ ctx[3],
|
|
22592
22965
|
inDelay: 500,
|
|
@@ -23934,7 +24307,7 @@ function add_css$8(target) {
|
|
|
23934
24307
|
internal.append_styles(target, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
23935
24308
|
}
|
|
23936
24309
|
|
|
23937
|
-
// (
|
|
24310
|
+
// (20:0) {#if tag.state && mediaData}
|
|
23938
24311
|
function create_if_block$5(ctx) {
|
|
23939
24312
|
let div;
|
|
23940
24313
|
let media;
|
|
@@ -23942,10 +24315,11 @@ function create_if_block$5(ctx) {
|
|
|
23942
24315
|
|
|
23943
24316
|
media = new Media({
|
|
23944
24317
|
props: {
|
|
23945
|
-
unfolded: /*unfolded*/ ctx[
|
|
23946
|
-
mediaData: /*mediaData*/ ctx[
|
|
23947
|
-
objectFit: /*objectFit*/ ctx[
|
|
23948
|
-
enableCarousel:
|
|
24318
|
+
unfolded: /*unfolded*/ ctx[5],
|
|
24319
|
+
mediaData: /*mediaData*/ ctx[4],
|
|
24320
|
+
objectFit: /*objectFit*/ ctx[2],
|
|
24321
|
+
enableCarousel: /*enableCarousel*/ ctx[1],
|
|
24322
|
+
autoplayConfig: /*autoplayConfig*/ ctx[3],
|
|
23949
24323
|
inDelay: 500,
|
|
23950
24324
|
duration: 500
|
|
23951
24325
|
}
|
|
@@ -23964,9 +24338,11 @@ function create_if_block$5(ctx) {
|
|
|
23964
24338
|
},
|
|
23965
24339
|
p(ctx, dirty) {
|
|
23966
24340
|
const media_changes = {};
|
|
23967
|
-
if (dirty & /*unfolded*/
|
|
23968
|
-
if (dirty & /*mediaData*/
|
|
23969
|
-
if (dirty & /*objectFit*/
|
|
24341
|
+
if (dirty & /*unfolded*/ 32) media_changes.unfolded = /*unfolded*/ ctx[5];
|
|
24342
|
+
if (dirty & /*mediaData*/ 16) media_changes.mediaData = /*mediaData*/ ctx[4];
|
|
24343
|
+
if (dirty & /*objectFit*/ 4) media_changes.objectFit = /*objectFit*/ ctx[2];
|
|
24344
|
+
if (dirty & /*enableCarousel*/ 2) media_changes.enableCarousel = /*enableCarousel*/ ctx[1];
|
|
24345
|
+
if (dirty & /*autoplayConfig*/ 8) media_changes.autoplayConfig = /*autoplayConfig*/ ctx[3];
|
|
23970
24346
|
media.$set(media_changes);
|
|
23971
24347
|
},
|
|
23972
24348
|
i(local) {
|
|
@@ -23988,7 +24364,7 @@ function create_if_block$5(ctx) {
|
|
|
23988
24364
|
function create_fragment$8(ctx) {
|
|
23989
24365
|
let if_block_anchor;
|
|
23990
24366
|
let current;
|
|
23991
|
-
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
24367
|
+
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[4] && create_if_block$5(ctx);
|
|
23992
24368
|
|
|
23993
24369
|
return {
|
|
23994
24370
|
c() {
|
|
@@ -24001,11 +24377,11 @@ function create_fragment$8(ctx) {
|
|
|
24001
24377
|
current = true;
|
|
24002
24378
|
},
|
|
24003
24379
|
p(ctx, [dirty]) {
|
|
24004
|
-
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
24380
|
+
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[4]) {
|
|
24005
24381
|
if (if_block) {
|
|
24006
24382
|
if_block.p(ctx, dirty);
|
|
24007
24383
|
|
|
24008
|
-
if (dirty & /*tag, mediaData*/
|
|
24384
|
+
if (dirty & /*tag, mediaData*/ 17) {
|
|
24009
24385
|
internal.transition_in(if_block, 1);
|
|
24010
24386
|
}
|
|
24011
24387
|
} else {
|
|
@@ -24043,8 +24419,10 @@ function create_fragment$8(ctx) {
|
|
|
24043
24419
|
function instance$8($$self, $$props, $$invalidate) {
|
|
24044
24420
|
let unfolded;
|
|
24045
24421
|
let mediaData;
|
|
24422
|
+
let enableCarousel;
|
|
24423
|
+
let autoplayConfig;
|
|
24046
24424
|
let objectFit;
|
|
24047
|
-
var _a;
|
|
24425
|
+
var _a, _b;
|
|
24048
24426
|
let { tag } = $$props;
|
|
24049
24427
|
|
|
24050
24428
|
$$self.$$set = $$props => {
|
|
@@ -24053,23 +24431,38 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
24053
24431
|
|
|
24054
24432
|
$$self.$$.update = () => {
|
|
24055
24433
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
24056
|
-
$$invalidate(
|
|
24434
|
+
$$invalidate(5, unfolded = tag.state ? tag.state.unfolded : false);
|
|
24435
|
+
}
|
|
24436
|
+
|
|
24437
|
+
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
24438
|
+
$$invalidate(4, mediaData = tag.data.mediaData);
|
|
24057
24439
|
}
|
|
24058
24440
|
|
|
24059
24441
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
24060
|
-
$$invalidate(
|
|
24442
|
+
$$invalidate(1, enableCarousel = tag.data.enableCarousel);
|
|
24061
24443
|
}
|
|
24062
24444
|
|
|
24063
|
-
if ($$self.$$.dirty & /*tag, _a*/
|
|
24064
|
-
$$invalidate(
|
|
24445
|
+
if ($$self.$$.dirty & /*tag, _a, enableCarousel*/ 67) {
|
|
24446
|
+
$$invalidate(3, autoplayConfig = $$invalidate(6, _a = tag.data.autoplayConfig) !== null && _a !== void 0
|
|
24065
24447
|
? _a
|
|
24448
|
+
: {
|
|
24449
|
+
autoplay: enableCarousel !== null && enableCarousel !== void 0
|
|
24450
|
+
? enableCarousel
|
|
24451
|
+
: true,
|
|
24452
|
+
autoplayVideo: true
|
|
24453
|
+
});
|
|
24454
|
+
}
|
|
24455
|
+
|
|
24456
|
+
if ($$self.$$.dirty & /*tag, _b*/ 129) {
|
|
24457
|
+
$$invalidate(2, objectFit = $$invalidate(7, _b = tag.data.objectFit) !== null && _b !== void 0
|
|
24458
|
+
? _b
|
|
24066
24459
|
: (() => {
|
|
24067
24460
|
if (tag.data.adaptationMode === 'stretch') return 'cover'; else if (tag.data.adaptationMode === 'proportional') return 'contain'; else return undefined;
|
|
24068
24461
|
})());
|
|
24069
24462
|
}
|
|
24070
24463
|
};
|
|
24071
24464
|
|
|
24072
|
-
return [tag, objectFit, mediaData, unfolded, _a];
|
|
24465
|
+
return [tag, enableCarousel, objectFit, autoplayConfig, mediaData, unfolded, _a, _b];
|
|
24073
24466
|
}
|
|
24074
24467
|
|
|
24075
24468
|
class MediaPlane extends internal.SvelteComponent {
|
|
@@ -26210,6 +26603,16 @@ class TagComputer extends TagCacheController {
|
|
|
26210
26603
|
value: new THREE__namespace.Raycaster()
|
|
26211
26604
|
});
|
|
26212
26605
|
}
|
|
26606
|
+
getTagById(id) {
|
|
26607
|
+
const tag = this.tags.find((tag) => {
|
|
26608
|
+
return tag.id === id;
|
|
26609
|
+
});
|
|
26610
|
+
if (!tag) {
|
|
26611
|
+
console.error(`getTagById(): tag is ${tag}, id is ${id}`);
|
|
26612
|
+
return undefined;
|
|
26613
|
+
}
|
|
26614
|
+
return tag;
|
|
26615
|
+
}
|
|
26213
26616
|
/**
|
|
26214
26617
|
* @description: 改变配置
|
|
26215
26618
|
*/
|
|
@@ -26264,7 +26667,6 @@ class TagComputer extends TagCacheController {
|
|
|
26264
26667
|
const visible = (() => {
|
|
26265
26668
|
var _a, _b, _c, _d, _e;
|
|
26266
26669
|
const config = (_a = this.getTagConfig(tag).visibleConfig) !== null && _a !== void 0 ? _a : {};
|
|
26267
|
-
// console.log(config)
|
|
26268
26670
|
const distance = this.getDistance(tag);
|
|
26269
26671
|
if (typeof config === 'function') {
|
|
26270
26672
|
return config(this.five, { tag, distance });
|
|
@@ -26540,18 +26942,11 @@ class TagComputer extends TagCacheController {
|
|
|
26540
26942
|
const unfolded = this.getUnfoldedByPanoIndex(tag);
|
|
26541
26943
|
if (!tag.state)
|
|
26542
26944
|
return;
|
|
26543
|
-
if (unfolded
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
});
|
|
26547
|
-
}
|
|
26548
|
-
setVisibleAndUnfoldedByPanoIndex() {
|
|
26549
|
-
this.setVisibleByPanoIndex();
|
|
26550
|
-
this.setUnfoldedByPanoIndex();
|
|
26551
|
-
this.tags.forEach((tag) => {
|
|
26552
|
-
var _a, _b;
|
|
26945
|
+
if (unfolded !== undefined) {
|
|
26946
|
+
tag.state.unfolded = unfolded;
|
|
26947
|
+
}
|
|
26553
26948
|
// 如果标签展开但不可见,就要判断autoUnfoldWhenHide
|
|
26554
|
-
if (
|
|
26949
|
+
if (unfolded && !tag.state.visible) {
|
|
26555
26950
|
const config = this.getTagConfig(tag);
|
|
26556
26951
|
if (typeof config.unfoldedConfig === 'object' && config.unfoldedConfig.autoUnfoldWhenHide !== false) {
|
|
26557
26952
|
tag.state.unfolded = false;
|
|
@@ -26572,16 +26967,6 @@ class TagComputer extends TagCacheController {
|
|
|
26572
26967
|
return;
|
|
26573
26968
|
return { x, y, z };
|
|
26574
26969
|
}
|
|
26575
|
-
getTagById(id) {
|
|
26576
|
-
const tag = this.tags.find((tag) => {
|
|
26577
|
-
return tag.id === id;
|
|
26578
|
-
});
|
|
26579
|
-
if (!tag) {
|
|
26580
|
-
console.error(`getTagById(): tag is ${tag}, id is ${id}`);
|
|
26581
|
-
return undefined;
|
|
26582
|
-
}
|
|
26583
|
-
return tag;
|
|
26584
|
-
}
|
|
26585
26970
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
26586
26971
|
filterPointTag() {
|
|
26587
26972
|
return this.tags.filter((tag) => tag.pointType === exports.PointType.PointTag);
|
|
@@ -26601,9 +26986,10 @@ class TagComputer extends TagCacheController {
|
|
|
26601
26986
|
}
|
|
26602
26987
|
|
|
26603
26988
|
// declare const __APP_VERSION__: string
|
|
26604
|
-
const VERSION$2 = '0.
|
|
26989
|
+
const VERSION$2 = '1.0.0';
|
|
26605
26990
|
const PLUGIN_NAME$1 = `DnalogelPlugin-PanoTagPlugin@${VERSION$2}`;
|
|
26606
|
-
|
|
26991
|
+
// 初始是否展开
|
|
26992
|
+
const TAG_INITIAL_UNFOLDED = false;
|
|
26607
26993
|
const pluginFlag = (name) => `${PLUGIN_NAME$1}--${name}`;
|
|
26608
26994
|
class PanoTagPluginController extends TagComputer {
|
|
26609
26995
|
constructor(five, params) {
|
|
@@ -26713,8 +27099,9 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26713
27099
|
/**
|
|
26714
27100
|
* @description: 加载数据
|
|
26715
27101
|
*/
|
|
26716
|
-
load(data) {
|
|
27102
|
+
load(data, config) {
|
|
26717
27103
|
var _a, _b;
|
|
27104
|
+
this.clearTags();
|
|
26718
27105
|
console.log(PLUGIN_NAME$1, 'load:', { data });
|
|
26719
27106
|
if (this.params.mergePluginDefaultConfigToLoadDataConfig) {
|
|
26720
27107
|
this.config = objectAssignDeep__default["default"]({}, this.config, {
|
|
@@ -26728,17 +27115,15 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26728
27115
|
if (data.contentTypeConfig)
|
|
26729
27116
|
this.config.contentTypeConfig = data.contentTypeConfig;
|
|
26730
27117
|
}
|
|
26731
|
-
this.
|
|
26732
|
-
|
|
26733
|
-
this.tags = [];
|
|
26734
|
-
this.addTag(data.tagList);
|
|
27118
|
+
this.addTag(data.tagList, config);
|
|
27119
|
+
// debug
|
|
26735
27120
|
if (this.debug)
|
|
26736
27121
|
addDebugPoints(this.five, this.tags);
|
|
26737
27122
|
}
|
|
26738
27123
|
/**
|
|
26739
27124
|
* @description: 添加标签
|
|
26740
27125
|
*/
|
|
26741
|
-
addTag(tag) {
|
|
27126
|
+
addTag(tag, config) {
|
|
26742
27127
|
const tags = Array.isArray(tag) ? tag : [tag];
|
|
26743
27128
|
const _tags = tags
|
|
26744
27129
|
.map((tag) => {
|
|
@@ -26748,7 +27133,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26748
27133
|
.filter((tag) => tag.position);
|
|
26749
27134
|
this.tags.push(..._tags);
|
|
26750
27135
|
actionAfterFiveModelLoad(this.five, () => {
|
|
26751
|
-
var _a, _b;
|
|
27136
|
+
var _a, _b, _c;
|
|
26752
27137
|
// 添加事件
|
|
26753
27138
|
if (this.store.eventListenerDisposer) {
|
|
26754
27139
|
(_b = (_a = this.store).eventListenerDisposer) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
@@ -26764,10 +27149,18 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26764
27149
|
}, 200);
|
|
26765
27150
|
}
|
|
26766
27151
|
this.checkPanelTag();
|
|
26767
|
-
|
|
26768
|
-
|
|
27152
|
+
// v0.3.8 新增 withAnimation,默认 false
|
|
27153
|
+
// v1.0.0 withAnimation 默认值改为 true
|
|
27154
|
+
this.setVisibleAndUnfolded({ withAnimation: (_c = config === null || config === void 0 ? void 0 : config.withAnimation) !== null && _c !== void 0 ? _c : true }).then(() => this.updateRenderAllTags());
|
|
27155
|
+
this.updateRenderAllTags();
|
|
26769
27156
|
});
|
|
26770
27157
|
}
|
|
27158
|
+
clearTags() {
|
|
27159
|
+
this.tags = [];
|
|
27160
|
+
this.clearCache();
|
|
27161
|
+
this.disposeAllCSS3DContainer();
|
|
27162
|
+
this.updateRenderAllTags();
|
|
27163
|
+
}
|
|
26771
27164
|
async show(params) {
|
|
26772
27165
|
const { userAction = true, withAnimation = false } = params !== null && params !== void 0 ? params : {};
|
|
26773
27166
|
if (this.store.disposed)
|
|
@@ -26858,7 +27251,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26858
27251
|
}
|
|
26859
27252
|
// 3D 转 2D 的时候要销毁 3D container
|
|
26860
27253
|
this.checkPanelTag();
|
|
26861
|
-
this.
|
|
27254
|
+
this.updateRenderAllTags();
|
|
26862
27255
|
}
|
|
26863
27256
|
/**
|
|
26864
27257
|
* @description: 改变tag任意属性
|
|
@@ -26876,7 +27269,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26876
27269
|
if ((currentTag === null || currentTag === void 0 ? void 0 : currentTag.tag3DContentSvelte) && (tag === null || tag === void 0 ? void 0 : tag.normal)) {
|
|
26877
27270
|
currentTag.tag3DContentSvelte.currentNormal = arrayPositionToVector3(tag.normal);
|
|
26878
27271
|
}
|
|
26879
|
-
this.
|
|
27272
|
+
this.updateRenderAllTags();
|
|
26880
27273
|
this.checkPanelTag();
|
|
26881
27274
|
}
|
|
26882
27275
|
/**
|
|
@@ -26890,12 +27283,31 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26890
27283
|
return;
|
|
26891
27284
|
this.tags.splice(index, 1);
|
|
26892
27285
|
});
|
|
26893
|
-
this.
|
|
27286
|
+
this.updateRenderAllTags();
|
|
26894
27287
|
}
|
|
26895
27288
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
26896
27289
|
pauseCurrentMedia() {
|
|
26897
27290
|
this.mediaStore.set({ currentMediaUrl: '' });
|
|
26898
27291
|
}
|
|
27292
|
+
/**
|
|
27293
|
+
* @description: 设置 visible 和 unfolded
|
|
27294
|
+
*/
|
|
27295
|
+
async setVisibleAndUnfolded({ withAnimation } = { withAnimation: false }) {
|
|
27296
|
+
this.setVisibleByPanoIndex();
|
|
27297
|
+
if (withAnimation) {
|
|
27298
|
+
return new Promise((resolve, reject) => {
|
|
27299
|
+
// setTimeout 初始隐藏,然后展开,而不是一步到位,要不就没动画了
|
|
27300
|
+
setTimeout(() => {
|
|
27301
|
+
this.setUnfoldedByPanoIndex();
|
|
27302
|
+
resolve();
|
|
27303
|
+
}, 10); // 10ms 是等待 TextTag onMount
|
|
27304
|
+
});
|
|
27305
|
+
}
|
|
27306
|
+
else {
|
|
27307
|
+
this.setUnfoldedByPanoIndex();
|
|
27308
|
+
return Promise.resolve();
|
|
27309
|
+
}
|
|
27310
|
+
}
|
|
26899
27311
|
handleShow() {
|
|
26900
27312
|
this.state.visible = true;
|
|
26901
27313
|
this.updateTagContainerVisible();
|
|
@@ -26906,7 +27318,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26906
27318
|
}
|
|
26907
27319
|
handleEnable() {
|
|
26908
27320
|
this.state.enabled = true;
|
|
26909
|
-
this.
|
|
27321
|
+
this.updateRenderAllTags();
|
|
26910
27322
|
}
|
|
26911
27323
|
handleDisable() {
|
|
26912
27324
|
var _a;
|
|
@@ -26952,7 +27364,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26952
27364
|
// resize
|
|
26953
27365
|
const show = () => {
|
|
26954
27366
|
this.show();
|
|
26955
|
-
this.
|
|
27367
|
+
this.updateRenderAllTags();
|
|
26956
27368
|
};
|
|
26957
27369
|
const { observe: hideObserve, unobserve: hideUnobserve } = resizeObserver(throttle(() => {
|
|
26958
27370
|
/**
|
|
@@ -26990,7 +27402,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
26990
27402
|
tag.temporaryState = Object.assign(Object.assign({}, tag.temporaryState), { visible: false });
|
|
26991
27403
|
}
|
|
26992
27404
|
});
|
|
26993
|
-
this.
|
|
27405
|
+
this.updateRenderAllTags();
|
|
26994
27406
|
}
|
|
26995
27407
|
/**
|
|
26996
27408
|
* @description: 走点/切换模型后显示
|
|
@@ -27028,13 +27440,13 @@ class PanoTagPluginController extends TagComputer {
|
|
|
27028
27440
|
tag.state.unfolded = false;
|
|
27029
27441
|
});
|
|
27030
27442
|
}
|
|
27031
|
-
this.
|
|
27443
|
+
this.updateRenderAllTags();
|
|
27032
27444
|
}
|
|
27033
27445
|
}
|
|
27034
27446
|
/**
|
|
27035
27447
|
* @description: 更新所有标签
|
|
27036
27448
|
*/
|
|
27037
|
-
|
|
27449
|
+
updateRenderAllTags() {
|
|
27038
27450
|
this.updateRenderPointTag();
|
|
27039
27451
|
this.updateRenderPlaneTag();
|
|
27040
27452
|
}
|
|
@@ -27055,20 +27467,20 @@ class PanoTagPluginController extends TagComputer {
|
|
|
27055
27467
|
// 设置展开/收起
|
|
27056
27468
|
this.setUnfoldedByCamera();
|
|
27057
27469
|
// 渲染
|
|
27058
|
-
this.
|
|
27470
|
+
this.updateRenderAllTags();
|
|
27059
27471
|
}, 100);
|
|
27060
27472
|
}
|
|
27061
27473
|
handleFiveCameraUpdate() {
|
|
27062
27474
|
// 渲染
|
|
27063
27475
|
this.updateRenderPointTag();
|
|
27064
27476
|
}
|
|
27065
|
-
handleFivePanoArrived() {
|
|
27066
|
-
this.
|
|
27477
|
+
async handleFivePanoArrived() {
|
|
27478
|
+
await this.setVisibleAndUnfolded();
|
|
27067
27479
|
this.tags.forEach((tag) => {
|
|
27068
27480
|
tag.temporaryState = Object.assign(Object.assign({}, tag.temporaryState), { visible: true });
|
|
27069
27481
|
});
|
|
27070
27482
|
// 渲染
|
|
27071
|
-
this.
|
|
27483
|
+
this.updateRenderAllTags();
|
|
27072
27484
|
}
|
|
27073
27485
|
setUnfoldedByCamera() {
|
|
27074
27486
|
let hasTagUnfolded = false; // 是否有标签由于camera的转动而展开
|