@realsee/dnalogel 3.0.0-4 → 3.0.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/index.cjs.js +26 -26
- package/dist/index.js +1422 -1425
- package/dist/index.umd.js +31 -31
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +10 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +44 -44
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.LineSegments.html +7 -7
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.Object3D.html +7 -7
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/AreaMakerPlugin.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
- package/docs/functions/Util.equal.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
- package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +15 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +13 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/AreaMakerPluginType.html +4 -4
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/CurrentPanoImagePluginType.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelId.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PipelinePluginParameterType.html +4 -4
- package/docs/types/PipelinePluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagConfigByKey.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/CruisePlugin/Controller.js +129 -127
- package/libs/PanoTagPlugin/controller/TagUtil.js +93 -98
- package/libs/PanoTagPlugin/controller/index.js +3 -3
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +30 -31
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var T = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var A = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var F = Object.getOwnPropertySymbols;
|
|
4
4
|
var O = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var L = (c, l, e) => l in c ? T(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e,
|
|
5
|
+
var L = (c, l, e) => l in c ? T(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, P = (c, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
7
|
O.call(l, e) && L(c, e, l[e]);
|
|
8
8
|
if (F)
|
|
@@ -11,20 +11,20 @@ var L = (c, l, e) => l in c ? T(c, l, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return c;
|
|
12
12
|
}, C = (c, l) => K(c, A(l));
|
|
13
13
|
var I = (c, l, e) => (L(c, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
|
-
var v = (c, l, e) => new Promise((t,
|
|
15
|
-
var
|
|
14
|
+
var v = (c, l, e) => new Promise((t, r) => {
|
|
15
|
+
var i = (d) => {
|
|
16
16
|
try {
|
|
17
17
|
s(e.next(d));
|
|
18
18
|
} catch (a) {
|
|
19
|
-
|
|
19
|
+
r(a);
|
|
20
20
|
}
|
|
21
21
|
}, n = (d) => {
|
|
22
22
|
try {
|
|
23
23
|
s(e.throw(d));
|
|
24
24
|
} catch (a) {
|
|
25
|
-
|
|
25
|
+
r(a);
|
|
26
26
|
}
|
|
27
|
-
}, s = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(
|
|
27
|
+
}, s = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(i, n);
|
|
28
28
|
s((e = e.apply(c, l)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Controller as V } from "../base/BasePluginWithData.js";
|
|
@@ -233,40 +233,40 @@ class z extends V {
|
|
|
233
233
|
});
|
|
234
234
|
I(this, "GuideLine");
|
|
235
235
|
this.config = t, Object.assign(window, { [`__${G}_DEBUG__`]: this });
|
|
236
|
-
const
|
|
237
|
-
this.hooks.on("play",
|
|
238
|
-
this.hooks.off("play",
|
|
236
|
+
const r = this.setFiveLinearUpdateCamera.bind(this), i = this.setFiveOriginUpdateCamera.bind(this);
|
|
237
|
+
this.hooks.on("play", r), this.hooks.on("broke", i), this.hooks.on("end", i), this.hooks.on("pause", i), this.privateState.disposers.push(() => {
|
|
238
|
+
this.hooks.off("play", r), this.hooks.off("broke", i), this.hooks.off("end", i), this.hooks.off("pause", i);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
242
|
* @description Load Data and State
|
|
243
243
|
*/
|
|
244
|
-
load(e, t,
|
|
244
|
+
load(e, t, r) {
|
|
245
245
|
return v(this, null, function* () {
|
|
246
|
-
var o, m,
|
|
246
|
+
var o, m, p, u, h, g;
|
|
247
247
|
if (this.state.disposed)
|
|
248
248
|
return D();
|
|
249
|
-
this.privateState.fiveOriginGetProgress || (m = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && m.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (
|
|
250
|
-
const
|
|
251
|
-
this.data = n, this.hooks.emit("dataChange", n,
|
|
249
|
+
this.privateState.fiveOriginGetProgress || (m = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && m.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (p = this.five.controller) == null ? void 0 : p.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
|
|
250
|
+
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
|
|
251
|
+
this.data = n, this.hooks.emit("dataChange", n, i);
|
|
252
252
|
let s = [], d;
|
|
253
|
-
const a = this.data.keyframes.filter((
|
|
254
|
-
a.filter((
|
|
253
|
+
const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
|
|
254
|
+
a.filter((f, y) => {
|
|
255
255
|
var S;
|
|
256
|
-
return
|
|
257
|
-
}).map((
|
|
256
|
+
return f.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
|
|
257
|
+
}).map((f) => f.data.panoIndex).forEach((f) => {
|
|
258
258
|
var S, k;
|
|
259
|
-
const y = (S = this.five.work.observers[
|
|
259
|
+
const y = (S = this.five.work.observers[f]) == null ? void 0 : S.floorIndex;
|
|
260
260
|
if (y !== void 0)
|
|
261
261
|
if (d === y) {
|
|
262
262
|
const b = s.length - 1;
|
|
263
|
-
s[b] = [...(k = s[b]) != null ? k : [],
|
|
263
|
+
s[b] = [...(k = s[b]) != null ? k : [], f];
|
|
264
264
|
} else {
|
|
265
265
|
d = y;
|
|
266
266
|
const b = s.length;
|
|
267
|
-
s[b] = [
|
|
267
|
+
s[b] = [f];
|
|
268
268
|
}
|
|
269
|
-
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (
|
|
269
|
+
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: s.map((f) => ({ panoIndexList: f })), config: n.guildPluginOptions }), t ? this.setState(t, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
@@ -281,14 +281,14 @@ class z extends V {
|
|
|
281
281
|
* @param {string} options.id play from keyframes id
|
|
282
282
|
*/
|
|
283
283
|
playFrom(e) {
|
|
284
|
-
const { index: t, id:
|
|
285
|
-
this.state.playing && this.setState({ playing: !1 }, { userAction:
|
|
284
|
+
const { index: t, id: r, userAction: i } = e;
|
|
285
|
+
this.state.playing && this.setState({ playing: !1 }, { userAction: i }), this.setState({ playing: !0 }, { userAction: i, playFromIndex: t, playFromId: r });
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
288
|
* @description Play from first keyframe
|
|
289
289
|
*/
|
|
290
290
|
playFromStart(e) {
|
|
291
|
-
return this.playFrom(C(
|
|
291
|
+
return this.playFrom(C(P({}, e), { index: 0 }));
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
294
|
* @description Pause
|
|
@@ -334,13 +334,13 @@ class z extends V {
|
|
|
334
334
|
* @description Set state
|
|
335
335
|
*/
|
|
336
336
|
setState(e, t) {
|
|
337
|
-
var
|
|
337
|
+
var i;
|
|
338
338
|
if (this.state.disposed)
|
|
339
339
|
return D();
|
|
340
340
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
341
341
|
return q();
|
|
342
|
-
const
|
|
343
|
-
this.state =
|
|
342
|
+
const r = P({}, this.state);
|
|
343
|
+
this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== r.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== r.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), R(r, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
344
344
|
}
|
|
345
345
|
/**
|
|
346
346
|
* @description Format data
|
|
@@ -348,62 +348,62 @@ class z extends V {
|
|
|
348
348
|
formatData(e) {
|
|
349
349
|
return v(this, null, function* () {
|
|
350
350
|
this.five.work || (yield this.waitFiveLoaded());
|
|
351
|
-
const t = this.five.work.observers,
|
|
352
|
-
const
|
|
353
|
-
return typeof
|
|
351
|
+
const t = this.five.work.observers, r = (() => {
|
|
352
|
+
const i = e;
|
|
353
|
+
return typeof i == "object" && i !== null && i.version && i.data ? i.data : i;
|
|
354
354
|
})();
|
|
355
|
-
if (
|
|
355
|
+
if (r.keyframes)
|
|
356
356
|
return {
|
|
357
357
|
keyframesId: w(),
|
|
358
|
-
keyframes:
|
|
358
|
+
keyframes: r.keyframes.map((i, n) => {
|
|
359
359
|
var a;
|
|
360
|
-
const s =
|
|
361
|
-
return C(
|
|
360
|
+
const s = r.keyframes[n + 1], d = (() => !s || s.start === void 0 || i.end === void 0 ? 0 : s.start - i.end)();
|
|
361
|
+
return C(P({ id: (a = i.uuid) != null ? a : w(), moveIndex: n, stay: d, index: n }, i), { guildPluginOptions: r.guildPluginOptions });
|
|
362
362
|
})
|
|
363
363
|
};
|
|
364
|
-
if (
|
|
365
|
-
let
|
|
366
|
-
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } =
|
|
367
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d,
|
|
364
|
+
if (r.panoIndexList) {
|
|
365
|
+
let i = [];
|
|
366
|
+
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
|
|
367
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((a, o) => {
|
|
368
368
|
const m = (() => {
|
|
369
|
-
var
|
|
370
|
-
const
|
|
371
|
-
if (
|
|
369
|
+
var f, y, S, k;
|
|
370
|
+
const p = r.panoIndexList.slice(o).find((b) => b !== a);
|
|
371
|
+
if (p === void 0)
|
|
372
372
|
return;
|
|
373
|
-
const u = (
|
|
374
|
-
if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[
|
|
373
|
+
const u = (f = t[a]) == null ? void 0 : f.position, h = (y = t[p]) == null ? void 0 : y.position;
|
|
374
|
+
if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[p]) == null ? void 0 : k.floorIndex))
|
|
375
375
|
return;
|
|
376
|
-
const
|
|
377
|
-
return N(
|
|
376
|
+
const g = new j.Vector3().subVectors(h, u);
|
|
377
|
+
return N(g.normalize());
|
|
378
378
|
})();
|
|
379
|
-
|
|
379
|
+
r.moveType === void 0 || r.moveType === "justMove" ? i.push({
|
|
380
380
|
moveIndex: o,
|
|
381
|
-
stay:
|
|
382
|
-
data:
|
|
383
|
-
}) :
|
|
381
|
+
stay: r.stay,
|
|
382
|
+
data: P({ effect: "Move", panoIndex: a, moveEffect: n }, m != null ? m : {})
|
|
383
|
+
}) : r.moveType === "moveAndRotate" && (i.push({ moveIndex: o, stay: r.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), m && i.push({ moveIndex: o, stay: r.stay, data: P({ effect: "Rotate", panoIndex: a }, m) }));
|
|
384
384
|
}), {
|
|
385
385
|
keyframesId: w(),
|
|
386
|
-
keyframes:
|
|
387
|
-
guildPluginOptions:
|
|
388
|
-
useGuildLine:
|
|
386
|
+
keyframes: i.map((a, o) => P({ id: w(), index: o }, a)),
|
|
387
|
+
guildPluginOptions: r.guildPluginOptions,
|
|
388
|
+
useGuildLine: r.useGuildLine
|
|
389
389
|
};
|
|
390
390
|
} else
|
|
391
391
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
handleEnable(e, t = !0) {
|
|
395
|
-
var
|
|
396
|
-
e ? ((
|
|
395
|
+
var r, i;
|
|
396
|
+
e ? ((r = this.GuideLine) == null || r.enable(), this.hooks.emit("enable", { userAction: t })) : ((i = this.GuideLine) == null || i.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
397
397
|
}
|
|
398
398
|
handleVisible(e, t = !0) {
|
|
399
|
-
var
|
|
400
|
-
e ? ((
|
|
399
|
+
var r, i;
|
|
400
|
+
e ? ((r = this.GuideLine) == null || r.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((i = this.GuideLine) == null || i.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
401
401
|
}
|
|
402
402
|
changePlayState(e, t) {
|
|
403
403
|
this.actionIfStateIsEnabled(
|
|
404
404
|
() => {
|
|
405
|
-
var
|
|
406
|
-
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (
|
|
405
|
+
var r;
|
|
406
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
407
407
|
}
|
|
408
408
|
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
409
409
|
}
|
|
@@ -416,50 +416,50 @@ class z extends V {
|
|
|
416
416
|
handlePlay(e) {
|
|
417
417
|
return v(this, null, function* () {
|
|
418
418
|
var u;
|
|
419
|
-
const { data: t, state:
|
|
420
|
-
if (
|
|
419
|
+
const { data: t, state: r, privateState: i, hooks: n } = this;
|
|
420
|
+
if (i.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
421
421
|
return;
|
|
422
422
|
const s = w();
|
|
423
|
-
|
|
423
|
+
i.playId = s, i.playing = !0, i.broke = !1;
|
|
424
424
|
const d = t.keyframes, a = this.getPauseData();
|
|
425
425
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
|
|
426
426
|
let o = !1;
|
|
427
|
-
const
|
|
428
|
-
var h,
|
|
427
|
+
const p = yield (() => v(this, null, function* () {
|
|
428
|
+
var h, g;
|
|
429
429
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
430
430
|
return e.playFromIndex;
|
|
431
431
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
432
|
-
return (h = this.data) == null ? void 0 : h.keyframes.findIndex((
|
|
432
|
+
return (h = this.data) == null ? void 0 : h.keyframes.findIndex((f) => f.id === e.playFromId);
|
|
433
433
|
if (a != null && a.keyframeId) {
|
|
434
|
-
const
|
|
434
|
+
const f = (g = this.data) == null ? void 0 : g.keyframes.find((y) => y.id === a.keyframeId);
|
|
435
435
|
if (a != null && a.fiveState && (yield this.move(a.fiveState, {
|
|
436
|
-
moveEffect:
|
|
437
|
-
duration:
|
|
438
|
-
})),
|
|
439
|
-
if (
|
|
440
|
-
return
|
|
441
|
-
if (
|
|
436
|
+
moveEffect: i.moveToFirstPanoEffect,
|
|
437
|
+
duration: i.moveToFirstPanoDuration
|
|
438
|
+
})), f) {
|
|
439
|
+
if (f.data.effect === "Move")
|
|
440
|
+
return f.index;
|
|
441
|
+
if (f.data.effect === "Rotate") {
|
|
442
442
|
const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
|
|
443
|
-
return yield this.playKeyframe(
|
|
443
|
+
return yield this.playKeyframe(f, { duration: y }), o = !0, f.index + 1;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
}))();
|
|
448
448
|
this.clearPauseData();
|
|
449
449
|
for (const h of d) {
|
|
450
|
-
if (
|
|
450
|
+
if (i.broke || !r.playing || !i.playing || s !== i.playId)
|
|
451
451
|
return;
|
|
452
|
-
if (!(
|
|
452
|
+
if (!(p !== void 0 && h.index < p))
|
|
453
453
|
try {
|
|
454
454
|
n.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
|
|
455
|
-
moveEffect: o === !1 ?
|
|
456
|
-
duration: o === !1 && typeof
|
|
455
|
+
moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
456
|
+
duration: o === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
457
457
|
}), h.stay && (yield J(h.stay)), o === !1 && (o = !0);
|
|
458
|
-
} catch (
|
|
459
|
-
return Promise.resolve("broke");
|
|
458
|
+
} catch (g) {
|
|
459
|
+
return console.error(g), Promise.resolve("broke");
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
|
|
462
|
+
r.playing && s === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
@@ -467,17 +467,17 @@ class z extends V {
|
|
|
467
467
|
*/
|
|
468
468
|
handlePause(e) {
|
|
469
469
|
var n;
|
|
470
|
-
const { state: t, privateState:
|
|
471
|
-
t.playing = !1,
|
|
470
|
+
const { state: t, privateState: r, hooks: i } = this;
|
|
471
|
+
t.playing = !1, r.playing !== !1 && (r.playing = !1, (e == null ? void 0 : e.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && i.emit("pause", { userAction: (n = e == null ? void 0 : e.userAction) != null ? n : !0 }));
|
|
472
472
|
}
|
|
473
473
|
/**
|
|
474
474
|
* @description Play single keyframe
|
|
475
475
|
*/
|
|
476
476
|
playKeyframe(e, t) {
|
|
477
477
|
return v(this, null, function* () {
|
|
478
|
-
var
|
|
479
|
-
const { privateState:
|
|
480
|
-
return ((
|
|
478
|
+
var i;
|
|
479
|
+
const { privateState: r } = this;
|
|
480
|
+
return ((i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), r.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
@@ -486,19 +486,21 @@ class z extends V {
|
|
|
486
486
|
addInterruptListener(e) {
|
|
487
487
|
const t = () => {
|
|
488
488
|
this.privateState.modeChanging || e();
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
|
|
489
|
+
}, r = (i) => {
|
|
490
|
+
i !== "mouseMove" && e();
|
|
491
|
+
};
|
|
492
|
+
return this.five.once("gesture", r), this.five.once("wantsChangeMode", t), () => {
|
|
493
|
+
this.five.off("gesture", r), this.five.once("wantsChangeMode", t);
|
|
492
494
|
};
|
|
493
495
|
}
|
|
494
496
|
/**
|
|
495
497
|
* @description: getPlayPromise
|
|
496
498
|
*/
|
|
497
|
-
getPlayPromise(
|
|
499
|
+
getPlayPromise(r) {
|
|
498
500
|
return v(this, arguments, function* (e, t = {}) {
|
|
499
501
|
var n;
|
|
500
|
-
const
|
|
501
|
-
if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!
|
|
502
|
+
const i = e.data;
|
|
503
|
+
if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!i)
|
|
502
504
|
return new Promise((s, d) => {
|
|
503
505
|
let a = !1;
|
|
504
506
|
this.addInterruptListener(() => {
|
|
@@ -511,15 +513,15 @@ class z extends V {
|
|
|
511
513
|
const o = () => {
|
|
512
514
|
s(), a = !0;
|
|
513
515
|
};
|
|
514
|
-
switch (
|
|
516
|
+
switch (i.effect) {
|
|
515
517
|
case "Move":
|
|
516
|
-
this.move(
|
|
518
|
+
this.move(i, t).then(o);
|
|
517
519
|
break;
|
|
518
520
|
case "Rotate":
|
|
519
|
-
this.rotate(
|
|
521
|
+
this.rotate(i, t).then(o);
|
|
520
522
|
break;
|
|
521
523
|
default:
|
|
522
|
-
this.rotate(
|
|
524
|
+
this.rotate(i, t).then(o);
|
|
523
525
|
}
|
|
524
526
|
} catch (o) {
|
|
525
527
|
}
|
|
@@ -532,17 +534,17 @@ class z extends V {
|
|
|
532
534
|
actionPromiseQueue() {
|
|
533
535
|
return v(this, null, function* () {
|
|
534
536
|
const { privateState: e } = this;
|
|
535
|
-
return new Promise((t,
|
|
537
|
+
return new Promise((t, r) => {
|
|
536
538
|
if (e.currentPlayQueue.length === 0) {
|
|
537
539
|
t();
|
|
538
540
|
return;
|
|
539
541
|
}
|
|
540
|
-
const
|
|
541
|
-
if (!
|
|
542
|
+
const i = e.currentPlayQueue.shift();
|
|
543
|
+
if (!i) {
|
|
542
544
|
t();
|
|
543
545
|
return;
|
|
544
546
|
}
|
|
545
|
-
|
|
547
|
+
i.then(t, r);
|
|
546
548
|
}).then(() => e.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
|
|
547
549
|
});
|
|
548
550
|
}
|
|
@@ -574,15 +576,15 @@ class z extends V {
|
|
|
574
576
|
/**
|
|
575
577
|
* @description Update five camera
|
|
576
578
|
*/
|
|
577
|
-
updateCamera(
|
|
579
|
+
updateCamera(r) {
|
|
578
580
|
return v(this, arguments, function* (e, t = {}) {
|
|
579
|
-
const { five:
|
|
581
|
+
const { five: i, privateState: n, state: s } = this, d = (() => {
|
|
580
582
|
var u, h;
|
|
581
|
-
const m = (u = s.config) == null ? void 0 : u.speedConfig,
|
|
583
|
+
const m = (u = s.config) == null ? void 0 : u.speedConfig, p = (h = e.rotateSpeed) != null ? h : m == null ? void 0 : m.rotateSpeed;
|
|
582
584
|
if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
|
|
583
|
-
return
|
|
584
|
-
if (
|
|
585
|
-
return m.rotateSpeedUnit === "rad/ms" ?
|
|
585
|
+
return p;
|
|
586
|
+
if (p !== void 0)
|
|
587
|
+
return m.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
|
|
586
588
|
})(), a = (() => {
|
|
587
589
|
if (t.duration)
|
|
588
590
|
return t.duration;
|
|
@@ -595,7 +597,7 @@ class z extends V {
|
|
|
595
597
|
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = a);
|
|
596
598
|
const o = this.getSpeededDuration(a);
|
|
597
599
|
return new Promise((m) => {
|
|
598
|
-
_(() =>
|
|
600
|
+
_(() => i.updateCamera(e, o)), setTimeout(() => m(), o);
|
|
599
601
|
});
|
|
600
602
|
});
|
|
601
603
|
}
|
|
@@ -604,14 +606,14 @@ class z extends V {
|
|
|
604
606
|
*/
|
|
605
607
|
changePano(e, t) {
|
|
606
608
|
return v(this, null, function* () {
|
|
607
|
-
const { five:
|
|
608
|
-
if (typeof e.panoIndex != "number" || e.panoIndex ===
|
|
609
|
+
const { five: r, privateState: i, state: n } = this;
|
|
610
|
+
if (typeof e.panoIndex != "number" || e.panoIndex === r.panoIndex)
|
|
609
611
|
return;
|
|
610
|
-
const s =
|
|
612
|
+
const s = r.getCurrentState().mode !== "Panorama";
|
|
611
613
|
s && (this.privateState.modeChanging = !0);
|
|
612
614
|
const d = (() => {
|
|
613
|
-
var
|
|
614
|
-
const o = (
|
|
615
|
+
var p, u;
|
|
616
|
+
const o = (p = n.config) == null ? void 0 : p.speedConfig, m = (u = e.moveSpeed) != null ? u : o == null ? void 0 : o.moveSpeed;
|
|
615
617
|
if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
|
|
616
618
|
return m;
|
|
617
619
|
if (m !== void 0)
|
|
@@ -619,23 +621,23 @@ class z extends V {
|
|
|
619
621
|
})(), a = (() => {
|
|
620
622
|
if (t != null && t.duration)
|
|
621
623
|
return t.duration;
|
|
622
|
-
if (d && typeof
|
|
623
|
-
const o =
|
|
624
|
+
if (d && typeof r.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
625
|
+
const o = r.work.observers[r.panoIndex].position, m = r.work.observers[e.panoIndex].position;
|
|
624
626
|
return o.distanceTo(m) / d;
|
|
625
627
|
}
|
|
626
628
|
return 800;
|
|
627
629
|
})();
|
|
628
|
-
|
|
629
|
-
var m,
|
|
630
|
-
|
|
630
|
+
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
|
|
631
|
+
var m, p, u;
|
|
632
|
+
r.moveToPano(e.panoIndex, {
|
|
631
633
|
latitude: e.latitude,
|
|
632
634
|
longitude: e.longitude,
|
|
633
635
|
fov: e.fov,
|
|
634
636
|
duration: this.getSpeededDuration(a),
|
|
635
|
-
effect: (u = (
|
|
637
|
+
effect: (u = (p = t == null ? void 0 : t.moveEffect) != null ? p : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? u : e.moveEffect,
|
|
636
638
|
moveCancelCallback: () => o(),
|
|
637
639
|
moveEndCallback: () => o()
|
|
638
|
-
}), s &&
|
|
640
|
+
}), s && r.once("panoArrived", () => o());
|
|
639
641
|
}), s && (this.privateState.modeChanging = !1);
|
|
640
642
|
});
|
|
641
643
|
}
|
|
@@ -643,11 +645,11 @@ class z extends V {
|
|
|
643
645
|
* @description: Change play speed
|
|
644
646
|
*/
|
|
645
647
|
changeSpeed(e, t = !0) {
|
|
646
|
-
const { state:
|
|
647
|
-
if (n.emit("speedChange", e, { userAction: t }),
|
|
648
|
+
const { state: r, privateState: i, hooks: n } = this, { currentPlayKeyframe: s } = i;
|
|
649
|
+
if (n.emit("speedChange", e, { userAction: t }), r.playing && s)
|
|
648
650
|
try {
|
|
649
651
|
const d = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: d });
|
|
650
|
-
|
|
652
|
+
i.currentPlayQueue.push(a);
|
|
651
653
|
} catch (d) {
|
|
652
654
|
}
|
|
653
655
|
}
|
|
@@ -686,12 +688,12 @@ class z extends V {
|
|
|
686
688
|
* @description Set pause data
|
|
687
689
|
*/
|
|
688
690
|
setPauseData() {
|
|
689
|
-
var e, t,
|
|
691
|
+
var e, t, r, i;
|
|
690
692
|
if ((e = this.data) != null && e.keyframesId)
|
|
691
693
|
return E.set((t = this.data) == null ? void 0 : t.keyframesId, {
|
|
692
|
-
keyframeId: (
|
|
694
|
+
keyframeId: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
|
|
693
695
|
fiveState: this.five.getCurrentState(),
|
|
694
|
-
duration: (
|
|
696
|
+
duration: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.originDuration,
|
|
695
697
|
playedProgress: this.getProgress()
|
|
696
698
|
});
|
|
697
699
|
}
|
|
@@ -712,7 +714,7 @@ class z extends V {
|
|
|
712
714
|
// TODO
|
|
713
715
|
handleDispose() {
|
|
714
716
|
var e, t;
|
|
715
|
-
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0, (t = this.privateState.disposers) == null || t.forEach((
|
|
717
|
+
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0, (t = this.privateState.disposers) == null || t.forEach((r) => r == null ? void 0 : r());
|
|
716
718
|
}
|
|
717
719
|
/**
|
|
718
720
|
* @description Action function if plugin is enable
|
|
@@ -740,8 +742,8 @@ class z extends V {
|
|
|
740
742
|
}
|
|
741
743
|
setFiveLinearUpdateCamera() {
|
|
742
744
|
this.privateState.fiveOriginGetProgress && (this.five.controller.cameraMotion.getProgress = (e) => {
|
|
743
|
-
const t = this.five.controller.cameraMotion,
|
|
744
|
-
return
|
|
745
|
+
const t = this.five.controller.cameraMotion, r = e - t.startTime;
|
|
746
|
+
return r < 0 ? 0 : r >= t.duration ? 1 : 1 - H(1, t.startVelocity, t.duration, r);
|
|
745
747
|
});
|
|
746
748
|
}
|
|
747
749
|
setFiveOriginUpdateCamera() {
|