@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
|
@@ -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 }; }
|
|
@@ -46,7 +50,7 @@ function evenNumber(num, config) {
|
|
|
46
50
|
return roundNum % 2 === 0 ? roundNum : roundNum + Number((config === null || config === void 0 ? void 0 : config.smaller) ? -1 : 1);
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
function random() {
|
|
53
|
+
function random$1() {
|
|
50
54
|
return Math.random().toString(36).slice(-6);
|
|
51
55
|
}
|
|
52
56
|
|
|
@@ -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
|
}
|
|
@@ -728,9 +732,14 @@ function notNil(value) {
|
|
|
728
732
|
return value !== null && value !== undefined;
|
|
729
733
|
}
|
|
730
734
|
|
|
735
|
+
function random() {
|
|
736
|
+
return Math.random().toString(36).slice(-6);
|
|
737
|
+
}
|
|
738
|
+
const RANDON_STRING = random();
|
|
739
|
+
|
|
731
740
|
/* src/PanoTagPlugin/Components/Common/Text.svelte generated by Svelte v3.50.1 */
|
|
732
741
|
|
|
733
|
-
function add_css$
|
|
742
|
+
function add_css$j(target) {
|
|
734
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)}");
|
|
735
744
|
}
|
|
736
745
|
|
|
@@ -742,7 +751,7 @@ function get_each_context$5(ctx, list, i) {
|
|
|
742
751
|
return child_ctx;
|
|
743
752
|
}
|
|
744
753
|
|
|
745
|
-
// (
|
|
754
|
+
// (79:0) {#each contentList as item, index}
|
|
746
755
|
function create_each_block$5(ctx) {
|
|
747
756
|
let span;
|
|
748
757
|
let t_value = /*item*/ ctx[10] + "";
|
|
@@ -779,7 +788,7 @@ function create_each_block$5(ctx) {
|
|
|
779
788
|
};
|
|
780
789
|
}
|
|
781
790
|
|
|
782
|
-
function create_fragment$
|
|
791
|
+
function create_fragment$j(ctx) {
|
|
783
792
|
let each_1_anchor;
|
|
784
793
|
let each_value = /*contentList*/ ctx[1];
|
|
785
794
|
let each_blocks = [];
|
|
@@ -836,7 +845,7 @@ function create_fragment$i(ctx) {
|
|
|
836
845
|
};
|
|
837
846
|
}
|
|
838
847
|
|
|
839
|
-
function instance$
|
|
848
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
840
849
|
let contentList;
|
|
841
850
|
let { inDelay = 0 } = $$props;
|
|
842
851
|
let { outDelay = 0 } = $$props;
|
|
@@ -910,7 +919,22 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
910
919
|
|
|
911
920
|
$$self.$$.update = () => {
|
|
912
921
|
if ($$self.$$.dirty & /*content*/ 16) {
|
|
913
|
-
|
|
922
|
+
// v0.3.7 emoji support
|
|
923
|
+
$$invalidate(1, contentList = (() => {
|
|
924
|
+
const result = [];
|
|
925
|
+
|
|
926
|
+
// eslint-disable-next-line prettier/prettier
|
|
927
|
+
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);
|
|
928
|
+
|
|
929
|
+
const emojiSplitFlag = `__EMOJI_SPLIT_${RANDON_STRING}__`;
|
|
930
|
+
const emojiFlag = `__EMOJI_${RANDON_STRING}__`;
|
|
931
|
+
|
|
932
|
+
content.slice().replace(emojiRegExp, emoji => `${emojiSplitFlag}${emojiFlag}${emoji}${emojiSplitFlag}`).split(emojiSplitFlag).forEach(item => {
|
|
933
|
+
if (item.startsWith(emojiFlag)) return result.push(item.slice(emojiFlag.length)); else return result.push(...item.split(''));
|
|
934
|
+
});
|
|
935
|
+
|
|
936
|
+
return result.filter(Boolean);
|
|
937
|
+
})());
|
|
914
938
|
}
|
|
915
939
|
|
|
916
940
|
if ($$self.$$.dirty & /*unfolded*/ 32) {
|
|
@@ -930,8 +954,8 @@ class Text extends internal.SvelteComponent {
|
|
|
930
954
|
internal.init(
|
|
931
955
|
this,
|
|
932
956
|
options,
|
|
933
|
-
instance$
|
|
934
|
-
create_fragment$
|
|
957
|
+
instance$j,
|
|
958
|
+
create_fragment$j,
|
|
935
959
|
internal.safe_not_equal,
|
|
936
960
|
{
|
|
937
961
|
inDelay: 2,
|
|
@@ -939,7 +963,7 @@ class Text extends internal.SvelteComponent {
|
|
|
939
963
|
content: 4,
|
|
940
964
|
unfolded: 5
|
|
941
965
|
},
|
|
942
|
-
add_css$
|
|
966
|
+
add_css$j
|
|
943
967
|
);
|
|
944
968
|
}
|
|
945
969
|
}
|
|
@@ -949,12 +973,12 @@ const Image_Play = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAA
|
|
|
949
973
|
|
|
950
974
|
/* src/PanoTagPlugin/Components/Common/Arrow.svelte generated by Svelte v3.50.1 */
|
|
951
975
|
|
|
952
|
-
function add_css$
|
|
976
|
+
function add_css$i(target) {
|
|
953
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)}");
|
|
954
978
|
}
|
|
955
979
|
|
|
956
980
|
// (12:0) {#if visible}
|
|
957
|
-
function create_if_block$
|
|
981
|
+
function create_if_block$f(ctx) {
|
|
958
982
|
let div1;
|
|
959
983
|
let shadow;
|
|
960
984
|
let t;
|
|
@@ -1047,10 +1071,10 @@ function create_if_block$e(ctx) {
|
|
|
1047
1071
|
};
|
|
1048
1072
|
}
|
|
1049
1073
|
|
|
1050
|
-
function create_fragment$
|
|
1074
|
+
function create_fragment$i(ctx) {
|
|
1051
1075
|
let if_block_anchor;
|
|
1052
1076
|
let current;
|
|
1053
|
-
let if_block = /*visible*/ ctx[1] && create_if_block$
|
|
1077
|
+
let if_block = /*visible*/ ctx[1] && create_if_block$f(ctx);
|
|
1054
1078
|
|
|
1055
1079
|
return {
|
|
1056
1080
|
c() {
|
|
@@ -1071,7 +1095,7 @@ function create_fragment$h(ctx) {
|
|
|
1071
1095
|
internal.transition_in(if_block, 1);
|
|
1072
1096
|
}
|
|
1073
1097
|
} else {
|
|
1074
|
-
if_block = create_if_block$
|
|
1098
|
+
if_block = create_if_block$f(ctx);
|
|
1075
1099
|
if_block.c();
|
|
1076
1100
|
internal.transition_in(if_block, 1);
|
|
1077
1101
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1102,7 +1126,7 @@ function create_fragment$h(ctx) {
|
|
|
1102
1126
|
};
|
|
1103
1127
|
}
|
|
1104
1128
|
|
|
1105
|
-
function instance$
|
|
1129
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
1106
1130
|
let { direction = 'right' } = $$props;
|
|
1107
1131
|
let { visible = true } = $$props;
|
|
1108
1132
|
let { duration = 0 } = $$props;
|
|
@@ -1131,8 +1155,8 @@ class Arrow extends internal.SvelteComponent {
|
|
|
1131
1155
|
internal.init(
|
|
1132
1156
|
this,
|
|
1133
1157
|
options,
|
|
1134
|
-
instance$
|
|
1135
|
-
create_fragment$
|
|
1158
|
+
instance$i,
|
|
1159
|
+
create_fragment$i,
|
|
1136
1160
|
internal.safe_not_equal,
|
|
1137
1161
|
{
|
|
1138
1162
|
direction: 0,
|
|
@@ -1141,14 +1165,14 @@ class Arrow extends internal.SvelteComponent {
|
|
|
1141
1165
|
inDelay: 3,
|
|
1142
1166
|
outDelay: 4
|
|
1143
1167
|
},
|
|
1144
|
-
add_css$
|
|
1168
|
+
add_css$i
|
|
1145
1169
|
);
|
|
1146
1170
|
}
|
|
1147
1171
|
}
|
|
1148
1172
|
|
|
1149
1173
|
/* src/PanoTagPlugin/Components/Common/MultiLineText.svelte generated by Svelte v3.50.1 */
|
|
1150
1174
|
|
|
1151
|
-
function add_css$
|
|
1175
|
+
function add_css$h(target) {
|
|
1152
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}");
|
|
1153
1177
|
}
|
|
1154
1178
|
|
|
@@ -1220,7 +1244,7 @@ function create_each_block$4(key_1, ctx) {
|
|
|
1220
1244
|
}
|
|
1221
1245
|
|
|
1222
1246
|
// (28:0) {#if lineHeight < textHeight}
|
|
1223
|
-
function create_if_block$
|
|
1247
|
+
function create_if_block$e(ctx) {
|
|
1224
1248
|
let div;
|
|
1225
1249
|
let arrow;
|
|
1226
1250
|
let current;
|
|
@@ -1267,7 +1291,7 @@ function create_if_block$d(ctx) {
|
|
|
1267
1291
|
};
|
|
1268
1292
|
}
|
|
1269
1293
|
|
|
1270
|
-
function create_fragment$
|
|
1294
|
+
function create_fragment$h(ctx) {
|
|
1271
1295
|
let each_blocks = [];
|
|
1272
1296
|
let each_1_lookup = new Map();
|
|
1273
1297
|
let t;
|
|
@@ -1282,7 +1306,7 @@ function create_fragment$g(ctx) {
|
|
|
1282
1306
|
each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
|
|
1283
1307
|
}
|
|
1284
1308
|
|
|
1285
|
-
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);
|
|
1286
1310
|
|
|
1287
1311
|
return {
|
|
1288
1312
|
c() {
|
|
@@ -1320,7 +1344,7 @@ function create_fragment$g(ctx) {
|
|
|
1320
1344
|
internal.transition_in(if_block, 1);
|
|
1321
1345
|
}
|
|
1322
1346
|
} else {
|
|
1323
|
-
if_block = create_if_block$
|
|
1347
|
+
if_block = create_if_block$e(ctx);
|
|
1324
1348
|
if_block.c();
|
|
1325
1349
|
internal.transition_in(if_block, 1);
|
|
1326
1350
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1365,7 +1389,7 @@ function create_fragment$g(ctx) {
|
|
|
1365
1389
|
};
|
|
1366
1390
|
}
|
|
1367
1391
|
|
|
1368
|
-
function instance$
|
|
1392
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
1369
1393
|
let transform;
|
|
1370
1394
|
let arrowDirection;
|
|
1371
1395
|
let foldTextDelay;
|
|
@@ -1440,27 +1464,27 @@ class MultiLineText extends internal.SvelteComponent {
|
|
|
1440
1464
|
internal.init(
|
|
1441
1465
|
this,
|
|
1442
1466
|
options,
|
|
1443
|
-
instance$
|
|
1444
|
-
create_fragment$
|
|
1467
|
+
instance$h,
|
|
1468
|
+
create_fragment$h,
|
|
1445
1469
|
internal.safe_not_equal,
|
|
1446
1470
|
{
|
|
1447
1471
|
visible: 0,
|
|
1448
1472
|
textUnfolded: 8,
|
|
1449
1473
|
textItems: 1
|
|
1450
1474
|
},
|
|
1451
|
-
add_css$
|
|
1475
|
+
add_css$h
|
|
1452
1476
|
);
|
|
1453
1477
|
}
|
|
1454
1478
|
}
|
|
1455
1479
|
|
|
1456
1480
|
/* src/PanoTagPlugin/Components/Tag/TextTag.svelte generated by Svelte v3.50.1 */
|
|
1457
1481
|
|
|
1458
|
-
function add_css$
|
|
1482
|
+
function add_css$g(target) {
|
|
1459
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}");
|
|
1460
1484
|
}
|
|
1461
1485
|
|
|
1462
1486
|
// (29:0) {#if tag.state}
|
|
1463
|
-
function create_if_block$
|
|
1487
|
+
function create_if_block$d(ctx) {
|
|
1464
1488
|
let shadow;
|
|
1465
1489
|
let t0;
|
|
1466
1490
|
let div0;
|
|
@@ -1578,10 +1602,10 @@ function create_if_block$c(ctx) {
|
|
|
1578
1602
|
};
|
|
1579
1603
|
}
|
|
1580
1604
|
|
|
1581
|
-
function create_fragment$
|
|
1605
|
+
function create_fragment$g(ctx) {
|
|
1582
1606
|
let if_block_anchor;
|
|
1583
1607
|
let current;
|
|
1584
|
-
let if_block = /*tag*/ ctx[0].state && create_if_block$
|
|
1608
|
+
let if_block = /*tag*/ ctx[0].state && create_if_block$d(ctx);
|
|
1585
1609
|
|
|
1586
1610
|
return {
|
|
1587
1611
|
c() {
|
|
@@ -1602,7 +1626,7 @@ function create_fragment$f(ctx) {
|
|
|
1602
1626
|
internal.transition_in(if_block, 1);
|
|
1603
1627
|
}
|
|
1604
1628
|
} else {
|
|
1605
|
-
if_block = create_if_block$
|
|
1629
|
+
if_block = create_if_block$d(ctx);
|
|
1606
1630
|
if_block.c();
|
|
1607
1631
|
internal.transition_in(if_block, 1);
|
|
1608
1632
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1633,7 +1657,7 @@ function create_fragment$f(ctx) {
|
|
|
1633
1657
|
};
|
|
1634
1658
|
}
|
|
1635
1659
|
|
|
1636
|
-
function instance$
|
|
1660
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
1637
1661
|
let unfolded;
|
|
1638
1662
|
let text;
|
|
1639
1663
|
let foldTextDelay;
|
|
@@ -1708,18 +1732,18 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
1708
1732
|
class TextTag extends internal.SvelteComponent {
|
|
1709
1733
|
constructor(options) {
|
|
1710
1734
|
super();
|
|
1711
|
-
internal.init(this, options, instance$
|
|
1735
|
+
internal.init(this, options, instance$g, create_fragment$g, internal.safe_not_equal, { tag: 0 }, add_css$g);
|
|
1712
1736
|
}
|
|
1713
1737
|
}
|
|
1714
1738
|
|
|
1715
1739
|
/* src/PanoTagPlugin/Components/Common/Line/Polyline.svelte generated by Svelte v3.50.1 */
|
|
1716
1740
|
|
|
1717
|
-
function add_css$
|
|
1741
|
+
function add_css$f(target) {
|
|
1718
1742
|
internal.append_styles(target, "svelte-e72ouh", ".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}");
|
|
1719
1743
|
}
|
|
1720
1744
|
|
|
1721
1745
|
// (18:2) {#if unfolded}
|
|
1722
|
-
function create_if_block$
|
|
1746
|
+
function create_if_block$c(ctx) {
|
|
1723
1747
|
let path;
|
|
1724
1748
|
let path_intro;
|
|
1725
1749
|
let path_outro;
|
|
@@ -1779,13 +1803,13 @@ function create_if_block$b(ctx) {
|
|
|
1779
1803
|
};
|
|
1780
1804
|
}
|
|
1781
1805
|
|
|
1782
|
-
function create_fragment$
|
|
1806
|
+
function create_fragment$f(ctx) {
|
|
1783
1807
|
let svg;
|
|
1784
1808
|
let defs;
|
|
1785
1809
|
let linearGradient;
|
|
1786
1810
|
let stop0;
|
|
1787
1811
|
let stop1;
|
|
1788
|
-
let if_block = /*unfolded*/ ctx[3] && create_if_block$
|
|
1812
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$c(ctx);
|
|
1789
1813
|
|
|
1790
1814
|
return {
|
|
1791
1815
|
c() {
|
|
@@ -1823,7 +1847,7 @@ function create_fragment$e(ctx) {
|
|
|
1823
1847
|
internal.transition_in(if_block, 1);
|
|
1824
1848
|
}
|
|
1825
1849
|
} else {
|
|
1826
|
-
if_block = create_if_block$
|
|
1850
|
+
if_block = create_if_block$c(ctx);
|
|
1827
1851
|
if_block.c();
|
|
1828
1852
|
internal.transition_in(if_block, 1);
|
|
1829
1853
|
if_block.m(svg, null);
|
|
@@ -1851,7 +1875,7 @@ function create_fragment$e(ctx) {
|
|
|
1851
1875
|
};
|
|
1852
1876
|
}
|
|
1853
1877
|
|
|
1854
|
-
function instance$
|
|
1878
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
1855
1879
|
let { inDelay = 0 } = $$props;
|
|
1856
1880
|
let { duration = 0 } = $$props;
|
|
1857
1881
|
let { outDelay = 0 } = $$props;
|
|
@@ -1875,8 +1899,8 @@ class Polyline extends internal.SvelteComponent {
|
|
|
1875
1899
|
internal.init(
|
|
1876
1900
|
this,
|
|
1877
1901
|
options,
|
|
1878
|
-
instance$
|
|
1879
|
-
create_fragment$
|
|
1902
|
+
instance$f,
|
|
1903
|
+
create_fragment$f,
|
|
1880
1904
|
internal.safe_not_equal,
|
|
1881
1905
|
{
|
|
1882
1906
|
inDelay: 0,
|
|
@@ -1884,98 +1908,295 @@ class Polyline extends internal.SvelteComponent {
|
|
|
1884
1908
|
outDelay: 2,
|
|
1885
1909
|
unfolded: 3
|
|
1886
1910
|
},
|
|
1887
|
-
add_css$
|
|
1911
|
+
add_css$f
|
|
1888
1912
|
);
|
|
1889
1913
|
}
|
|
1890
1914
|
}
|
|
1891
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
|
+
|
|
1892
2112
|
/* src/PanoTagPlugin/Components/Common/Media.svelte generated by Svelte v3.50.1 */
|
|
1893
2113
|
|
|
1894
2114
|
function add_css$d(target) {
|
|
1895
|
-
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}");
|
|
1896
2116
|
}
|
|
1897
2117
|
|
|
1898
2118
|
function get_each_context$3(ctx, list, i) {
|
|
1899
2119
|
const child_ctx = ctx.slice();
|
|
1900
|
-
child_ctx[
|
|
2120
|
+
child_ctx[14] = list[i];
|
|
1901
2121
|
return child_ctx;
|
|
1902
2122
|
}
|
|
1903
2123
|
|
|
1904
|
-
// (
|
|
2124
|
+
// (24:0) {#if unfolded}
|
|
1905
2125
|
function create_if_block$a(ctx) {
|
|
1906
2126
|
let div;
|
|
2127
|
+
let current_block_type_index;
|
|
2128
|
+
let if_block;
|
|
1907
2129
|
let div_intro;
|
|
1908
2130
|
let div_outro;
|
|
1909
2131
|
let current;
|
|
1910
|
-
|
|
1911
|
-
|
|
2132
|
+
const if_block_creators = [create_if_block_1$6, create_else_block$1];
|
|
2133
|
+
const if_blocks = [];
|
|
1912
2134
|
|
|
1913
|
-
|
|
1914
|
-
|
|
2135
|
+
function select_block_type(ctx, dirty) {
|
|
2136
|
+
if (/*carouselEnabled*/ ctx[11]) return 0;
|
|
2137
|
+
return 1;
|
|
1915
2138
|
}
|
|
1916
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
|
+
|
|
1917
2143
|
return {
|
|
1918
2144
|
c() {
|
|
1919
2145
|
div = internal.element("div");
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
internal.attr(div, "class", "media svelte-129jnm");
|
|
1926
|
-
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]);
|
|
1927
2149
|
},
|
|
1928
2150
|
m(target, anchor) {
|
|
1929
2151
|
internal.insert(target, div, anchor);
|
|
1930
|
-
|
|
1931
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
1932
|
-
each_blocks[i].m(div, null);
|
|
1933
|
-
}
|
|
1934
|
-
|
|
2152
|
+
if_blocks[current_block_type_index].m(div, null);
|
|
1935
2153
|
current = true;
|
|
1936
2154
|
},
|
|
1937
2155
|
p(new_ctx, dirty) {
|
|
1938
2156
|
ctx = new_ctx;
|
|
2157
|
+
let previous_block_index = current_block_type_index;
|
|
2158
|
+
current_block_type_index = select_block_type(ctx);
|
|
1939
2159
|
|
|
1940
|
-
if (
|
|
1941
|
-
|
|
1942
|
-
|
|
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();
|
|
1943
2164
|
|
|
1944
|
-
|
|
1945
|
-
|
|
2165
|
+
internal.transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
2166
|
+
if_blocks[previous_block_index] = null;
|
|
2167
|
+
});
|
|
1946
2168
|
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
} else {
|
|
1950
|
-
each_blocks[i] = create_each_block$3(child_ctx);
|
|
1951
|
-
each_blocks[i].c();
|
|
1952
|
-
each_blocks[i].m(div, null);
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
2169
|
+
internal.check_outros();
|
|
2170
|
+
if_block = if_blocks[current_block_type_index];
|
|
1955
2171
|
|
|
1956
|
-
|
|
1957
|
-
|
|
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);
|
|
1958
2177
|
}
|
|
1959
2178
|
|
|
1960
|
-
|
|
2179
|
+
internal.transition_in(if_block, 1);
|
|
2180
|
+
if_block.m(div, null);
|
|
1961
2181
|
}
|
|
1962
2182
|
|
|
1963
|
-
if (!current || dirty & /*unfolded*/
|
|
1964
|
-
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[
|
|
2183
|
+
if (!current || dirty & /*unfolded*/ 16) {
|
|
2184
|
+
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
|
|
1965
2185
|
}
|
|
1966
2186
|
},
|
|
1967
2187
|
i(local) {
|
|
1968
2188
|
if (current) return;
|
|
2189
|
+
internal.transition_in(if_block);
|
|
1969
2190
|
|
|
1970
2191
|
if (local) {
|
|
1971
2192
|
internal.add_render_callback(() => {
|
|
1972
2193
|
if (div_outro) div_outro.end(1);
|
|
1973
2194
|
|
|
1974
|
-
div_intro = internal.create_in_transition(div, transition.fly, /*animation*/ ctx[
|
|
2195
|
+
div_intro = internal.create_in_transition(div, transition.fly, /*animation*/ ctx[5]
|
|
1975
2196
|
? {
|
|
1976
2197
|
y: 4,
|
|
1977
|
-
duration: /*duration*/ ctx[
|
|
1978
|
-
delay: /*inDelay*/ ctx[
|
|
2198
|
+
duration: /*duration*/ ctx[3],
|
|
2199
|
+
delay: /*inDelay*/ ctx[1],
|
|
1979
2200
|
easing: easing.linear
|
|
1980
2201
|
}
|
|
1981
2202
|
: undefined);
|
|
@@ -1987,14 +2208,15 @@ function create_if_block$a(ctx) {
|
|
|
1987
2208
|
current = true;
|
|
1988
2209
|
},
|
|
1989
2210
|
o(local) {
|
|
2211
|
+
internal.transition_out(if_block);
|
|
1990
2212
|
if (div_intro) div_intro.invalidate();
|
|
1991
2213
|
|
|
1992
2214
|
if (local) {
|
|
1993
|
-
div_outro = internal.create_out_transition(div, transition.fly, /*animation*/ ctx[
|
|
2215
|
+
div_outro = internal.create_out_transition(div, transition.fly, /*animation*/ ctx[5]
|
|
1994
2216
|
? {
|
|
1995
2217
|
y: 4,
|
|
1996
|
-
duration: /*duration*/ ctx[
|
|
1997
|
-
delay: /*outDelay*/ ctx[
|
|
2218
|
+
duration: /*duration*/ ctx[3],
|
|
2219
|
+
delay: /*outDelay*/ ctx[2],
|
|
1998
2220
|
easing: easing.linear
|
|
1999
2221
|
}
|
|
2000
2222
|
: undefined);
|
|
@@ -2004,211 +2226,295 @@ function create_if_block$a(ctx) {
|
|
|
2004
2226
|
},
|
|
2005
2227
|
d(detaching) {
|
|
2006
2228
|
if (detaching) internal.detach(div);
|
|
2007
|
-
|
|
2229
|
+
if_blocks[current_block_type_index].d();
|
|
2008
2230
|
if (detaching && div_outro) div_outro.end();
|
|
2009
2231
|
}
|
|
2010
2232
|
};
|
|
2011
2233
|
}
|
|
2012
2234
|
|
|
2013
|
-
// (
|
|
2014
|
-
function
|
|
2015
|
-
let
|
|
2016
|
-
let
|
|
2017
|
-
|
|
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
|
+
});
|
|
2018
2246
|
|
|
2019
2247
|
return {
|
|
2020
2248
|
c() {
|
|
2021
|
-
|
|
2022
|
-
internal.attr(video, "class", "media-content svelte-129jnm");
|
|
2023
|
-
if (!internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) internal.attr(video, "src", video_src_value);
|
|
2024
|
-
internal.attr(video, "poster", video_poster_value = /*media*/ ctx[9].videoCoverUrl);
|
|
2025
|
-
video.playsInline = true;
|
|
2026
|
-
internal.attr(video, "paused", "");
|
|
2027
|
-
video.loop = false;
|
|
2028
|
-
internal.attr(video, "preload", "auto");
|
|
2029
|
-
internal.attr(video, "crossorigin", "");
|
|
2030
|
-
video.controls = false;
|
|
2031
|
-
video.muted = true;
|
|
2249
|
+
internal.create_component(mediaitem.$$.fragment);
|
|
2032
2250
|
},
|
|
2033
2251
|
m(target, anchor) {
|
|
2034
|
-
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;
|
|
2035
2265
|
},
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
if (dirty & /*mediaDataList*/ 64 && video_poster_value !== (video_poster_value = /*media*/ ctx[9].videoCoverUrl)) {
|
|
2042
|
-
internal.attr(video, "poster", video_poster_value);
|
|
2043
|
-
}
|
|
2266
|
+
o(local) {
|
|
2267
|
+
internal.transition_out(mediaitem.$$.fragment, local);
|
|
2268
|
+
current = false;
|
|
2044
2269
|
},
|
|
2045
2270
|
d(detaching) {
|
|
2046
|
-
|
|
2271
|
+
internal.destroy_component(mediaitem, detaching);
|
|
2047
2272
|
}
|
|
2048
2273
|
};
|
|
2049
2274
|
}
|
|
2050
2275
|
|
|
2051
|
-
// (
|
|
2052
|
-
function
|
|
2053
|
-
let
|
|
2054
|
-
let
|
|
2055
|
-
|
|
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]);
|
|
2056
2300
|
|
|
2057
2301
|
return {
|
|
2058
2302
|
c() {
|
|
2059
|
-
|
|
2060
|
-
internal.attr(img, "class", "media-content svelte-129jnm");
|
|
2061
|
-
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) internal.attr(img, "src", img_src_value);
|
|
2062
|
-
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
2303
|
+
internal.create_component(swiper$1.$$.fragment);
|
|
2063
2304
|
},
|
|
2064
2305
|
m(target, anchor) {
|
|
2065
|
-
internal.
|
|
2306
|
+
internal.mount_component(swiper$1, target, anchor);
|
|
2307
|
+
current = true;
|
|
2066
2308
|
},
|
|
2067
2309
|
p(ctx, dirty) {
|
|
2068
|
-
|
|
2069
|
-
internal.attr(img, "src", img_src_value);
|
|
2070
|
-
}
|
|
2310
|
+
const swiper_changes = {};
|
|
2071
2311
|
|
|
2072
|
-
if (dirty & /*
|
|
2073
|
-
|
|
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 };
|
|
2074
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;
|
|
2075
2334
|
},
|
|
2076
2335
|
d(detaching) {
|
|
2077
|
-
|
|
2336
|
+
internal.destroy_component(swiper$1, detaching);
|
|
2078
2337
|
}
|
|
2079
2338
|
};
|
|
2080
2339
|
}
|
|
2081
2340
|
|
|
2082
|
-
// (
|
|
2083
|
-
function
|
|
2084
|
-
let
|
|
2085
|
-
let
|
|
2086
|
-
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
|
+
});
|
|
2087
2353
|
|
|
2088
2354
|
return {
|
|
2089
2355
|
c() {
|
|
2090
|
-
|
|
2091
|
-
internal.
|
|
2092
|
-
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) internal.attr(img, "src", img_src_value);
|
|
2093
|
-
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
2356
|
+
internal.create_component(mediaitem.$$.fragment);
|
|
2357
|
+
t = internal.space();
|
|
2094
2358
|
},
|
|
2095
2359
|
m(target, anchor) {
|
|
2096
|
-
internal.
|
|
2360
|
+
internal.mount_component(mediaitem, target, anchor);
|
|
2361
|
+
internal.insert(target, t, anchor);
|
|
2362
|
+
current = true;
|
|
2097
2363
|
},
|
|
2098
2364
|
p(ctx, dirty) {
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
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;
|
|
2106
2378
|
},
|
|
2107
2379
|
d(detaching) {
|
|
2108
|
-
|
|
2380
|
+
internal.destroy_component(mediaitem, detaching);
|
|
2381
|
+
if (detaching) internal.detach(t);
|
|
2109
2382
|
}
|
|
2110
2383
|
};
|
|
2111
2384
|
}
|
|
2112
2385
|
|
|
2113
|
-
// (
|
|
2114
|
-
function
|
|
2115
|
-
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
|
+
});
|
|
2116
2397
|
|
|
2117
2398
|
return {
|
|
2118
2399
|
c() {
|
|
2119
|
-
|
|
2120
|
-
internal.attr(div, "class", "video-icon svelte-129jnm");
|
|
2121
|
-
internal.set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
2400
|
+
internal.create_component(swiperslide.$$.fragment);
|
|
2122
2401
|
},
|
|
2123
2402
|
m(target, anchor) {
|
|
2124
|
-
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;
|
|
2125
2423
|
},
|
|
2126
|
-
p: internal.noop,
|
|
2127
2424
|
d(detaching) {
|
|
2128
|
-
|
|
2425
|
+
internal.destroy_component(swiperslide, detaching);
|
|
2129
2426
|
}
|
|
2130
2427
|
};
|
|
2131
2428
|
}
|
|
2132
2429
|
|
|
2133
|
-
// (
|
|
2134
|
-
function
|
|
2135
|
-
let
|
|
2136
|
-
let
|
|
2137
|
-
let
|
|
2138
|
-
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 = [];
|
|
2139
2436
|
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
if (/*media*/ ctx[9].type === 'Video' && /*media*/ ctx[9].videoCoverUrl) return create_if_block_3$2;
|
|
2143
|
-
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));
|
|
2144
2439
|
}
|
|
2145
2440
|
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2441
|
+
const out = i => internal.transition_out(each_blocks[i], 1, 1, () => {
|
|
2442
|
+
each_blocks[i] = null;
|
|
2443
|
+
});
|
|
2149
2444
|
|
|
2150
2445
|
return {
|
|
2151
2446
|
c() {
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
internal.attr(div, "class", "carousel-item svelte-129jnm");
|
|
2158
|
-
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();
|
|
2159
2452
|
},
|
|
2160
2453
|
m(target, anchor) {
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
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;
|
|
2166
2460
|
},
|
|
2167
2461
|
p(ctx, dirty) {
|
|
2168
|
-
if (
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
if (if_block0) if_block0.d(1);
|
|
2172
|
-
if_block0 = current_block_type && current_block_type(ctx);
|
|
2462
|
+
if (dirty & /*mediaDataList, objectFit*/ 320) {
|
|
2463
|
+
each_value = /*mediaDataList*/ ctx[8];
|
|
2464
|
+
let i;
|
|
2173
2465
|
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
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
|
+
}
|
|
2177
2478
|
}
|
|
2178
|
-
}
|
|
2179
2479
|
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
if_block1 = create_if_block_1$6();
|
|
2185
|
-
if_block1.c();
|
|
2186
|
-
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);
|
|
2187
2484
|
}
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
if_block1 = null;
|
|
2485
|
+
|
|
2486
|
+
internal.check_outros();
|
|
2191
2487
|
}
|
|
2488
|
+
},
|
|
2489
|
+
i(local) {
|
|
2490
|
+
if (current) return;
|
|
2192
2491
|
|
|
2193
|
-
|
|
2194
|
-
internal.
|
|
2492
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
2493
|
+
internal.transition_in(each_blocks[i]);
|
|
2195
2494
|
}
|
|
2495
|
+
|
|
2496
|
+
current = true;
|
|
2196
2497
|
},
|
|
2197
|
-
|
|
2198
|
-
|
|
2498
|
+
o(local) {
|
|
2499
|
+
each_blocks = each_blocks.filter(Boolean);
|
|
2199
2500
|
|
|
2200
|
-
|
|
2201
|
-
|
|
2501
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
2502
|
+
internal.transition_out(each_blocks[i]);
|
|
2202
2503
|
}
|
|
2203
2504
|
|
|
2204
|
-
|
|
2505
|
+
current = false;
|
|
2506
|
+
},
|
|
2507
|
+
d(detaching) {
|
|
2508
|
+
internal.destroy_each(each_blocks, detaching);
|
|
2509
|
+
if (detaching) internal.detach(each_1_anchor);
|
|
2205
2510
|
}
|
|
2206
2511
|
};
|
|
2207
2512
|
}
|
|
2208
2513
|
|
|
2209
2514
|
function create_fragment$d(ctx) {
|
|
2210
2515
|
let if_block_anchor;
|
|
2211
|
-
let
|
|
2516
|
+
let current;
|
|
2517
|
+
let if_block = /*unfolded*/ ctx[4] && create_if_block$a(ctx);
|
|
2212
2518
|
|
|
2213
2519
|
return {
|
|
2214
2520
|
c() {
|
|
@@ -2218,13 +2524,14 @@ function create_fragment$d(ctx) {
|
|
|
2218
2524
|
m(target, anchor) {
|
|
2219
2525
|
if (if_block) if_block.m(target, anchor);
|
|
2220
2526
|
internal.insert(target, if_block_anchor, anchor);
|
|
2527
|
+
current = true;
|
|
2221
2528
|
},
|
|
2222
2529
|
p(ctx, [dirty]) {
|
|
2223
|
-
if (/*unfolded*/ ctx[
|
|
2530
|
+
if (/*unfolded*/ ctx[4]) {
|
|
2224
2531
|
if (if_block) {
|
|
2225
2532
|
if_block.p(ctx, dirty);
|
|
2226
2533
|
|
|
2227
|
-
if (dirty & /*unfolded*/
|
|
2534
|
+
if (dirty & /*unfolded*/ 16) {
|
|
2228
2535
|
internal.transition_in(if_block, 1);
|
|
2229
2536
|
}
|
|
2230
2537
|
} else {
|
|
@@ -2244,10 +2551,13 @@ function create_fragment$d(ctx) {
|
|
|
2244
2551
|
}
|
|
2245
2552
|
},
|
|
2246
2553
|
i(local) {
|
|
2554
|
+
if (current) return;
|
|
2247
2555
|
internal.transition_in(if_block);
|
|
2556
|
+
current = true;
|
|
2248
2557
|
},
|
|
2249
2558
|
o(local) {
|
|
2250
2559
|
internal.transition_out(if_block);
|
|
2560
|
+
current = false;
|
|
2251
2561
|
},
|
|
2252
2562
|
d(detaching) {
|
|
2253
2563
|
if (if_block) if_block.d(detaching);
|
|
@@ -2257,7 +2567,9 @@ function create_fragment$d(ctx) {
|
|
|
2257
2567
|
}
|
|
2258
2568
|
|
|
2259
2569
|
function instance$d($$self, $$props, $$invalidate) {
|
|
2570
|
+
let carouselEnabled;
|
|
2260
2571
|
let mediaDataList;
|
|
2572
|
+
let autoplay;
|
|
2261
2573
|
let { mediaData } = $$props;
|
|
2262
2574
|
let { inDelay = 0 } = $$props;
|
|
2263
2575
|
let { outDelay = 0 } = $$props;
|
|
@@ -2266,34 +2578,93 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
2266
2578
|
let { animation = true } = $$props;
|
|
2267
2579
|
let { objectFit = 'cover' } = $$props;
|
|
2268
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
|
+
};
|
|
2269
2624
|
|
|
2270
2625
|
$$self.$$set = $$props => {
|
|
2271
|
-
if ('mediaData' in $$props) $$invalidate(
|
|
2272
|
-
if ('inDelay' in $$props) $$invalidate(
|
|
2273
|
-
if ('outDelay' in $$props) $$invalidate(
|
|
2274
|
-
if ('duration' in $$props) $$invalidate(
|
|
2275
|
-
if ('unfolded' in $$props) $$invalidate(
|
|
2276
|
-
if ('animation' in $$props) $$invalidate(
|
|
2277
|
-
if ('objectFit' in $$props) $$invalidate(
|
|
2278
|
-
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);
|
|
2279
2635
|
};
|
|
2280
2636
|
|
|
2281
2637
|
$$self.$$.update = () => {
|
|
2282
|
-
if ($$self.$$.dirty & /*enableCarousel, mediaData*/
|
|
2283
|
-
$$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);
|
|
2284
2650
|
}
|
|
2285
2651
|
};
|
|
2286
2652
|
|
|
2287
2653
|
return [
|
|
2654
|
+
mediaData,
|
|
2288
2655
|
inDelay,
|
|
2289
2656
|
outDelay,
|
|
2290
2657
|
duration,
|
|
2291
2658
|
unfolded,
|
|
2292
2659
|
animation,
|
|
2293
2660
|
objectFit,
|
|
2661
|
+
autoplayConfig,
|
|
2294
2662
|
mediaDataList,
|
|
2295
|
-
|
|
2296
|
-
|
|
2663
|
+
lastAutoPlayIndex,
|
|
2664
|
+
autoplay,
|
|
2665
|
+
carouselEnabled,
|
|
2666
|
+
enableCarousel,
|
|
2667
|
+
slideChange_handler
|
|
2297
2668
|
];
|
|
2298
2669
|
}
|
|
2299
2670
|
|
|
@@ -2308,14 +2679,15 @@ class Media extends internal.SvelteComponent {
|
|
|
2308
2679
|
create_fragment$d,
|
|
2309
2680
|
internal.safe_not_equal,
|
|
2310
2681
|
{
|
|
2311
|
-
mediaData:
|
|
2312
|
-
inDelay:
|
|
2313
|
-
outDelay:
|
|
2314
|
-
duration:
|
|
2315
|
-
unfolded:
|
|
2316
|
-
animation:
|
|
2317
|
-
objectFit:
|
|
2318
|
-
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
|
|
2319
2691
|
},
|
|
2320
2692
|
add_css$d
|
|
2321
2693
|
);
|
|
@@ -2549,6 +2921,7 @@ function create_if_block_1$5(ctx) {
|
|
|
2549
2921
|
|
|
2550
2922
|
media = new Media({
|
|
2551
2923
|
props: {
|
|
2924
|
+
autoplayConfig: { autoplay: false },
|
|
2552
2925
|
unfolded: /*unfolded*/ ctx[4],
|
|
2553
2926
|
mediaData: /*mediaData*/ ctx[3],
|
|
2554
2927
|
inDelay: 500,
|
|
@@ -3896,7 +4269,7 @@ function add_css$8(target) {
|
|
|
3896
4269
|
internal.append_styles(target, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
3897
4270
|
}
|
|
3898
4271
|
|
|
3899
|
-
// (
|
|
4272
|
+
// (20:0) {#if tag.state && mediaData}
|
|
3900
4273
|
function create_if_block$5(ctx) {
|
|
3901
4274
|
let div;
|
|
3902
4275
|
let media;
|
|
@@ -3904,10 +4277,11 @@ function create_if_block$5(ctx) {
|
|
|
3904
4277
|
|
|
3905
4278
|
media = new Media({
|
|
3906
4279
|
props: {
|
|
3907
|
-
unfolded: /*unfolded*/ ctx[
|
|
3908
|
-
mediaData: /*mediaData*/ ctx[
|
|
3909
|
-
objectFit: /*objectFit*/ ctx[
|
|
3910
|
-
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],
|
|
3911
4285
|
inDelay: 500,
|
|
3912
4286
|
duration: 500
|
|
3913
4287
|
}
|
|
@@ -3926,9 +4300,11 @@ function create_if_block$5(ctx) {
|
|
|
3926
4300
|
},
|
|
3927
4301
|
p(ctx, dirty) {
|
|
3928
4302
|
const media_changes = {};
|
|
3929
|
-
if (dirty & /*unfolded*/
|
|
3930
|
-
if (dirty & /*mediaData*/
|
|
3931
|
-
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];
|
|
3932
4308
|
media.$set(media_changes);
|
|
3933
4309
|
},
|
|
3934
4310
|
i(local) {
|
|
@@ -3950,7 +4326,7 @@ function create_if_block$5(ctx) {
|
|
|
3950
4326
|
function create_fragment$8(ctx) {
|
|
3951
4327
|
let if_block_anchor;
|
|
3952
4328
|
let current;
|
|
3953
|
-
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);
|
|
3954
4330
|
|
|
3955
4331
|
return {
|
|
3956
4332
|
c() {
|
|
@@ -3963,11 +4339,11 @@ function create_fragment$8(ctx) {
|
|
|
3963
4339
|
current = true;
|
|
3964
4340
|
},
|
|
3965
4341
|
p(ctx, [dirty]) {
|
|
3966
|
-
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
4342
|
+
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[4]) {
|
|
3967
4343
|
if (if_block) {
|
|
3968
4344
|
if_block.p(ctx, dirty);
|
|
3969
4345
|
|
|
3970
|
-
if (dirty & /*tag, mediaData*/
|
|
4346
|
+
if (dirty & /*tag, mediaData*/ 17) {
|
|
3971
4347
|
internal.transition_in(if_block, 1);
|
|
3972
4348
|
}
|
|
3973
4349
|
} else {
|
|
@@ -4005,8 +4381,10 @@ function create_fragment$8(ctx) {
|
|
|
4005
4381
|
function instance$8($$self, $$props, $$invalidate) {
|
|
4006
4382
|
let unfolded;
|
|
4007
4383
|
let mediaData;
|
|
4384
|
+
let enableCarousel;
|
|
4385
|
+
let autoplayConfig;
|
|
4008
4386
|
let objectFit;
|
|
4009
|
-
var _a;
|
|
4387
|
+
var _a, _b;
|
|
4010
4388
|
let { tag } = $$props;
|
|
4011
4389
|
|
|
4012
4390
|
$$self.$$set = $$props => {
|
|
@@ -4015,23 +4393,38 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
4015
4393
|
|
|
4016
4394
|
$$self.$$.update = () => {
|
|
4017
4395
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
4018
|
-
$$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);
|
|
4019
4401
|
}
|
|
4020
4402
|
|
|
4021
4403
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
4022
|
-
$$invalidate(
|
|
4404
|
+
$$invalidate(1, enableCarousel = tag.data.enableCarousel);
|
|
4023
4405
|
}
|
|
4024
4406
|
|
|
4025
|
-
if ($$self.$$.dirty & /*tag, _a*/
|
|
4026
|
-
$$invalidate(
|
|
4407
|
+
if ($$self.$$.dirty & /*tag, _a, enableCarousel*/ 67) {
|
|
4408
|
+
$$invalidate(3, autoplayConfig = $$invalidate(6, _a = tag.data.autoplayConfig) !== null && _a !== void 0
|
|
4027
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
|
|
4028
4421
|
: (() => {
|
|
4029
4422
|
if (tag.data.adaptationMode === 'stretch') return 'cover'; else if (tag.data.adaptationMode === 'proportional') return 'contain'; else return undefined;
|
|
4030
4423
|
})());
|
|
4031
4424
|
}
|
|
4032
4425
|
};
|
|
4033
4426
|
|
|
4034
|
-
return [tag, objectFit, mediaData, unfolded, _a];
|
|
4427
|
+
return [tag, enableCarousel, objectFit, autoplayConfig, mediaData, unfolded, _a, _b];
|
|
4035
4428
|
}
|
|
4036
4429
|
|
|
4037
4430
|
class MediaPlane extends internal.SvelteComponent {
|
|
@@ -6202,6 +6595,16 @@ class TagComputer extends TagCacheController {
|
|
|
6202
6595
|
value: new THREE__namespace.Raycaster()
|
|
6203
6596
|
});
|
|
6204
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
|
+
}
|
|
6205
6608
|
/**
|
|
6206
6609
|
* @description: 改变配置
|
|
6207
6610
|
*/
|
|
@@ -6256,7 +6659,6 @@ class TagComputer extends TagCacheController {
|
|
|
6256
6659
|
const visible = (() => {
|
|
6257
6660
|
var _a, _b, _c, _d, _e;
|
|
6258
6661
|
const config = (_a = this.getTagConfig(tag).visibleConfig) !== null && _a !== void 0 ? _a : {};
|
|
6259
|
-
// console.log(config)
|
|
6260
6662
|
const distance = this.getDistance(tag);
|
|
6261
6663
|
if (typeof config === 'function') {
|
|
6262
6664
|
return config(this.five, { tag, distance });
|
|
@@ -6532,18 +6934,11 @@ class TagComputer extends TagCacheController {
|
|
|
6532
6934
|
const unfolded = this.getUnfoldedByPanoIndex(tag);
|
|
6533
6935
|
if (!tag.state)
|
|
6534
6936
|
return;
|
|
6535
|
-
if (unfolded
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
});
|
|
6539
|
-
}
|
|
6540
|
-
setVisibleAndUnfoldedByPanoIndex() {
|
|
6541
|
-
this.setVisibleByPanoIndex();
|
|
6542
|
-
this.setUnfoldedByPanoIndex();
|
|
6543
|
-
this.tags.forEach((tag) => {
|
|
6544
|
-
var _a, _b;
|
|
6937
|
+
if (unfolded !== undefined) {
|
|
6938
|
+
tag.state.unfolded = unfolded;
|
|
6939
|
+
}
|
|
6545
6940
|
// 如果标签展开但不可见,就要判断autoUnfoldWhenHide
|
|
6546
|
-
if (
|
|
6941
|
+
if (unfolded && !tag.state.visible) {
|
|
6547
6942
|
const config = this.getTagConfig(tag);
|
|
6548
6943
|
if (typeof config.unfoldedConfig === 'object' && config.unfoldedConfig.autoUnfoldWhenHide !== false) {
|
|
6549
6944
|
tag.state.unfolded = false;
|
|
@@ -6564,16 +6959,6 @@ class TagComputer extends TagCacheController {
|
|
|
6564
6959
|
return;
|
|
6565
6960
|
return { x, y, z };
|
|
6566
6961
|
}
|
|
6567
|
-
getTagById(id) {
|
|
6568
|
-
const tag = this.tags.find((tag) => {
|
|
6569
|
-
return tag.id === id;
|
|
6570
|
-
});
|
|
6571
|
-
if (!tag) {
|
|
6572
|
-
console.error(`getTagById(): tag is ${tag}, id is ${id}`);
|
|
6573
|
-
return undefined;
|
|
6574
|
-
}
|
|
6575
|
-
return tag;
|
|
6576
|
-
}
|
|
6577
6962
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
6578
6963
|
filterPointTag() {
|
|
6579
6964
|
return this.tags.filter((tag) => tag.pointType === exports.PointType.PointTag);
|
|
@@ -7280,7 +7665,7 @@ class CSS3DRender {
|
|
|
7280
7665
|
}
|
|
7281
7666
|
|
|
7282
7667
|
const VERSION$1 = 'v2.0.0';
|
|
7283
|
-
const PLUGIN_NAME$1 = `CSS3DRenderPlugin-${random()}@${VERSION$1}`;
|
|
7668
|
+
const PLUGIN_NAME$1 = `CSS3DRenderPlugin-${random$1()}@${VERSION$1}`;
|
|
7284
7669
|
class Controller extends CSS3DRender {
|
|
7285
7670
|
constructor(five) {
|
|
7286
7671
|
super();
|
|
@@ -7389,9 +7774,10 @@ class Controller extends CSS3DRender {
|
|
|
7389
7774
|
const CSS3DRenderPlugin = (five) => new Controller(five);
|
|
7390
7775
|
|
|
7391
7776
|
// declare const __APP_VERSION__: string
|
|
7392
|
-
const VERSION = '0.
|
|
7777
|
+
const VERSION = '1.0.0';
|
|
7393
7778
|
const PLUGIN_NAME = `DnalogelPlugin-PanoTagPlugin@${VERSION}`;
|
|
7394
|
-
|
|
7779
|
+
// 初始是否展开
|
|
7780
|
+
const TAG_INITIAL_UNFOLDED = false;
|
|
7395
7781
|
const pluginFlag = (name) => `${PLUGIN_NAME}--${name}`;
|
|
7396
7782
|
class PanoTagPluginController extends TagComputer {
|
|
7397
7783
|
constructor(five, params) {
|
|
@@ -7501,8 +7887,9 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7501
7887
|
/**
|
|
7502
7888
|
* @description: 加载数据
|
|
7503
7889
|
*/
|
|
7504
|
-
load(data) {
|
|
7890
|
+
load(data, config) {
|
|
7505
7891
|
var _a, _b;
|
|
7892
|
+
this.clearTags();
|
|
7506
7893
|
console.log(PLUGIN_NAME, 'load:', { data });
|
|
7507
7894
|
if (this.params.mergePluginDefaultConfigToLoadDataConfig) {
|
|
7508
7895
|
this.config = objectAssignDeep__default["default"]({}, this.config, {
|
|
@@ -7516,17 +7903,15 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7516
7903
|
if (data.contentTypeConfig)
|
|
7517
7904
|
this.config.contentTypeConfig = data.contentTypeConfig;
|
|
7518
7905
|
}
|
|
7519
|
-
this.
|
|
7520
|
-
|
|
7521
|
-
this.tags = [];
|
|
7522
|
-
this.addTag(data.tagList);
|
|
7906
|
+
this.addTag(data.tagList, config);
|
|
7907
|
+
// debug
|
|
7523
7908
|
if (this.debug)
|
|
7524
7909
|
addDebugPoints(this.five, this.tags);
|
|
7525
7910
|
}
|
|
7526
7911
|
/**
|
|
7527
7912
|
* @description: 添加标签
|
|
7528
7913
|
*/
|
|
7529
|
-
addTag(tag) {
|
|
7914
|
+
addTag(tag, config) {
|
|
7530
7915
|
const tags = Array.isArray(tag) ? tag : [tag];
|
|
7531
7916
|
const _tags = tags
|
|
7532
7917
|
.map((tag) => {
|
|
@@ -7536,7 +7921,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7536
7921
|
.filter((tag) => tag.position);
|
|
7537
7922
|
this.tags.push(..._tags);
|
|
7538
7923
|
actionAfterFiveModelLoad(this.five, () => {
|
|
7539
|
-
var _a, _b;
|
|
7924
|
+
var _a, _b, _c;
|
|
7540
7925
|
// 添加事件
|
|
7541
7926
|
if (this.store.eventListenerDisposer) {
|
|
7542
7927
|
(_b = (_a = this.store).eventListenerDisposer) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
@@ -7552,10 +7937,18 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7552
7937
|
}, 200);
|
|
7553
7938
|
}
|
|
7554
7939
|
this.checkPanelTag();
|
|
7555
|
-
|
|
7556
|
-
|
|
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();
|
|
7557
7944
|
});
|
|
7558
7945
|
}
|
|
7946
|
+
clearTags() {
|
|
7947
|
+
this.tags = [];
|
|
7948
|
+
this.clearCache();
|
|
7949
|
+
this.disposeAllCSS3DContainer();
|
|
7950
|
+
this.updateRenderAllTags();
|
|
7951
|
+
}
|
|
7559
7952
|
async show(params) {
|
|
7560
7953
|
const { userAction = true, withAnimation = false } = params !== null && params !== void 0 ? params : {};
|
|
7561
7954
|
if (this.store.disposed)
|
|
@@ -7646,7 +8039,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7646
8039
|
}
|
|
7647
8040
|
// 3D 转 2D 的时候要销毁 3D container
|
|
7648
8041
|
this.checkPanelTag();
|
|
7649
|
-
this.
|
|
8042
|
+
this.updateRenderAllTags();
|
|
7650
8043
|
}
|
|
7651
8044
|
/**
|
|
7652
8045
|
* @description: 改变tag任意属性
|
|
@@ -7664,7 +8057,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7664
8057
|
if ((currentTag === null || currentTag === void 0 ? void 0 : currentTag.tag3DContentSvelte) && (tag === null || tag === void 0 ? void 0 : tag.normal)) {
|
|
7665
8058
|
currentTag.tag3DContentSvelte.currentNormal = arrayPositionToVector3(tag.normal);
|
|
7666
8059
|
}
|
|
7667
|
-
this.
|
|
8060
|
+
this.updateRenderAllTags();
|
|
7668
8061
|
this.checkPanelTag();
|
|
7669
8062
|
}
|
|
7670
8063
|
/**
|
|
@@ -7678,12 +8071,31 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7678
8071
|
return;
|
|
7679
8072
|
this.tags.splice(index, 1);
|
|
7680
8073
|
});
|
|
7681
|
-
this.
|
|
8074
|
+
this.updateRenderAllTags();
|
|
7682
8075
|
}
|
|
7683
8076
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
7684
8077
|
pauseCurrentMedia() {
|
|
7685
8078
|
this.mediaStore.set({ currentMediaUrl: '' });
|
|
7686
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
|
+
}
|
|
7687
8099
|
handleShow() {
|
|
7688
8100
|
this.state.visible = true;
|
|
7689
8101
|
this.updateTagContainerVisible();
|
|
@@ -7694,7 +8106,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7694
8106
|
}
|
|
7695
8107
|
handleEnable() {
|
|
7696
8108
|
this.state.enabled = true;
|
|
7697
|
-
this.
|
|
8109
|
+
this.updateRenderAllTags();
|
|
7698
8110
|
}
|
|
7699
8111
|
handleDisable() {
|
|
7700
8112
|
var _a;
|
|
@@ -7740,7 +8152,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7740
8152
|
// resize
|
|
7741
8153
|
const show = () => {
|
|
7742
8154
|
this.show();
|
|
7743
|
-
this.
|
|
8155
|
+
this.updateRenderAllTags();
|
|
7744
8156
|
};
|
|
7745
8157
|
const { observe: hideObserve, unobserve: hideUnobserve } = resizeObserver(throttle(() => {
|
|
7746
8158
|
/**
|
|
@@ -7778,7 +8190,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7778
8190
|
tag.temporaryState = Object.assign(Object.assign({}, tag.temporaryState), { visible: false });
|
|
7779
8191
|
}
|
|
7780
8192
|
});
|
|
7781
|
-
this.
|
|
8193
|
+
this.updateRenderAllTags();
|
|
7782
8194
|
}
|
|
7783
8195
|
/**
|
|
7784
8196
|
* @description: 走点/切换模型后显示
|
|
@@ -7816,13 +8228,13 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7816
8228
|
tag.state.unfolded = false;
|
|
7817
8229
|
});
|
|
7818
8230
|
}
|
|
7819
|
-
this.
|
|
8231
|
+
this.updateRenderAllTags();
|
|
7820
8232
|
}
|
|
7821
8233
|
}
|
|
7822
8234
|
/**
|
|
7823
8235
|
* @description: 更新所有标签
|
|
7824
8236
|
*/
|
|
7825
|
-
|
|
8237
|
+
updateRenderAllTags() {
|
|
7826
8238
|
this.updateRenderPointTag();
|
|
7827
8239
|
this.updateRenderPlaneTag();
|
|
7828
8240
|
}
|
|
@@ -7843,20 +8255,20 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7843
8255
|
// 设置展开/收起
|
|
7844
8256
|
this.setUnfoldedByCamera();
|
|
7845
8257
|
// 渲染
|
|
7846
|
-
this.
|
|
8258
|
+
this.updateRenderAllTags();
|
|
7847
8259
|
}, 100);
|
|
7848
8260
|
}
|
|
7849
8261
|
handleFiveCameraUpdate() {
|
|
7850
8262
|
// 渲染
|
|
7851
8263
|
this.updateRenderPointTag();
|
|
7852
8264
|
}
|
|
7853
|
-
handleFivePanoArrived() {
|
|
7854
|
-
this.
|
|
8265
|
+
async handleFivePanoArrived() {
|
|
8266
|
+
await this.setVisibleAndUnfolded();
|
|
7855
8267
|
this.tags.forEach((tag) => {
|
|
7856
8268
|
tag.temporaryState = Object.assign(Object.assign({}, tag.temporaryState), { visible: true });
|
|
7857
8269
|
});
|
|
7858
8270
|
// 渲染
|
|
7859
|
-
this.
|
|
8271
|
+
this.updateRenderAllTags();
|
|
7860
8272
|
}
|
|
7861
8273
|
setUnfoldedByCamera() {
|
|
7862
8274
|
let hasTagUnfolded = false; // 是否有标签由于camera的转动而展开
|