@realsee/dnalogel 2.1.0-alpha.11 → 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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 +700 -309
- package/dist/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/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 -4
- 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/noTypecheck.d.ts +1 -1
- package/dist/index.es.js +899 -508
- package/dist/index.js +899 -508
- package/dist/index.umd.js +899 -512
- 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 +1 -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 -4
- package/libs/PanoTagPlugin/mocks/mock1.js +10 -5
- 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/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
|
@@ -11,6 +11,10 @@ var transition = require('svelte/transition');
|
|
|
11
11
|
var anime = require('animejs');
|
|
12
12
|
var svelte = require('svelte');
|
|
13
13
|
var easing = require('svelte/easing');
|
|
14
|
+
var svelte$1 = require('swiper/svelte');
|
|
15
|
+
var swiper = require('swiper');
|
|
16
|
+
require('swiper/css');
|
|
17
|
+
require('swiper/css/autoplay');
|
|
14
18
|
var CSS3DRenderer = require('three/examples/jsm/renderers/CSS3DRenderer');
|
|
15
19
|
|
|
16
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -303,12 +307,12 @@ function uuid() {
|
|
|
303
307
|
|
|
304
308
|
/* src/PanoTagPlugin/Components/Common/Line/Straight.svelte generated by Svelte v3.50.1 */
|
|
305
309
|
|
|
306
|
-
function add_css$
|
|
310
|
+
function add_css$l(target) {
|
|
307
311
|
internal.append_styles(target, "svelte-1omzoh4", ".straight-line.svelte-1omzoh4{display:block;width:100%;height:100%;overflow:visible}");
|
|
308
312
|
}
|
|
309
313
|
|
|
310
314
|
// (17:2) {#if unfolded}
|
|
311
|
-
function create_if_block$
|
|
315
|
+
function create_if_block$h(ctx) {
|
|
312
316
|
let path;
|
|
313
317
|
let path_intro;
|
|
314
318
|
let path_outro;
|
|
@@ -366,13 +370,13 @@ function create_if_block$g(ctx) {
|
|
|
366
370
|
};
|
|
367
371
|
}
|
|
368
372
|
|
|
369
|
-
function create_fragment$
|
|
373
|
+
function create_fragment$l(ctx) {
|
|
370
374
|
let svg;
|
|
371
375
|
let defs;
|
|
372
376
|
let linearGradient;
|
|
373
377
|
let stop0;
|
|
374
378
|
let stop1;
|
|
375
|
-
let if_block = /*unfolded*/ ctx[3] && create_if_block$
|
|
379
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$h(ctx);
|
|
376
380
|
|
|
377
381
|
return {
|
|
378
382
|
c() {
|
|
@@ -411,7 +415,7 @@ function create_fragment$k(ctx) {
|
|
|
411
415
|
internal.transition_in(if_block, 1);
|
|
412
416
|
}
|
|
413
417
|
} else {
|
|
414
|
-
if_block = create_if_block$
|
|
418
|
+
if_block = create_if_block$h(ctx);
|
|
415
419
|
if_block.c();
|
|
416
420
|
internal.transition_in(if_block, 1);
|
|
417
421
|
if_block.m(svg, null);
|
|
@@ -439,7 +443,7 @@ function create_fragment$k(ctx) {
|
|
|
439
443
|
};
|
|
440
444
|
}
|
|
441
445
|
|
|
442
|
-
function instance$
|
|
446
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
443
447
|
let { inDelay = 0 } = $$props;
|
|
444
448
|
let { duration = 0 } = $$props;
|
|
445
449
|
let { outDelay = 0 } = $$props;
|
|
@@ -463,8 +467,8 @@ class Straight extends internal.SvelteComponent {
|
|
|
463
467
|
internal.init(
|
|
464
468
|
this,
|
|
465
469
|
options,
|
|
466
|
-
instance$
|
|
467
|
-
create_fragment$
|
|
470
|
+
instance$l,
|
|
471
|
+
create_fragment$l,
|
|
468
472
|
internal.safe_not_equal,
|
|
469
473
|
{
|
|
470
474
|
inDelay: 0,
|
|
@@ -472,19 +476,19 @@ class Straight extends internal.SvelteComponent {
|
|
|
472
476
|
outDelay: 2,
|
|
473
477
|
unfolded: 3
|
|
474
478
|
},
|
|
475
|
-
add_css$
|
|
479
|
+
add_css$l
|
|
476
480
|
);
|
|
477
481
|
}
|
|
478
482
|
}
|
|
479
483
|
|
|
480
484
|
/* src/PanoTagPlugin/Components/Common/Shadow.svelte generated by Svelte v3.50.1 */
|
|
481
485
|
|
|
482
|
-
function add_css$
|
|
486
|
+
function add_css$k(target) {
|
|
483
487
|
internal.append_styles(target, "svelte-faoauy", ".shadow.svelte-faoauy{position:absolute}");
|
|
484
488
|
}
|
|
485
489
|
|
|
486
490
|
// (23:0) {#if visible}
|
|
487
|
-
function create_if_block$
|
|
491
|
+
function create_if_block$g(ctx) {
|
|
488
492
|
let div;
|
|
489
493
|
let div_style_value;
|
|
490
494
|
let div_intro;
|
|
@@ -580,9 +584,9 @@ function create_if_block$f(ctx) {
|
|
|
580
584
|
};
|
|
581
585
|
}
|
|
582
586
|
|
|
583
|
-
function create_fragment$
|
|
587
|
+
function create_fragment$k(ctx) {
|
|
584
588
|
let if_block_anchor;
|
|
585
|
-
let if_block = /*visible*/ ctx[2] && create_if_block$
|
|
589
|
+
let if_block = /*visible*/ ctx[2] && create_if_block$g(ctx);
|
|
586
590
|
|
|
587
591
|
return {
|
|
588
592
|
c() {
|
|
@@ -602,7 +606,7 @@ function create_fragment$j(ctx) {
|
|
|
602
606
|
internal.transition_in(if_block, 1);
|
|
603
607
|
}
|
|
604
608
|
} else {
|
|
605
|
-
if_block = create_if_block$
|
|
609
|
+
if_block = create_if_block$g(ctx);
|
|
606
610
|
if_block.c();
|
|
607
611
|
internal.transition_in(if_block, 1);
|
|
608
612
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -634,7 +638,7 @@ function px2rem(value) {
|
|
|
634
638
|
return typeof value === 'number' ? value / 16 + 'rem' : value;
|
|
635
639
|
}
|
|
636
640
|
|
|
637
|
-
function instance$
|
|
641
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
638
642
|
let { inDelay = 1000 } = $$props;
|
|
639
643
|
let { outDelay = 1000 } = $$props;
|
|
640
644
|
let { visible = true } = $$props;
|
|
@@ -692,8 +696,8 @@ class Shadow extends internal.SvelteComponent {
|
|
|
692
696
|
internal.init(
|
|
693
697
|
this,
|
|
694
698
|
options,
|
|
695
|
-
instance$
|
|
696
|
-
create_fragment$
|
|
699
|
+
instance$k,
|
|
700
|
+
create_fragment$k,
|
|
697
701
|
internal.safe_not_equal,
|
|
698
702
|
{
|
|
699
703
|
inDelay: 0,
|
|
@@ -711,7 +715,7 @@ class Shadow extends internal.SvelteComponent {
|
|
|
711
715
|
opacity: 12,
|
|
712
716
|
zIndex: 13
|
|
713
717
|
},
|
|
714
|
-
add_css$
|
|
718
|
+
add_css$k
|
|
715
719
|
);
|
|
716
720
|
}
|
|
717
721
|
}
|
|
@@ -735,7 +739,7 @@ const RANDON_STRING = random();
|
|
|
735
739
|
|
|
736
740
|
/* src/PanoTagPlugin/Components/Common/Text.svelte generated by Svelte v3.50.1 */
|
|
737
741
|
|
|
738
|
-
function add_css$
|
|
742
|
+
function add_css$j(target) {
|
|
739
743
|
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)}");
|
|
740
744
|
}
|
|
741
745
|
|
|
@@ -747,7 +751,7 @@ function get_each_context$5(ctx, list, i) {
|
|
|
747
751
|
return child_ctx;
|
|
748
752
|
}
|
|
749
753
|
|
|
750
|
-
// (
|
|
754
|
+
// (79:0) {#each contentList as item, index}
|
|
751
755
|
function create_each_block$5(ctx) {
|
|
752
756
|
let span;
|
|
753
757
|
let t_value = /*item*/ ctx[10] + "";
|
|
@@ -784,7 +788,7 @@ function create_each_block$5(ctx) {
|
|
|
784
788
|
};
|
|
785
789
|
}
|
|
786
790
|
|
|
787
|
-
function create_fragment$
|
|
791
|
+
function create_fragment$j(ctx) {
|
|
788
792
|
let each_1_anchor;
|
|
789
793
|
let each_value = /*contentList*/ ctx[1];
|
|
790
794
|
let each_blocks = [];
|
|
@@ -841,7 +845,7 @@ function create_fragment$i(ctx) {
|
|
|
841
845
|
};
|
|
842
846
|
}
|
|
843
847
|
|
|
844
|
-
function instance$
|
|
848
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
845
849
|
let contentList;
|
|
846
850
|
let { inDelay = 0 } = $$props;
|
|
847
851
|
let { outDelay = 0 } = $$props;
|
|
@@ -929,7 +933,6 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
929
933
|
if (item.startsWith(emojiFlag)) return result.push(item.slice(emojiFlag.length)); else return result.push(...item.split(''));
|
|
930
934
|
});
|
|
931
935
|
|
|
932
|
-
// console.log(result.filter(Boolean))
|
|
933
936
|
return result.filter(Boolean);
|
|
934
937
|
})());
|
|
935
938
|
}
|
|
@@ -951,8 +954,8 @@ class Text extends internal.SvelteComponent {
|
|
|
951
954
|
internal.init(
|
|
952
955
|
this,
|
|
953
956
|
options,
|
|
954
|
-
instance$
|
|
955
|
-
create_fragment$
|
|
957
|
+
instance$j,
|
|
958
|
+
create_fragment$j,
|
|
956
959
|
internal.safe_not_equal,
|
|
957
960
|
{
|
|
958
961
|
inDelay: 2,
|
|
@@ -960,7 +963,7 @@ class Text extends internal.SvelteComponent {
|
|
|
960
963
|
content: 4,
|
|
961
964
|
unfolded: 5
|
|
962
965
|
},
|
|
963
|
-
add_css$
|
|
966
|
+
add_css$j
|
|
964
967
|
);
|
|
965
968
|
}
|
|
966
969
|
}
|
|
@@ -970,12 +973,12 @@ const Image_Play = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAA
|
|
|
970
973
|
|
|
971
974
|
/* src/PanoTagPlugin/Components/Common/Arrow.svelte generated by Svelte v3.50.1 */
|
|
972
975
|
|
|
973
|
-
function add_css$
|
|
976
|
+
function add_css$i(target) {
|
|
974
977
|
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)}");
|
|
975
978
|
}
|
|
976
979
|
|
|
977
980
|
// (12:0) {#if visible}
|
|
978
|
-
function create_if_block$
|
|
981
|
+
function create_if_block$f(ctx) {
|
|
979
982
|
let div1;
|
|
980
983
|
let shadow;
|
|
981
984
|
let t;
|
|
@@ -1068,10 +1071,10 @@ function create_if_block$e(ctx) {
|
|
|
1068
1071
|
};
|
|
1069
1072
|
}
|
|
1070
1073
|
|
|
1071
|
-
function create_fragment$
|
|
1074
|
+
function create_fragment$i(ctx) {
|
|
1072
1075
|
let if_block_anchor;
|
|
1073
1076
|
let current;
|
|
1074
|
-
let if_block = /*visible*/ ctx[1] && create_if_block$
|
|
1077
|
+
let if_block = /*visible*/ ctx[1] && create_if_block$f(ctx);
|
|
1075
1078
|
|
|
1076
1079
|
return {
|
|
1077
1080
|
c() {
|
|
@@ -1092,7 +1095,7 @@ function create_fragment$h(ctx) {
|
|
|
1092
1095
|
internal.transition_in(if_block, 1);
|
|
1093
1096
|
}
|
|
1094
1097
|
} else {
|
|
1095
|
-
if_block = create_if_block$
|
|
1098
|
+
if_block = create_if_block$f(ctx);
|
|
1096
1099
|
if_block.c();
|
|
1097
1100
|
internal.transition_in(if_block, 1);
|
|
1098
1101
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1123,7 +1126,7 @@ function create_fragment$h(ctx) {
|
|
|
1123
1126
|
};
|
|
1124
1127
|
}
|
|
1125
1128
|
|
|
1126
|
-
function instance$
|
|
1129
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
1127
1130
|
let { direction = 'right' } = $$props;
|
|
1128
1131
|
let { visible = true } = $$props;
|
|
1129
1132
|
let { duration = 0 } = $$props;
|
|
@@ -1152,8 +1155,8 @@ class Arrow extends internal.SvelteComponent {
|
|
|
1152
1155
|
internal.init(
|
|
1153
1156
|
this,
|
|
1154
1157
|
options,
|
|
1155
|
-
instance$
|
|
1156
|
-
create_fragment$
|
|
1158
|
+
instance$i,
|
|
1159
|
+
create_fragment$i,
|
|
1157
1160
|
internal.safe_not_equal,
|
|
1158
1161
|
{
|
|
1159
1162
|
direction: 0,
|
|
@@ -1162,14 +1165,14 @@ class Arrow extends internal.SvelteComponent {
|
|
|
1162
1165
|
inDelay: 3,
|
|
1163
1166
|
outDelay: 4
|
|
1164
1167
|
},
|
|
1165
|
-
add_css$
|
|
1168
|
+
add_css$i
|
|
1166
1169
|
);
|
|
1167
1170
|
}
|
|
1168
1171
|
}
|
|
1169
1172
|
|
|
1170
1173
|
/* src/PanoTagPlugin/Components/Common/MultiLineText.svelte generated by Svelte v3.50.1 */
|
|
1171
1174
|
|
|
1172
|
-
function add_css$
|
|
1175
|
+
function add_css$h(target) {
|
|
1173
1176
|
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}");
|
|
1174
1177
|
}
|
|
1175
1178
|
|
|
@@ -1241,7 +1244,7 @@ function create_each_block$4(key_1, ctx) {
|
|
|
1241
1244
|
}
|
|
1242
1245
|
|
|
1243
1246
|
// (28:0) {#if lineHeight < textHeight}
|
|
1244
|
-
function create_if_block$
|
|
1247
|
+
function create_if_block$e(ctx) {
|
|
1245
1248
|
let div;
|
|
1246
1249
|
let arrow;
|
|
1247
1250
|
let current;
|
|
@@ -1288,7 +1291,7 @@ function create_if_block$d(ctx) {
|
|
|
1288
1291
|
};
|
|
1289
1292
|
}
|
|
1290
1293
|
|
|
1291
|
-
function create_fragment$
|
|
1294
|
+
function create_fragment$h(ctx) {
|
|
1292
1295
|
let each_blocks = [];
|
|
1293
1296
|
let each_1_lookup = new Map();
|
|
1294
1297
|
let t;
|
|
@@ -1303,7 +1306,7 @@ function create_fragment$g(ctx) {
|
|
|
1303
1306
|
each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
|
|
1304
1307
|
}
|
|
1305
1308
|
|
|
1306
|
-
let if_block = /*lineHeight*/ ctx[3] < /*textHeight*/ ctx[4] && create_if_block$
|
|
1309
|
+
let if_block = /*lineHeight*/ ctx[3] < /*textHeight*/ ctx[4] && create_if_block$e(ctx);
|
|
1307
1310
|
|
|
1308
1311
|
return {
|
|
1309
1312
|
c() {
|
|
@@ -1341,7 +1344,7 @@ function create_fragment$g(ctx) {
|
|
|
1341
1344
|
internal.transition_in(if_block, 1);
|
|
1342
1345
|
}
|
|
1343
1346
|
} else {
|
|
1344
|
-
if_block = create_if_block$
|
|
1347
|
+
if_block = create_if_block$e(ctx);
|
|
1345
1348
|
if_block.c();
|
|
1346
1349
|
internal.transition_in(if_block, 1);
|
|
1347
1350
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1386,7 +1389,7 @@ function create_fragment$g(ctx) {
|
|
|
1386
1389
|
};
|
|
1387
1390
|
}
|
|
1388
1391
|
|
|
1389
|
-
function instance$
|
|
1392
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
1390
1393
|
let transform;
|
|
1391
1394
|
let arrowDirection;
|
|
1392
1395
|
let foldTextDelay;
|
|
@@ -1461,27 +1464,27 @@ class MultiLineText extends internal.SvelteComponent {
|
|
|
1461
1464
|
internal.init(
|
|
1462
1465
|
this,
|
|
1463
1466
|
options,
|
|
1464
|
-
instance$
|
|
1465
|
-
create_fragment$
|
|
1467
|
+
instance$h,
|
|
1468
|
+
create_fragment$h,
|
|
1466
1469
|
internal.safe_not_equal,
|
|
1467
1470
|
{
|
|
1468
1471
|
visible: 0,
|
|
1469
1472
|
textUnfolded: 8,
|
|
1470
1473
|
textItems: 1
|
|
1471
1474
|
},
|
|
1472
|
-
add_css$
|
|
1475
|
+
add_css$h
|
|
1473
1476
|
);
|
|
1474
1477
|
}
|
|
1475
1478
|
}
|
|
1476
1479
|
|
|
1477
1480
|
/* src/PanoTagPlugin/Components/Tag/TextTag.svelte generated by Svelte v3.50.1 */
|
|
1478
1481
|
|
|
1479
|
-
function add_css$
|
|
1482
|
+
function add_css$g(target) {
|
|
1480
1483
|
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}");
|
|
1481
1484
|
}
|
|
1482
1485
|
|
|
1483
1486
|
// (29:0) {#if tag.state}
|
|
1484
|
-
function create_if_block$
|
|
1487
|
+
function create_if_block$d(ctx) {
|
|
1485
1488
|
let shadow;
|
|
1486
1489
|
let t0;
|
|
1487
1490
|
let div0;
|
|
@@ -1599,10 +1602,10 @@ function create_if_block$c(ctx) {
|
|
|
1599
1602
|
};
|
|
1600
1603
|
}
|
|
1601
1604
|
|
|
1602
|
-
function create_fragment$
|
|
1605
|
+
function create_fragment$g(ctx) {
|
|
1603
1606
|
let if_block_anchor;
|
|
1604
1607
|
let current;
|
|
1605
|
-
let if_block = /*tag*/ ctx[0].state && create_if_block$
|
|
1608
|
+
let if_block = /*tag*/ ctx[0].state && create_if_block$d(ctx);
|
|
1606
1609
|
|
|
1607
1610
|
return {
|
|
1608
1611
|
c() {
|
|
@@ -1623,7 +1626,7 @@ function create_fragment$f(ctx) {
|
|
|
1623
1626
|
internal.transition_in(if_block, 1);
|
|
1624
1627
|
}
|
|
1625
1628
|
} else {
|
|
1626
|
-
if_block = create_if_block$
|
|
1629
|
+
if_block = create_if_block$d(ctx);
|
|
1627
1630
|
if_block.c();
|
|
1628
1631
|
internal.transition_in(if_block, 1);
|
|
1629
1632
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1654,7 +1657,7 @@ function create_fragment$f(ctx) {
|
|
|
1654
1657
|
};
|
|
1655
1658
|
}
|
|
1656
1659
|
|
|
1657
|
-
function instance$
|
|
1660
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
1658
1661
|
let unfolded;
|
|
1659
1662
|
let text;
|
|
1660
1663
|
let foldTextDelay;
|
|
@@ -1729,18 +1732,18 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
1729
1732
|
class TextTag extends internal.SvelteComponent {
|
|
1730
1733
|
constructor(options) {
|
|
1731
1734
|
super();
|
|
1732
|
-
internal.init(this, options, instance$
|
|
1735
|
+
internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { tag: 0 }, add_css$g);
|
|
1733
1736
|
}
|
|
1734
1737
|
}
|
|
1735
1738
|
|
|
1736
1739
|
/* src/PanoTagPlugin/Components/Common/Line/Polyline.svelte generated by Svelte v3.50.1 */
|
|
1737
1740
|
|
|
1738
|
-
function add_css$
|
|
1741
|
+
function add_css$f(target) {
|
|
1739
1742
|
internal.append_styles(target, "svelte-e72ouh", ".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}");
|
|
1740
1743
|
}
|
|
1741
1744
|
|
|
1742
1745
|
// (18:2) {#if unfolded}
|
|
1743
|
-
function create_if_block$
|
|
1746
|
+
function create_if_block$c(ctx) {
|
|
1744
1747
|
let path;
|
|
1745
1748
|
let path_intro;
|
|
1746
1749
|
let path_outro;
|
|
@@ -1800,13 +1803,13 @@ function create_if_block$b(ctx) {
|
|
|
1800
1803
|
};
|
|
1801
1804
|
}
|
|
1802
1805
|
|
|
1803
|
-
function create_fragment$
|
|
1806
|
+
function create_fragment$f(ctx) {
|
|
1804
1807
|
let svg;
|
|
1805
1808
|
let defs;
|
|
1806
1809
|
let linearGradient;
|
|
1807
1810
|
let stop0;
|
|
1808
1811
|
let stop1;
|
|
1809
|
-
let if_block = /*unfolded*/ ctx[3] && create_if_block$
|
|
1812
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$c(ctx);
|
|
1810
1813
|
|
|
1811
1814
|
return {
|
|
1812
1815
|
c() {
|
|
@@ -1844,7 +1847,7 @@ function create_fragment$e(ctx) {
|
|
|
1844
1847
|
internal.transition_in(if_block, 1);
|
|
1845
1848
|
}
|
|
1846
1849
|
} else {
|
|
1847
|
-
if_block = create_if_block$
|
|
1850
|
+
if_block = create_if_block$c(ctx);
|
|
1848
1851
|
if_block.c();
|
|
1849
1852
|
internal.transition_in(if_block, 1);
|
|
1850
1853
|
if_block.m(svg, null);
|
|
@@ -1872,7 +1875,7 @@ function create_fragment$e(ctx) {
|
|
|
1872
1875
|
};
|
|
1873
1876
|
}
|
|
1874
1877
|
|
|
1875
|
-
function instance$
|
|
1878
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
1876
1879
|
let { inDelay = 0 } = $$props;
|
|
1877
1880
|
let { duration = 0 } = $$props;
|
|
1878
1881
|
let { outDelay = 0 } = $$props;
|
|
@@ -1896,8 +1899,8 @@ class Polyline extends internal.SvelteComponent {
|
|
|
1896
1899
|
internal.init(
|
|
1897
1900
|
this,
|
|
1898
1901
|
options,
|
|
1899
|
-
instance$
|
|
1900
|
-
create_fragment$
|
|
1902
|
+
instance$f,
|
|
1903
|
+
create_fragment$f,
|
|
1901
1904
|
internal.safe_not_equal,
|
|
1902
1905
|
{
|
|
1903
1906
|
inDelay: 0,
|
|
@@ -1905,98 +1908,295 @@ class Polyline extends internal.SvelteComponent {
|
|
|
1905
1908
|
outDelay: 2,
|
|
1906
1909
|
unfolded: 3
|
|
1907
1910
|
},
|
|
1908
|
-
add_css$
|
|
1911
|
+
add_css$f
|
|
1909
1912
|
);
|
|
1910
1913
|
}
|
|
1911
1914
|
}
|
|
1912
1915
|
|
|
1916
|
+
/* src/PanoTagPlugin/Components/Common/MediaItem.svelte generated by Svelte v3.50.1 */
|
|
1917
|
+
|
|
1918
|
+
function add_css$e(target) {
|
|
1919
|
+
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%)}");
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
// (6:0) {#if media}
|
|
1923
|
+
function create_if_block$b(ctx) {
|
|
1924
|
+
let div;
|
|
1925
|
+
let div_style_value;
|
|
1926
|
+
|
|
1927
|
+
function select_block_type(ctx, dirty) {
|
|
1928
|
+
if (/*media*/ ctx[0].type === 'Image') return create_if_block_1$7;
|
|
1929
|
+
if (/*media*/ ctx[0].type === 'Video') return create_if_block_2$3;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
let current_block_type = select_block_type(ctx);
|
|
1933
|
+
let if_block = current_block_type && current_block_type(ctx);
|
|
1934
|
+
|
|
1935
|
+
return {
|
|
1936
|
+
c() {
|
|
1937
|
+
div = internal.element("div");
|
|
1938
|
+
if (if_block) if_block.c();
|
|
1939
|
+
internal.attr(div, "class", "media-item svelte-6jwk1w");
|
|
1940
|
+
internal.attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[1]};`);
|
|
1941
|
+
},
|
|
1942
|
+
m(target, anchor) {
|
|
1943
|
+
internal.insert(target, div, anchor);
|
|
1944
|
+
if (if_block) if_block.m(div, null);
|
|
1945
|
+
},
|
|
1946
|
+
p(ctx, dirty) {
|
|
1947
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
1948
|
+
if_block.p(ctx, dirty);
|
|
1949
|
+
} else {
|
|
1950
|
+
if (if_block) if_block.d(1);
|
|
1951
|
+
if_block = current_block_type && current_block_type(ctx);
|
|
1952
|
+
|
|
1953
|
+
if (if_block) {
|
|
1954
|
+
if_block.c();
|
|
1955
|
+
if_block.m(div, null);
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
if (dirty & /*objectFit*/ 2 && div_style_value !== (div_style_value = `object-fit: ${/*objectFit*/ ctx[1]};`)) {
|
|
1960
|
+
internal.attr(div, "style", div_style_value);
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
d(detaching) {
|
|
1964
|
+
if (detaching) internal.detach(div);
|
|
1965
|
+
|
|
1966
|
+
if (if_block) {
|
|
1967
|
+
if_block.d();
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
// (10:37)
|
|
1974
|
+
function create_if_block_2$3(ctx) {
|
|
1975
|
+
let video;
|
|
1976
|
+
let video_src_value;
|
|
1977
|
+
let video_poster_value;
|
|
1978
|
+
let video_preload_value;
|
|
1979
|
+
let t;
|
|
1980
|
+
let div;
|
|
1981
|
+
|
|
1982
|
+
return {
|
|
1983
|
+
c() {
|
|
1984
|
+
video = internal.element("video");
|
|
1985
|
+
t = internal.space();
|
|
1986
|
+
div = internal.element("div");
|
|
1987
|
+
internal.attr(video, "class", "media-content svelte-6jwk1w");
|
|
1988
|
+
if (!internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[0].url)) internal.attr(video, "src", video_src_value);
|
|
1989
|
+
internal.attr(video, "poster", video_poster_value = /*media*/ ctx[0].videoCoverUrl ?? undefined);
|
|
1990
|
+
internal.attr(video, "preload", video_preload_value = /*media*/ ctx[0].videoCoverUrl ? undefined : 'auto');
|
|
1991
|
+
video.playsInline = true;
|
|
1992
|
+
internal.attr(video, "paused", "");
|
|
1993
|
+
video.loop = false;
|
|
1994
|
+
internal.attr(video, "crossorigin", "");
|
|
1995
|
+
video.controls = false;
|
|
1996
|
+
video.muted = true;
|
|
1997
|
+
internal.attr(div, "class", "video-icon svelte-6jwk1w");
|
|
1998
|
+
internal.set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
1999
|
+
},
|
|
2000
|
+
m(target, anchor) {
|
|
2001
|
+
internal.insert(target, video, anchor);
|
|
2002
|
+
internal.insert(target, t, anchor);
|
|
2003
|
+
internal.insert(target, div, anchor);
|
|
2004
|
+
},
|
|
2005
|
+
p(ctx, dirty) {
|
|
2006
|
+
if (dirty & /*media*/ 1 && !internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[0].url)) {
|
|
2007
|
+
internal.attr(video, "src", video_src_value);
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
if (dirty & /*media*/ 1 && video_poster_value !== (video_poster_value = /*media*/ ctx[0].videoCoverUrl ?? undefined)) {
|
|
2011
|
+
internal.attr(video, "poster", video_poster_value);
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
if (dirty & /*media*/ 1 && video_preload_value !== (video_preload_value = /*media*/ ctx[0].videoCoverUrl ? undefined : 'auto')) {
|
|
2015
|
+
internal.attr(video, "preload", video_preload_value);
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
d(detaching) {
|
|
2019
|
+
if (detaching) internal.detach(video);
|
|
2020
|
+
if (detaching) internal.detach(t);
|
|
2021
|
+
if (detaching) internal.detach(div);
|
|
2022
|
+
}
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
// (8:4) {#if media.type === 'Image'}
|
|
2027
|
+
function create_if_block_1$7(ctx) {
|
|
2028
|
+
let img;
|
|
2029
|
+
let img_src_value;
|
|
2030
|
+
let img_alt_value;
|
|
2031
|
+
|
|
2032
|
+
return {
|
|
2033
|
+
c() {
|
|
2034
|
+
img = internal.element("img");
|
|
2035
|
+
internal.attr(img, "class", "media-content svelte-6jwk1w");
|
|
2036
|
+
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[0].url)) internal.attr(img, "src", img_src_value);
|
|
2037
|
+
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[0].name);
|
|
2038
|
+
},
|
|
2039
|
+
m(target, anchor) {
|
|
2040
|
+
internal.insert(target, img, anchor);
|
|
2041
|
+
},
|
|
2042
|
+
p(ctx, dirty) {
|
|
2043
|
+
if (dirty & /*media*/ 1 && !internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[0].url)) {
|
|
2044
|
+
internal.attr(img, "src", img_src_value);
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
if (dirty & /*media*/ 1 && img_alt_value !== (img_alt_value = /*media*/ ctx[0].name)) {
|
|
2048
|
+
internal.attr(img, "alt", img_alt_value);
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
2051
|
+
d(detaching) {
|
|
2052
|
+
if (detaching) internal.detach(img);
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
function create_fragment$e(ctx) {
|
|
2058
|
+
let if_block_anchor;
|
|
2059
|
+
let if_block = /*media*/ ctx[0] && create_if_block$b(ctx);
|
|
2060
|
+
|
|
2061
|
+
return {
|
|
2062
|
+
c() {
|
|
2063
|
+
if (if_block) if_block.c();
|
|
2064
|
+
if_block_anchor = internal.empty();
|
|
2065
|
+
},
|
|
2066
|
+
m(target, anchor) {
|
|
2067
|
+
if (if_block) if_block.m(target, anchor);
|
|
2068
|
+
internal.insert(target, if_block_anchor, anchor);
|
|
2069
|
+
},
|
|
2070
|
+
p(ctx, [dirty]) {
|
|
2071
|
+
if (/*media*/ ctx[0]) {
|
|
2072
|
+
if (if_block) {
|
|
2073
|
+
if_block.p(ctx, dirty);
|
|
2074
|
+
} else {
|
|
2075
|
+
if_block = create_if_block$b(ctx);
|
|
2076
|
+
if_block.c();
|
|
2077
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
2078
|
+
}
|
|
2079
|
+
} else if (if_block) {
|
|
2080
|
+
if_block.d(1);
|
|
2081
|
+
if_block = null;
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
i: internal.noop,
|
|
2085
|
+
o: internal.noop,
|
|
2086
|
+
d(detaching) {
|
|
2087
|
+
if (if_block) if_block.d(detaching);
|
|
2088
|
+
if (detaching) internal.detach(if_block_anchor);
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
2094
|
+
let { media } = $$props;
|
|
2095
|
+
let { objectFit = 'cover' } = $$props;
|
|
2096
|
+
|
|
2097
|
+
$$self.$$set = $$props => {
|
|
2098
|
+
if ('media' in $$props) $$invalidate(0, media = $$props.media);
|
|
2099
|
+
if ('objectFit' in $$props) $$invalidate(1, objectFit = $$props.objectFit);
|
|
2100
|
+
};
|
|
2101
|
+
|
|
2102
|
+
return [media, objectFit];
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
class MediaItem extends internal.SvelteComponent {
|
|
2106
|
+
constructor(options) {
|
|
2107
|
+
super();
|
|
2108
|
+
internal.init(this, options, instance$e, create_fragment$e, internal.safe_not_equal, { media: 0, objectFit: 1 }, add_css$e);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
|
|
1913
2112
|
/* src/PanoTagPlugin/Components/Common/Media.svelte generated by Svelte v3.50.1 */
|
|
1914
2113
|
|
|
1915
2114
|
function add_css$d(target) {
|
|
1916
|
-
internal.append_styles(target, "svelte-
|
|
2115
|
+
internal.append_styles(target, "svelte-ai0lv9", ".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}");
|
|
1917
2116
|
}
|
|
1918
2117
|
|
|
1919
2118
|
function get_each_context$3(ctx, list, i) {
|
|
1920
2119
|
const child_ctx = ctx.slice();
|
|
1921
|
-
child_ctx[
|
|
2120
|
+
child_ctx[14] = list[i];
|
|
1922
2121
|
return child_ctx;
|
|
1923
2122
|
}
|
|
1924
2123
|
|
|
1925
|
-
// (
|
|
2124
|
+
// (24:0) {#if unfolded}
|
|
1926
2125
|
function create_if_block$a(ctx) {
|
|
1927
2126
|
let div;
|
|
2127
|
+
let current_block_type_index;
|
|
2128
|
+
let if_block;
|
|
1928
2129
|
let div_intro;
|
|
1929
2130
|
let div_outro;
|
|
1930
2131
|
let current;
|
|
1931
|
-
|
|
1932
|
-
|
|
2132
|
+
const if_block_creators = [create_if_block_1$6, create_else_block$1];
|
|
2133
|
+
const if_blocks = [];
|
|
1933
2134
|
|
|
1934
|
-
|
|
1935
|
-
|
|
2135
|
+
function select_block_type(ctx, dirty) {
|
|
2136
|
+
if (/*carouselEnabled*/ ctx[11]) return 0;
|
|
2137
|
+
return 1;
|
|
1936
2138
|
}
|
|
1937
2139
|
|
|
2140
|
+
current_block_type_index = select_block_type(ctx);
|
|
2141
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2142
|
+
|
|
1938
2143
|
return {
|
|
1939
2144
|
c() {
|
|
1940
2145
|
div = internal.element("div");
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
internal.attr(div, "class", "media svelte-129jnm");
|
|
1947
|
-
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[3]);
|
|
2146
|
+
if_block.c();
|
|
2147
|
+
internal.attr(div, "class", "media svelte-ai0lv9");
|
|
2148
|
+
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
|
|
1948
2149
|
},
|
|
1949
2150
|
m(target, anchor) {
|
|
1950
2151
|
internal.insert(target, div, anchor);
|
|
1951
|
-
|
|
1952
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
1953
|
-
each_blocks[i].m(div, null);
|
|
1954
|
-
}
|
|
1955
|
-
|
|
2152
|
+
if_blocks[current_block_type_index].m(div, null);
|
|
1956
2153
|
current = true;
|
|
1957
2154
|
},
|
|
1958
2155
|
p(new_ctx, dirty) {
|
|
1959
2156
|
ctx = new_ctx;
|
|
2157
|
+
let previous_block_index = current_block_type_index;
|
|
2158
|
+
current_block_type_index = select_block_type(ctx);
|
|
1960
2159
|
|
|
1961
|
-
if (
|
|
1962
|
-
|
|
1963
|
-
|
|
2160
|
+
if (current_block_type_index === previous_block_index) {
|
|
2161
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
2162
|
+
} else {
|
|
2163
|
+
internal.group_outros();
|
|
1964
2164
|
|
|
1965
|
-
|
|
1966
|
-
|
|
2165
|
+
internal.transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
2166
|
+
if_blocks[previous_block_index] = null;
|
|
2167
|
+
});
|
|
1967
2168
|
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
} else {
|
|
1971
|
-
each_blocks[i] = create_each_block$3(child_ctx);
|
|
1972
|
-
each_blocks[i].c();
|
|
1973
|
-
each_blocks[i].m(div, null);
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
2169
|
+
internal.check_outros();
|
|
2170
|
+
if_block = if_blocks[current_block_type_index];
|
|
1976
2171
|
|
|
1977
|
-
|
|
1978
|
-
|
|
2172
|
+
if (!if_block) {
|
|
2173
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2174
|
+
if_block.c();
|
|
2175
|
+
} else {
|
|
2176
|
+
if_block.p(ctx, dirty);
|
|
1979
2177
|
}
|
|
1980
2178
|
|
|
1981
|
-
|
|
2179
|
+
internal.transition_in(if_block, 1);
|
|
2180
|
+
if_block.m(div, null);
|
|
1982
2181
|
}
|
|
1983
2182
|
|
|
1984
|
-
if (!current || dirty & /*unfolded*/
|
|
1985
|
-
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[
|
|
2183
|
+
if (!current || dirty & /*unfolded*/ 16) {
|
|
2184
|
+
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
|
|
1986
2185
|
}
|
|
1987
2186
|
},
|
|
1988
2187
|
i(local) {
|
|
1989
2188
|
if (current) return;
|
|
2189
|
+
internal.transition_in(if_block);
|
|
1990
2190
|
|
|
1991
2191
|
if (local) {
|
|
1992
2192
|
internal.add_render_callback(() => {
|
|
1993
2193
|
if (div_outro) div_outro.end(1);
|
|
1994
2194
|
|
|
1995
|
-
div_intro = internal.create_in_transition(div, transition.fly, /*animation*/ ctx[
|
|
2195
|
+
div_intro = internal.create_in_transition(div, transition.fly, /*animation*/ ctx[5]
|
|
1996
2196
|
? {
|
|
1997
2197
|
y: 4,
|
|
1998
|
-
duration: /*duration*/ ctx[
|
|
1999
|
-
delay: /*inDelay*/ ctx[
|
|
2198
|
+
duration: /*duration*/ ctx[3],
|
|
2199
|
+
delay: /*inDelay*/ ctx[1],
|
|
2000
2200
|
easing: easing.linear
|
|
2001
2201
|
}
|
|
2002
2202
|
: undefined);
|
|
@@ -2008,14 +2208,15 @@ function create_if_block$a(ctx) {
|
|
|
2008
2208
|
current = true;
|
|
2009
2209
|
},
|
|
2010
2210
|
o(local) {
|
|
2211
|
+
internal.transition_out(if_block);
|
|
2011
2212
|
if (div_intro) div_intro.invalidate();
|
|
2012
2213
|
|
|
2013
2214
|
if (local) {
|
|
2014
|
-
div_outro = internal.create_out_transition(div, transition.fly, /*animation*/ ctx[
|
|
2215
|
+
div_outro = internal.create_out_transition(div, transition.fly, /*animation*/ ctx[5]
|
|
2015
2216
|
? {
|
|
2016
2217
|
y: 4,
|
|
2017
|
-
duration: /*duration*/ ctx[
|
|
2018
|
-
delay: /*outDelay*/ ctx[
|
|
2218
|
+
duration: /*duration*/ ctx[3],
|
|
2219
|
+
delay: /*outDelay*/ ctx[2],
|
|
2019
2220
|
easing: easing.linear
|
|
2020
2221
|
}
|
|
2021
2222
|
: undefined);
|
|
@@ -2025,211 +2226,295 @@ function create_if_block$a(ctx) {
|
|
|
2025
2226
|
},
|
|
2026
2227
|
d(detaching) {
|
|
2027
2228
|
if (detaching) internal.detach(div);
|
|
2028
|
-
|
|
2229
|
+
if_blocks[current_block_type_index].d();
|
|
2029
2230
|
if (detaching && div_outro) div_outro.end();
|
|
2030
2231
|
}
|
|
2031
2232
|
};
|
|
2032
2233
|
}
|
|
2033
2234
|
|
|
2034
|
-
// (
|
|
2035
|
-
function
|
|
2036
|
-
let
|
|
2037
|
-
let
|
|
2038
|
-
|
|
2235
|
+
// (80:4) {:else}
|
|
2236
|
+
function create_else_block$1(ctx) {
|
|
2237
|
+
let mediaitem;
|
|
2238
|
+
let current;
|
|
2239
|
+
|
|
2240
|
+
mediaitem = new MediaItem({
|
|
2241
|
+
props: {
|
|
2242
|
+
media: /*mediaData*/ ctx[0][0],
|
|
2243
|
+
objectFit: /*objectFit*/ ctx[6]
|
|
2244
|
+
}
|
|
2245
|
+
});
|
|
2039
2246
|
|
|
2040
2247
|
return {
|
|
2041
2248
|
c() {
|
|
2042
|
-
|
|
2043
|
-
internal.attr(video, "class", "media-content svelte-129jnm");
|
|
2044
|
-
if (!internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) internal.attr(video, "src", video_src_value);
|
|
2045
|
-
internal.attr(video, "poster", video_poster_value = /*media*/ ctx[9].videoCoverUrl);
|
|
2046
|
-
video.playsInline = true;
|
|
2047
|
-
internal.attr(video, "paused", "");
|
|
2048
|
-
video.loop = false;
|
|
2049
|
-
internal.attr(video, "preload", "auto");
|
|
2050
|
-
internal.attr(video, "crossorigin", "");
|
|
2051
|
-
video.controls = false;
|
|
2052
|
-
video.muted = true;
|
|
2249
|
+
internal.create_component(mediaitem.$$.fragment);
|
|
2053
2250
|
},
|
|
2054
2251
|
m(target, anchor) {
|
|
2055
|
-
internal.
|
|
2252
|
+
internal.mount_component(mediaitem, target, anchor);
|
|
2253
|
+
current = true;
|
|
2254
|
+
},
|
|
2255
|
+
p(ctx, dirty) {
|
|
2256
|
+
const mediaitem_changes = {};
|
|
2257
|
+
if (dirty & /*mediaData*/ 1) mediaitem_changes.media = /*mediaData*/ ctx[0][0];
|
|
2258
|
+
if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
|
|
2259
|
+
mediaitem.$set(mediaitem_changes);
|
|
2260
|
+
},
|
|
2261
|
+
i(local) {
|
|
2262
|
+
if (current) return;
|
|
2263
|
+
internal.transition_in(mediaitem.$$.fragment, local);
|
|
2264
|
+
current = true;
|
|
2056
2265
|
},
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
if (dirty & /*mediaDataList*/ 64 && video_poster_value !== (video_poster_value = /*media*/ ctx[9].videoCoverUrl)) {
|
|
2063
|
-
internal.attr(video, "poster", video_poster_value);
|
|
2064
|
-
}
|
|
2266
|
+
o(local) {
|
|
2267
|
+
internal.transition_out(mediaitem.$$.fragment, local);
|
|
2268
|
+
current = false;
|
|
2065
2269
|
},
|
|
2066
2270
|
d(detaching) {
|
|
2067
|
-
|
|
2271
|
+
internal.destroy_component(mediaitem, detaching);
|
|
2068
2272
|
}
|
|
2069
2273
|
};
|
|
2070
2274
|
}
|
|
2071
2275
|
|
|
2072
|
-
// (
|
|
2073
|
-
function
|
|
2074
|
-
let
|
|
2075
|
-
let
|
|
2076
|
-
|
|
2276
|
+
// (31:4) {#if carouselEnabled}
|
|
2277
|
+
function create_if_block_1$6(ctx) {
|
|
2278
|
+
let swiper$1;
|
|
2279
|
+
let current;
|
|
2280
|
+
|
|
2281
|
+
swiper$1 = new svelte$1.Swiper({
|
|
2282
|
+
props: {
|
|
2283
|
+
style: "height: 100%",
|
|
2284
|
+
modules: [swiper.Autoplay],
|
|
2285
|
+
spaceBetween: 30,
|
|
2286
|
+
autoplay: /*autoplay*/ ctx[10]
|
|
2287
|
+
? noTypecheck({
|
|
2288
|
+
delay: 2000,
|
|
2289
|
+
stopOnLastSlide: false,
|
|
2290
|
+
disableOnInteraction: false
|
|
2291
|
+
})
|
|
2292
|
+
: false,
|
|
2293
|
+
loop: true,
|
|
2294
|
+
$$slots: { default: [create_default_slot] },
|
|
2295
|
+
$$scope: { ctx }
|
|
2296
|
+
}
|
|
2297
|
+
});
|
|
2298
|
+
|
|
2299
|
+
swiper$1.$on("slideChange", /*slideChange_handler*/ ctx[13]);
|
|
2077
2300
|
|
|
2078
2301
|
return {
|
|
2079
2302
|
c() {
|
|
2080
|
-
|
|
2081
|
-
internal.attr(img, "class", "media-content svelte-129jnm");
|
|
2082
|
-
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) internal.attr(img, "src", img_src_value);
|
|
2083
|
-
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
2303
|
+
internal.create_component(swiper$1.$$.fragment);
|
|
2084
2304
|
},
|
|
2085
2305
|
m(target, anchor) {
|
|
2086
|
-
internal.
|
|
2306
|
+
internal.mount_component(swiper$1, target, anchor);
|
|
2307
|
+
current = true;
|
|
2087
2308
|
},
|
|
2088
2309
|
p(ctx, dirty) {
|
|
2089
|
-
|
|
2090
|
-
internal.attr(img, "src", img_src_value);
|
|
2091
|
-
}
|
|
2310
|
+
const swiper_changes = {};
|
|
2092
2311
|
|
|
2093
|
-
if (dirty & /*
|
|
2094
|
-
|
|
2312
|
+
if (dirty & /*autoplay*/ 1024) swiper_changes.autoplay = /*autoplay*/ ctx[10]
|
|
2313
|
+
? noTypecheck({
|
|
2314
|
+
delay: 2000,
|
|
2315
|
+
stopOnLastSlide: false,
|
|
2316
|
+
disableOnInteraction: false
|
|
2317
|
+
})
|
|
2318
|
+
: false;
|
|
2319
|
+
|
|
2320
|
+
if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
|
|
2321
|
+
swiper_changes.$$scope = { dirty, ctx };
|
|
2095
2322
|
}
|
|
2323
|
+
|
|
2324
|
+
swiper$1.$set(swiper_changes);
|
|
2325
|
+
},
|
|
2326
|
+
i(local) {
|
|
2327
|
+
if (current) return;
|
|
2328
|
+
internal.transition_in(swiper$1.$$.fragment, local);
|
|
2329
|
+
current = true;
|
|
2330
|
+
},
|
|
2331
|
+
o(local) {
|
|
2332
|
+
internal.transition_out(swiper$1.$$.fragment, local);
|
|
2333
|
+
current = false;
|
|
2096
2334
|
},
|
|
2097
2335
|
d(detaching) {
|
|
2098
|
-
|
|
2336
|
+
internal.destroy_component(swiper$1, detaching);
|
|
2099
2337
|
}
|
|
2100
2338
|
};
|
|
2101
2339
|
}
|
|
2102
2340
|
|
|
2103
|
-
// (
|
|
2104
|
-
function
|
|
2105
|
-
let
|
|
2106
|
-
let
|
|
2107
|
-
let
|
|
2341
|
+
// (75:10) <SwiperSlide>
|
|
2342
|
+
function create_default_slot_1(ctx) {
|
|
2343
|
+
let mediaitem;
|
|
2344
|
+
let t;
|
|
2345
|
+
let current;
|
|
2346
|
+
|
|
2347
|
+
mediaitem = new MediaItem({
|
|
2348
|
+
props: {
|
|
2349
|
+
media: /*media*/ ctx[14],
|
|
2350
|
+
objectFit: /*objectFit*/ ctx[6]
|
|
2351
|
+
}
|
|
2352
|
+
});
|
|
2108
2353
|
|
|
2109
2354
|
return {
|
|
2110
2355
|
c() {
|
|
2111
|
-
|
|
2112
|
-
internal.
|
|
2113
|
-
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) internal.attr(img, "src", img_src_value);
|
|
2114
|
-
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
2356
|
+
internal.create_component(mediaitem.$$.fragment);
|
|
2357
|
+
t = internal.space();
|
|
2115
2358
|
},
|
|
2116
2359
|
m(target, anchor) {
|
|
2117
|
-
internal.
|
|
2360
|
+
internal.mount_component(mediaitem, target, anchor);
|
|
2361
|
+
internal.insert(target, t, anchor);
|
|
2362
|
+
current = true;
|
|
2118
2363
|
},
|
|
2119
2364
|
p(ctx, dirty) {
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2365
|
+
const mediaitem_changes = {};
|
|
2366
|
+
if (dirty & /*mediaDataList*/ 256) mediaitem_changes.media = /*media*/ ctx[14];
|
|
2367
|
+
if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
|
|
2368
|
+
mediaitem.$set(mediaitem_changes);
|
|
2369
|
+
},
|
|
2370
|
+
i(local) {
|
|
2371
|
+
if (current) return;
|
|
2372
|
+
internal.transition_in(mediaitem.$$.fragment, local);
|
|
2373
|
+
current = true;
|
|
2374
|
+
},
|
|
2375
|
+
o(local) {
|
|
2376
|
+
internal.transition_out(mediaitem.$$.fragment, local);
|
|
2377
|
+
current = false;
|
|
2127
2378
|
},
|
|
2128
2379
|
d(detaching) {
|
|
2129
|
-
|
|
2380
|
+
internal.destroy_component(mediaitem, detaching);
|
|
2381
|
+
if (detaching) internal.detach(t);
|
|
2130
2382
|
}
|
|
2131
2383
|
};
|
|
2132
2384
|
}
|
|
2133
2385
|
|
|
2134
|
-
// (
|
|
2135
|
-
function
|
|
2136
|
-
let
|
|
2386
|
+
// (74:8) {#each mediaDataList as media}
|
|
2387
|
+
function create_each_block$3(ctx) {
|
|
2388
|
+
let swiperslide;
|
|
2389
|
+
let current;
|
|
2390
|
+
|
|
2391
|
+
swiperslide = new svelte$1.SwiperSlide({
|
|
2392
|
+
props: {
|
|
2393
|
+
$$slots: { default: [create_default_slot_1] },
|
|
2394
|
+
$$scope: { ctx }
|
|
2395
|
+
}
|
|
2396
|
+
});
|
|
2137
2397
|
|
|
2138
2398
|
return {
|
|
2139
2399
|
c() {
|
|
2140
|
-
|
|
2141
|
-
internal.attr(div, "class", "video-icon svelte-129jnm");
|
|
2142
|
-
internal.set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
2400
|
+
internal.create_component(swiperslide.$$.fragment);
|
|
2143
2401
|
},
|
|
2144
2402
|
m(target, anchor) {
|
|
2145
|
-
internal.
|
|
2403
|
+
internal.mount_component(swiperslide, target, anchor);
|
|
2404
|
+
current = true;
|
|
2405
|
+
},
|
|
2406
|
+
p(ctx, dirty) {
|
|
2407
|
+
const swiperslide_changes = {};
|
|
2408
|
+
|
|
2409
|
+
if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
|
|
2410
|
+
swiperslide_changes.$$scope = { dirty, ctx };
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
swiperslide.$set(swiperslide_changes);
|
|
2414
|
+
},
|
|
2415
|
+
i(local) {
|
|
2416
|
+
if (current) return;
|
|
2417
|
+
internal.transition_in(swiperslide.$$.fragment, local);
|
|
2418
|
+
current = true;
|
|
2419
|
+
},
|
|
2420
|
+
o(local) {
|
|
2421
|
+
internal.transition_out(swiperslide.$$.fragment, local);
|
|
2422
|
+
current = false;
|
|
2146
2423
|
},
|
|
2147
|
-
p: internal.noop,
|
|
2148
2424
|
d(detaching) {
|
|
2149
|
-
|
|
2425
|
+
internal.destroy_component(swiperslide, detaching);
|
|
2150
2426
|
}
|
|
2151
2427
|
};
|
|
2152
2428
|
}
|
|
2153
2429
|
|
|
2154
|
-
// (
|
|
2155
|
-
function
|
|
2156
|
-
let
|
|
2157
|
-
let
|
|
2158
|
-
let
|
|
2159
|
-
let
|
|
2430
|
+
// (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() }} >
|
|
2431
|
+
function create_default_slot(ctx) {
|
|
2432
|
+
let each_1_anchor;
|
|
2433
|
+
let current;
|
|
2434
|
+
let each_value = /*mediaDataList*/ ctx[8];
|
|
2435
|
+
let each_blocks = [];
|
|
2160
2436
|
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
if (/*media*/ ctx[9].type === 'Video' && /*media*/ ctx[9].videoCoverUrl) return create_if_block_3$2;
|
|
2164
|
-
if (/*media*/ ctx[9].type === 'Video' && !/*media*/ ctx[9].videoCoverUrl) return create_if_block_4$2;
|
|
2437
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
2438
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
|
2165
2439
|
}
|
|
2166
2440
|
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2441
|
+
const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
|
|
2442
|
+
each_blocks[i] = null;
|
|
2443
|
+
});
|
|
2170
2444
|
|
|
2171
2445
|
return {
|
|
2172
2446
|
c() {
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
internal.attr(div, "class", "carousel-item svelte-129jnm");
|
|
2179
|
-
internal.attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[5]};`);
|
|
2447
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
2448
|
+
each_blocks[i].c();
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
each_1_anchor = internal.empty();
|
|
2180
2452
|
},
|
|
2181
2453
|
m(target, anchor) {
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
internal.
|
|
2454
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
2455
|
+
each_blocks[i].m(target, anchor);
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
internal.insert(target, each_1_anchor, anchor);
|
|
2459
|
+
current = true;
|
|
2187
2460
|
},
|
|
2188
2461
|
p(ctx, dirty) {
|
|
2189
|
-
if (
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
if (if_block0) if_block0.d(1);
|
|
2193
|
-
if_block0 = current_block_type && current_block_type(ctx);
|
|
2462
|
+
if (dirty & /*mediaDataList, objectFit*/ 320) {
|
|
2463
|
+
each_value = /*mediaDataList*/ ctx[8];
|
|
2464
|
+
let i;
|
|
2194
2465
|
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2466
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
2467
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
|
2468
|
+
|
|
2469
|
+
if (each_blocks[i]) {
|
|
2470
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
2471
|
+
internal.transition_in(each_blocks[i], 1);
|
|
2472
|
+
} else {
|
|
2473
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
|
2474
|
+
each_blocks[i].c();
|
|
2475
|
+
internal.transition_in(each_blocks[i], 1);
|
|
2476
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
2477
|
+
}
|
|
2198
2478
|
}
|
|
2199
|
-
}
|
|
2200
2479
|
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
if_block1 = create_if_block_1$6();
|
|
2206
|
-
if_block1.c();
|
|
2207
|
-
if_block1.m(div, t1);
|
|
2480
|
+
internal.group_outros();
|
|
2481
|
+
|
|
2482
|
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
|
2483
|
+
out(i);
|
|
2208
2484
|
}
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
if_block1 = null;
|
|
2485
|
+
|
|
2486
|
+
internal.check_outros();
|
|
2212
2487
|
}
|
|
2488
|
+
},
|
|
2489
|
+
i(local) {
|
|
2490
|
+
if (current) return;
|
|
2213
2491
|
|
|
2214
|
-
|
|
2215
|
-
internal.
|
|
2492
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
2493
|
+
internal.transition_in(each_blocks[i]);
|
|
2216
2494
|
}
|
|
2495
|
+
|
|
2496
|
+
current = true;
|
|
2217
2497
|
},
|
|
2218
|
-
|
|
2219
|
-
|
|
2498
|
+
o(local) {
|
|
2499
|
+
each_blocks = each_blocks.filter(Boolean);
|
|
2220
2500
|
|
|
2221
|
-
|
|
2222
|
-
|
|
2501
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
2502
|
+
internal.transition_out(each_blocks[i]);
|
|
2223
2503
|
}
|
|
2224
2504
|
|
|
2225
|
-
|
|
2505
|
+
current = false;
|
|
2506
|
+
},
|
|
2507
|
+
d(detaching) {
|
|
2508
|
+
internal.destroy_each(each_blocks, detaching);
|
|
2509
|
+
if (detaching) internal.detach(each_1_anchor);
|
|
2226
2510
|
}
|
|
2227
2511
|
};
|
|
2228
2512
|
}
|
|
2229
2513
|
|
|
2230
2514
|
function create_fragment$d(ctx) {
|
|
2231
2515
|
let if_block_anchor;
|
|
2232
|
-
let
|
|
2516
|
+
let current;
|
|
2517
|
+
let if_block = /*unfolded*/ ctx[4] && create_if_block$a(ctx);
|
|
2233
2518
|
|
|
2234
2519
|
return {
|
|
2235
2520
|
c() {
|
|
@@ -2239,13 +2524,14 @@ function create_fragment$d(ctx) {
|
|
|
2239
2524
|
m(target, anchor) {
|
|
2240
2525
|
if (if_block) if_block.m(target, anchor);
|
|
2241
2526
|
internal.insert(target, if_block_anchor, anchor);
|
|
2527
|
+
current = true;
|
|
2242
2528
|
},
|
|
2243
2529
|
p(ctx, [dirty]) {
|
|
2244
|
-
if (/*unfolded*/ ctx[
|
|
2530
|
+
if (/*unfolded*/ ctx[4]) {
|
|
2245
2531
|
if (if_block) {
|
|
2246
2532
|
if_block.p(ctx, dirty);
|
|
2247
2533
|
|
|
2248
|
-
if (dirty & /*unfolded*/
|
|
2534
|
+
if (dirty & /*unfolded*/ 16) {
|
|
2249
2535
|
internal.transition_in(if_block, 1);
|
|
2250
2536
|
}
|
|
2251
2537
|
} else {
|
|
@@ -2265,10 +2551,13 @@ function create_fragment$d(ctx) {
|
|
|
2265
2551
|
}
|
|
2266
2552
|
},
|
|
2267
2553
|
i(local) {
|
|
2554
|
+
if (current) return;
|
|
2268
2555
|
internal.transition_in(if_block);
|
|
2556
|
+
current = true;
|
|
2269
2557
|
},
|
|
2270
2558
|
o(local) {
|
|
2271
2559
|
internal.transition_out(if_block);
|
|
2560
|
+
current = false;
|
|
2272
2561
|
},
|
|
2273
2562
|
d(detaching) {
|
|
2274
2563
|
if (if_block) if_block.d(detaching);
|
|
@@ -2278,7 +2567,9 @@ function create_fragment$d(ctx) {
|
|
|
2278
2567
|
}
|
|
2279
2568
|
|
|
2280
2569
|
function instance$d($$self, $$props, $$invalidate) {
|
|
2570
|
+
let carouselEnabled;
|
|
2281
2571
|
let mediaDataList;
|
|
2572
|
+
let autoplay;
|
|
2282
2573
|
let { mediaData } = $$props;
|
|
2283
2574
|
let { inDelay = 0 } = $$props;
|
|
2284
2575
|
let { outDelay = 0 } = $$props;
|
|
@@ -2287,34 +2578,93 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
2287
2578
|
let { animation = true } = $$props;
|
|
2288
2579
|
let { objectFit = 'cover' } = $$props;
|
|
2289
2580
|
let { enableCarousel = true } = $$props;
|
|
2581
|
+
let { autoplayConfig = { autoplay: true, autoplayVideo: false } } = $$props;
|
|
2582
|
+
let lastAutoPlayIndex = null;
|
|
2583
|
+
|
|
2584
|
+
const slideChange_handler = async event => {
|
|
2585
|
+
if (!autoplay) return;
|
|
2586
|
+
if (!autoplayConfig.autoplayVideo) return;
|
|
2587
|
+
const swiper = event.detail[0];
|
|
2588
|
+
if (!swiper) return;
|
|
2589
|
+
const index = swiper.realIndex;
|
|
2590
|
+
|
|
2591
|
+
// 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]
|
|
2592
|
+
if (index === lastAutoPlayIndex) return;
|
|
2593
|
+
|
|
2594
|
+
$$invalidate(9, lastAutoPlayIndex = index);
|
|
2595
|
+
const media = mediaDataList[index];
|
|
2596
|
+
if (!media) return;
|
|
2597
|
+
if (media.type !== 'Video') return;
|
|
2598
|
+
|
|
2599
|
+
// 先暂停自动轮播
|
|
2600
|
+
swiper.autoplay.stop();
|
|
2601
|
+
|
|
2602
|
+
// 播放视频
|
|
2603
|
+
await new Promise(resolve => {
|
|
2604
|
+
const video = swiper.slides[swiper.activeIndex]?.querySelector('video');
|
|
2605
|
+
|
|
2606
|
+
if (!video) {
|
|
2607
|
+
resolve(noTypecheck(null));
|
|
2608
|
+
return;
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
video.play();
|
|
2612
|
+
video.onerror = () => resolve(noTypecheck(null));
|
|
2613
|
+
video.onended = () => resolve(noTypecheck(null));
|
|
2614
|
+
|
|
2615
|
+
video.onclick = () => {
|
|
2616
|
+
video.pause();
|
|
2617
|
+
resolve(noTypecheck(null));
|
|
2618
|
+
};
|
|
2619
|
+
});
|
|
2620
|
+
|
|
2621
|
+
// 恢复自动轮播
|
|
2622
|
+
swiper.autoplay.start();
|
|
2623
|
+
};
|
|
2290
2624
|
|
|
2291
2625
|
$$self.$$set = $$props => {
|
|
2292
|
-
if ('mediaData' in $$props) $$invalidate(
|
|
2293
|
-
if ('inDelay' in $$props) $$invalidate(
|
|
2294
|
-
if ('outDelay' in $$props) $$invalidate(
|
|
2295
|
-
if ('duration' in $$props) $$invalidate(
|
|
2296
|
-
if ('unfolded' in $$props) $$invalidate(
|
|
2297
|
-
if ('animation' in $$props) $$invalidate(
|
|
2298
|
-
if ('objectFit' in $$props) $$invalidate(
|
|
2299
|
-
if ('enableCarousel' in $$props) $$invalidate(
|
|
2626
|
+
if ('mediaData' in $$props) $$invalidate(0, mediaData = $$props.mediaData);
|
|
2627
|
+
if ('inDelay' in $$props) $$invalidate(1, inDelay = $$props.inDelay);
|
|
2628
|
+
if ('outDelay' in $$props) $$invalidate(2, outDelay = $$props.outDelay);
|
|
2629
|
+
if ('duration' in $$props) $$invalidate(3, duration = $$props.duration);
|
|
2630
|
+
if ('unfolded' in $$props) $$invalidate(4, unfolded = $$props.unfolded);
|
|
2631
|
+
if ('animation' in $$props) $$invalidate(5, animation = $$props.animation);
|
|
2632
|
+
if ('objectFit' in $$props) $$invalidate(6, objectFit = $$props.objectFit);
|
|
2633
|
+
if ('enableCarousel' in $$props) $$invalidate(12, enableCarousel = $$props.enableCarousel);
|
|
2634
|
+
if ('autoplayConfig' in $$props) $$invalidate(7, autoplayConfig = $$props.autoplayConfig);
|
|
2300
2635
|
};
|
|
2301
2636
|
|
|
2302
2637
|
$$self.$$.update = () => {
|
|
2303
|
-
if ($$self.$$.dirty & /*enableCarousel, mediaData*/
|
|
2304
|
-
$$invalidate(
|
|
2638
|
+
if ($$self.$$.dirty & /*enableCarousel, mediaData*/ 4097) {
|
|
2639
|
+
$$invalidate(11, carouselEnabled = enableCarousel && (mediaData === null || mediaData === void 0
|
|
2640
|
+
? void 0
|
|
2641
|
+
: mediaData.length) > 1);
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
if ($$self.$$.dirty & /*mediaData*/ 1) {
|
|
2645
|
+
$$invalidate(8, mediaDataList = mediaData);
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
if ($$self.$$.dirty & /*mediaDataList, autoplayConfig*/ 384) {
|
|
2649
|
+
$$invalidate(10, autoplay = mediaDataList.length > 1 && autoplayConfig.autoplay);
|
|
2305
2650
|
}
|
|
2306
2651
|
};
|
|
2307
2652
|
|
|
2308
2653
|
return [
|
|
2654
|
+
mediaData,
|
|
2309
2655
|
inDelay,
|
|
2310
2656
|
outDelay,
|
|
2311
2657
|
duration,
|
|
2312
2658
|
unfolded,
|
|
2313
2659
|
animation,
|
|
2314
2660
|
objectFit,
|
|
2661
|
+
autoplayConfig,
|
|
2315
2662
|
mediaDataList,
|
|
2316
|
-
|
|
2317
|
-
|
|
2663
|
+
lastAutoPlayIndex,
|
|
2664
|
+
autoplay,
|
|
2665
|
+
carouselEnabled,
|
|
2666
|
+
enableCarousel,
|
|
2667
|
+
slideChange_handler
|
|
2318
2668
|
];
|
|
2319
2669
|
}
|
|
2320
2670
|
|
|
@@ -2329,14 +2679,15 @@ class Media extends internal.SvelteComponent {
|
|
|
2329
2679
|
create_fragment$d,
|
|
2330
2680
|
internal.safe_not_equal,
|
|
2331
2681
|
{
|
|
2332
|
-
mediaData:
|
|
2333
|
-
inDelay:
|
|
2334
|
-
outDelay:
|
|
2335
|
-
duration:
|
|
2336
|
-
unfolded:
|
|
2337
|
-
animation:
|
|
2338
|
-
objectFit:
|
|
2339
|
-
enableCarousel:
|
|
2682
|
+
mediaData: 0,
|
|
2683
|
+
inDelay: 1,
|
|
2684
|
+
outDelay: 2,
|
|
2685
|
+
duration: 3,
|
|
2686
|
+
unfolded: 4,
|
|
2687
|
+
animation: 5,
|
|
2688
|
+
objectFit: 6,
|
|
2689
|
+
enableCarousel: 12,
|
|
2690
|
+
autoplayConfig: 7
|
|
2340
2691
|
},
|
|
2341
2692
|
add_css$d
|
|
2342
2693
|
);
|
|
@@ -2570,6 +2921,7 @@ function create_if_block_1$5(ctx) {
|
|
|
2570
2921
|
|
|
2571
2922
|
media = new Media({
|
|
2572
2923
|
props: {
|
|
2924
|
+
autoplayConfig: { autoplay: false },
|
|
2573
2925
|
unfolded: /*unfolded*/ ctx[4],
|
|
2574
2926
|
mediaData: /*mediaData*/ ctx[3],
|
|
2575
2927
|
inDelay: 500,
|
|
@@ -3917,7 +4269,7 @@ function add_css$8(target) {
|
|
|
3917
4269
|
internal.append_styles(target, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
3918
4270
|
}
|
|
3919
4271
|
|
|
3920
|
-
// (
|
|
4272
|
+
// (20:0) {#if tag.state && mediaData}
|
|
3921
4273
|
function create_if_block$5(ctx) {
|
|
3922
4274
|
let div;
|
|
3923
4275
|
let media;
|
|
@@ -3925,10 +4277,11 @@ function create_if_block$5(ctx) {
|
|
|
3925
4277
|
|
|
3926
4278
|
media = new Media({
|
|
3927
4279
|
props: {
|
|
3928
|
-
unfolded: /*unfolded*/ ctx[
|
|
3929
|
-
mediaData: /*mediaData*/ ctx[
|
|
3930
|
-
objectFit: /*objectFit*/ ctx[
|
|
3931
|
-
enableCarousel:
|
|
4280
|
+
unfolded: /*unfolded*/ ctx[5],
|
|
4281
|
+
mediaData: /*mediaData*/ ctx[4],
|
|
4282
|
+
objectFit: /*objectFit*/ ctx[2],
|
|
4283
|
+
enableCarousel: /*enableCarousel*/ ctx[1],
|
|
4284
|
+
autoplayConfig: /*autoplayConfig*/ ctx[3],
|
|
3932
4285
|
inDelay: 500,
|
|
3933
4286
|
duration: 500
|
|
3934
4287
|
}
|
|
@@ -3947,9 +4300,11 @@ function create_if_block$5(ctx) {
|
|
|
3947
4300
|
},
|
|
3948
4301
|
p(ctx, dirty) {
|
|
3949
4302
|
const media_changes = {};
|
|
3950
|
-
if (dirty & /*unfolded*/
|
|
3951
|
-
if (dirty & /*mediaData*/
|
|
3952
|
-
if (dirty & /*objectFit*/
|
|
4303
|
+
if (dirty & /*unfolded*/ 32) media_changes.unfolded = /*unfolded*/ ctx[5];
|
|
4304
|
+
if (dirty & /*mediaData*/ 16) media_changes.mediaData = /*mediaData*/ ctx[4];
|
|
4305
|
+
if (dirty & /*objectFit*/ 4) media_changes.objectFit = /*objectFit*/ ctx[2];
|
|
4306
|
+
if (dirty & /*enableCarousel*/ 2) media_changes.enableCarousel = /*enableCarousel*/ ctx[1];
|
|
4307
|
+
if (dirty & /*autoplayConfig*/ 8) media_changes.autoplayConfig = /*autoplayConfig*/ ctx[3];
|
|
3953
4308
|
media.$set(media_changes);
|
|
3954
4309
|
},
|
|
3955
4310
|
i(local) {
|
|
@@ -3971,7 +4326,7 @@ function create_if_block$5(ctx) {
|
|
|
3971
4326
|
function create_fragment$8(ctx) {
|
|
3972
4327
|
let if_block_anchor;
|
|
3973
4328
|
let current;
|
|
3974
|
-
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
4329
|
+
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[4] && create_if_block$5(ctx);
|
|
3975
4330
|
|
|
3976
4331
|
return {
|
|
3977
4332
|
c() {
|
|
@@ -3984,11 +4339,11 @@ function create_fragment$8(ctx) {
|
|
|
3984
4339
|
current = true;
|
|
3985
4340
|
},
|
|
3986
4341
|
p(ctx, [dirty]) {
|
|
3987
|
-
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
4342
|
+
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[4]) {
|
|
3988
4343
|
if (if_block) {
|
|
3989
4344
|
if_block.p(ctx, dirty);
|
|
3990
4345
|
|
|
3991
|
-
if (dirty & /*tag, mediaData*/
|
|
4346
|
+
if (dirty & /*tag, mediaData*/ 17) {
|
|
3992
4347
|
internal.transition_in(if_block, 1);
|
|
3993
4348
|
}
|
|
3994
4349
|
} else {
|
|
@@ -4026,8 +4381,10 @@ function create_fragment$8(ctx) {
|
|
|
4026
4381
|
function instance$8($$self, $$props, $$invalidate) {
|
|
4027
4382
|
let unfolded;
|
|
4028
4383
|
let mediaData;
|
|
4384
|
+
let enableCarousel;
|
|
4385
|
+
let autoplayConfig;
|
|
4029
4386
|
let objectFit;
|
|
4030
|
-
var _a;
|
|
4387
|
+
var _a, _b;
|
|
4031
4388
|
let { tag } = $$props;
|
|
4032
4389
|
|
|
4033
4390
|
$$self.$$set = $$props => {
|
|
@@ -4036,23 +4393,38 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
4036
4393
|
|
|
4037
4394
|
$$self.$$.update = () => {
|
|
4038
4395
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
4039
|
-
$$invalidate(
|
|
4396
|
+
$$invalidate(5, unfolded = tag.state ? tag.state.unfolded : false);
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
4400
|
+
$$invalidate(4, mediaData = tag.data.mediaData);
|
|
4040
4401
|
}
|
|
4041
4402
|
|
|
4042
4403
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
4043
|
-
$$invalidate(
|
|
4404
|
+
$$invalidate(1, enableCarousel = tag.data.enableCarousel);
|
|
4044
4405
|
}
|
|
4045
4406
|
|
|
4046
|
-
if ($$self.$$.dirty & /*tag, _a*/
|
|
4047
|
-
$$invalidate(
|
|
4407
|
+
if ($$self.$$.dirty & /*tag, _a, enableCarousel*/ 67) {
|
|
4408
|
+
$$invalidate(3, autoplayConfig = $$invalidate(6, _a = tag.data.autoplayConfig) !== null && _a !== void 0
|
|
4048
4409
|
? _a
|
|
4410
|
+
: {
|
|
4411
|
+
autoplay: enableCarousel !== null && enableCarousel !== void 0
|
|
4412
|
+
? enableCarousel
|
|
4413
|
+
: true,
|
|
4414
|
+
autoplayVideo: true
|
|
4415
|
+
});
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
if ($$self.$$.dirty & /*tag, _b*/ 129) {
|
|
4419
|
+
$$invalidate(2, objectFit = $$invalidate(7, _b = tag.data.objectFit) !== null && _b !== void 0
|
|
4420
|
+
? _b
|
|
4049
4421
|
: (() => {
|
|
4050
4422
|
if (tag.data.adaptationMode === 'stretch') return 'cover'; else if (tag.data.adaptationMode === 'proportional') return 'contain'; else return undefined;
|
|
4051
4423
|
})());
|
|
4052
4424
|
}
|
|
4053
4425
|
};
|
|
4054
4426
|
|
|
4055
|
-
return [tag, objectFit, mediaData, unfolded, _a];
|
|
4427
|
+
return [tag, enableCarousel, objectFit, autoplayConfig, mediaData, unfolded, _a, _b];
|
|
4056
4428
|
}
|
|
4057
4429
|
|
|
4058
4430
|
class MediaPlane extends internal.SvelteComponent {
|
|
@@ -6223,6 +6595,16 @@ class TagComputer extends TagCacheController {
|
|
|
6223
6595
|
value: new THREE__namespace.Raycaster()
|
|
6224
6596
|
});
|
|
6225
6597
|
}
|
|
6598
|
+
getTagById(id) {
|
|
6599
|
+
const tag = this.tags.find((tag) => {
|
|
6600
|
+
return tag.id === id;
|
|
6601
|
+
});
|
|
6602
|
+
if (!tag) {
|
|
6603
|
+
console.error(`getTagById(): tag is ${tag}, id is ${id}`);
|
|
6604
|
+
return undefined;
|
|
6605
|
+
}
|
|
6606
|
+
return tag;
|
|
6607
|
+
}
|
|
6226
6608
|
/**
|
|
6227
6609
|
* @description: 改变配置
|
|
6228
6610
|
*/
|
|
@@ -6277,7 +6659,6 @@ class TagComputer extends TagCacheController {
|
|
|
6277
6659
|
const visible = (() => {
|
|
6278
6660
|
var _a, _b, _c, _d, _e;
|
|
6279
6661
|
const config = (_a = this.getTagConfig(tag).visibleConfig) !== null && _a !== void 0 ? _a : {};
|
|
6280
|
-
// console.log(config)
|
|
6281
6662
|
const distance = this.getDistance(tag);
|
|
6282
6663
|
if (typeof config === 'function') {
|
|
6283
6664
|
return config(this.five, { tag, distance });
|
|
@@ -6553,18 +6934,11 @@ class TagComputer extends TagCacheController {
|
|
|
6553
6934
|
const unfolded = this.getUnfoldedByPanoIndex(tag);
|
|
6554
6935
|
if (!tag.state)
|
|
6555
6936
|
return;
|
|
6556
|
-
if (unfolded
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
});
|
|
6560
|
-
}
|
|
6561
|
-
setVisibleAndUnfoldedByPanoIndex() {
|
|
6562
|
-
this.setVisibleByPanoIndex();
|
|
6563
|
-
this.setUnfoldedByPanoIndex();
|
|
6564
|
-
this.tags.forEach((tag) => {
|
|
6565
|
-
var _a, _b;
|
|
6937
|
+
if (unfolded !== undefined) {
|
|
6938
|
+
tag.state.unfolded = unfolded;
|
|
6939
|
+
}
|
|
6566
6940
|
// 如果标签展开但不可见,就要判断autoUnfoldWhenHide
|
|
6567
|
-
if (
|
|
6941
|
+
if (unfolded && !tag.state.visible) {
|
|
6568
6942
|
const config = this.getTagConfig(tag);
|
|
6569
6943
|
if (typeof config.unfoldedConfig === 'object' && config.unfoldedConfig.autoUnfoldWhenHide !== false) {
|
|
6570
6944
|
tag.state.unfolded = false;
|
|
@@ -6585,16 +6959,6 @@ class TagComputer extends TagCacheController {
|
|
|
6585
6959
|
return;
|
|
6586
6960
|
return { x, y, z };
|
|
6587
6961
|
}
|
|
6588
|
-
getTagById(id) {
|
|
6589
|
-
const tag = this.tags.find((tag) => {
|
|
6590
|
-
return tag.id === id;
|
|
6591
|
-
});
|
|
6592
|
-
if (!tag) {
|
|
6593
|
-
console.error(`getTagById(): tag is ${tag}, id is ${id}`);
|
|
6594
|
-
return undefined;
|
|
6595
|
-
}
|
|
6596
|
-
return tag;
|
|
6597
|
-
}
|
|
6598
6962
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
6599
6963
|
filterPointTag() {
|
|
6600
6964
|
return this.tags.filter((tag) => tag.pointType === exports.PointType.PointTag);
|
|
@@ -7410,9 +7774,10 @@ class Controller extends CSS3DRender {
|
|
|
7410
7774
|
const CSS3DRenderPlugin = (five) => new Controller(five);
|
|
7411
7775
|
|
|
7412
7776
|
// declare const __APP_VERSION__: string
|
|
7413
|
-
const VERSION = '0.
|
|
7777
|
+
const VERSION = '1.0.0';
|
|
7414
7778
|
const PLUGIN_NAME = `DnalogelPlugin-PanoTagPlugin@${VERSION}`;
|
|
7415
|
-
|
|
7779
|
+
// 初始是否展开
|
|
7780
|
+
const TAG_INITIAL_UNFOLDED = false;
|
|
7416
7781
|
const pluginFlag = (name) => `${PLUGIN_NAME}--${name}`;
|
|
7417
7782
|
class PanoTagPluginController extends TagComputer {
|
|
7418
7783
|
constructor(five, params) {
|
|
@@ -7522,8 +7887,9 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7522
7887
|
/**
|
|
7523
7888
|
* @description: 加载数据
|
|
7524
7889
|
*/
|
|
7525
|
-
load(data) {
|
|
7890
|
+
load(data, config) {
|
|
7526
7891
|
var _a, _b;
|
|
7892
|
+
this.clearTags();
|
|
7527
7893
|
console.log(PLUGIN_NAME, 'load:', { data });
|
|
7528
7894
|
if (this.params.mergePluginDefaultConfigToLoadDataConfig) {
|
|
7529
7895
|
this.config = objectAssignDeep__default["default"]({}, this.config, {
|
|
@@ -7537,17 +7903,15 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7537
7903
|
if (data.contentTypeConfig)
|
|
7538
7904
|
this.config.contentTypeConfig = data.contentTypeConfig;
|
|
7539
7905
|
}
|
|
7540
|
-
this.
|
|
7541
|
-
|
|
7542
|
-
this.tags = [];
|
|
7543
|
-
this.addTag(data.tagList);
|
|
7906
|
+
this.addTag(data.tagList, config);
|
|
7907
|
+
// debug
|
|
7544
7908
|
if (this.debug)
|
|
7545
7909
|
addDebugPoints(this.five, this.tags);
|
|
7546
7910
|
}
|
|
7547
7911
|
/**
|
|
7548
7912
|
* @description: 添加标签
|
|
7549
7913
|
*/
|
|
7550
|
-
addTag(tag) {
|
|
7914
|
+
addTag(tag, config) {
|
|
7551
7915
|
const tags = Array.isArray(tag) ? tag : [tag];
|
|
7552
7916
|
const _tags = tags
|
|
7553
7917
|
.map((tag) => {
|
|
@@ -7557,7 +7921,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7557
7921
|
.filter((tag) => tag.position);
|
|
7558
7922
|
this.tags.push(..._tags);
|
|
7559
7923
|
actionAfterFiveModelLoad(this.five, () => {
|
|
7560
|
-
var _a, _b;
|
|
7924
|
+
var _a, _b, _c;
|
|
7561
7925
|
// 添加事件
|
|
7562
7926
|
if (this.store.eventListenerDisposer) {
|
|
7563
7927
|
(_b = (_a = this.store).eventListenerDisposer) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
@@ -7573,10 +7937,18 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7573
7937
|
}, 200);
|
|
7574
7938
|
}
|
|
7575
7939
|
this.checkPanelTag();
|
|
7576
|
-
|
|
7577
|
-
|
|
7940
|
+
// v0.3.8 新增 withAnimation,默认 false
|
|
7941
|
+
// v1.0.0 withAnimation 默认值改为 true
|
|
7942
|
+
this.setVisibleAndUnfolded({ withAnimation: (_c = config === null || config === void 0 ? void 0 : config.withAnimation) !== null && _c !== void 0 ? _c : true }).then(() => this.updateRenderAllTags());
|
|
7943
|
+
this.updateRenderAllTags();
|
|
7578
7944
|
});
|
|
7579
7945
|
}
|
|
7946
|
+
clearTags() {
|
|
7947
|
+
this.tags = [];
|
|
7948
|
+
this.clearCache();
|
|
7949
|
+
this.disposeAllCSS3DContainer();
|
|
7950
|
+
this.updateRenderAllTags();
|
|
7951
|
+
}
|
|
7580
7952
|
async show(params) {
|
|
7581
7953
|
const { userAction = true, withAnimation = false } = params !== null && params !== void 0 ? params : {};
|
|
7582
7954
|
if (this.store.disposed)
|
|
@@ -7667,7 +8039,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7667
8039
|
}
|
|
7668
8040
|
// 3D 转 2D 的时候要销毁 3D container
|
|
7669
8041
|
this.checkPanelTag();
|
|
7670
|
-
this.
|
|
8042
|
+
this.updateRenderAllTags();
|
|
7671
8043
|
}
|
|
7672
8044
|
/**
|
|
7673
8045
|
* @description: 改变tag任意属性
|
|
@@ -7685,7 +8057,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7685
8057
|
if ((currentTag === null || currentTag === void 0 ? void 0 : currentTag.tag3DContentSvelte) && (tag === null || tag === void 0 ? void 0 : tag.normal)) {
|
|
7686
8058
|
currentTag.tag3DContentSvelte.currentNormal = arrayPositionToVector3(tag.normal);
|
|
7687
8059
|
}
|
|
7688
|
-
this.
|
|
8060
|
+
this.updateRenderAllTags();
|
|
7689
8061
|
this.checkPanelTag();
|
|
7690
8062
|
}
|
|
7691
8063
|
/**
|
|
@@ -7699,12 +8071,31 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7699
8071
|
return;
|
|
7700
8072
|
this.tags.splice(index, 1);
|
|
7701
8073
|
});
|
|
7702
|
-
this.
|
|
8074
|
+
this.updateRenderAllTags();
|
|
7703
8075
|
}
|
|
7704
8076
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
7705
8077
|
pauseCurrentMedia() {
|
|
7706
8078
|
this.mediaStore.set({ currentMediaUrl: '' });
|
|
7707
8079
|
}
|
|
8080
|
+
/**
|
|
8081
|
+
* @description: 设置 visible 和 unfolded
|
|
8082
|
+
*/
|
|
8083
|
+
async setVisibleAndUnfolded({ withAnimation } = { withAnimation: false }) {
|
|
8084
|
+
this.setVisibleByPanoIndex();
|
|
8085
|
+
if (withAnimation) {
|
|
8086
|
+
return new Promise((resolve, reject) => {
|
|
8087
|
+
// setTimeout 初始隐藏,然后展开,而不是一步到位,要不就没动画了
|
|
8088
|
+
setTimeout(() => {
|
|
8089
|
+
this.setUnfoldedByPanoIndex();
|
|
8090
|
+
resolve();
|
|
8091
|
+
}, 10); // 10ms 是等待 TextTag onMount
|
|
8092
|
+
});
|
|
8093
|
+
}
|
|
8094
|
+
else {
|
|
8095
|
+
this.setUnfoldedByPanoIndex();
|
|
8096
|
+
return Promise.resolve();
|
|
8097
|
+
}
|
|
8098
|
+
}
|
|
7708
8099
|
handleShow() {
|
|
7709
8100
|
this.state.visible = true;
|
|
7710
8101
|
this.updateTagContainerVisible();
|
|
@@ -7715,7 +8106,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7715
8106
|
}
|
|
7716
8107
|
handleEnable() {
|
|
7717
8108
|
this.state.enabled = true;
|
|
7718
|
-
this.
|
|
8109
|
+
this.updateRenderAllTags();
|
|
7719
8110
|
}
|
|
7720
8111
|
handleDisable() {
|
|
7721
8112
|
var _a;
|
|
@@ -7761,7 +8152,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7761
8152
|
// resize
|
|
7762
8153
|
const show = () => {
|
|
7763
8154
|
this.show();
|
|
7764
|
-
this.
|
|
8155
|
+
this.updateRenderAllTags();
|
|
7765
8156
|
};
|
|
7766
8157
|
const { observe: hideObserve, unobserve: hideUnobserve } = resizeObserver(throttle(() => {
|
|
7767
8158
|
/**
|
|
@@ -7799,7 +8190,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7799
8190
|
tag.temporaryState = Object.assign(Object.assign({}, tag.temporaryState), { visible: false });
|
|
7800
8191
|
}
|
|
7801
8192
|
});
|
|
7802
|
-
this.
|
|
8193
|
+
this.updateRenderAllTags();
|
|
7803
8194
|
}
|
|
7804
8195
|
/**
|
|
7805
8196
|
* @description: 走点/切换模型后显示
|
|
@@ -7837,13 +8228,13 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7837
8228
|
tag.state.unfolded = false;
|
|
7838
8229
|
});
|
|
7839
8230
|
}
|
|
7840
|
-
this.
|
|
8231
|
+
this.updateRenderAllTags();
|
|
7841
8232
|
}
|
|
7842
8233
|
}
|
|
7843
8234
|
/**
|
|
7844
8235
|
* @description: 更新所有标签
|
|
7845
8236
|
*/
|
|
7846
|
-
|
|
8237
|
+
updateRenderAllTags() {
|
|
7847
8238
|
this.updateRenderPointTag();
|
|
7848
8239
|
this.updateRenderPlaneTag();
|
|
7849
8240
|
}
|
|
@@ -7864,20 +8255,20 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7864
8255
|
// 设置展开/收起
|
|
7865
8256
|
this.setUnfoldedByCamera();
|
|
7866
8257
|
// 渲染
|
|
7867
|
-
this.
|
|
8258
|
+
this.updateRenderAllTags();
|
|
7868
8259
|
}, 100);
|
|
7869
8260
|
}
|
|
7870
8261
|
handleFiveCameraUpdate() {
|
|
7871
8262
|
// 渲染
|
|
7872
8263
|
this.updateRenderPointTag();
|
|
7873
8264
|
}
|
|
7874
|
-
handleFivePanoArrived() {
|
|
7875
|
-
this.
|
|
8265
|
+
async handleFivePanoArrived() {
|
|
8266
|
+
await this.setVisibleAndUnfolded();
|
|
7876
8267
|
this.tags.forEach((tag) => {
|
|
7877
8268
|
tag.temporaryState = Object.assign(Object.assign({}, tag.temporaryState), { visible: true });
|
|
7878
8269
|
});
|
|
7879
8270
|
// 渲染
|
|
7880
|
-
this.
|
|
8271
|
+
this.updateRenderAllTags();
|
|
7881
8272
|
}
|
|
7882
8273
|
setUnfoldedByCamera() {
|
|
7883
8274
|
let hasTagUnfolded = false; // 是否有标签由于camera的转动而展开
|