@realsee/dnalogel 2.1.0-alpha.11 → 2.1.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CruisePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CruisePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/index.js +4869 -376
- package/dist/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/index.es.js +5063 -570
- package/dist/index.js +5075 -582
- package/dist/index.umd.js +5072 -584
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +23 -51
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/PanoTagPlugin/Components/Common/Media.js +347 -194
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +216 -0
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -0
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +37 -17
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/libs/PanoTagPlugin/controller/TagComputer.js +14 -22
- package/libs/PanoTagPlugin/controller/index.d.ts +9 -4
- package/libs/PanoTagPlugin/controller/index.js +50 -23
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/libs/PanoTagPlugin/mocks/mock1.js +10 -5
- package/libs/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/libs/PanoTagPlugin/mocks/mock3.js +21 -22
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/libs/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/package.json +2 -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
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SvelteComponent,
|
|
4
4
|
add_render_callback,
|
|
5
|
-
append,
|
|
6
5
|
append_styles,
|
|
7
6
|
attr,
|
|
8
7
|
check_outros,
|
|
8
|
+
create_component,
|
|
9
9
|
create_in_transition,
|
|
10
10
|
create_out_transition,
|
|
11
|
+
destroy_component,
|
|
11
12
|
destroy_each,
|
|
12
13
|
detach,
|
|
13
14
|
element,
|
|
@@ -15,106 +16,109 @@ import {
|
|
|
15
16
|
group_outros,
|
|
16
17
|
init,
|
|
17
18
|
insert,
|
|
18
|
-
|
|
19
|
+
mount_component,
|
|
19
20
|
safe_not_equal,
|
|
20
|
-
set_style,
|
|
21
21
|
space,
|
|
22
|
-
src_url_equal,
|
|
23
22
|
toggle_class,
|
|
24
23
|
transition_in,
|
|
25
24
|
transition_out
|
|
26
25
|
} from "svelte/internal";
|
|
27
26
|
|
|
28
27
|
import { fly } from 'svelte/transition';
|
|
29
|
-
import { Image_Play } from '../../Assets/Icon';
|
|
30
28
|
import { linear } from 'svelte/easing';
|
|
31
|
-
import {
|
|
29
|
+
import { Swiper, SwiperSlide } from 'swiper/svelte';
|
|
30
|
+
import { Autoplay } from 'swiper';
|
|
31
|
+
import 'swiper/css';
|
|
32
|
+
import 'swiper/css/autoplay';
|
|
33
|
+
import { noTypecheck } from '../../utils';
|
|
34
|
+
import MediaItem from './MediaItem';
|
|
32
35
|
|
|
33
36
|
function add_css(target) {
|
|
34
|
-
append_styles(target, "svelte-
|
|
37
|
+
append_styles(target, "svelte-ai0lv9", ".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}");
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
function get_each_context(ctx, list, i) {
|
|
38
41
|
const child_ctx = ctx.slice();
|
|
39
|
-
child_ctx[
|
|
42
|
+
child_ctx[14] = list[i];
|
|
40
43
|
return child_ctx;
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
// (
|
|
46
|
+
// (24:0) {#if unfolded}
|
|
44
47
|
function create_if_block(ctx) {
|
|
45
48
|
let div;
|
|
49
|
+
let current_block_type_index;
|
|
50
|
+
let if_block;
|
|
46
51
|
let div_intro;
|
|
47
52
|
let div_outro;
|
|
48
53
|
let current;
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
const if_block_creators = [create_if_block_1, create_else_block];
|
|
55
|
+
const if_blocks = [];
|
|
51
56
|
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
function select_block_type(ctx, dirty) {
|
|
58
|
+
if (/*carouselEnabled*/ ctx[11]) return 0;
|
|
59
|
+
return 1;
|
|
54
60
|
}
|
|
55
61
|
|
|
62
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
63
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
64
|
+
|
|
56
65
|
return {
|
|
57
66
|
c() {
|
|
58
67
|
div = element("div");
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
attr(div, "class", "media svelte-129jnm");
|
|
65
|
-
toggle_class(div, "unfolded", /*unfolded*/ ctx[3]);
|
|
68
|
+
if_block.c();
|
|
69
|
+
attr(div, "class", "media svelte-ai0lv9");
|
|
70
|
+
toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
|
|
66
71
|
},
|
|
67
72
|
m(target, anchor) {
|
|
68
73
|
insert(target, div, anchor);
|
|
69
|
-
|
|
70
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
71
|
-
each_blocks[i].m(div, null);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
+
if_blocks[current_block_type_index].m(div, null);
|
|
74
75
|
current = true;
|
|
75
76
|
},
|
|
76
77
|
p(new_ctx, dirty) {
|
|
77
78
|
ctx = new_ctx;
|
|
79
|
+
let previous_block_index = current_block_type_index;
|
|
80
|
+
current_block_type_index = select_block_type(ctx, dirty);
|
|
78
81
|
|
|
79
|
-
if (
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
if (current_block_type_index === previous_block_index) {
|
|
83
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
84
|
+
} else {
|
|
85
|
+
group_outros();
|
|
82
86
|
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
88
|
+
if_blocks[previous_block_index] = null;
|
|
89
|
+
});
|
|
85
90
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
} else {
|
|
89
|
-
each_blocks[i] = create_each_block(child_ctx);
|
|
90
|
-
each_blocks[i].c();
|
|
91
|
-
each_blocks[i].m(div, null);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
91
|
+
check_outros();
|
|
92
|
+
if_block = if_blocks[current_block_type_index];
|
|
94
93
|
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
if (!if_block) {
|
|
95
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
96
|
+
if_block.c();
|
|
97
|
+
} else {
|
|
98
|
+
if_block.p(ctx, dirty);
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
|
|
101
|
+
transition_in(if_block, 1);
|
|
102
|
+
if_block.m(div, null);
|
|
100
103
|
}
|
|
101
104
|
|
|
102
|
-
if (!current || dirty & /*unfolded*/
|
|
103
|
-
toggle_class(div, "unfolded", /*unfolded*/ ctx[
|
|
105
|
+
if (!current || dirty & /*unfolded*/ 16) {
|
|
106
|
+
toggle_class(div, "unfolded", /*unfolded*/ ctx[4]);
|
|
104
107
|
}
|
|
105
108
|
},
|
|
106
109
|
i(local) {
|
|
107
110
|
if (current) return;
|
|
111
|
+
transition_in(if_block);
|
|
108
112
|
|
|
109
113
|
if (local) {
|
|
110
114
|
add_render_callback(() => {
|
|
111
115
|
if (div_outro) div_outro.end(1);
|
|
112
116
|
|
|
113
|
-
div_intro = create_in_transition(div, fly, /*animation*/ ctx[
|
|
117
|
+
div_intro = create_in_transition(div, fly, /*animation*/ ctx[5]
|
|
114
118
|
? {
|
|
115
119
|
y: 4,
|
|
116
|
-
duration: /*duration*/ ctx[
|
|
117
|
-
delay: /*inDelay*/ ctx[
|
|
120
|
+
duration: /*duration*/ ctx[3],
|
|
121
|
+
delay: /*inDelay*/ ctx[1],
|
|
118
122
|
easing: linear
|
|
119
123
|
}
|
|
120
124
|
: undefined);
|
|
@@ -126,14 +130,15 @@ function create_if_block(ctx) {
|
|
|
126
130
|
current = true;
|
|
127
131
|
},
|
|
128
132
|
o(local) {
|
|
133
|
+
transition_out(if_block);
|
|
129
134
|
if (div_intro) div_intro.invalidate();
|
|
130
135
|
|
|
131
136
|
if (local) {
|
|
132
|
-
div_outro = create_out_transition(div, fly, /*animation*/ ctx[
|
|
137
|
+
div_outro = create_out_transition(div, fly, /*animation*/ ctx[5]
|
|
133
138
|
? {
|
|
134
139
|
y: 4,
|
|
135
|
-
duration: /*duration*/ ctx[
|
|
136
|
-
delay: /*outDelay*/ ctx[
|
|
140
|
+
duration: /*duration*/ ctx[3],
|
|
141
|
+
delay: /*outDelay*/ ctx[2],
|
|
137
142
|
easing: linear
|
|
138
143
|
}
|
|
139
144
|
: undefined);
|
|
@@ -143,213 +148,295 @@ function create_if_block(ctx) {
|
|
|
143
148
|
},
|
|
144
149
|
d(detaching) {
|
|
145
150
|
if (detaching) detach(div);
|
|
146
|
-
|
|
151
|
+
if_blocks[current_block_type_index].d();
|
|
147
152
|
if (detaching && div_outro) div_outro.end();
|
|
148
153
|
}
|
|
149
154
|
};
|
|
150
155
|
}
|
|
151
156
|
|
|
152
|
-
// (
|
|
153
|
-
function
|
|
154
|
-
let
|
|
155
|
-
let
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
// (80:4) {:else}
|
|
158
|
+
function create_else_block(ctx) {
|
|
159
|
+
let mediaitem;
|
|
160
|
+
let current;
|
|
161
|
+
|
|
162
|
+
mediaitem = new MediaItem({
|
|
163
|
+
props: {
|
|
164
|
+
media: /*mediaData*/ ctx[0][0],
|
|
165
|
+
objectFit: /*objectFit*/ ctx[6]
|
|
166
|
+
}
|
|
167
|
+
});
|
|
159
168
|
|
|
160
169
|
return {
|
|
161
170
|
c() {
|
|
162
|
-
|
|
163
|
-
attr(video, "class", "media-content svelte-129jnm");
|
|
164
|
-
if (!src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) attr(video, "src", video_src_value);
|
|
165
|
-
attr(video, "poster", video_poster_value = /*media*/ ctx[9].videoCoverUrl);
|
|
166
|
-
video.playsInline = true;
|
|
167
|
-
attr(video, "paused", "");
|
|
168
|
-
video.loop = video_loop_value = false;
|
|
169
|
-
attr(video, "preload", "auto");
|
|
170
|
-
attr(video, "crossorigin", "");
|
|
171
|
-
video.controls = video_controls_value = false;
|
|
172
|
-
video.muted = true;
|
|
171
|
+
create_component(mediaitem.$$.fragment);
|
|
173
172
|
},
|
|
174
173
|
m(target, anchor) {
|
|
175
|
-
|
|
174
|
+
mount_component(mediaitem, target, anchor);
|
|
175
|
+
current = true;
|
|
176
176
|
},
|
|
177
177
|
p(ctx, dirty) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
178
|
+
const mediaitem_changes = {};
|
|
179
|
+
if (dirty & /*mediaData*/ 1) mediaitem_changes.media = /*mediaData*/ ctx[0][0];
|
|
180
|
+
if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
|
|
181
|
+
mediaitem.$set(mediaitem_changes);
|
|
182
|
+
},
|
|
183
|
+
i(local) {
|
|
184
|
+
if (current) return;
|
|
185
|
+
transition_in(mediaitem.$$.fragment, local);
|
|
186
|
+
current = true;
|
|
187
|
+
},
|
|
188
|
+
o(local) {
|
|
189
|
+
transition_out(mediaitem.$$.fragment, local);
|
|
190
|
+
current = false;
|
|
185
191
|
},
|
|
186
192
|
d(detaching) {
|
|
187
|
-
|
|
193
|
+
destroy_component(mediaitem, detaching);
|
|
188
194
|
}
|
|
189
195
|
};
|
|
190
196
|
}
|
|
191
197
|
|
|
192
|
-
// (
|
|
193
|
-
function
|
|
194
|
-
let
|
|
195
|
-
let
|
|
196
|
-
|
|
198
|
+
// (31:4) {#if carouselEnabled}
|
|
199
|
+
function create_if_block_1(ctx) {
|
|
200
|
+
let swiper;
|
|
201
|
+
let current;
|
|
202
|
+
|
|
203
|
+
swiper = new Swiper({
|
|
204
|
+
props: {
|
|
205
|
+
style: "height: 100%",
|
|
206
|
+
modules: [Autoplay],
|
|
207
|
+
spaceBetween: 30,
|
|
208
|
+
autoplay: /*autoplay*/ ctx[10]
|
|
209
|
+
? noTypecheck({
|
|
210
|
+
delay: 2000,
|
|
211
|
+
stopOnLastSlide: false,
|
|
212
|
+
disableOnInteraction: false
|
|
213
|
+
})
|
|
214
|
+
: false,
|
|
215
|
+
loop: true,
|
|
216
|
+
$$slots: { default: [create_default_slot] },
|
|
217
|
+
$$scope: { ctx }
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
swiper.$on("slideChange", /*slideChange_handler*/ ctx[13]);
|
|
197
222
|
|
|
198
223
|
return {
|
|
199
224
|
c() {
|
|
200
|
-
|
|
201
|
-
attr(img, "class", "media-content svelte-129jnm");
|
|
202
|
-
if (!src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) attr(img, "src", img_src_value);
|
|
203
|
-
attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
225
|
+
create_component(swiper.$$.fragment);
|
|
204
226
|
},
|
|
205
227
|
m(target, anchor) {
|
|
206
|
-
|
|
228
|
+
mount_component(swiper, target, anchor);
|
|
229
|
+
current = true;
|
|
207
230
|
},
|
|
208
231
|
p(ctx, dirty) {
|
|
209
|
-
|
|
210
|
-
|
|
232
|
+
const swiper_changes = {};
|
|
233
|
+
|
|
234
|
+
if (dirty & /*autoplay*/ 1024) swiper_changes.autoplay = /*autoplay*/ ctx[10]
|
|
235
|
+
? noTypecheck({
|
|
236
|
+
delay: 2000,
|
|
237
|
+
stopOnLastSlide: false,
|
|
238
|
+
disableOnInteraction: false
|
|
239
|
+
})
|
|
240
|
+
: false;
|
|
241
|
+
|
|
242
|
+
if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
|
|
243
|
+
swiper_changes.$$scope = { dirty, ctx };
|
|
211
244
|
}
|
|
212
245
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
246
|
+
swiper.$set(swiper_changes);
|
|
247
|
+
},
|
|
248
|
+
i(local) {
|
|
249
|
+
if (current) return;
|
|
250
|
+
transition_in(swiper.$$.fragment, local);
|
|
251
|
+
current = true;
|
|
252
|
+
},
|
|
253
|
+
o(local) {
|
|
254
|
+
transition_out(swiper.$$.fragment, local);
|
|
255
|
+
current = false;
|
|
216
256
|
},
|
|
217
257
|
d(detaching) {
|
|
218
|
-
|
|
258
|
+
destroy_component(swiper, detaching);
|
|
219
259
|
}
|
|
220
260
|
};
|
|
221
261
|
}
|
|
222
262
|
|
|
223
|
-
// (
|
|
224
|
-
function
|
|
225
|
-
let
|
|
226
|
-
let
|
|
227
|
-
let
|
|
263
|
+
// (75:10) <SwiperSlide>
|
|
264
|
+
function create_default_slot_1(ctx) {
|
|
265
|
+
let mediaitem;
|
|
266
|
+
let t;
|
|
267
|
+
let current;
|
|
268
|
+
|
|
269
|
+
mediaitem = new MediaItem({
|
|
270
|
+
props: {
|
|
271
|
+
media: /*media*/ ctx[14],
|
|
272
|
+
objectFit: /*objectFit*/ ctx[6]
|
|
273
|
+
}
|
|
274
|
+
});
|
|
228
275
|
|
|
229
276
|
return {
|
|
230
277
|
c() {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
if (!src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) attr(img, "src", img_src_value);
|
|
234
|
-
attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
278
|
+
create_component(mediaitem.$$.fragment);
|
|
279
|
+
t = space();
|
|
235
280
|
},
|
|
236
281
|
m(target, anchor) {
|
|
237
|
-
|
|
282
|
+
mount_component(mediaitem, target, anchor);
|
|
283
|
+
insert(target, t, anchor);
|
|
284
|
+
current = true;
|
|
238
285
|
},
|
|
239
286
|
p(ctx, dirty) {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
287
|
+
const mediaitem_changes = {};
|
|
288
|
+
if (dirty & /*mediaDataList*/ 256) mediaitem_changes.media = /*media*/ ctx[14];
|
|
289
|
+
if (dirty & /*objectFit*/ 64) mediaitem_changes.objectFit = /*objectFit*/ ctx[6];
|
|
290
|
+
mediaitem.$set(mediaitem_changes);
|
|
291
|
+
},
|
|
292
|
+
i(local) {
|
|
293
|
+
if (current) return;
|
|
294
|
+
transition_in(mediaitem.$$.fragment, local);
|
|
295
|
+
current = true;
|
|
296
|
+
},
|
|
297
|
+
o(local) {
|
|
298
|
+
transition_out(mediaitem.$$.fragment, local);
|
|
299
|
+
current = false;
|
|
247
300
|
},
|
|
248
301
|
d(detaching) {
|
|
249
|
-
|
|
302
|
+
destroy_component(mediaitem, detaching);
|
|
303
|
+
if (detaching) detach(t);
|
|
250
304
|
}
|
|
251
305
|
};
|
|
252
306
|
}
|
|
253
307
|
|
|
254
|
-
// (
|
|
255
|
-
function
|
|
256
|
-
let
|
|
308
|
+
// (74:8) {#each mediaDataList as media}
|
|
309
|
+
function create_each_block(ctx) {
|
|
310
|
+
let swiperslide;
|
|
311
|
+
let current;
|
|
312
|
+
|
|
313
|
+
swiperslide = new SwiperSlide({
|
|
314
|
+
props: {
|
|
315
|
+
$$slots: { default: [create_default_slot_1] },
|
|
316
|
+
$$scope: { ctx }
|
|
317
|
+
}
|
|
318
|
+
});
|
|
257
319
|
|
|
258
320
|
return {
|
|
259
321
|
c() {
|
|
260
|
-
|
|
261
|
-
attr(div, "class", "video-icon svelte-129jnm");
|
|
262
|
-
set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
322
|
+
create_component(swiperslide.$$.fragment);
|
|
263
323
|
},
|
|
264
324
|
m(target, anchor) {
|
|
265
|
-
|
|
325
|
+
mount_component(swiperslide, target, anchor);
|
|
326
|
+
current = true;
|
|
327
|
+
},
|
|
328
|
+
p(ctx, dirty) {
|
|
329
|
+
const swiperslide_changes = {};
|
|
330
|
+
|
|
331
|
+
if (dirty & /*$$scope, mediaDataList, objectFit*/ 131392) {
|
|
332
|
+
swiperslide_changes.$$scope = { dirty, ctx };
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
swiperslide.$set(swiperslide_changes);
|
|
336
|
+
},
|
|
337
|
+
i(local) {
|
|
338
|
+
if (current) return;
|
|
339
|
+
transition_in(swiperslide.$$.fragment, local);
|
|
340
|
+
current = true;
|
|
341
|
+
},
|
|
342
|
+
o(local) {
|
|
343
|
+
transition_out(swiperslide.$$.fragment, local);
|
|
344
|
+
current = false;
|
|
266
345
|
},
|
|
267
|
-
p: noop,
|
|
268
346
|
d(detaching) {
|
|
269
|
-
|
|
347
|
+
destroy_component(swiperslide, detaching);
|
|
270
348
|
}
|
|
271
349
|
};
|
|
272
350
|
}
|
|
273
351
|
|
|
274
|
-
// (
|
|
275
|
-
function
|
|
276
|
-
let
|
|
277
|
-
let
|
|
278
|
-
let
|
|
279
|
-
let
|
|
352
|
+
// (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() }} >
|
|
353
|
+
function create_default_slot(ctx) {
|
|
354
|
+
let each_1_anchor;
|
|
355
|
+
let current;
|
|
356
|
+
let each_value = /*mediaDataList*/ ctx[8];
|
|
357
|
+
let each_blocks = [];
|
|
280
358
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
if (/*media*/ ctx[9].type === 'Video' && /*media*/ ctx[9].videoCoverUrl) return create_if_block_3;
|
|
284
|
-
if (/*media*/ ctx[9].type === 'Video' && !/*media*/ ctx[9].videoCoverUrl) return create_if_block_4;
|
|
359
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
360
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
285
361
|
}
|
|
286
362
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
363
|
+
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
364
|
+
each_blocks[i] = null;
|
|
365
|
+
});
|
|
290
366
|
|
|
291
367
|
return {
|
|
292
368
|
c() {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
attr(div, "class", "carousel-item svelte-129jnm");
|
|
299
|
-
attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[5]};`);
|
|
369
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
370
|
+
each_blocks[i].c();
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
each_1_anchor = empty();
|
|
300
374
|
},
|
|
301
375
|
m(target, anchor) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
376
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
377
|
+
each_blocks[i].m(target, anchor);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
insert(target, each_1_anchor, anchor);
|
|
381
|
+
current = true;
|
|
307
382
|
},
|
|
308
383
|
p(ctx, dirty) {
|
|
309
|
-
if (
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
if (if_block0) if_block0.d(1);
|
|
313
|
-
if_block0 = current_block_type && current_block_type(ctx);
|
|
384
|
+
if (dirty & /*mediaDataList, objectFit*/ 320) {
|
|
385
|
+
each_value = /*mediaDataList*/ ctx[8];
|
|
386
|
+
let i;
|
|
314
387
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
388
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
389
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
|
390
|
+
|
|
391
|
+
if (each_blocks[i]) {
|
|
392
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
393
|
+
transition_in(each_blocks[i], 1);
|
|
394
|
+
} else {
|
|
395
|
+
each_blocks[i] = create_each_block(child_ctx);
|
|
396
|
+
each_blocks[i].c();
|
|
397
|
+
transition_in(each_blocks[i], 1);
|
|
398
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
399
|
+
}
|
|
318
400
|
}
|
|
319
|
-
}
|
|
320
401
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
if_block1 = create_if_block_1(ctx);
|
|
326
|
-
if_block1.c();
|
|
327
|
-
if_block1.m(div, t1);
|
|
402
|
+
group_outros();
|
|
403
|
+
|
|
404
|
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
|
405
|
+
out(i);
|
|
328
406
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
if_block1 = null;
|
|
407
|
+
|
|
408
|
+
check_outros();
|
|
332
409
|
}
|
|
410
|
+
},
|
|
411
|
+
i(local) {
|
|
412
|
+
if (current) return;
|
|
333
413
|
|
|
334
|
-
|
|
335
|
-
|
|
414
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
415
|
+
transition_in(each_blocks[i]);
|
|
336
416
|
}
|
|
417
|
+
|
|
418
|
+
current = true;
|
|
337
419
|
},
|
|
338
|
-
|
|
339
|
-
|
|
420
|
+
o(local) {
|
|
421
|
+
each_blocks = each_blocks.filter(Boolean);
|
|
340
422
|
|
|
341
|
-
|
|
342
|
-
|
|
423
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
424
|
+
transition_out(each_blocks[i]);
|
|
343
425
|
}
|
|
344
426
|
|
|
345
|
-
|
|
427
|
+
current = false;
|
|
428
|
+
},
|
|
429
|
+
d(detaching) {
|
|
430
|
+
destroy_each(each_blocks, detaching);
|
|
431
|
+
if (detaching) detach(each_1_anchor);
|
|
346
432
|
}
|
|
347
433
|
};
|
|
348
434
|
}
|
|
349
435
|
|
|
350
436
|
function create_fragment(ctx) {
|
|
351
437
|
let if_block_anchor;
|
|
352
|
-
let
|
|
438
|
+
let current;
|
|
439
|
+
let if_block = /*unfolded*/ ctx[4] && create_if_block(ctx);
|
|
353
440
|
|
|
354
441
|
return {
|
|
355
442
|
c() {
|
|
@@ -359,13 +446,14 @@ function create_fragment(ctx) {
|
|
|
359
446
|
m(target, anchor) {
|
|
360
447
|
if (if_block) if_block.m(target, anchor);
|
|
361
448
|
insert(target, if_block_anchor, anchor);
|
|
449
|
+
current = true;
|
|
362
450
|
},
|
|
363
451
|
p(ctx, [dirty]) {
|
|
364
|
-
if (/*unfolded*/ ctx[
|
|
452
|
+
if (/*unfolded*/ ctx[4]) {
|
|
365
453
|
if (if_block) {
|
|
366
454
|
if_block.p(ctx, dirty);
|
|
367
455
|
|
|
368
|
-
if (dirty & /*unfolded*/
|
|
456
|
+
if (dirty & /*unfolded*/ 16) {
|
|
369
457
|
transition_in(if_block, 1);
|
|
370
458
|
}
|
|
371
459
|
} else {
|
|
@@ -385,10 +473,13 @@ function create_fragment(ctx) {
|
|
|
385
473
|
}
|
|
386
474
|
},
|
|
387
475
|
i(local) {
|
|
476
|
+
if (current) return;
|
|
388
477
|
transition_in(if_block);
|
|
478
|
+
current = true;
|
|
389
479
|
},
|
|
390
480
|
o(local) {
|
|
391
481
|
transition_out(if_block);
|
|
482
|
+
current = false;
|
|
392
483
|
},
|
|
393
484
|
d(detaching) {
|
|
394
485
|
if (if_block) if_block.d(detaching);
|
|
@@ -398,7 +489,9 @@ function create_fragment(ctx) {
|
|
|
398
489
|
}
|
|
399
490
|
|
|
400
491
|
function instance($$self, $$props, $$invalidate) {
|
|
492
|
+
let carouselEnabled;
|
|
401
493
|
let mediaDataList;
|
|
494
|
+
let autoplay;
|
|
402
495
|
let { mediaData } = $$props;
|
|
403
496
|
let { inDelay = 0 } = $$props;
|
|
404
497
|
let { outDelay = 0 } = $$props;
|
|
@@ -407,34 +500,93 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
407
500
|
let { animation = true } = $$props;
|
|
408
501
|
let { objectFit = 'cover' } = $$props;
|
|
409
502
|
let { enableCarousel = true } = $$props;
|
|
503
|
+
let { autoplayConfig = { autoplay: true, autoplayVideo: false } } = $$props;
|
|
504
|
+
let lastAutoPlayIndex = null;
|
|
505
|
+
|
|
506
|
+
const slideChange_handler = async event => {
|
|
507
|
+
if (!autoplay) return;
|
|
508
|
+
if (!autoplayConfig.autoplayVideo) return;
|
|
509
|
+
const swiper = event.detail[0];
|
|
510
|
+
if (!swiper) return;
|
|
511
|
+
const index = swiper.realIndex;
|
|
512
|
+
|
|
513
|
+
// 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]
|
|
514
|
+
if (index === lastAutoPlayIndex) return;
|
|
515
|
+
|
|
516
|
+
$$invalidate(9, lastAutoPlayIndex = index);
|
|
517
|
+
const media = mediaDataList[index];
|
|
518
|
+
if (!media) return;
|
|
519
|
+
if (media.type !== 'Video') return;
|
|
520
|
+
|
|
521
|
+
// 先暂停自动轮播
|
|
522
|
+
swiper.autoplay.stop();
|
|
523
|
+
|
|
524
|
+
// 播放视频
|
|
525
|
+
await new Promise(resolve => {
|
|
526
|
+
const video = swiper.slides[swiper.activeIndex]?.querySelector('video');
|
|
527
|
+
|
|
528
|
+
if (!video) {
|
|
529
|
+
resolve(noTypecheck(null));
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
video.play();
|
|
534
|
+
video.onerror = () => resolve(noTypecheck(null));
|
|
535
|
+
video.onended = () => resolve(noTypecheck(null));
|
|
536
|
+
|
|
537
|
+
video.onclick = () => {
|
|
538
|
+
video.pause();
|
|
539
|
+
resolve(noTypecheck(null));
|
|
540
|
+
};
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
// 恢复自动轮播
|
|
544
|
+
swiper.autoplay.start();
|
|
545
|
+
};
|
|
410
546
|
|
|
411
547
|
$$self.$$set = $$props => {
|
|
412
|
-
if ('mediaData' in $$props) $$invalidate(
|
|
413
|
-
if ('inDelay' in $$props) $$invalidate(
|
|
414
|
-
if ('outDelay' in $$props) $$invalidate(
|
|
415
|
-
if ('duration' in $$props) $$invalidate(
|
|
416
|
-
if ('unfolded' in $$props) $$invalidate(
|
|
417
|
-
if ('animation' in $$props) $$invalidate(
|
|
418
|
-
if ('objectFit' in $$props) $$invalidate(
|
|
419
|
-
if ('enableCarousel' in $$props) $$invalidate(
|
|
548
|
+
if ('mediaData' in $$props) $$invalidate(0, mediaData = $$props.mediaData);
|
|
549
|
+
if ('inDelay' in $$props) $$invalidate(1, inDelay = $$props.inDelay);
|
|
550
|
+
if ('outDelay' in $$props) $$invalidate(2, outDelay = $$props.outDelay);
|
|
551
|
+
if ('duration' in $$props) $$invalidate(3, duration = $$props.duration);
|
|
552
|
+
if ('unfolded' in $$props) $$invalidate(4, unfolded = $$props.unfolded);
|
|
553
|
+
if ('animation' in $$props) $$invalidate(5, animation = $$props.animation);
|
|
554
|
+
if ('objectFit' in $$props) $$invalidate(6, objectFit = $$props.objectFit);
|
|
555
|
+
if ('enableCarousel' in $$props) $$invalidate(12, enableCarousel = $$props.enableCarousel);
|
|
556
|
+
if ('autoplayConfig' in $$props) $$invalidate(7, autoplayConfig = $$props.autoplayConfig);
|
|
420
557
|
};
|
|
421
558
|
|
|
422
559
|
$$self.$$.update = () => {
|
|
423
|
-
if ($$self.$$.dirty & /*enableCarousel, mediaData*/
|
|
424
|
-
$: $$invalidate(
|
|
560
|
+
if ($$self.$$.dirty & /*enableCarousel, mediaData*/ 4097) {
|
|
561
|
+
$: $$invalidate(11, carouselEnabled = enableCarousel && (mediaData === null || mediaData === void 0
|
|
562
|
+
? void 0
|
|
563
|
+
: mediaData.length) > 1);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
if ($$self.$$.dirty & /*mediaData*/ 1) {
|
|
567
|
+
$: $$invalidate(8, mediaDataList = mediaData);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
if ($$self.$$.dirty & /*mediaDataList, autoplayConfig*/ 384) {
|
|
571
|
+
$: $$invalidate(10, autoplay = mediaDataList.length > 1 && autoplayConfig.autoplay);
|
|
425
572
|
}
|
|
426
573
|
};
|
|
427
574
|
|
|
428
575
|
return [
|
|
576
|
+
mediaData,
|
|
429
577
|
inDelay,
|
|
430
578
|
outDelay,
|
|
431
579
|
duration,
|
|
432
580
|
unfolded,
|
|
433
581
|
animation,
|
|
434
582
|
objectFit,
|
|
583
|
+
autoplayConfig,
|
|
435
584
|
mediaDataList,
|
|
436
|
-
|
|
437
|
-
|
|
585
|
+
lastAutoPlayIndex,
|
|
586
|
+
autoplay,
|
|
587
|
+
carouselEnabled,
|
|
588
|
+
enableCarousel,
|
|
589
|
+
slideChange_handler
|
|
438
590
|
];
|
|
439
591
|
}
|
|
440
592
|
|
|
@@ -449,14 +601,15 @@ class Component extends SvelteComponent {
|
|
|
449
601
|
create_fragment,
|
|
450
602
|
safe_not_equal,
|
|
451
603
|
{
|
|
452
|
-
mediaData:
|
|
453
|
-
inDelay:
|
|
454
|
-
outDelay:
|
|
455
|
-
duration:
|
|
456
|
-
unfolded:
|
|
457
|
-
animation:
|
|
458
|
-
objectFit:
|
|
459
|
-
enableCarousel:
|
|
604
|
+
mediaData: 0,
|
|
605
|
+
inDelay: 1,
|
|
606
|
+
outDelay: 2,
|
|
607
|
+
duration: 3,
|
|
608
|
+
unfolded: 4,
|
|
609
|
+
animation: 5,
|
|
610
|
+
objectFit: 6,
|
|
611
|
+
enableCarousel: 12,
|
|
612
|
+
autoplayConfig: 7
|
|
460
613
|
},
|
|
461
614
|
add_css
|
|
462
615
|
);
|