@realsee/dnalogel 2.16.0-4 → 2.16.0-6
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/CruisePlugin/index.d.ts +2 -0
- package/dist/CruisePlugin/typing.d.ts +32 -40
- package/dist/GuideLinePlugin/Controller.d.ts +2 -0
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +6 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +37 -5
- package/dist/GuideLinePlugin/typing.d.ts +33 -4
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/dist/index.cjs.js +61 -61
- package/dist/index.js +8345 -8265
- package/dist/index.umd.js +54 -54
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +39 -38
- package/docs/classes/GuideLineItem.GuideLineItem.html +49 -16
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +218 -49
- package/docs/classes/Magnifier.html +21 -20
- package/docs/classes/ModelRoomLabelController.html +12 -11
- package/docs/classes/Object3DHelperController.html +26 -25
- package/docs/classes/PaintBrush.html +16 -15
- package/docs/classes/PanoMeasurePluginLine.html +24 -23
- package/docs/classes/PanoMeasurePluginModel.html +23 -22
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
- package/docs/classes/PanoTagPluginController.html +48 -47
- package/docs/classes/Util.BetterTween.html +9 -8
- package/docs/classes/Util.FivePointSelector.html +13 -12
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +18 -17
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +20 -19
- package/docs/enums/DIRECTION.html +10 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/DimensionType.html +8 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/PaintBrushTypeEnum.html +9 -8
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +6 -5
- package/docs/functions/Util.getCoordsFromElement.html +6 -5
- package/docs/functions/Util.getFrameTime.html +6 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
- package/docs/functions/Util.isAbsoluteURL.html +6 -5
- package/docs/functions/Util.isModelLike.html +6 -5
- package/docs/functions/Util.isNil.html +6 -5
- package/docs/functions/Util.isPanoramaLike.html +6 -5
- package/docs/functions/Util.nextFrame.html +6 -5
- package/docs/functions/Util.notNil.html +6 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
- package/docs/functions/Util.tweenProgress.html +6 -5
- package/docs/functions/Util.uuid.html +6 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +7 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +107 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +112 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +429 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +120 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +141 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +143 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +95 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +83 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +148 -0
- package/docs/interfaces/EventMap.html +16 -15
- package/docs/interfaces/FloorplanBounding.html +9 -8
- package/docs/interfaces/FloorplanData.html +11 -10
- package/docs/interfaces/FloorplanEntrance.html +12 -11
- package/docs/interfaces/FloorplanExtraObject.html +11 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
- package/docs/interfaces/FloorplanFloorData.html +10 -9
- package/docs/interfaces/FloorplanImagePosition.html +8 -7
- package/docs/interfaces/FloorplanObserver.html +10 -9
- package/docs/interfaces/FloorplanOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanPosition.html +8 -7
- package/docs/interfaces/FloorplanRoomItem.html +14 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
- package/docs/interfaces/FloorplanServerBounding.html +9 -8
- package/docs/interfaces/FloorplanServerComputedData.html +11 -10
- package/docs/interfaces/FloorplanServerData.html +8 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
- package/docs/interfaces/FloorplanServerEntrance.html +12 -11
- package/docs/interfaces/FloorplanServerFloorData.html +10 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
- package/docs/interfaces/FloorplanServerObserver.html +10 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanServerPosition.html +8 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +15 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -11
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +179 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +211 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +293 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +11 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
- package/docs/interfaces/HelperOffset.html +9 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -6
- package/docs/interfaces/ItemLabelPluginData.html +7 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/MinMax.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
- package/docs/interfaces/ModelViewPluginExportType.html +12 -11
- package/docs/interfaces/Object3DHelperState.html +9 -8
- package/docs/interfaces/ObjectHelperControllers.html +10 -9
- package/docs/interfaces/PaintBrushAction.html +13 -12
- package/docs/interfaces/PaintBrushConfigs.html +13 -12
- package/docs/interfaces/PaintBrushState.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +15 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginState.html +9 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
- package/docs/interfaces/Point.html +9 -8
- package/docs/interfaces/Room.html +10 -9
- package/docs/interfaces/RoomInfo.html +8 -7
- package/docs/interfaces/RoomLabel.html +15 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +10 -9
- package/docs/interfaces/State.html +9 -8
- package/docs/interfaces/TagCacheInterface.html +13 -12
- package/docs/interfaces/TagConfig.html +12 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +12 -11
- package/docs/interfaces/TagObjectGroup.html +7 -6
- package/docs/interfaces/TagStyle.html +7 -6
- package/docs/interfaces/Tags.html +10 -9
- package/docs/interfaces/TemporaryState.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +12 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
- package/docs/modules/CruisePluginTypes.html +88 -0
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +14 -5
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +6 -5
- package/docs/modules.html +7 -5
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +60 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +60 -0
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +11 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +105 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +10 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +10 -5
- package/docs/types/GuideLinePluginType.PathItem.html +10 -5
- package/docs/types/GuideLinePluginType.PluginData.html +10 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/CruisePlugin/Controller.js +221 -118
- package/libs/CruisePlugin/index.d.ts +2 -0
- package/libs/CruisePlugin/index.js +109 -5
- package/libs/CruisePlugin/typing/index.js +6 -0
- package/libs/CruisePlugin/typing.d.ts +32 -40
- package/libs/GuideLinePlugin/Controller.d.ts +2 -0
- package/libs/GuideLinePlugin/Controller.js +198 -85
- package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
- package/libs/GuideLinePlugin/GuideLineItem.js +122 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +72 -49
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +37 -5
- package/libs/GuideLinePlugin/GuideLineModeItem.js +105 -2
- package/libs/GuideLinePlugin/index.js +118 -7
- package/libs/GuideLinePlugin/typing.d.ts +33 -4
- package/libs/GuideLinePlugin/typing.js +34 -1
- package/libs/GuideLinePlugin/utils/index.js +17 -4
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +39 -37
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import o from "./Controller.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as Ro } from "./Controller.js";
|
|
3
|
+
import { typing as Uo } from "./typing/index.js";
|
|
3
4
|
import "../base/BasePluginWithData.js";
|
|
4
5
|
import "../base/BasePlugin.js";
|
|
5
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -35,7 +36,109 @@ import "../GuideLinePlugin/utils/createLineGeometry.js";
|
|
|
35
36
|
import "polyline-normals";
|
|
36
37
|
import "../shared-utils/five/mode.js";
|
|
37
38
|
import "../shared-utils/three/loadTexture.js";
|
|
39
|
+
import "../PanoTagPlugin/controller/index.js";
|
|
40
|
+
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
41
|
+
import "@realsee/five/gltf-loader";
|
|
42
|
+
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
43
|
+
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
44
|
+
import "../PanoTagPlugin/utils/debounce.js";
|
|
45
|
+
import "../PanoTagPlugin/utils/throttle.js";
|
|
46
|
+
import "../PanoTagPlugin/utils/resizeObserver.js";
|
|
47
|
+
import "../PanoTagPlugin/utils/tag/format.js";
|
|
48
|
+
import "../shared-utils/audio.js";
|
|
49
|
+
import "../PanoTagPlugin/controller/TagRender.js";
|
|
50
|
+
import "../PanoTagPlugin/controller/TagComputer.js";
|
|
51
|
+
import "../PanoTagPlugin/utils/tagPosition.js";
|
|
52
|
+
import "../PanoTagPlugin/utils/checkRange.js";
|
|
53
|
+
import "../shared-utils/isNil.js";
|
|
54
|
+
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
55
|
+
import "../PanoTagPlugin/tag.config.js";
|
|
56
|
+
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
57
|
+
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
58
|
+
import "../PanoTagPlugin/controller/TagCache.js";
|
|
59
|
+
import "../vendor/svelte/store/index.js";
|
|
60
|
+
import "../vendor/svelte/internal/index.js";
|
|
61
|
+
import "../PanoTagPlugin/utils/device.js";
|
|
62
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
63
|
+
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
64
|
+
import "../PanoTagPlugin/Components/TagItem.js";
|
|
65
|
+
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
66
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
|
|
67
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
|
|
68
|
+
import "../PanoTagPlugin/Components/Common/Line/Straight.js";
|
|
69
|
+
import "../vendor/svelte/transition/index.js";
|
|
70
|
+
import "../vendor/svelte/easing/index.js";
|
|
38
71
|
import "../shared-utils/uuid.js";
|
|
72
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
73
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
74
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
75
|
+
import "animejs";
|
|
76
|
+
import "../PanoTagPlugin/utils/search.js";
|
|
77
|
+
import "../PanoTagPlugin/utils/constants.js";
|
|
78
|
+
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
79
|
+
import "../PanoTagPlugin/Assets/Icon.js";
|
|
80
|
+
import "../PanoTagPlugin/utils/doUtil.js";
|
|
81
|
+
import "../shared-utils/svelte/resizeObserver.js";
|
|
82
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
83
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
|
|
84
|
+
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
85
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
86
|
+
import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
|
|
87
|
+
import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
|
|
88
|
+
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
89
|
+
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
90
|
+
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
91
|
+
import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
|
|
92
|
+
import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
|
|
93
|
+
import "../vendor/svelte-carousel/src/direction.js";
|
|
94
|
+
import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
|
|
95
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
|
|
96
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
|
|
97
|
+
import "../vendor/svelte-carousel/src/utils/event.js";
|
|
98
|
+
import "../vendor/svelte-carousel/src/units.js";
|
|
99
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
|
|
100
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
|
|
101
|
+
import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
|
|
102
|
+
import "../vendor/svelte-carousel/src/utils/math.js";
|
|
103
|
+
import "../vendor/svelte-carousel/src/actions/tappable/event.js";
|
|
104
|
+
import "../vendor/svelte-carousel/src/utils/page.js";
|
|
105
|
+
import "../vendor/svelte-carousel/src/utils/clones.js";
|
|
106
|
+
import "../vendor/svelte-carousel/src/utils/object.js";
|
|
107
|
+
import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
|
|
108
|
+
import "../vendor/simply-reactive/src/simply-reactive.js";
|
|
109
|
+
import "lodash.get";
|
|
110
|
+
import "lodash.clonedeep";
|
|
111
|
+
import "../vendor/simply-reactive/src/utils/subscription.js";
|
|
112
|
+
import "../vendor/simply-reactive/src/utils/object.js";
|
|
113
|
+
import "lodash.isequal";
|
|
114
|
+
import "../vendor/simply-reactive/src/utils/watcher.js";
|
|
115
|
+
import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
116
|
+
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
117
|
+
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
118
|
+
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
119
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
120
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
121
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
122
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
123
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
124
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
125
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
126
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
127
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
128
|
+
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
129
|
+
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
130
|
+
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
131
|
+
import "../PanoTagPlugin/Components/Tag/CustomTag.js";
|
|
132
|
+
import "classnames";
|
|
133
|
+
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
134
|
+
import "../PanoTagPlugin/utils/model/imagePlane.js";
|
|
135
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
136
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
137
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
138
|
+
import "../shared-utils/three/GLTFLoader.js";
|
|
139
|
+
import "../shared-utils/to.js";
|
|
140
|
+
import "../shared-utils/five/changeMode.js";
|
|
141
|
+
import "../shared-utils/nearlyEqual.js";
|
|
39
142
|
import "./utils/coordinatesAngle.js";
|
|
40
143
|
import "./utils/coordinatesToVector.js";
|
|
41
144
|
import "./utils/safeCall.js";
|
|
@@ -43,9 +146,10 @@ import "./utils/vectorToCoordinates.js";
|
|
|
43
146
|
import "./utils/formatRad.js";
|
|
44
147
|
import "./utils/linerValue.js";
|
|
45
148
|
import "./utils/sleep.js";
|
|
46
|
-
const
|
|
149
|
+
const No = (r) => new o(r);
|
|
47
150
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
151
|
+
No as CruisePlugin,
|
|
152
|
+
Ro as CruisePluginController,
|
|
153
|
+
Uo as CruisePluginTypes,
|
|
154
|
+
No as default
|
|
51
155
|
};
|
|
@@ -34,47 +34,39 @@ export interface PluginData {
|
|
|
34
34
|
unitHeight?: number;
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
+
export interface MoveAction {
|
|
38
|
+
/** five走点动画 */
|
|
39
|
+
moveEffect?: MoveEffect;
|
|
40
|
+
/** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
|
|
41
|
+
moveToFirstPanoEffect?: MoveEffect;
|
|
42
|
+
/** 到第一个点的走点时长 / 续播到暂停处的走点时长 */
|
|
43
|
+
moveToFirstPanoDuration?: number;
|
|
44
|
+
/** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
|
|
45
|
+
moveType?: 'justMove' | 'moveAndRotate';
|
|
46
|
+
/** 停留时长 */
|
|
47
|
+
stay?: number;
|
|
48
|
+
/** 传递给 GuildPlugin 的参数 */
|
|
49
|
+
guildPluginOptions?: GuideLinePluginData['config'];
|
|
50
|
+
}
|
|
51
|
+
export interface MoveWithPanoIndexAction extends MoveAction {
|
|
52
|
+
/** 点位列表 */
|
|
53
|
+
panoIndexList: number[];
|
|
54
|
+
/** for ts check, no care */
|
|
55
|
+
keyframes?: undefined;
|
|
56
|
+
}
|
|
57
|
+
export interface MoveWithKeyframesAction extends MoveAction {
|
|
58
|
+
keyframes: {
|
|
59
|
+
uuid?: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
start?: number;
|
|
62
|
+
end?: number;
|
|
63
|
+
data: CruiseData;
|
|
64
|
+
}[];
|
|
65
|
+
/** for ts check, no care */
|
|
66
|
+
panoIndexList?: undefined;
|
|
67
|
+
}
|
|
37
68
|
export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
38
|
-
data:
|
|
39
|
-
keyframes: {
|
|
40
|
-
uuid?: string;
|
|
41
|
-
id?: string;
|
|
42
|
-
start?: number;
|
|
43
|
-
end?: number;
|
|
44
|
-
data: CruiseData;
|
|
45
|
-
}[];
|
|
46
|
-
/** 传递给 GuildPlugin 的参数 */
|
|
47
|
-
guildPluginOptions?: GuideLinePluginData['config'];
|
|
48
|
-
/** for ts check, no care */
|
|
49
|
-
panoIndexList?: undefined;
|
|
50
|
-
/** for ts check, no care */
|
|
51
|
-
moveEffect?: undefined;
|
|
52
|
-
/** for ts check, no care */
|
|
53
|
-
moveType?: undefined;
|
|
54
|
-
/** for ts check, no care */
|
|
55
|
-
moveToFirstPanoEffect?: undefined;
|
|
56
|
-
/** for ts check, no care */
|
|
57
|
-
moveToFirstPanoDuration?: undefined;
|
|
58
|
-
/** for ts check, no care */
|
|
59
|
-
stay?: undefined;
|
|
60
|
-
} | {
|
|
61
|
-
/** 点位列表 */
|
|
62
|
-
panoIndexList: number[];
|
|
63
|
-
/** five走点动画 */
|
|
64
|
-
moveEffect?: MoveEffect;
|
|
65
|
-
/** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
|
|
66
|
-
moveToFirstPanoEffect?: MoveEffect;
|
|
67
|
-
/** 到第一个点的走点时长 / 续播到暂停处的走点时长 */
|
|
68
|
-
moveToFirstPanoDuration?: number;
|
|
69
|
-
/** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
|
|
70
|
-
moveType?: 'justMove' | 'moveAndRotate';
|
|
71
|
-
/** 停留时长 */
|
|
72
|
-
stay?: number;
|
|
73
|
-
/** 传递给 GuildPlugin 的参数 */
|
|
74
|
-
guildPluginOptions?: GuideLinePluginData['config'];
|
|
75
|
-
/** for ts check, no care */
|
|
76
|
-
keyframes?: undefined;
|
|
77
|
-
};
|
|
69
|
+
data: MoveWithKeyframesAction | MoveWithPanoIndexAction;
|
|
78
70
|
}
|
|
79
71
|
export interface PluginState extends BasePluginWithData.State {
|
|
80
72
|
/** 是否可见 */
|
|
@@ -4,10 +4,12 @@ import type { EventMap, PluginData, PluginServerData, PluginState } from './typi
|
|
|
4
4
|
import type * as PluginType from './typing';
|
|
5
5
|
import type { Config } from '../base/BasePlugin';
|
|
6
6
|
import { GuideLineItem } from './GuideLineItem';
|
|
7
|
+
import CruisePluginController from '../CruisePlugin/Controller';
|
|
7
8
|
export declare const pluginFlag: (name: string) => string;
|
|
8
9
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
9
10
|
readonly version = "v1.1.0";
|
|
10
11
|
readonly name = "GuideLinePlugin";
|
|
12
|
+
readonly cruisePlugin: CruisePluginController;
|
|
11
13
|
state: {
|
|
12
14
|
visible: boolean;
|
|
13
15
|
enabled: boolean;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var b = Object.getOwnPropertySymbols;
|
|
3
3
|
var L = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var u = (
|
|
5
|
-
for (var
|
|
6
|
-
L.call(
|
|
4
|
+
var u = (e, r, i) => r in e ? g(e, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[r] = i, h = (e, r) => {
|
|
5
|
+
for (var i in r || (r = {}))
|
|
6
|
+
L.call(r, i) && u(e, i, r[i]);
|
|
7
7
|
if (b)
|
|
8
|
-
for (var
|
|
9
|
-
w.call(
|
|
10
|
-
return
|
|
8
|
+
for (var i of b(r))
|
|
9
|
+
w.call(r, i) && u(e, i, r[i]);
|
|
10
|
+
return e;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var p = (e, r, i) => (u(e, typeof r != "symbol" ? r + "" : r, i), i);
|
|
13
|
+
var d = (e, r, i) => new Promise((t, o) => {
|
|
14
|
+
var a = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
n(i.next(s));
|
|
17
|
+
} catch (l) {
|
|
18
|
+
o(l);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, m = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
n(i.throw(s));
|
|
23
|
+
} catch (l) {
|
|
24
|
+
o(l);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(a, m);
|
|
27
|
+
n((i = i.apply(e, r)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as G } from "../base/BasePluginWithData.js";
|
|
30
30
|
import "three";
|
|
@@ -39,70 +39,183 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
39
39
|
import { uuid as S } from "../shared-utils/uuid.js";
|
|
40
40
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
41
41
|
import "../shared-utils/three/loadTexture.js";
|
|
42
|
+
import "object-assign-deep";
|
|
43
|
+
import "@realsee/five/gltf-loader";
|
|
44
|
+
import "../vendor/svelte/internal/index.js";
|
|
45
|
+
import "../PanoTagPlugin/utils/device.js";
|
|
46
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
47
|
+
import "animejs";
|
|
48
|
+
import "../PanoTagPlugin/utils/constants.js";
|
|
49
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
50
|
+
import "lodash.get";
|
|
51
|
+
import "lodash.clonedeep";
|
|
52
|
+
import "lodash.isequal";
|
|
53
|
+
import "classnames";
|
|
54
|
+
import "../shared-utils/three/GLTFLoader.js";
|
|
55
|
+
import _ from "../CruisePlugin/Controller.js";
|
|
42
56
|
import "../base/BasePlugin.js";
|
|
43
57
|
import "../shared-utils/Subscribe.js";
|
|
44
58
|
import "../shared-utils/isAbsoluteURL.js";
|
|
45
59
|
import "../shared-utils/isTruelyObject.js";
|
|
46
|
-
import "object-assign-deep";
|
|
47
60
|
import "./GuideLineModeItem/index.js";
|
|
48
61
|
import "../shared-utils/log.js";
|
|
49
62
|
import "./utils/createLineGeometry.js";
|
|
50
63
|
import "../shared-utils/five/mode.js";
|
|
64
|
+
import "../PanoTagPlugin/controller/index.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
66
|
+
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
67
|
+
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
68
|
+
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
69
|
+
import "../PanoTagPlugin/utils/debounce.js";
|
|
70
|
+
import "../PanoTagPlugin/utils/throttle.js";
|
|
71
|
+
import "../PanoTagPlugin/utils/resizeObserver.js";
|
|
72
|
+
import "../PanoTagPlugin/utils/tag/format.js";
|
|
73
|
+
import "../shared-utils/audio.js";
|
|
74
|
+
import "../PanoTagPlugin/controller/TagRender.js";
|
|
75
|
+
import "../PanoTagPlugin/controller/TagComputer.js";
|
|
76
|
+
import "../PanoTagPlugin/utils/tagPosition.js";
|
|
77
|
+
import "../shared-utils/three/centerPoint.js";
|
|
78
|
+
import "../PanoTagPlugin/utils/checkRange.js";
|
|
79
|
+
import "../shared-utils/isNil.js";
|
|
80
|
+
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
81
|
+
import "../PanoTagPlugin/tag.config.js";
|
|
82
|
+
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
83
|
+
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
84
|
+
import "../PanoTagPlugin/controller/TagCache.js";
|
|
85
|
+
import "../vendor/svelte/store/index.js";
|
|
86
|
+
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
87
|
+
import "../PanoTagPlugin/Components/TagItem.js";
|
|
88
|
+
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
89
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
|
|
90
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
|
|
91
|
+
import "../PanoTagPlugin/Components/Common/Line/Straight.js";
|
|
92
|
+
import "../vendor/svelte/transition/index.js";
|
|
93
|
+
import "../vendor/svelte/easing/index.js";
|
|
94
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
95
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
96
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
97
|
+
import "../PanoTagPlugin/utils/search.js";
|
|
98
|
+
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
99
|
+
import "../PanoTagPlugin/Assets/Icon.js";
|
|
100
|
+
import "../PanoTagPlugin/utils/doUtil.js";
|
|
101
|
+
import "../shared-utils/svelte/resizeObserver.js";
|
|
102
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
|
|
103
|
+
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
104
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
105
|
+
import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
|
|
106
|
+
import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
|
|
107
|
+
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
108
|
+
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
109
|
+
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
110
|
+
import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
|
|
111
|
+
import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
|
|
112
|
+
import "../vendor/svelte-carousel/src/direction.js";
|
|
113
|
+
import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
|
|
114
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
|
|
115
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
|
|
116
|
+
import "../vendor/svelte-carousel/src/utils/event.js";
|
|
117
|
+
import "../vendor/svelte-carousel/src/units.js";
|
|
118
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
|
|
119
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
|
|
120
|
+
import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
|
|
121
|
+
import "../vendor/svelte-carousel/src/utils/math.js";
|
|
122
|
+
import "../vendor/svelte-carousel/src/actions/tappable/event.js";
|
|
123
|
+
import "../vendor/svelte-carousel/src/utils/page.js";
|
|
124
|
+
import "../vendor/svelte-carousel/src/utils/clones.js";
|
|
125
|
+
import "../vendor/svelte-carousel/src/utils/object.js";
|
|
126
|
+
import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
|
|
127
|
+
import "../vendor/simply-reactive/src/simply-reactive.js";
|
|
128
|
+
import "../vendor/simply-reactive/src/utils/subscription.js";
|
|
129
|
+
import "../vendor/simply-reactive/src/utils/object.js";
|
|
130
|
+
import "../vendor/simply-reactive/src/utils/watcher.js";
|
|
131
|
+
import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
132
|
+
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
133
|
+
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
134
|
+
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
135
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
136
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
137
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
138
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
139
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
140
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
141
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
142
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
143
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
144
|
+
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
145
|
+
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
146
|
+
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
147
|
+
import "../PanoTagPlugin/Components/Tag/CustomTag.js";
|
|
148
|
+
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
149
|
+
import "../PanoTagPlugin/utils/model/imagePlane.js";
|
|
150
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
151
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
152
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
51
153
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
52
154
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
53
155
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
54
156
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
55
157
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
56
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
57
158
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
58
159
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
59
|
-
import "../shared-utils/three/centerPoint.js";
|
|
60
160
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
61
161
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
62
162
|
import "../shared-utils/animationFrame/index.js";
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
163
|
+
import "../shared-utils/to.js";
|
|
164
|
+
import "../shared-utils/five/changeMode.js";
|
|
165
|
+
import "../shared-utils/nearlyEqual.js";
|
|
166
|
+
import "./index.js";
|
|
167
|
+
import "./Controller.js";
|
|
168
|
+
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
169
|
+
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
170
|
+
import "../CruisePlugin/utils/safeCall.js";
|
|
171
|
+
import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
172
|
+
import "../CruisePlugin/utils/formatRad.js";
|
|
173
|
+
import "../CruisePlugin/utils/linerValue.js";
|
|
174
|
+
import "../CruisePlugin/utils/sleep.js";
|
|
175
|
+
const v = "v1.1.0", c = "GuideLinePlugin", f = `${c}@${v}`, lr = (e) => `${f}--${e}`;
|
|
176
|
+
function E(e) {
|
|
177
|
+
return Object.hasOwn(e, "routes");
|
|
66
178
|
}
|
|
67
|
-
class
|
|
68
|
-
constructor(
|
|
69
|
-
super(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
179
|
+
class ur extends G {
|
|
180
|
+
constructor(i, t) {
|
|
181
|
+
super(i, t);
|
|
182
|
+
p(this, "version", v);
|
|
183
|
+
p(this, "name", c);
|
|
184
|
+
p(this, "cruisePlugin");
|
|
185
|
+
p(this, "state", {
|
|
73
186
|
visible: !1,
|
|
74
187
|
enabled: !0,
|
|
75
188
|
disposed: !1
|
|
76
189
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
190
|
+
p(this, "data");
|
|
191
|
+
p(this, "linesGroup");
|
|
192
|
+
p(this, "itemMap", /* @__PURE__ */ new Map());
|
|
193
|
+
p(this, "disposedErrorLog", () => {
|
|
81
194
|
console.error(`${f} is disposed`);
|
|
82
195
|
});
|
|
83
|
-
Object.assign(window, { [`__${c}_DEBUG__`]: this });
|
|
196
|
+
this.cruisePlugin = new _(i, { useGuideLine: !1 }), Object.assign(window, { [`__${c}_DEBUG__`]: this });
|
|
84
197
|
}
|
|
85
|
-
load(
|
|
86
|
-
return
|
|
198
|
+
load(i, t, o = !0) {
|
|
199
|
+
return d(this, null, function* () {
|
|
87
200
|
if (this.state.disposed)
|
|
88
201
|
return;
|
|
89
202
|
this.clear();
|
|
90
|
-
const
|
|
91
|
-
this.hooks.emit("dataChange",
|
|
92
|
-
this.addGuideLineItem(
|
|
93
|
-
}), yield this.waitFiveLoaded(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled),
|
|
203
|
+
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, m = yield this.formatData(i);
|
|
204
|
+
this.hooks.emit("dataChange", m, a), this.data = m, m.lines.forEach((n) => {
|
|
205
|
+
this.addGuideLineItem(n);
|
|
206
|
+
}), yield this.waitFiveLoaded(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", m), console.info(`${f} loaded`, m);
|
|
94
207
|
});
|
|
95
208
|
}
|
|
96
|
-
formatData(
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
const { routes:
|
|
101
|
-
return { lines:
|
|
102
|
-
const { panoIndexList:
|
|
209
|
+
formatData(i) {
|
|
210
|
+
return d(this, null, function* () {
|
|
211
|
+
const t = this.getDataWithoutVersion(i);
|
|
212
|
+
if (E(t)) {
|
|
213
|
+
const { routes: o } = t;
|
|
214
|
+
return { lines: o.map((m) => {
|
|
215
|
+
const { panoIndexList: n } = m;
|
|
103
216
|
return {
|
|
104
217
|
render_id: S(),
|
|
105
|
-
pano_group:
|
|
218
|
+
pano_group: n,
|
|
106
219
|
panorama_style: {
|
|
107
220
|
visible: !0,
|
|
108
221
|
width: 0.6,
|
|
@@ -111,77 +224,77 @@ class de extends G {
|
|
|
111
224
|
};
|
|
112
225
|
}) };
|
|
113
226
|
}
|
|
114
|
-
return
|
|
227
|
+
return t;
|
|
115
228
|
});
|
|
116
229
|
}
|
|
117
|
-
show(
|
|
118
|
-
return
|
|
119
|
-
this.setState({ visible: !0 },
|
|
230
|
+
show(i) {
|
|
231
|
+
return d(this, null, function* () {
|
|
232
|
+
this.setState({ visible: !0 }, i);
|
|
120
233
|
});
|
|
121
234
|
}
|
|
122
|
-
hide(
|
|
123
|
-
return
|
|
124
|
-
this.setState({ visible: !1 },
|
|
235
|
+
hide(i) {
|
|
236
|
+
return d(this, null, function* () {
|
|
237
|
+
this.setState({ visible: !1 }, i);
|
|
125
238
|
});
|
|
126
239
|
}
|
|
127
|
-
enable(
|
|
128
|
-
this.setState({ enabled: !0 },
|
|
240
|
+
enable(i) {
|
|
241
|
+
this.setState({ enabled: !0 }, i);
|
|
129
242
|
}
|
|
130
|
-
disable(
|
|
131
|
-
this.setState({ enabled: !1 },
|
|
243
|
+
disable(i) {
|
|
244
|
+
this.setState({ enabled: !1 }, i);
|
|
132
245
|
}
|
|
133
246
|
dispose() {
|
|
134
247
|
this.setState({ disposed: !0 });
|
|
135
248
|
}
|
|
136
|
-
setState(
|
|
137
|
-
var
|
|
249
|
+
setState(i, t) {
|
|
250
|
+
var a;
|
|
138
251
|
if (this.state.disposed)
|
|
139
252
|
return this.disposedErrorLog();
|
|
140
|
-
const
|
|
141
|
-
this.state =
|
|
253
|
+
const o = h({}, this.state);
|
|
254
|
+
this.state = h(h({}, this.state), i), i.disposed !== void 0 && i.disposed !== o.disposed && i.disposed && this.handleDispose(), i.visible !== void 0 && i.visible !== o.visible && this.handleVisible(i.visible, t == null ? void 0 : t.userAction), i.enabled !== void 0 && i.enabled !== o.enabled && this.handleEnable(i.enabled, t == null ? void 0 : t.userAction), I(o, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 }), this.five.needsRender = !0);
|
|
142
255
|
}
|
|
143
|
-
addGuideLineItem(
|
|
144
|
-
const
|
|
145
|
-
return this.itemMap.set(
|
|
256
|
+
addGuideLineItem(i) {
|
|
257
|
+
const t = i.render_id || i.id, o = new D({ five: this.five, id: t, plugin: this });
|
|
258
|
+
return this.itemMap.set(t, o), i && o.setData(i), o;
|
|
146
259
|
}
|
|
147
|
-
getGuideLineItemByID(
|
|
148
|
-
return this.itemMap.get(
|
|
260
|
+
getGuideLineItemByID(i) {
|
|
261
|
+
return this.itemMap.get(i);
|
|
149
262
|
}
|
|
150
|
-
removeGuideLineItem(
|
|
151
|
-
this.itemMap.delete(
|
|
263
|
+
removeGuideLineItem(i) {
|
|
264
|
+
this.itemMap.delete(i.id), i.panoramaItem.dispose(), i.modelItem.dispose();
|
|
152
265
|
}
|
|
153
266
|
clear() {
|
|
154
|
-
this.itemMap.forEach((
|
|
155
|
-
this.removeGuideLineItem(
|
|
267
|
+
this.itemMap.forEach((i) => {
|
|
268
|
+
this.removeGuideLineItem(i);
|
|
156
269
|
});
|
|
157
270
|
}
|
|
158
|
-
handleEnable(
|
|
159
|
-
this.hooks.emit(
|
|
271
|
+
handleEnable(i, t = !0) {
|
|
272
|
+
this.hooks.emit(i ? "enable" : "disable", { userAction: t });
|
|
160
273
|
}
|
|
161
|
-
handleVisible(
|
|
162
|
-
!this.state.enabled || this.hooks.emit(
|
|
274
|
+
handleVisible(i, t = !0) {
|
|
275
|
+
!this.state.enabled || this.hooks.emit(i ? "show" : "hide", { userAction: t });
|
|
163
276
|
}
|
|
164
277
|
handleDispose() {
|
|
165
278
|
this.linesGroup && this.five.scene.remove(this.linesGroup), this.hooks.emit("dispose");
|
|
166
279
|
}
|
|
167
280
|
waitFiveLoaded() {
|
|
168
|
-
return
|
|
169
|
-
return new Promise((
|
|
281
|
+
return d(this, null, function* () {
|
|
282
|
+
return new Promise((i) => {
|
|
170
283
|
if (this.five.work) {
|
|
171
|
-
|
|
284
|
+
i();
|
|
172
285
|
return;
|
|
173
286
|
}
|
|
174
287
|
this.five.once("loaded", () => {
|
|
175
|
-
|
|
288
|
+
i();
|
|
176
289
|
});
|
|
177
290
|
});
|
|
178
291
|
});
|
|
179
292
|
}
|
|
180
|
-
getDataWithoutVersion(
|
|
181
|
-
return typeof
|
|
293
|
+
getDataWithoutVersion(i) {
|
|
294
|
+
return typeof i == "object" && i !== null && i.version && i.data ? i.data : i;
|
|
182
295
|
}
|
|
183
296
|
}
|
|
184
297
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
298
|
+
ur as default,
|
|
299
|
+
lr as pluginFlag
|
|
187
300
|
};
|