@realsee/dnalogel 2.16.0-4 → 2.16.0-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/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 +38 -5
- package/dist/GuideLinePlugin/typing.d.ts +33 -4
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/dist/index.cjs.js +67 -67
- package/dist/index.js +8846 -8678
- 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 +27 -17
- 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 +222 -118
- package/libs/CruisePlugin/index.d.ts +2 -0
- package/libs/CruisePlugin/index.js +110 -5
- package/libs/CruisePlugin/typing/index.js +6 -0
- package/libs/CruisePlugin/typing.d.ts +32 -40
- package/libs/GuideLinePlugin/Components/Tag.js +49 -0
- package/libs/GuideLinePlugin/Controller.d.ts +2 -0
- package/libs/GuideLinePlugin/Controller.js +199 -85
- package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
- package/libs/GuideLinePlugin/GuideLineItem.js +123 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +84 -53
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +38 -5
- package/libs/GuideLinePlugin/GuideLineModeItem.js +106 -2
- package/libs/GuideLinePlugin/index.js +119 -7
- package/libs/GuideLinePlugin/typing.d.ts +33 -4
- package/libs/GuideLinePlugin/typing.js +34 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -16
- package/libs/GuideLinePlugin/utils/index.js +17 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +92 -66
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +6 -0
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/index.js +5 -5
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +120 -117
- package/package.json +1 -1
|
@@ -2,30 +2,30 @@ var T = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var O = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var L = Object.getOwnPropertySymbols;
|
|
4
4
|
var U = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var C = (
|
|
6
|
-
for (var e in
|
|
7
|
-
U.call(
|
|
5
|
+
var C = (c, h, e) => h in c ? T(c, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[h] = e, g = (c, h) => {
|
|
6
|
+
for (var e in h || (h = {}))
|
|
7
|
+
U.call(h, e) && C(c, e, h[e]);
|
|
8
8
|
if (L)
|
|
9
|
-
for (var e of L(
|
|
10
|
-
A.call(
|
|
11
|
-
return
|
|
12
|
-
}, E = (
|
|
13
|
-
var I = (
|
|
14
|
-
var v = (
|
|
15
|
-
var r = (
|
|
9
|
+
for (var e of L(h))
|
|
10
|
+
A.call(h, e) && C(c, e, h[e]);
|
|
11
|
+
return c;
|
|
12
|
+
}, E = (c, h) => K(c, O(h));
|
|
13
|
+
var I = (c, h, e) => (C(c, typeof h != "symbol" ? h + "" : h, e), e);
|
|
14
|
+
var v = (c, h, e) => new Promise((t, i) => {
|
|
15
|
+
var r = (m) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(e.next(m));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
i(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, n = (m) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(e.throw(m));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
i(a);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(r, n);
|
|
28
|
+
s((e = e.apply(c, h)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Controller as V } from "../base/BasePluginWithData.js";
|
|
31
31
|
import { GuideLinePlugin as Q } from "../GuideLinePlugin/index.js";
|
|
@@ -67,10 +67,114 @@ import "../GuideLinePlugin/utils/createLineGeometry.js";
|
|
|
67
67
|
import "polyline-normals";
|
|
68
68
|
import "../shared-utils/five/mode.js";
|
|
69
69
|
import "../shared-utils/three/loadTexture.js";
|
|
70
|
+
import "../PanoTagPlugin/controller/index.js";
|
|
71
|
+
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
72
|
+
import "@realsee/five/gltf-loader";
|
|
73
|
+
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
74
|
+
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
75
|
+
import "../PanoTagPlugin/utils/debounce.js";
|
|
76
|
+
import "../PanoTagPlugin/utils/throttle.js";
|
|
77
|
+
import "../PanoTagPlugin/utils/resizeObserver.js";
|
|
78
|
+
import "../PanoTagPlugin/utils/tag/format.js";
|
|
79
|
+
import "../shared-utils/audio.js";
|
|
80
|
+
import "../PanoTagPlugin/controller/TagRender.js";
|
|
81
|
+
import "../PanoTagPlugin/controller/TagComputer.js";
|
|
82
|
+
import "../PanoTagPlugin/utils/tagPosition.js";
|
|
83
|
+
import "../PanoTagPlugin/utils/checkRange.js";
|
|
84
|
+
import "../shared-utils/isNil.js";
|
|
85
|
+
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
86
|
+
import "../PanoTagPlugin/tag.config.js";
|
|
87
|
+
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
88
|
+
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
89
|
+
import "../PanoTagPlugin/controller/TagCache.js";
|
|
90
|
+
import "../vendor/svelte/store/index.js";
|
|
91
|
+
import "../vendor/svelte/internal/index.js";
|
|
92
|
+
import "../PanoTagPlugin/utils/device.js";
|
|
93
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
94
|
+
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
95
|
+
import "../PanoTagPlugin/Components/TagItem.js";
|
|
96
|
+
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
97
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
|
|
98
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
|
|
99
|
+
import "../PanoTagPlugin/Components/Common/Line/Straight.js";
|
|
100
|
+
import "../vendor/svelte/transition/index.js";
|
|
101
|
+
import "../vendor/svelte/easing/index.js";
|
|
102
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
103
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
104
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
105
|
+
import "animejs";
|
|
106
|
+
import "../PanoTagPlugin/utils/search.js";
|
|
107
|
+
import "../PanoTagPlugin/utils/constants.js";
|
|
108
|
+
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
109
|
+
import "../PanoTagPlugin/Assets/Icon.js";
|
|
110
|
+
import "../PanoTagPlugin/utils/doUtil.js";
|
|
111
|
+
import "../shared-utils/svelte/resizeObserver.js";
|
|
112
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
113
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
|
|
114
|
+
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
115
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
116
|
+
import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
|
|
117
|
+
import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
|
|
118
|
+
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
119
|
+
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
120
|
+
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
121
|
+
import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
|
|
122
|
+
import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
|
|
123
|
+
import "../vendor/svelte-carousel/src/direction.js";
|
|
124
|
+
import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
|
|
125
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
|
|
126
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
|
|
127
|
+
import "../vendor/svelte-carousel/src/utils/event.js";
|
|
128
|
+
import "../vendor/svelte-carousel/src/units.js";
|
|
129
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
|
|
130
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
|
|
131
|
+
import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
|
|
132
|
+
import "../vendor/svelte-carousel/src/utils/math.js";
|
|
133
|
+
import "../vendor/svelte-carousel/src/actions/tappable/event.js";
|
|
134
|
+
import "../vendor/svelte-carousel/src/utils/page.js";
|
|
135
|
+
import "../vendor/svelte-carousel/src/utils/clones.js";
|
|
136
|
+
import "../vendor/svelte-carousel/src/utils/object.js";
|
|
137
|
+
import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
|
|
138
|
+
import "../vendor/simply-reactive/src/simply-reactive.js";
|
|
139
|
+
import "lodash.get";
|
|
140
|
+
import "lodash.clonedeep";
|
|
141
|
+
import "../vendor/simply-reactive/src/utils/subscription.js";
|
|
142
|
+
import "../vendor/simply-reactive/src/utils/object.js";
|
|
143
|
+
import "lodash.isequal";
|
|
144
|
+
import "../vendor/simply-reactive/src/utils/watcher.js";
|
|
145
|
+
import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
146
|
+
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
147
|
+
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
148
|
+
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
149
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
150
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
151
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
152
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
153
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
154
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
155
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
156
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
157
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
158
|
+
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
159
|
+
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
160
|
+
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
161
|
+
import "../PanoTagPlugin/Components/Tag/CustomTag.js";
|
|
162
|
+
import "classnames";
|
|
163
|
+
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
164
|
+
import "../PanoTagPlugin/utils/model/imagePlane.js";
|
|
165
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
166
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
167
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
168
|
+
import "../shared-utils/three/GLTFLoader.js";
|
|
169
|
+
import "../GuideLinePlugin/Components/Tag.js";
|
|
170
|
+
import "./Controller.js";
|
|
171
|
+
import "../shared-utils/to.js";
|
|
172
|
+
import "../shared-utils/five/changeMode.js";
|
|
173
|
+
import "../shared-utils/nearlyEqual.js";
|
|
70
174
|
import "./utils/coordinatesToVector.js";
|
|
71
175
|
import "../shared-utils/isTruelyObject.js";
|
|
72
176
|
import "./utils/formatRad.js";
|
|
73
|
-
const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`,
|
|
177
|
+
const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, Oi = (c) => `${x}--${c}`, D = () => {
|
|
74
178
|
console.error(`${x} is disposed`);
|
|
75
179
|
}, W = () => {
|
|
76
180
|
console.warn(`${x} is disabled`);
|
|
@@ -114,30 +218,30 @@ class z extends V {
|
|
|
114
218
|
}
|
|
115
219
|
load(e, t, i) {
|
|
116
220
|
return v(this, null, function* () {
|
|
117
|
-
var
|
|
221
|
+
var o, d, p, l, u, P;
|
|
118
222
|
if (this.state.disposed)
|
|
119
223
|
return D();
|
|
120
|
-
this.privateState.fiveOriginGetProgress || (d = (
|
|
121
|
-
const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0,
|
|
122
|
-
this.data =
|
|
123
|
-
let
|
|
124
|
-
const a = this.data.keyframes.filter((
|
|
125
|
-
a.filter((
|
|
224
|
+
this.privateState.fiveOriginGetProgress || (d = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (p = this.five.controller) == null ? void 0 : p.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
|
|
225
|
+
const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
|
|
226
|
+
this.data = n, this.hooks.emit("dataChange", n, r);
|
|
227
|
+
let s = [], m;
|
|
228
|
+
const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
|
|
229
|
+
a.filter((f, y) => {
|
|
126
230
|
var S;
|
|
127
|
-
return
|
|
128
|
-
}).map((
|
|
231
|
+
return f.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
|
|
232
|
+
}).map((f) => f.data.panoIndex).forEach((f) => {
|
|
129
233
|
var S, k;
|
|
130
|
-
const y = (S = this.five.work.observers[
|
|
234
|
+
const y = (S = this.five.work.observers[f]) == null ? void 0 : S.floorIndex;
|
|
131
235
|
if (y !== void 0)
|
|
132
|
-
if (
|
|
133
|
-
const b =
|
|
134
|
-
|
|
236
|
+
if (m === y) {
|
|
237
|
+
const b = s.length - 1;
|
|
238
|
+
s[b] = [...(k = s[b]) != null ? k : [], f];
|
|
135
239
|
} else {
|
|
136
|
-
|
|
137
|
-
const b =
|
|
138
|
-
|
|
240
|
+
m = y;
|
|
241
|
+
const b = s.length;
|
|
242
|
+
s[b] = [f];
|
|
139
243
|
}
|
|
140
|
-
}), !this.GuideLine && ((
|
|
244
|
+
}), !this.GuideLine && ((u = this.config) == null ? void 0 : u.useGuideLine) !== !1 && (this.GuideLine = Q(this.five, this.config)), (P = this.GuideLine) == null || P.load({ routes: s.map((f) => ({ panoIndexList: f })), config: n.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.info(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
|
|
141
245
|
});
|
|
142
246
|
}
|
|
143
247
|
play(e) {
|
|
@@ -191,35 +295,35 @@ class z extends V {
|
|
|
191
295
|
if (i.keyframes)
|
|
192
296
|
return {
|
|
193
297
|
keyframesId: w(),
|
|
194
|
-
keyframes: i.keyframes.map((r,
|
|
298
|
+
keyframes: i.keyframes.map((r, n) => {
|
|
195
299
|
var a;
|
|
196
|
-
const
|
|
197
|
-
return E(g({ id: (a = r.uuid) != null ? a : w(), moveIndex:
|
|
300
|
+
const s = i.keyframes[n + 1], m = (() => !s || s.start === void 0 || r.end === void 0 ? 0 : s.start - r.end)();
|
|
301
|
+
return E(g({ id: (a = r.uuid) != null ? a : w(), moveIndex: n, stay: m, index: n }, r), { guildPluginOptions: i.guildPluginOptions });
|
|
198
302
|
})
|
|
199
303
|
};
|
|
200
304
|
if (i.panoIndexList) {
|
|
201
305
|
let r = [];
|
|
202
|
-
const { moveEffect:
|
|
203
|
-
return this.privateState.moveToFirstPanoEffect =
|
|
306
|
+
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: m } = i;
|
|
307
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, i.panoIndexList.forEach((a, o) => {
|
|
204
308
|
const d = (() => {
|
|
205
|
-
var
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
309
|
+
var f, y, S, k;
|
|
310
|
+
const p = i.panoIndexList.slice(o).find((b) => b !== a);
|
|
311
|
+
if (p === void 0)
|
|
208
312
|
return;
|
|
209
|
-
const
|
|
210
|
-
if (!
|
|
313
|
+
const l = (f = t[a]) == null ? void 0 : f.position, u = (y = t[p]) == null ? void 0 : y.position;
|
|
314
|
+
if (!u || !l || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[p]) == null ? void 0 : k.floorIndex))
|
|
211
315
|
return;
|
|
212
|
-
const P = new j.Vector3().subVectors(
|
|
316
|
+
const P = new j.Vector3().subVectors(u, l);
|
|
213
317
|
return N(P.normalize());
|
|
214
318
|
})();
|
|
215
319
|
i.moveType === void 0 || i.moveType === "justMove" ? r.push({
|
|
216
|
-
moveIndex:
|
|
320
|
+
moveIndex: o,
|
|
217
321
|
stay: i.stay,
|
|
218
|
-
data: g({ effect: "Move", panoIndex: a, moveEffect:
|
|
219
|
-
}) : i.moveType === "moveAndRotate" && (r.push({ moveIndex:
|
|
322
|
+
data: g({ effect: "Move", panoIndex: a, moveEffect: n }, d != null ? d : {})
|
|
323
|
+
}) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: o, stay: i.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), d && r.push({ moveIndex: o, stay: i.stay, data: g({ effect: "Rotate", panoIndex: a }, d) }));
|
|
220
324
|
}), {
|
|
221
325
|
keyframesId: w(),
|
|
222
|
-
keyframes: r.map((a,
|
|
326
|
+
keyframes: r.map((a, o) => g({ id: w(), index: o }, a)),
|
|
223
327
|
guildPluginOptions: i.guildPluginOptions
|
|
224
328
|
};
|
|
225
329
|
} else
|
|
@@ -244,57 +348,57 @@ class z extends V {
|
|
|
244
348
|
}
|
|
245
349
|
handlePlay(e) {
|
|
246
350
|
return v(this, null, function* () {
|
|
247
|
-
var
|
|
248
|
-
const { data: t, state: i, privateState: r, hooks:
|
|
351
|
+
var l;
|
|
352
|
+
const { data: t, state: i, privateState: r, hooks: n } = this;
|
|
249
353
|
if (r.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
250
354
|
return;
|
|
251
|
-
const
|
|
252
|
-
r.playId =
|
|
253
|
-
const
|
|
254
|
-
(e == null ? void 0 : e.notEmitEvent) !== !0 &&
|
|
255
|
-
let
|
|
256
|
-
const
|
|
257
|
-
var
|
|
355
|
+
const s = w();
|
|
356
|
+
r.playId = s, r.playing = !0, r.broke = !1;
|
|
357
|
+
const m = t.keyframes, a = this.getPauseData();
|
|
358
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
|
|
359
|
+
let o = !1;
|
|
360
|
+
const p = yield (() => v(this, null, function* () {
|
|
361
|
+
var u, P;
|
|
258
362
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
259
363
|
return e.playFromIndex;
|
|
260
364
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
261
|
-
return (
|
|
365
|
+
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((f) => f.id === e.playFromId);
|
|
262
366
|
if (a != null && a.keyframeId) {
|
|
263
|
-
const
|
|
367
|
+
const f = (P = this.data) == null ? void 0 : P.keyframes.find((y) => y.id === a.keyframeId);
|
|
264
368
|
if (a != null && a.fiveState && (yield this.move(a.fiveState, {
|
|
265
369
|
moveEffect: r.moveToFirstPanoEffect,
|
|
266
370
|
duration: r.moveToFirstPanoDuration
|
|
267
|
-
})),
|
|
268
|
-
if (
|
|
269
|
-
return
|
|
270
|
-
if (
|
|
371
|
+
})), f) {
|
|
372
|
+
if (f.data.effect === "Move")
|
|
373
|
+
return f.index;
|
|
374
|
+
if (f.data.effect === "Rotate") {
|
|
271
375
|
const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
|
|
272
|
-
return yield this.playKeyframe(
|
|
376
|
+
return yield this.playKeyframe(f, { duration: y }), o = !0, f.index + 1;
|
|
273
377
|
}
|
|
274
378
|
}
|
|
275
379
|
}
|
|
276
380
|
}))();
|
|
277
381
|
this.clearPauseData();
|
|
278
|
-
for (const
|
|
279
|
-
if (r.broke || !i.playing || !r.playing ||
|
|
382
|
+
for (const u of m) {
|
|
383
|
+
if (r.broke || !i.playing || !r.playing || s !== r.playId)
|
|
280
384
|
return;
|
|
281
|
-
if (!(
|
|
385
|
+
if (!(p !== void 0 && u.index < p))
|
|
282
386
|
try {
|
|
283
|
-
|
|
284
|
-
moveEffect:
|
|
285
|
-
duration:
|
|
286
|
-
}),
|
|
387
|
+
n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
|
|
388
|
+
moveEffect: o === !1 ? r.moveToFirstPanoEffect : void 0,
|
|
389
|
+
duration: o === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
|
|
390
|
+
}), u.stay && (yield J(u.stay)), o === !1 && (o = !0);
|
|
287
391
|
} catch (P) {
|
|
288
392
|
return Promise.resolve("broke");
|
|
289
393
|
}
|
|
290
394
|
}
|
|
291
|
-
i.playing &&
|
|
395
|
+
i.playing && s === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
|
|
292
396
|
});
|
|
293
397
|
}
|
|
294
398
|
handlePause(e) {
|
|
295
|
-
var
|
|
399
|
+
var n;
|
|
296
400
|
const { state: t, privateState: i, hooks: r } = this;
|
|
297
|
-
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (
|
|
401
|
+
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (n = e == null ? void 0 : e.userAction) != null ? n : !0 }));
|
|
298
402
|
}
|
|
299
403
|
playKeyframe(e, t) {
|
|
300
404
|
return v(this, null, function* () {
|
|
@@ -313,32 +417,32 @@ class z extends V {
|
|
|
313
417
|
}
|
|
314
418
|
getPlayPromise(i) {
|
|
315
419
|
return v(this, arguments, function* (e, t = {}) {
|
|
316
|
-
var
|
|
420
|
+
var n;
|
|
317
421
|
const r = e.data;
|
|
318
|
-
if (t.duration = (
|
|
319
|
-
return new Promise((
|
|
422
|
+
if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!r)
|
|
423
|
+
return new Promise((s, m) => {
|
|
320
424
|
let a = !1;
|
|
321
425
|
this.addInterruptListener(() => {
|
|
322
426
|
if (!a)
|
|
323
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0,
|
|
427
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, m(new Error("play is interupted"));
|
|
324
428
|
});
|
|
325
429
|
try {
|
|
326
430
|
if (a)
|
|
327
431
|
return;
|
|
328
|
-
const
|
|
329
|
-
|
|
432
|
+
const o = () => {
|
|
433
|
+
s(), a = !0;
|
|
330
434
|
};
|
|
331
435
|
switch (r.effect) {
|
|
332
436
|
case "Move":
|
|
333
|
-
this.move(r, t).then(
|
|
437
|
+
this.move(r, t).then(o);
|
|
334
438
|
break;
|
|
335
439
|
case "Rotate":
|
|
336
|
-
this.rotate(r, t).then(
|
|
440
|
+
this.rotate(r, t).then(o);
|
|
337
441
|
break;
|
|
338
442
|
default:
|
|
339
|
-
this.rotate(r, t).then(
|
|
443
|
+
this.rotate(r, t).then(o);
|
|
340
444
|
}
|
|
341
|
-
} catch (
|
|
445
|
+
} catch (o) {
|
|
342
446
|
}
|
|
343
447
|
});
|
|
344
448
|
});
|
|
@@ -381,73 +485,73 @@ class z extends V {
|
|
|
381
485
|
}
|
|
382
486
|
updateCamera(i) {
|
|
383
487
|
return v(this, arguments, function* (e, t = {}) {
|
|
384
|
-
const { five: r, privateState:
|
|
385
|
-
var
|
|
386
|
-
const d = (
|
|
488
|
+
const { five: r, privateState: n, state: s } = this, m = (() => {
|
|
489
|
+
var l, u;
|
|
490
|
+
const d = (l = s.config) == null ? void 0 : l.speedConfig, p = (u = e.rotateSpeed) != null ? u : d == null ? void 0 : d.rotateSpeed;
|
|
387
491
|
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
388
|
-
return
|
|
389
|
-
if (
|
|
390
|
-
return d.rotateSpeedUnit === "rad/ms" ?
|
|
492
|
+
return p;
|
|
493
|
+
if (p !== void 0)
|
|
494
|
+
return d.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
|
|
391
495
|
})(), a = (() => {
|
|
392
496
|
if (t.duration)
|
|
393
497
|
return t.duration;
|
|
394
|
-
if (
|
|
498
|
+
if (m) {
|
|
395
499
|
const d = this.five.getCurrentState();
|
|
396
|
-
return $(d, e) /
|
|
500
|
+
return $(d, e) / m;
|
|
397
501
|
}
|
|
398
502
|
return 800;
|
|
399
503
|
})();
|
|
400
|
-
|
|
401
|
-
const
|
|
504
|
+
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = a);
|
|
505
|
+
const o = this.getSpeededDuration(a);
|
|
402
506
|
return new Promise((d) => {
|
|
403
|
-
_(() => r.updateCamera(e,
|
|
507
|
+
_(() => r.updateCamera(e, o)), setTimeout(() => d(), o);
|
|
404
508
|
});
|
|
405
509
|
});
|
|
406
510
|
}
|
|
407
511
|
changePano(e, t) {
|
|
408
512
|
return v(this, null, function* () {
|
|
409
|
-
const { five: i, privateState: r, state:
|
|
513
|
+
const { five: i, privateState: r, state: n } = this;
|
|
410
514
|
if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
|
|
411
515
|
return;
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
const
|
|
415
|
-
var
|
|
416
|
-
const
|
|
417
|
-
if ((
|
|
516
|
+
const s = i.getCurrentState().mode !== "Panorama";
|
|
517
|
+
s && (this.privateState.modeChanging = !0);
|
|
518
|
+
const m = (() => {
|
|
519
|
+
var p, l;
|
|
520
|
+
const o = (p = n.config) == null ? void 0 : p.speedConfig, d = (l = e.moveSpeed) != null ? l : o == null ? void 0 : o.moveSpeed;
|
|
521
|
+
if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
|
|
418
522
|
return d;
|
|
419
523
|
if (d !== void 0)
|
|
420
|
-
return
|
|
524
|
+
return o.moveSpeedUnit === "m/ms" ? d : d / 1e3;
|
|
421
525
|
})(), a = (() => {
|
|
422
526
|
if (t != null && t.duration)
|
|
423
527
|
return t.duration;
|
|
424
|
-
if (
|
|
425
|
-
const
|
|
426
|
-
return
|
|
528
|
+
if (m && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
529
|
+
const o = i.work.observers[i.panoIndex].position, d = i.work.observers[e.panoIndex].position;
|
|
530
|
+
return o.distanceTo(d) / m;
|
|
427
531
|
}
|
|
428
532
|
return 800;
|
|
429
533
|
})();
|
|
430
|
-
r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = a), yield new Promise((
|
|
431
|
-
var d,
|
|
534
|
+
r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
|
|
535
|
+
var d, p, l;
|
|
432
536
|
i.moveToPano(e.panoIndex, {
|
|
433
537
|
latitude: e.latitude,
|
|
434
538
|
longitude: e.longitude,
|
|
435
539
|
fov: e.fov,
|
|
436
540
|
duration: this.getSpeededDuration(a),
|
|
437
|
-
effect: (
|
|
438
|
-
moveCancelCallback: () =>
|
|
439
|
-
moveEndCallback: () =>
|
|
440
|
-
}),
|
|
441
|
-
}),
|
|
541
|
+
effect: (l = (p = t == null ? void 0 : t.moveEffect) != null ? p : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? l : e.moveEffect,
|
|
542
|
+
moveCancelCallback: () => o(),
|
|
543
|
+
moveEndCallback: () => o()
|
|
544
|
+
}), s && i.once("panoArrived", () => o());
|
|
545
|
+
}), s && (this.privateState.modeChanging = !1);
|
|
442
546
|
});
|
|
443
547
|
}
|
|
444
548
|
changeSpeed(e, t = !0) {
|
|
445
|
-
const { state: i, privateState: r, hooks:
|
|
446
|
-
if (
|
|
549
|
+
const { state: i, privateState: r, hooks: n } = this, { currentPlayKeyframe: s } = r;
|
|
550
|
+
if (n.emit("speedChange", e, { userAction: t }), i.playing && s)
|
|
447
551
|
try {
|
|
448
|
-
const
|
|
552
|
+
const m = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: m });
|
|
449
553
|
r.currentPlayQueue.push(a);
|
|
450
|
-
} catch (
|
|
554
|
+
} catch (m) {
|
|
451
555
|
}
|
|
452
556
|
}
|
|
453
557
|
getSpeededDuration(e) {
|
|
@@ -522,5 +626,5 @@ class z extends V {
|
|
|
522
626
|
I(z, "PluginVersion", M);
|
|
523
627
|
export {
|
|
524
628
|
z as default,
|
|
525
|
-
|
|
629
|
+
Oi as pluginFlag
|
|
526
630
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import CruisePluginController from './Controller';
|
|
3
|
+
import * as CruisePluginTypes from './typing';
|
|
3
4
|
export { CruisePluginController };
|
|
4
5
|
export declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
|
|
5
6
|
export type { CruisePluginExportType } from './typing';
|
|
6
7
|
export default CruisePlugin;
|
|
8
|
+
export { CruisePluginTypes };
|