@realsee/dnalogel 2.2.5 → 2.2.7
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/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.js +849 -887
- package/dist/index.umd.js +17 -17
- package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/docs/assets/main.js +1 -1
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
- package/libs/CSS3DRenderPlugin/Controller.js +30 -22
- package/libs/CSS3DRenderPlugin/index.js +12 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +52 -41
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +3 -2
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +52 -44
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
- package/libs/ModelTVVideoPlugin/index.js +17 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.js +48 -27
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +40 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +25 -13
- package/libs/PanoCompassPlugin/index.js +23 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +41 -42
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
- package/libs/PanoSpatialTagPlugin/index.js +20 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +92 -100
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +13 -15
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +26 -28
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +12 -13
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +24 -32
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +51 -83
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +48 -59
- package/libs/PanoTagPlugin/Components/Tag/index.js +75 -104
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +82 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +24 -24
- package/libs/floorplan/Components/Compass.js +3 -3
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +32 -32
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +54 -54
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +15 -15
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +38 -38
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +71 -80
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +34 -34
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
- package/libs/vendor/svelte/internal/index.js +151 -152
- package/package.json +17 -18
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import * as a from "three";
|
|
2
2
|
import { Subscribe as we, Five as ye } from "@realsee/five";
|
|
3
3
|
import { CSS3DRenderPlugin as Te } from "../CSS3DRenderPlugin/index.js";
|
|
4
|
-
import Me from "./Components/origins.js";
|
|
5
|
-
import Pe from "./Components/tag.js";
|
|
4
|
+
import { Origins as Me } from "./Components/origins.js";
|
|
5
|
+
import { Tag as Pe } from "./Components/tag.js";
|
|
6
6
|
import { pluginStyle as xe } from "./style.js";
|
|
7
7
|
import { render as Ee } from "../shared-utils/tinyEJSrender.js";
|
|
8
|
-
|
|
8
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
10
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
11
|
+
import "../shared-utils/Subscribe.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
16
|
+
import "../vendor/svelte/internal/index.js";
|
|
17
|
+
import "./store.js";
|
|
18
|
+
import "../vendor/svelte/store/index.js";
|
|
19
|
+
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Ue = (n, s) => {
|
|
9
20
|
var k, z, q, B, G, J, K, Q;
|
|
10
21
|
let j = s == null ? void 0 : s.container, y = 1.4;
|
|
11
|
-
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100,
|
|
22
|
+
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, te = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2, u = (K = s == null ? void 0 : s.maxDistance) != null ? K : 3.5, C = Te(n), S = document.createElement("div");
|
|
12
23
|
S.classList.add("PanoSpatialTagPlugin"), Object.assign(S.style, xe);
|
|
13
24
|
const V = new we();
|
|
14
25
|
let Z = new Image();
|
|
@@ -33,28 +44,28 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
33
44
|
}, H = (o, r) => {
|
|
34
45
|
if (e.tags.length === 0)
|
|
35
46
|
return;
|
|
36
|
-
const p = r.longitude -
|
|
37
|
-
|
|
38
|
-
const
|
|
47
|
+
const p = r.longitude - n.state.longitude, t = n.camera.clone();
|
|
48
|
+
t.position.copy(r.offset), t.rotateOnWorldAxis(new a.Vector3(0, 1, 0), p), t.updateProjectionMatrix(), t.updateMatrixWorld(!0);
|
|
49
|
+
const g = new a.Frustum(), P = new a.Matrix4();
|
|
39
50
|
P.multiplyMatrices(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
),
|
|
43
|
-
const $ =
|
|
44
|
-
if ($ < A || $ > u || !
|
|
51
|
+
t.projectionMatrix,
|
|
52
|
+
t.matrixWorldInverse
|
|
53
|
+
), g.setFromProjectionMatrix(P), e.tags.forEach((i) => {
|
|
54
|
+
const $ = t.position.clone().setY(y).distanceTo(i.position);
|
|
55
|
+
if ($ < A || $ > u || !g.containsPoint(i.position))
|
|
45
56
|
return i.destroying = !0;
|
|
46
|
-
const x = i.position.clone().sub(
|
|
57
|
+
const x = i.position.clone().sub(t.position).setY(0);
|
|
47
58
|
if (x.angleTo(i.normal) > Math.PI / 2 - I && x.angleTo(i.normal) < Math.PI / 2 + I)
|
|
48
59
|
return i.destroying = !0;
|
|
49
60
|
}), e.tags.forEach((i) => {
|
|
50
61
|
i.destroying ? i.app.$set({
|
|
51
|
-
contentZoom: 0.1 +
|
|
52
|
-
lineWidthZoom: 0.38 * (0.01 +
|
|
62
|
+
contentZoom: 0.1 + t.position.distanceTo(i.position) / u,
|
|
63
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / u),
|
|
53
64
|
destroying: i.destroying
|
|
54
65
|
}) : i.app.$set({
|
|
55
|
-
lineWidthZoom: 0.38 * (0.01 +
|
|
56
|
-
lineHeightZoom: 0.4 + (
|
|
57
|
-
contentZoom: 0.1 +
|
|
66
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / u),
|
|
67
|
+
lineHeightZoom: 0.4 + (t.position.distanceTo(i.position) - A) / u * 0.6,
|
|
68
|
+
contentZoom: 0.1 + t.position.distanceTo(i.position) / u
|
|
58
69
|
});
|
|
59
70
|
}), setTimeout(() => {
|
|
60
71
|
e.tags.forEach((i) => {
|
|
@@ -68,45 +79,45 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
68
79
|
}, T = () => {
|
|
69
80
|
if (e.forbidden || !e.enabled)
|
|
70
81
|
return;
|
|
71
|
-
const o =
|
|
82
|
+
const o = n.camera, r = o.getWorldDirection(new a.Vector3());
|
|
72
83
|
e.origins = e.tags.map((p) => {
|
|
73
|
-
const
|
|
84
|
+
const t = p.position.clone().project(o), g = p.position.clone().sub(o.position).setY(0).angleTo(r.setY(0)) < Math.PI / 2;
|
|
74
85
|
return {
|
|
75
86
|
id: p.id,
|
|
76
|
-
front:
|
|
77
|
-
left: (
|
|
78
|
-
top: (-
|
|
87
|
+
front: g,
|
|
88
|
+
left: (t.x + 1) / 2 * 100,
|
|
89
|
+
top: (-t.y + 1) / 2 * 100,
|
|
79
90
|
destroying: p.destroying
|
|
80
91
|
};
|
|
81
92
|
}), Y.$set({ origins: e.origins });
|
|
82
93
|
}, M = () => {
|
|
83
94
|
e.forbidden || !e.enabled || (e.timeoutId && clearTimeout(e.timeoutId), e.timeoutId = setTimeout(() => {
|
|
84
95
|
e.timeoutId = void 0;
|
|
85
|
-
const o =
|
|
96
|
+
const o = ne();
|
|
86
97
|
o.length && (e.tags = e.tags.concat(o), T());
|
|
87
98
|
}, ee));
|
|
88
|
-
},
|
|
89
|
-
const { clientWidth: o, clientHeight: r } =
|
|
99
|
+
}, ne = () => {
|
|
100
|
+
const { clientWidth: o, clientHeight: r } = n.getElement(), p = [], t = n.camera, g = new a.Frustum(), P = new a.Matrix4(), i = t.getWorldDirection(new a.Vector3());
|
|
90
101
|
P.multiplyMatrices(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
),
|
|
102
|
+
t.projectionMatrix,
|
|
103
|
+
t.matrixWorldInverse
|
|
104
|
+
), g.setFromProjectionMatrix(P);
|
|
94
105
|
const $ = e.tags.filter(
|
|
95
|
-
(d) =>
|
|
106
|
+
(d) => g.containsPoint(d.position) && !d.destroying
|
|
96
107
|
).length, x = e.points.reduce((d, f) => {
|
|
97
108
|
if (e.tags.find((l) => f.id === l.id && !l.destroying))
|
|
98
109
|
return d;
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
110
|
+
const m = t.position.clone().setY(y).distanceTo(f.position);
|
|
111
|
+
if (m < A || m > u || !g.containsPoint(f.position))
|
|
101
112
|
return d;
|
|
102
|
-
const E = f.position.clone().sub(
|
|
113
|
+
const E = f.position.clone().sub(t.position).setY(0);
|
|
103
114
|
if (E.angleTo(f.normal) > Math.PI / 2 - I && E.angleTo(f.normal) < Math.PI / 2 + I)
|
|
104
115
|
return d;
|
|
105
|
-
const w = f.position.clone().project(
|
|
116
|
+
const w = f.position.clone().project(t);
|
|
106
117
|
if (!e.tags.every((l) => {
|
|
107
|
-
if (l.position.clone().sub(
|
|
118
|
+
if (l.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
108
119
|
return !0;
|
|
109
|
-
const b = l.position.clone().project(
|
|
120
|
+
const b = l.position.clone().project(t);
|
|
110
121
|
return Math.sqrt(
|
|
111
122
|
Math.pow((w.x - b.x) / 2 * o, 2) + Math.pow((w.y - b.y) / 2 * r, 2)
|
|
112
123
|
) > L;
|
|
@@ -118,7 +129,7 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
118
129
|
normal: f.normal,
|
|
119
130
|
replacement: f.replacement,
|
|
120
131
|
weight: f.weight,
|
|
121
|
-
distance:
|
|
132
|
+
distance: m
|
|
122
133
|
};
|
|
123
134
|
let c;
|
|
124
135
|
for (let l = 0, b = d.length; l < b; l++) {
|
|
@@ -135,44 +146,44 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
135
146
|
return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
|
|
136
147
|
}, []);
|
|
137
148
|
for (let d = 0, f = x.length; d < f && !($ + p.length >= oe); d++) {
|
|
138
|
-
const
|
|
139
|
-
if (p.find((c) =>
|
|
149
|
+
const m = x[d];
|
|
150
|
+
if (p.find((c) => m.id === c.id))
|
|
140
151
|
continue;
|
|
141
|
-
const E =
|
|
152
|
+
const E = m.position.clone().project(t);
|
|
142
153
|
if (!e.tags.concat(p).every((c) => {
|
|
143
|
-
if (c.position.clone().sub(
|
|
154
|
+
if (c.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
144
155
|
return !0;
|
|
145
|
-
const l = c.position.clone().project(
|
|
156
|
+
const l = c.position.clone().project(t);
|
|
146
157
|
return Math.sqrt(
|
|
147
158
|
Math.pow((E.x - l.x) / 2 * o, 2) + Math.pow((E.y - l.y) / 2 * r, 2)
|
|
148
159
|
) > L;
|
|
149
160
|
}))
|
|
150
161
|
continue;
|
|
151
162
|
const w = new a.Raycaster(
|
|
152
|
-
|
|
153
|
-
|
|
163
|
+
t.position.clone().setY(y),
|
|
164
|
+
m.position.clone().sub(t.position.clone().setY(y)).normalize(),
|
|
154
165
|
0,
|
|
155
|
-
|
|
156
|
-
), [h] = e.intersectObjects ? w.intersectObjects(e.intersectObjects, !0) :
|
|
157
|
-
if (!!h &&
|
|
158
|
-
const { position: c, normal: l, id: b, replacement: O } =
|
|
166
|
+
m.distance + v
|
|
167
|
+
), [h] = e.intersectObjects ? w.intersectObjects(e.intersectObjects, !0) : n.model.bvhs.loaded ? n.model.intersectRaycaster(w) : w.intersectObjects(n.model.children, !0);
|
|
168
|
+
if (!!h && m.distance - h.distance < v) {
|
|
169
|
+
const { position: c, normal: l, id: b, replacement: O } = m, fe = new a.Plane().setFromNormalAndCoplanarPoint(l, c), X = c.clone().sub(t.position).cross(new a.Vector3(0, 1, 0)).setLength(D), ue = [
|
|
159
170
|
c.clone(),
|
|
160
171
|
c.clone().add(X),
|
|
161
172
|
c.clone().add(new a.Vector3(0, D, 0)).add(X),
|
|
162
173
|
c.clone().add(new a.Vector3(0, D, 0))
|
|
163
|
-
].map((be) => fe.projectPoint(be, new a.Vector3())), { container:
|
|
164
|
-
target:
|
|
174
|
+
].map((be) => fe.projectPoint(be, new a.Vector3())), { container: me, dispose: ge } = C.create3DDomContainer(ue) || {}, he = new Pe({
|
|
175
|
+
target: me,
|
|
165
176
|
props: {
|
|
166
177
|
id: b,
|
|
167
178
|
content: e.render(e.template, O),
|
|
168
|
-
lineWidthZoom: 0.38 * (0.01 +
|
|
169
|
-
lineHeightZoom: 0.4 + (
|
|
170
|
-
contentZoom: 0.1 +
|
|
171
|
-
upsideDown: c.y >
|
|
179
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(c) / u),
|
|
180
|
+
lineHeightZoom: 0.4 + (t.position.distanceTo(c) - A) / u * 0.6,
|
|
181
|
+
contentZoom: 0.1 + t.position.distanceTo(c) / u,
|
|
182
|
+
upsideDown: c.y > te,
|
|
172
183
|
folded: e.folded,
|
|
173
184
|
events: e.events,
|
|
174
185
|
hooks: V,
|
|
175
|
-
dispose:
|
|
186
|
+
dispose: ge
|
|
176
187
|
}
|
|
177
188
|
});
|
|
178
189
|
p.push({
|
|
@@ -186,13 +197,13 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
186
197
|
return p;
|
|
187
198
|
}, ie = (o) => {
|
|
188
199
|
e.points = o.points.map((r) => {
|
|
189
|
-
var p,
|
|
200
|
+
var p, t;
|
|
190
201
|
return {
|
|
191
202
|
id: r.id,
|
|
192
203
|
position: new a.Vector3().fromArray(r.position),
|
|
193
204
|
normal: new a.Vector3().fromArray(r.normal),
|
|
194
205
|
replacement: (p = r.replacement) != null ? p : {},
|
|
195
|
-
weight: (
|
|
206
|
+
weight: (t = r.weight) != null ? t : -1
|
|
196
207
|
};
|
|
197
208
|
}), o.render && (e.render = o.render), o.template && (e.template = o.template), o.events && (e.events = o.events), o.enabled === !1 && (e.enabled = o.enabled), o.folded === !0 && (e.folded = o.folded);
|
|
198
209
|
}, se = (o) => {
|
|
@@ -220,15 +231,15 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
220
231
|
r.id === o && r.app.$set({ folded: !0 });
|
|
221
232
|
});
|
|
222
233
|
}, U = () => {
|
|
223
|
-
|
|
234
|
+
n.once("renderFrame", T);
|
|
224
235
|
}, R = () => {
|
|
225
|
-
j || (j =
|
|
236
|
+
j || (j = n.getElement().parentElement), j && j.appendChild(S), e.forbidden = !1, y = n.model.bounding.getCenter(new a.Vector3()).y, M(), n.on("panoWillArrive", H), n.on("panoArrived", F), n.on("modeChange", N), n.on("cameraUpdate", _);
|
|
226
237
|
}, W = () => {
|
|
227
238
|
Z = null, C.disposeAll(), Y.$destroy(), e.tags.forEach((o) => {
|
|
228
239
|
o.app.$destroy(), o = null;
|
|
229
|
-
}), e.origins = [], e.tags = [],
|
|
240
|
+
}), e.origins = [], e.tags = [], n.off("modelLoaded", R), n.off("renderFrame", T), n.off("panoWillArrive", H), n.off("panoArrived", F), n.off("modeChange", N), n.off("cameraUpdate", _), n.off("dispose", W), window.removeEventListener("resize", U, !1);
|
|
230
241
|
};
|
|
231
|
-
return window.addEventListener("resize", U, !1), (Q =
|
|
242
|
+
return window.addEventListener("resize", U, !1), (Q = n == null ? void 0 : n.model) != null && Q.loaded ? R() : n.once("modelLoaded", R), n.on("dispose", W), {
|
|
232
243
|
load: ie,
|
|
233
244
|
setIntersectObjects: se,
|
|
234
245
|
unfoldAll: de,
|
|
@@ -242,5 +253,6 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
242
253
|
};
|
|
243
254
|
};
|
|
244
255
|
export {
|
|
245
|
-
|
|
256
|
+
Ue as PanoSpatialTagPlugin,
|
|
257
|
+
Ue as default
|
|
246
258
|
};
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { PanoSpatialTagPlugin as j, PanoSpatialTagPlugin as k } from "./Plugin.js";
|
|
1
3
|
import "three";
|
|
2
4
|
import "@realsee/five";
|
|
5
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
6
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
7
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
3
8
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
|
+
import "../shared-utils/Subscribe.js";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
14
|
+
import "./Components/origins.js";
|
|
4
15
|
import "../vendor/svelte/internal/index.js";
|
|
16
|
+
import "./store.js";
|
|
17
|
+
import "../vendor/svelte/store/index.js";
|
|
18
|
+
import "./Components/tag.js";
|
|
19
|
+
import "./style.js";
|
|
20
|
+
import "../shared-utils/tinyEJSrender.js";
|
|
21
|
+
export {
|
|
22
|
+
j as PanoSpatialTagPlugin,
|
|
23
|
+
k as default
|
|
24
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d, transition_out as _, check_outros as
|
|
1
|
+
import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d, group_outros as S, transition_out as _, check_outros as z, detach as k, element as v, create_component as C, space as N, attr as c, set_style as O, mount_component as j, append as q, listen as B, add_render_callback as E, create_in_transition as F, create_out_transition as G, destroy_component as H, bubble as J } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { fade as w } from "../../../vendor/svelte/transition/index.js";
|
|
3
3
|
import { Image_Arrow as K } from "../../Assets/Icon.js";
|
|
4
4
|
import { cubicInOut as b } from "../../../vendor/svelte/easing/index.js";
|
|
5
|
-
import L from "./Shadow.js";
|
|
5
|
+
import { Shadow as L } from "./Shadow.js";
|
|
6
6
|
function M(i) {
|
|
7
7
|
I(i, "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)}");
|
|
8
8
|
}
|
|
@@ -16,17 +16,17 @@ function h(i) {
|
|
|
16
16
|
}
|
|
17
17
|
}), {
|
|
18
18
|
c() {
|
|
19
|
-
r = v("div"),
|
|
19
|
+
r = v("div"), C(o.$$.fragment), e = N(), t = v("div"), c(t, "class", l = "arrow " + i[0] + " svelte-1ogmlqq"), O(t, "background-image", "url(" + K + ")"), c(r, "class", "arrow-wrapper svelte-1ogmlqq");
|
|
20
20
|
},
|
|
21
21
|
m(a, m) {
|
|
22
|
-
y(a, r, m),
|
|
22
|
+
y(a, r, m), j(o, r, null), q(r, e), q(r, t), f = !0, n || (g = B(t, "click", i[5]), n = !0);
|
|
23
23
|
},
|
|
24
24
|
p(a, m) {
|
|
25
25
|
i = a, (!f || m & 1 && l !== (l = "arrow " + i[0] + " svelte-1ogmlqq")) && c(t, "class", l);
|
|
26
26
|
},
|
|
27
27
|
i(a) {
|
|
28
|
-
f || (d(o.$$.fragment, a), a &&
|
|
29
|
-
s && s.end(1), u =
|
|
28
|
+
f || (d(o.$$.fragment, a), a && E(() => {
|
|
29
|
+
s && s.end(1), u = F(t, w, {
|
|
30
30
|
duration: i[2],
|
|
31
31
|
delay: i[3],
|
|
32
32
|
easing: b
|
|
@@ -34,14 +34,14 @@ function h(i) {
|
|
|
34
34
|
}), f = !0);
|
|
35
35
|
},
|
|
36
36
|
o(a) {
|
|
37
|
-
_(o.$$.fragment, a), u && u.invalidate(), a && (s =
|
|
37
|
+
_(o.$$.fragment, a), u && u.invalidate(), a && (s = G(t, w, {
|
|
38
38
|
duration: i[2],
|
|
39
39
|
delay: i[4],
|
|
40
40
|
easing: b
|
|
41
41
|
})), f = !1;
|
|
42
42
|
},
|
|
43
43
|
d(a) {
|
|
44
|
-
a && k(r),
|
|
44
|
+
a && k(r), H(o), a && s && s.end(), n = !1, g();
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -55,9 +55,9 @@ function P(i) {
|
|
|
55
55
|
e && e.m(t, l), y(t, r, l), o = !0;
|
|
56
56
|
},
|
|
57
57
|
p(t, [l]) {
|
|
58
|
-
t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (
|
|
58
|
+
t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (S(), _(e, 1, 1, () => {
|
|
59
59
|
e = null;
|
|
60
|
-
}),
|
|
60
|
+
}), z());
|
|
61
61
|
},
|
|
62
62
|
i(t) {
|
|
63
63
|
o || (d(e), o = !0);
|
|
@@ -99,5 +99,5 @@ class Y extends p {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
export {
|
|
102
|
-
Y as
|
|
102
|
+
Y as Arrow
|
|
103
103
|
};
|
|
@@ -9,15 +9,15 @@ var F = (t, e, i) => e in t ? N(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
P.call(e, i) && F(t, i, e[i]);
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { SvelteComponent as T, init as U, safe_not_equal as j, append_styles as G, empty as H, insert as q, transition_in as v, transition_out as z, check_outros as
|
|
12
|
+
import { SvelteComponent as T, init as U, safe_not_equal as j, append_styles as G, empty as H, insert as q, transition_in as v, group_outros as J, transition_out as z, check_outros as K, detach as R, getContext as A, element as b, create_component as Q, space as I, attr as h, src_url_equal as D, toggle_class as M, mount_component as V, append as k, listen as C, stop_propagation as W, add_render_callback as X, create_in_transition as Y, create_out_transition as Z, destroy_component as x, run_all as $, binding_callbacks as ee } from "../../../vendor/svelte/internal/index.js";
|
|
13
13
|
import { fade as S } from "../../../vendor/svelte/transition/index.js";
|
|
14
14
|
import { cubicInOut as B } from "../../../vendor/svelte/easing/index.js";
|
|
15
|
-
import te from "./Shadow.js";
|
|
15
|
+
import { Shadow as te } from "./Shadow.js";
|
|
16
16
|
function ie(t) {
|
|
17
17
|
G(t, "svelte-1ku3wt4", `.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`);
|
|
18
18
|
}
|
|
19
19
|
function L(t) {
|
|
20
|
-
let e, i,
|
|
20
|
+
let e, i, a, o, r, u, f, d = !0, c, g, n, m, w;
|
|
21
21
|
return i = new te({
|
|
22
22
|
props: {
|
|
23
23
|
center: !0,
|
|
@@ -26,113 +26,113 @@ function L(t) {
|
|
|
26
26
|
}
|
|
27
27
|
}), {
|
|
28
28
|
c() {
|
|
29
|
-
e = b("div"),
|
|
29
|
+
e = b("div"), Q(i.$$.fragment), a = I(), o = b("div"), r = I(), u = b("audio"), h(o, "class", "audio-icon svelte-1ku3wt4"), u.controls = !1, h(u, "playsinline", ""), D(u.src, f = t[3]) || h(u, "src", f), h(e, "class", "audio svelte-1ku3wt4"), M(e, "paused", t[6]);
|
|
30
30
|
},
|
|
31
31
|
m(s, _) {
|
|
32
|
-
q(s, e, _),
|
|
32
|
+
q(s, e, _), V(i, e, null), k(e, a), k(e, o), k(e, r), k(e, u), t[9](u), n = !0, m || (w = [
|
|
33
33
|
C(u, "play", t[10]),
|
|
34
34
|
C(u, "pause", t[10]),
|
|
35
|
-
C(e, "click",
|
|
35
|
+
C(e, "click", W(t[7]))
|
|
36
36
|
], m = !0);
|
|
37
37
|
},
|
|
38
38
|
p(s, _) {
|
|
39
|
-
t = s, (!
|
|
39
|
+
t = s, (!n || _ & 8 && !D(u.src, f = t[3])) && h(u, "src", f), _ & 64 && d !== (d = t[6]) && u[d ? "pause" : "play"](), (!n || _ & 64) && M(e, "paused", t[6]);
|
|
40
40
|
},
|
|
41
41
|
i(s) {
|
|
42
|
-
|
|
43
|
-
g && g.end(1), c =
|
|
42
|
+
n || (v(i.$$.fragment, s), s && X(() => {
|
|
43
|
+
g && g.end(1), c = Y(e, S, {
|
|
44
44
|
duration: t[2],
|
|
45
45
|
delay: t[0],
|
|
46
46
|
easing: B
|
|
47
47
|
}), c.start();
|
|
48
|
-
}),
|
|
48
|
+
}), n = !0);
|
|
49
49
|
},
|
|
50
50
|
o(s) {
|
|
51
|
-
z(i.$$.fragment, s), c && c.invalidate(), s && (g =
|
|
51
|
+
z(i.$$.fragment, s), c && c.invalidate(), s && (g = Z(e, S, {
|
|
52
52
|
duration: t[2],
|
|
53
53
|
delay: t[1],
|
|
54
54
|
easing: B
|
|
55
|
-
})),
|
|
55
|
+
})), n = !1;
|
|
56
56
|
},
|
|
57
57
|
d(s) {
|
|
58
|
-
s && R(e),
|
|
58
|
+
s && R(e), x(i), t[9](null), s && g && g.end(), m = !1, $(w);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
let e, i,
|
|
62
|
+
function ne(t) {
|
|
63
|
+
let e, i, a = t[4] && L(t);
|
|
64
64
|
return {
|
|
65
65
|
c() {
|
|
66
|
-
|
|
66
|
+
a && a.c(), e = H();
|
|
67
67
|
},
|
|
68
68
|
m(o, r) {
|
|
69
|
-
|
|
69
|
+
a && a.m(o, r), q(o, e, r), i = !0;
|
|
70
70
|
},
|
|
71
71
|
p(o, [r]) {
|
|
72
|
-
o[4] ?
|
|
73
|
-
|
|
74
|
-
}),
|
|
72
|
+
o[4] ? a ? (a.p(o, r), r & 16 && v(a, 1)) : (a = L(o), a.c(), v(a, 1), a.m(e.parentNode, e)) : a && (J(), z(a, 1, 1, () => {
|
|
73
|
+
a = null;
|
|
74
|
+
}), K());
|
|
75
75
|
},
|
|
76
76
|
i(o) {
|
|
77
|
-
i || (v(
|
|
77
|
+
i || (v(a), i = !0);
|
|
78
78
|
},
|
|
79
79
|
o(o) {
|
|
80
|
-
z(
|
|
80
|
+
z(a), i = !1;
|
|
81
81
|
},
|
|
82
82
|
d(o) {
|
|
83
|
-
|
|
83
|
+
a && a.d(o), o && R(e);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
let { inDelay:
|
|
87
|
+
function ae(t, e, i) {
|
|
88
|
+
let { inDelay: a = 0 } = e, { outDelay: o = 0 } = e, { duration: r = 0 } = e, { url: u } = e, { unfolded: f } = e, { hooksInfo: d = {} } = e;
|
|
89
89
|
const c = A("hooks"), g = A("mediaStore");
|
|
90
|
-
let
|
|
90
|
+
let n, m = !0;
|
|
91
91
|
g.subscribe(({ currentMediaUrl: l }) => {
|
|
92
|
-
l !== u && (
|
|
92
|
+
l !== u && (n == null || n.pause());
|
|
93
93
|
});
|
|
94
94
|
function w(l) {
|
|
95
|
-
g.set({ currentMediaUrl: u }),
|
|
95
|
+
g.set({ currentMediaUrl: u }), n && (c.emit("click", p({
|
|
96
96
|
event: l,
|
|
97
97
|
target: "AudioTagPlayIcon",
|
|
98
|
-
audioInstance:
|
|
99
|
-
}, d)),
|
|
98
|
+
audioInstance: n
|
|
99
|
+
}, d)), n.paused ? n.play() : n.pause(), i(
|
|
100
100
|
5,
|
|
101
|
-
|
|
101
|
+
n.onplay = (y) => c.emit("playStateChange", p({
|
|
102
102
|
event: y,
|
|
103
103
|
state: "playing",
|
|
104
|
-
mediaInstance:
|
|
104
|
+
mediaInstance: n
|
|
105
105
|
}, d)),
|
|
106
|
-
|
|
106
|
+
n
|
|
107
107
|
), i(
|
|
108
108
|
5,
|
|
109
|
-
|
|
109
|
+
n.onpause = (y) => c.emit("playStateChange", p({
|
|
110
110
|
event: y,
|
|
111
111
|
state: "paused",
|
|
112
|
-
mediaInstance:
|
|
112
|
+
mediaInstance: n
|
|
113
113
|
}, d)),
|
|
114
|
-
|
|
114
|
+
n
|
|
115
115
|
));
|
|
116
116
|
}
|
|
117
117
|
function s(l) {
|
|
118
118
|
ee[l ? "unshift" : "push"](() => {
|
|
119
|
-
|
|
119
|
+
n = l, i(5, n);
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
function _() {
|
|
123
123
|
m = this.paused, i(6, m);
|
|
124
124
|
}
|
|
125
125
|
return t.$$set = (l) => {
|
|
126
|
-
"inDelay" in l && i(0,
|
|
126
|
+
"inDelay" in l && i(0, a = l.inDelay), "outDelay" in l && i(1, o = l.outDelay), "duration" in l && i(2, r = l.duration), "url" in l && i(3, u = l.url), "unfolded" in l && i(4, f = l.unfolded), "hooksInfo" in l && i(8, d = l.hooksInfo);
|
|
127
127
|
}, t.$$.update = () => {
|
|
128
|
-
t.$$.dirty & 48 && (f ||
|
|
128
|
+
t.$$.dirty & 48 && (f || n == null || n.pause());
|
|
129
129
|
}, [
|
|
130
|
-
|
|
130
|
+
a,
|
|
131
131
|
o,
|
|
132
132
|
r,
|
|
133
133
|
u,
|
|
134
134
|
f,
|
|
135
|
-
|
|
135
|
+
n,
|
|
136
136
|
m,
|
|
137
137
|
w,
|
|
138
138
|
d,
|
|
@@ -145,8 +145,8 @@ class de extends T {
|
|
|
145
145
|
super(), U(
|
|
146
146
|
this,
|
|
147
147
|
e,
|
|
148
|
-
ne,
|
|
149
148
|
ae,
|
|
149
|
+
ne,
|
|
150
150
|
j,
|
|
151
151
|
{
|
|
152
152
|
inDelay: 0,
|
|
@@ -161,5 +161,5 @@ class de extends T {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
export {
|
|
164
|
-
de as
|
|
164
|
+
de as Audio
|
|
165
165
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as D, init as g, safe_not_equal as v, append_styles as w, svg_element as s, attr as l, insert as y, append as d, transition_in as c, transition_out as _, check_outros as
|
|
1
|
+
import { SvelteComponent as D, init as g, safe_not_equal as v, append_styles as w, svg_element as s, attr as l, insert as y, append as d, transition_in as c, group_outros as b, transition_out as _, check_outros as k, detach as p, add_render_callback as O, create_in_transition as G, create_out_transition as I } from "../../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { uuid as L } from "../../../../shared-utils/uuid.js";
|
|
3
3
|
import { draw as h } from "../../../../vendor/svelte/transition/index.js";
|
|
4
4
|
import { cubicOut as S, cubicInOut as U } from "../../../../vendor/svelte/easing/index.js";
|
|
@@ -18,8 +18,8 @@ function m(n) {
|
|
|
18
18
|
n = i;
|
|
19
19
|
},
|
|
20
20
|
i(i) {
|
|
21
|
-
r || (i &&
|
|
22
|
-
o && o.end(1), a =
|
|
21
|
+
r || (i && O(() => {
|
|
22
|
+
o && o.end(1), a = G(e, h, {
|
|
23
23
|
duration: n[1],
|
|
24
24
|
delay: n[0],
|
|
25
25
|
easing: S
|
|
@@ -27,7 +27,7 @@ function m(n) {
|
|
|
27
27
|
}), r = !0);
|
|
28
28
|
},
|
|
29
29
|
o(i) {
|
|
30
|
-
a && a.invalidate(), i && (o =
|
|
30
|
+
a && a.invalidate(), i && (o = I(e, h, {
|
|
31
31
|
duration: n[1],
|
|
32
32
|
delay: n[2],
|
|
33
33
|
easing: U
|
|
@@ -48,9 +48,9 @@ function B(n) {
|
|
|
48
48
|
y(f, e, u), d(e, a), d(a, o), d(o, r), d(o, i), t && t.m(e, null);
|
|
49
49
|
},
|
|
50
50
|
p(f, [u]) {
|
|
51
|
-
f[3] ? t ? (t.p(f, u), u & 8 && c(t, 1)) : (t = m(f), t.c(), c(t, 1), t.m(e, null)) : t && (
|
|
51
|
+
f[3] ? t ? (t.p(f, u), u & 8 && c(t, 1)) : (t = m(f), t.c(), c(t, 1), t.m(e, null)) : t && (b(), _(t, 1, 1, () => {
|
|
52
52
|
t = null;
|
|
53
|
-
}),
|
|
53
|
+
}), k());
|
|
54
54
|
},
|
|
55
55
|
i(f) {
|
|
56
56
|
c(t);
|
|
@@ -89,5 +89,5 @@ class A extends D {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
export {
|
|
92
|
-
A as
|
|
92
|
+
A as Polyline
|
|
93
93
|
};
|