@realsee/dnalogel 3.0.0-dev.1 → 3.0.0
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/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/dist/index.cjs.js +48 -48
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4403 -4376
- package/dist/index.umd.js +45 -45
- package/dist/shared-utils/five/FiveDomEvents.d.ts +24 -10
- package/dist/shared-utils/five/calculateThreeMouse.d.ts +11 -0
- package/dist/shared-utils/index.d.ts +1 -1
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/url/getUrl.d.ts +4 -0
- package/libs/AreaMakerPlugin/Controller.js +1 -1
- package/libs/AreaMakerPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CruisePlugin/Controller.js +107 -102
- package/libs/CruisePlugin/index.js +9 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +22 -24
- package/libs/CurrentPanoImagePlugin/index.js +4 -5
- package/libs/GuideLinePlugin/Controller.js +25 -22
- package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
- package/libs/GuideLinePlugin/index.js +11 -8
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +192 -205
- package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +66 -62
- package/libs/PanoTagPlugin/controller/TagRender.js +55 -52
- package/libs/PanoTagPlugin/controller/TagUtil.js +99 -97
- package/libs/PanoTagPlugin/controller/index.js +45 -43
- package/libs/PanoTagPlugin/index.js +15 -12
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +97 -99
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/PipelinePlugin/Controller.js +1 -1
- package/libs/PipelinePlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/index.js +1 -0
- package/libs/index.d.ts +0 -1
- package/libs/index.js +120 -118
- package/libs/shared-utils/five/FiveDomEvents.d.ts +24 -10
- package/libs/shared-utils/five/FiveDomEvents.js +104 -66
- package/libs/shared-utils/five/calculateThreeMouse.d.ts +11 -0
- package/libs/shared-utils/five/calculateThreeMouse.js +8 -0
- package/libs/shared-utils/five/changeMode.js +11 -11
- package/libs/shared-utils/index.d.ts +1 -1
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/nearlyEqual.d.ts +7 -0
- package/libs/shared-utils/nearlyEqual.js +9 -3
- package/libs/shared-utils/three/PointSelector.js +39 -39
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +6 -5
- package/libs/shared-utils/three/PointSelectorHelper.js +4 -4
- package/libs/shared-utils/three/getNormal.d.ts +2 -0
- package/libs/shared-utils/three/getNormal.js +10 -0
- package/libs/shared-utils/url/getUrl.d.ts +4 -0
- package/libs/shared-utils/url/getUrl.js +7 -0
- package/package.json +2 -2
- package/dist/shared-utils/five/adapt.d.ts +0 -9
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
- package/docs/classes/CSS3DRender.html +0 -773
- package/docs/classes/CruisePluginController.html +0 -672
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
- package/docs/classes/Magnifier.html +0 -480
- package/docs/classes/ModelRoomLabelController.html +0 -398
- package/docs/classes/Object3DHelperController.html +0 -640
- package/docs/classes/PaintBrush.html +0 -502
- package/docs/classes/PanoMeasurePluginLine.html +0 -522
- package/docs/classes/PanoMeasurePluginModel.html +0 -571
- package/docs/classes/PanoMeasurePluginPoint.html +0 -362
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
- package/docs/classes/PanoTagPluginController.html +0 -1050
- package/docs/classes/Util.BetterTween.html +0 -416
- package/docs/classes/Util.Interval.html +0 -432
- package/docs/classes/Util.LineSegments.html +0 -384
- package/docs/classes/Util.Magnifier.html +0 -503
- package/docs/classes/Util.Object3D.html +0 -406
- package/docs/classes/Util.PointDomHelper.html +0 -407
- package/docs/classes/Util.PointHelper.html +0 -398
- package/docs/classes/Util.PointSelectorHelper.html +0 -454
- package/docs/classes/Util.Rectangle.html +0 -455
- package/docs/enums/CameraMovementEffect.html +0 -310
- package/docs/enums/ContentType.html +0 -446
- package/docs/enums/DIRECTION.html +0 -320
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/DimensionType.html +0 -310
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/PaintBrushTypeEnum.html +0 -313
- package/docs/enums/PointType.html +0 -310
- package/docs/enums/Rotation.html +0 -317
- package/docs/functions/AreaMakerPlugin.html +0 -290
- package/docs/functions/CSS3DRenderPlugin.html +0 -288
- package/docs/functions/CameraMovementPlugin.html +0 -293
- package/docs/functions/CruisePlugin.html +0 -290
- package/docs/functions/CurrentPanoImagePlugin.html +0 -290
- package/docs/functions/GuideLinePlugin.html +0 -290
- package/docs/functions/ItemLabelPlugin.html +0 -290
- package/docs/functions/MapviewFloorplanPlugin.html +0 -290
- package/docs/functions/ModelChassisCompassPlugin.html +0 -293
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
- package/docs/functions/ModelFloorplanPlugin.html +0 -290
- package/docs/functions/ModelItemLabelPlugin.html +0 -290
- package/docs/functions/ModelRoomLabelPlugin.html +0 -288
- package/docs/functions/ModelTVVideoPlugin.html +0 -290
- package/docs/functions/ModelViewPlugin.html +0 -293
- package/docs/functions/Object3DHelperPlugin.html +0 -288
- package/docs/functions/PanoCompassPlugin.html +0 -290
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
- package/docs/functions/PanoDoorLabelPlugin.html +0 -290
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
- package/docs/functions/PanoMeasurePlugin.html +0 -290
- package/docs/functions/PanoRulerPlugin.html +0 -293
- package/docs/functions/PanoRulerProPlugin.html +0 -293
- package/docs/functions/PanoSpatialTagPlugin.html +0 -293
- package/docs/functions/PanoTagPlugin.html +0 -295
- package/docs/functions/PanoVideoPlugin.html +0 -299
- package/docs/functions/PipelinePlugin.html +0 -288
- package/docs/functions/TopviewFloorplanPlugin.html +0 -290
- package/docs/functions/Util.absoluteUrl.html +0 -326
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
- package/docs/functions/Util.equal.html +0 -338
- package/docs/functions/Util.getCoordsFromClient.html +0 -328
- package/docs/functions/Util.getCoordsFromElement.html +0 -328
- package/docs/functions/Util.getFrameTime.html +0 -320
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
- package/docs/functions/Util.isAbsoluteURL.html +0 -321
- package/docs/functions/Util.isModelLike.html +0 -321
- package/docs/functions/Util.isNil.html +0 -329
- package/docs/functions/Util.isPanoramaLike.html +0 -321
- package/docs/functions/Util.nextFrame.html +0 -334
- package/docs/functions/Util.notNil.html +0 -329
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
- package/docs/functions/Util.tweenProgress.html +0 -323
- package/docs/functions/Util.uuid.html +0 -319
- package/docs/functions/pluginFlag.html +0 -288
- package/docs/index.html +0 -354
- package/docs/interfaces/AddTagConfig.html +0 -303
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
- package/docs/interfaces/EventMap.html +0 -542
- package/docs/interfaces/FloorplanBounding.html +0 -332
- package/docs/interfaces/FloorplanData.html +0 -335
- package/docs/interfaces/FloorplanEntrance.html +0 -360
- package/docs/interfaces/FloorplanExtraObject.html +0 -350
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
- package/docs/interfaces/FloorplanFloorData.html +0 -328
- package/docs/interfaces/FloorplanImagePosition.html +0 -314
- package/docs/interfaces/FloorplanObserver.html +0 -332
- package/docs/interfaces/FloorplanOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanPosition.html +0 -314
- package/docs/interfaces/FloorplanRoomItem.html +0 -379
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
- package/docs/interfaces/FloorplanServerBounding.html +0 -332
- package/docs/interfaces/FloorplanServerComputedData.html +0 -331
- package/docs/interfaces/FloorplanServerData.html +0 -314
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
- package/docs/interfaces/FloorplanServerEntrance.html +0 -360
- package/docs/interfaces/FloorplanServerFloorData.html +0 -328
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
- package/docs/interfaces/FloorplanServerObserver.html +0 -332
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanServerPosition.html +0 -314
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
- package/docs/interfaces/HelperOffset.html +0 -332
- package/docs/interfaces/ImagePlaneGroup.html +0 -306
- package/docs/interfaces/ItemLabelPluginData.html +0 -303
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
- package/docs/interfaces/MinMax.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
- package/docs/interfaces/ModelViewPluginExportType.html +0 -416
- package/docs/interfaces/Object3DHelperState.html +0 -317
- package/docs/interfaces/ObjectHelperControllers.html +0 -324
- package/docs/interfaces/PaintBrushAction.html +0 -363
- package/docs/interfaces/PaintBrushConfigs.html +0 -361
- package/docs/interfaces/PaintBrushState.html +0 -345
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
- package/docs/interfaces/PanoMeasureParameterType.html +0 -449
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
- package/docs/interfaces/PanoRulerProPluginState.html +0 -317
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
- package/docs/interfaces/Point.html +0 -317
- package/docs/interfaces/Room.html +0 -324
- package/docs/interfaces/RoomInfo.html +0 -310
- package/docs/interfaces/RoomLabel.html +0 -386
- package/docs/interfaces/RoomRules.html +0 -285
- package/docs/interfaces/Rooms.html +0 -285
- package/docs/interfaces/Scissor.html +0 -344
- package/docs/interfaces/State.html +0 -331
- package/docs/interfaces/TagCacheInterface.html +0 -362
- package/docs/interfaces/TagConfig.html +0 -565
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
- package/docs/interfaces/TagIconUrl.html +0 -363
- package/docs/interfaces/TagObjectGroup.html +0 -306
- package/docs/interfaces/TagStyle.html +0 -316
- package/docs/interfaces/Tags.html +0 -2688
- package/docs/interfaces/TemporaryState.html +0 -303
- package/docs/interfaces/Util.MagnifierParameter.html +0 -391
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
- package/docs/interfaces/Util.PointIntersection.html +0 -365
- package/docs/modules/AreaMakerPluginType.html +0 -323
- package/docs/modules/CruisePluginTypes.html +0 -328
- package/docs/modules/CurrentPanoImagePluginType.html +0 -297
- package/docs/modules/GuideLineItem.html +0 -289
- package/docs/modules/GuideLineModeItem.html +0 -294
- package/docs/modules/GuideLinePluginType.html +0 -348
- package/docs/modules/PanoVideoPluginType.html +0 -301
- package/docs/modules/Util.html +0 -351
- package/docs/modules.html +0 -540
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
- package/docs/types/ArrayPosition.html +0 -279
- package/docs/types/AudioAppearance.html +0 -279
- package/docs/types/AudioTagTypeConfigKey.html +0 -279
- package/docs/types/CSS3DRenderExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
- package/docs/types/ClassFunctionParameters.html +0 -286
- package/docs/types/Color.html +0 -279
- package/docs/types/ContentTypeConfigKey.html +0 -279
- package/docs/types/ContentTypeConfigKeySplit.html +0 -279
- package/docs/types/ContentTypeMap.html +0 -279
- package/docs/types/Create3DDomContainerReturnType.html +0 -279
- package/docs/types/Create3DElementReturnType.html +0 -279
- package/docs/types/CruisePluginExportType.html +0 -279
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
- package/docs/types/DeprecatedTagProperty.html +0 -294
- package/docs/types/Direction-1.html +0 -279
- package/docs/types/Direction4.html +0 -279
- package/docs/types/ElementRenderer.html +0 -303
- package/docs/types/FloorplanRuleLabels.html +0 -282
- package/docs/types/FloorplanServerRuleLabels.html +0 -279
- package/docs/types/GuideLinePluginExportType.html +0 -279
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
- package/docs/types/GuideLinePluginType.PathItem.html +0 -308
- package/docs/types/GuideLinePluginType.PluginData.html +0 -317
- package/docs/types/HelperEventMap.html +0 -517
- package/docs/types/LoadTagConfig.html +0 -279
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/MediaData.html +0 -295
- package/docs/types/MediaStore.html +0 -284
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
- package/docs/types/ModelId.html +0 -279
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
- package/docs/types/MoveArgs.html +0 -289
- package/docs/types/MoveOpts.html +0 -287
- package/docs/types/Object3DHelperEventMap.html +0 -372
- package/docs/types/ObjectFit.html +0 -279
- package/docs/types/PaintBrushEventMap.html +0 -310
- package/docs/types/PanoCompassPluginData.html +0 -279
- package/docs/types/PanoCompassPluginExportType.html +0 -279
- package/docs/types/PanoCompassPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
- package/docs/types/PanoIndex.html +0 -279
- package/docs/types/PanoMeasurePluginEvent.html +0 -279
- package/docs/types/PanoMeasureReturnType.html +0 -279
- package/docs/types/PanoSpatialTagPluginId.html +0 -279
- package/docs/types/PanoTagPluginExportInterface.html +0 -279
- package/docs/types/PanoTagPluginParamsInterface.html +0 -279
- package/docs/types/PanoVideoPluginParameterType.html +0 -279
- package/docs/types/PanoVideoPluginReturnType.html +0 -279
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
- package/docs/types/PipelinePluginParameterType.html +0 -279
- package/docs/types/PipelinePluginReturnType.html +0 -279
- package/docs/types/PlaneTag.html +0 -287
- package/docs/types/Point2DTag.html +0 -287
- package/docs/types/Point3DTag.html +0 -287
- package/docs/types/PointTag.html +0 -284
- package/docs/types/PointTagInstance.html +0 -284
- package/docs/types/Position.html +0 -279
- package/docs/types/RotateArgs.html +0 -291
- package/docs/types/RotateOpts.html +0 -287
- package/docs/types/RuleLabelsKey.html +0 -279
- package/docs/types/RuleLabelsValue.html +0 -279
- package/docs/types/StickType.html +0 -279
- package/docs/types/Tag.html +0 -345
- package/docs/types/Tag2D.html +0 -287
- package/docs/types/Tag3D.html +0 -287
- package/docs/types/TagConfigByKey.html +0 -284
- package/docs/types/TagContentType.html +0 -279
- package/docs/types/TagDimensionType.html +0 -281
- package/docs/types/TagElement.html +0 -289
- package/docs/types/TagEvents.html +0 -332
- package/docs/types/TagGLTFObject.html +0 -302
- package/docs/types/TagHooks.html +0 -279
- package/docs/types/TagId.html +0 -279
- package/docs/types/TagInstance.html +0 -353
- package/docs/types/TagPointType.html +0 -282
- package/docs/types/TagRendererMap.html +0 -284
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/WorkCode.html +0 -279
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
- package/docs/variables/PLUGIN.html +0 -279
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
- package/docs/variables/ROOM_TYPE_MAP.html +0 -289
- package/docs/variables/defaultGlobalConfig.html +0 -279
- package/docs/variables/itemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
- package/libs/shared-utils/five/adapt.d.ts +0 -9
- package/libs/shared-utils/five/adapt.js +0 -16
- /package/dist/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.js → url/absoluteUrl.js} +0 -0
|
@@ -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";
|
|
@@ -57,7 +57,7 @@ import "../shared-utils/three/getObjectVisible.js";
|
|
|
57
57
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
58
58
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
59
59
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
60
|
-
import "../shared-utils/absoluteUrl.js";
|
|
60
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
61
61
|
import "../GuideLinePlugin/Controller.js";
|
|
62
62
|
import "../GuideLinePlugin/GuideLineItem/index.js";
|
|
63
63
|
import "../GuideLinePlugin/GuideLineModeItem/index.js";
|
|
@@ -104,9 +104,12 @@ import "../shared-utils/three/loadVideoTexture.js";
|
|
|
104
104
|
import "../PanoTagPlugin/Assets/Icon.js";
|
|
105
105
|
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
106
106
|
import "../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
107
|
+
import "../shared-utils/three/getNormal.js";
|
|
107
108
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
109
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
108
110
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
109
111
|
import "../shared-utils/typescript/entries.js";
|
|
112
|
+
import "../shared-utils/url/getUrl.js";
|
|
110
113
|
import "../shared-utils/five/getFloorIndex.js";
|
|
111
114
|
import "../shared-utils/safeObj.js";
|
|
112
115
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -194,7 +197,7 @@ import "../shared-utils/nearlyEqual.js";
|
|
|
194
197
|
import "./utils/coordinatesToVector.js";
|
|
195
198
|
import "../shared-utils/isTruelyObject.js";
|
|
196
199
|
import "./utils/formatRad.js";
|
|
197
|
-
const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`,
|
|
200
|
+
const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, ar = (c) => `${x}--${c}`, D = () => {
|
|
198
201
|
console.error(`${x} is disposed`);
|
|
199
202
|
}, W = () => {
|
|
200
203
|
console.warn(`${x} is disabled`);
|
|
@@ -231,22 +234,22 @@ class z extends V {
|
|
|
231
234
|
});
|
|
232
235
|
I(this, "GuideLine");
|
|
233
236
|
this.config = t, Object.assign(window, { [`__${G}_DEBUG__`]: this });
|
|
234
|
-
const
|
|
235
|
-
this.hooks.on("play",
|
|
236
|
-
this.hooks.off("play",
|
|
237
|
+
const r = this.setFiveLinearUpdateCamera.bind(this), i = this.setFiveOriginUpdateCamera.bind(this);
|
|
238
|
+
this.hooks.on("play", r), this.hooks.on("broke", i), this.hooks.on("end", i), this.hooks.on("pause", i), this.privateState.disposers.push(() => {
|
|
239
|
+
this.hooks.off("play", r), this.hooks.off("broke", i), this.hooks.off("end", i), this.hooks.off("pause", i);
|
|
237
240
|
});
|
|
238
241
|
}
|
|
239
242
|
/**
|
|
240
243
|
* @description Load Data and State
|
|
241
244
|
*/
|
|
242
|
-
load(e, t,
|
|
245
|
+
load(e, t, r) {
|
|
243
246
|
return v(this, null, function* () {
|
|
244
|
-
var o, m, p, u, h,
|
|
247
|
+
var o, m, p, u, h, g;
|
|
245
248
|
if (this.state.disposed)
|
|
246
249
|
return D();
|
|
247
250
|
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();
|
|
248
|
-
const
|
|
249
|
-
this.data = n, this.hooks.emit("dataChange", n,
|
|
251
|
+
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
|
|
252
|
+
this.data = n, this.hooks.emit("dataChange", n, i);
|
|
250
253
|
let s = [], d;
|
|
251
254
|
const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
|
|
252
255
|
a.filter((f, y) => {
|
|
@@ -264,7 +267,7 @@ class z extends V {
|
|
|
264
267
|
const b = s.length;
|
|
265
268
|
s[b] = [f];
|
|
266
269
|
}
|
|
267
|
-
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (
|
|
270
|
+
}), !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);
|
|
268
271
|
});
|
|
269
272
|
}
|
|
270
273
|
/**
|
|
@@ -279,14 +282,14 @@ class z extends V {
|
|
|
279
282
|
* @param {string} options.id play from keyframes id
|
|
280
283
|
*/
|
|
281
284
|
playFrom(e) {
|
|
282
|
-
const { index: t, id:
|
|
283
|
-
this.state.playing && this.setState({ playing: !1 }, { userAction:
|
|
285
|
+
const { index: t, id: r, userAction: i } = e;
|
|
286
|
+
this.state.playing && this.setState({ playing: !1 }, { userAction: i }), this.setState({ playing: !0 }, { userAction: i, playFromIndex: t, playFromId: r });
|
|
284
287
|
}
|
|
285
288
|
/**
|
|
286
289
|
* @description Play from first keyframe
|
|
287
290
|
*/
|
|
288
291
|
playFromStart(e) {
|
|
289
|
-
return this.playFrom(C(
|
|
292
|
+
return this.playFrom(C(P({}, e), { index: 0 }));
|
|
290
293
|
}
|
|
291
294
|
/**
|
|
292
295
|
* @description Pause
|
|
@@ -332,13 +335,13 @@ class z extends V {
|
|
|
332
335
|
* @description Set state
|
|
333
336
|
*/
|
|
334
337
|
setState(e, t) {
|
|
335
|
-
var
|
|
338
|
+
var i;
|
|
336
339
|
if (this.state.disposed)
|
|
337
340
|
return D();
|
|
338
341
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
339
342
|
return q();
|
|
340
|
-
const
|
|
341
|
-
this.state =
|
|
343
|
+
const r = P({}, this.state);
|
|
344
|
+
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 });
|
|
342
345
|
}
|
|
343
346
|
/**
|
|
344
347
|
* @description Format data
|
|
@@ -346,62 +349,62 @@ class z extends V {
|
|
|
346
349
|
formatData(e) {
|
|
347
350
|
return v(this, null, function* () {
|
|
348
351
|
this.five.work || (yield this.waitFiveLoaded());
|
|
349
|
-
const t = this.five.work.observers,
|
|
350
|
-
const
|
|
351
|
-
return typeof
|
|
352
|
+
const t = this.five.work.observers, r = (() => {
|
|
353
|
+
const i = e;
|
|
354
|
+
return typeof i == "object" && i !== null && i.version && i.data ? i.data : i;
|
|
352
355
|
})();
|
|
353
|
-
if (
|
|
356
|
+
if (r.keyframes)
|
|
354
357
|
return {
|
|
355
358
|
keyframesId: w(),
|
|
356
|
-
keyframes:
|
|
359
|
+
keyframes: r.keyframes.map((i, n) => {
|
|
357
360
|
var a;
|
|
358
|
-
const s =
|
|
359
|
-
return C(
|
|
361
|
+
const s = r.keyframes[n + 1], d = (() => !s || s.start === void 0 || i.end === void 0 ? 0 : s.start - i.end)();
|
|
362
|
+
return C(P({ id: (a = i.uuid) != null ? a : w(), moveIndex: n, stay: d, index: n }, i), { guildPluginOptions: r.guildPluginOptions });
|
|
360
363
|
})
|
|
361
364
|
};
|
|
362
|
-
if (
|
|
363
|
-
let
|
|
364
|
-
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } =
|
|
365
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d,
|
|
365
|
+
if (r.panoIndexList) {
|
|
366
|
+
let i = [];
|
|
367
|
+
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
|
|
368
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((a, o) => {
|
|
366
369
|
const m = (() => {
|
|
367
370
|
var f, y, S, k;
|
|
368
|
-
const p =
|
|
371
|
+
const p = r.panoIndexList.slice(o).find((b) => b !== a);
|
|
369
372
|
if (p === void 0)
|
|
370
373
|
return;
|
|
371
374
|
const u = (f = t[a]) == null ? void 0 : f.position, h = (y = t[p]) == null ? void 0 : y.position;
|
|
372
375
|
if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[p]) == null ? void 0 : k.floorIndex))
|
|
373
376
|
return;
|
|
374
|
-
const
|
|
375
|
-
return N(
|
|
377
|
+
const g = new j.Vector3().subVectors(h, u);
|
|
378
|
+
return N(g.normalize());
|
|
376
379
|
})();
|
|
377
|
-
|
|
380
|
+
r.moveType === void 0 || r.moveType === "justMove" ? i.push({
|
|
378
381
|
moveIndex: o,
|
|
379
|
-
stay:
|
|
380
|
-
data:
|
|
381
|
-
}) :
|
|
382
|
+
stay: r.stay,
|
|
383
|
+
data: P({ effect: "Move", panoIndex: a, moveEffect: n }, m != null ? m : {})
|
|
384
|
+
}) : 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) }));
|
|
382
385
|
}), {
|
|
383
386
|
keyframesId: w(),
|
|
384
|
-
keyframes:
|
|
385
|
-
guildPluginOptions:
|
|
386
|
-
useGuildLine:
|
|
387
|
+
keyframes: i.map((a, o) => P({ id: w(), index: o }, a)),
|
|
388
|
+
guildPluginOptions: r.guildPluginOptions,
|
|
389
|
+
useGuildLine: r.useGuildLine
|
|
387
390
|
};
|
|
388
391
|
} else
|
|
389
392
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
390
393
|
});
|
|
391
394
|
}
|
|
392
395
|
handleEnable(e, t = !0) {
|
|
393
|
-
var
|
|
394
|
-
e ? ((
|
|
396
|
+
var r, i;
|
|
397
|
+
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;
|
|
395
398
|
}
|
|
396
399
|
handleVisible(e, t = !0) {
|
|
397
|
-
var
|
|
398
|
-
e ? ((
|
|
400
|
+
var r, i;
|
|
401
|
+
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;
|
|
399
402
|
}
|
|
400
403
|
changePlayState(e, t) {
|
|
401
404
|
this.actionIfStateIsEnabled(
|
|
402
405
|
() => {
|
|
403
|
-
var
|
|
404
|
-
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (
|
|
406
|
+
var r;
|
|
407
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
405
408
|
}
|
|
406
409
|
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
407
410
|
}
|
|
@@ -414,25 +417,25 @@ class z extends V {
|
|
|
414
417
|
handlePlay(e) {
|
|
415
418
|
return v(this, null, function* () {
|
|
416
419
|
var u;
|
|
417
|
-
const { data: t, state:
|
|
418
|
-
if (
|
|
420
|
+
const { data: t, state: r, privateState: i, hooks: n } = this;
|
|
421
|
+
if (i.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
419
422
|
return;
|
|
420
423
|
const s = w();
|
|
421
|
-
|
|
424
|
+
i.playId = s, i.playing = !0, i.broke = !1;
|
|
422
425
|
const d = t.keyframes, a = this.getPauseData();
|
|
423
426
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
|
|
424
427
|
let o = !1;
|
|
425
428
|
const p = yield (() => v(this, null, function* () {
|
|
426
|
-
var h,
|
|
429
|
+
var h, g;
|
|
427
430
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
428
431
|
return e.playFromIndex;
|
|
429
432
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
430
433
|
return (h = this.data) == null ? void 0 : h.keyframes.findIndex((f) => f.id === e.playFromId);
|
|
431
434
|
if (a != null && a.keyframeId) {
|
|
432
|
-
const f = (
|
|
435
|
+
const f = (g = this.data) == null ? void 0 : g.keyframes.find((y) => y.id === a.keyframeId);
|
|
433
436
|
if (a != null && a.fiveState && (yield this.move(a.fiveState, {
|
|
434
|
-
moveEffect:
|
|
435
|
-
duration:
|
|
437
|
+
moveEffect: i.moveToFirstPanoEffect,
|
|
438
|
+
duration: i.moveToFirstPanoDuration
|
|
436
439
|
})), f) {
|
|
437
440
|
if (f.data.effect === "Move")
|
|
438
441
|
return f.index;
|
|
@@ -445,19 +448,19 @@ class z extends V {
|
|
|
445
448
|
}))();
|
|
446
449
|
this.clearPauseData();
|
|
447
450
|
for (const h of d) {
|
|
448
|
-
if (
|
|
451
|
+
if (i.broke || !r.playing || !i.playing || s !== i.playId)
|
|
449
452
|
return;
|
|
450
453
|
if (!(p !== void 0 && h.index < p))
|
|
451
454
|
try {
|
|
452
455
|
n.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
|
|
453
|
-
moveEffect: o === !1 ?
|
|
454
|
-
duration: o === !1 && typeof
|
|
456
|
+
moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
457
|
+
duration: o === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
455
458
|
}), h.stay && (yield J(h.stay)), o === !1 && (o = !0);
|
|
456
|
-
} catch (
|
|
457
|
-
return Promise.resolve("broke");
|
|
459
|
+
} catch (g) {
|
|
460
|
+
return console.error(g), Promise.resolve("broke");
|
|
458
461
|
}
|
|
459
462
|
}
|
|
460
|
-
|
|
463
|
+
r.playing && s === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
|
|
461
464
|
});
|
|
462
465
|
}
|
|
463
466
|
/**
|
|
@@ -465,17 +468,17 @@ class z extends V {
|
|
|
465
468
|
*/
|
|
466
469
|
handlePause(e) {
|
|
467
470
|
var n;
|
|
468
|
-
const { state: t, privateState:
|
|
469
|
-
t.playing = !1,
|
|
471
|
+
const { state: t, privateState: r, hooks: i } = this;
|
|
472
|
+
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 }));
|
|
470
473
|
}
|
|
471
474
|
/**
|
|
472
475
|
* @description Play single keyframe
|
|
473
476
|
*/
|
|
474
477
|
playKeyframe(e, t) {
|
|
475
478
|
return v(this, null, function* () {
|
|
476
|
-
var
|
|
477
|
-
const { privateState:
|
|
478
|
-
return ((
|
|
479
|
+
var i;
|
|
480
|
+
const { privateState: r } = this;
|
|
481
|
+
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();
|
|
479
482
|
});
|
|
480
483
|
}
|
|
481
484
|
/**
|
|
@@ -484,19 +487,21 @@ class z extends V {
|
|
|
484
487
|
addInterruptListener(e) {
|
|
485
488
|
const t = () => {
|
|
486
489
|
this.privateState.modeChanging || e();
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
|
|
490
|
+
}, r = (i) => {
|
|
491
|
+
i !== "mouseMove" && e();
|
|
492
|
+
};
|
|
493
|
+
return this.five.once("gesture", r), this.five.once("wantsChangeMode", t), () => {
|
|
494
|
+
this.five.off("gesture", r), this.five.once("wantsChangeMode", t);
|
|
490
495
|
};
|
|
491
496
|
}
|
|
492
497
|
/**
|
|
493
498
|
* @description: getPlayPromise
|
|
494
499
|
*/
|
|
495
|
-
getPlayPromise(
|
|
500
|
+
getPlayPromise(r) {
|
|
496
501
|
return v(this, arguments, function* (e, t = {}) {
|
|
497
502
|
var n;
|
|
498
|
-
const
|
|
499
|
-
if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!
|
|
503
|
+
const i = e.data;
|
|
504
|
+
if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!i)
|
|
500
505
|
return new Promise((s, d) => {
|
|
501
506
|
let a = !1;
|
|
502
507
|
this.addInterruptListener(() => {
|
|
@@ -509,15 +514,15 @@ class z extends V {
|
|
|
509
514
|
const o = () => {
|
|
510
515
|
s(), a = !0;
|
|
511
516
|
};
|
|
512
|
-
switch (
|
|
517
|
+
switch (i.effect) {
|
|
513
518
|
case "Move":
|
|
514
|
-
this.move(
|
|
519
|
+
this.move(i, t).then(o);
|
|
515
520
|
break;
|
|
516
521
|
case "Rotate":
|
|
517
|
-
this.rotate(
|
|
522
|
+
this.rotate(i, t).then(o);
|
|
518
523
|
break;
|
|
519
524
|
default:
|
|
520
|
-
this.rotate(
|
|
525
|
+
this.rotate(i, t).then(o);
|
|
521
526
|
}
|
|
522
527
|
} catch (o) {
|
|
523
528
|
}
|
|
@@ -530,17 +535,17 @@ class z extends V {
|
|
|
530
535
|
actionPromiseQueue() {
|
|
531
536
|
return v(this, null, function* () {
|
|
532
537
|
const { privateState: e } = this;
|
|
533
|
-
return new Promise((t,
|
|
538
|
+
return new Promise((t, r) => {
|
|
534
539
|
if (e.currentPlayQueue.length === 0) {
|
|
535
540
|
t();
|
|
536
541
|
return;
|
|
537
542
|
}
|
|
538
|
-
const
|
|
539
|
-
if (!
|
|
543
|
+
const i = e.currentPlayQueue.shift();
|
|
544
|
+
if (!i) {
|
|
540
545
|
t();
|
|
541
546
|
return;
|
|
542
547
|
}
|
|
543
|
-
|
|
548
|
+
i.then(t, r);
|
|
544
549
|
}).then(() => e.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
|
|
545
550
|
});
|
|
546
551
|
}
|
|
@@ -572,9 +577,9 @@ class z extends V {
|
|
|
572
577
|
/**
|
|
573
578
|
* @description Update five camera
|
|
574
579
|
*/
|
|
575
|
-
updateCamera(
|
|
580
|
+
updateCamera(r) {
|
|
576
581
|
return v(this, arguments, function* (e, t = {}) {
|
|
577
|
-
const { five:
|
|
582
|
+
const { five: i, privateState: n, state: s } = this, d = (() => {
|
|
578
583
|
var u, h;
|
|
579
584
|
const m = (u = s.config) == null ? void 0 : u.speedConfig, p = (h = e.rotateSpeed) != null ? h : m == null ? void 0 : m.rotateSpeed;
|
|
580
585
|
if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
|
|
@@ -593,7 +598,7 @@ class z extends V {
|
|
|
593
598
|
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = a);
|
|
594
599
|
const o = this.getSpeededDuration(a);
|
|
595
600
|
return new Promise((m) => {
|
|
596
|
-
_(() =>
|
|
601
|
+
_(() => i.updateCamera(e, o)), setTimeout(() => m(), o);
|
|
597
602
|
});
|
|
598
603
|
});
|
|
599
604
|
}
|
|
@@ -602,10 +607,10 @@ class z extends V {
|
|
|
602
607
|
*/
|
|
603
608
|
changePano(e, t) {
|
|
604
609
|
return v(this, null, function* () {
|
|
605
|
-
const { five:
|
|
606
|
-
if (typeof e.panoIndex != "number" || e.panoIndex ===
|
|
610
|
+
const { five: r, privateState: i, state: n } = this;
|
|
611
|
+
if (typeof e.panoIndex != "number" || e.panoIndex === r.panoIndex)
|
|
607
612
|
return;
|
|
608
|
-
const s =
|
|
613
|
+
const s = r.getCurrentState().mode !== "Panorama";
|
|
609
614
|
s && (this.privateState.modeChanging = !0);
|
|
610
615
|
const d = (() => {
|
|
611
616
|
var p, u;
|
|
@@ -617,15 +622,15 @@ class z extends V {
|
|
|
617
622
|
})(), a = (() => {
|
|
618
623
|
if (t != null && t.duration)
|
|
619
624
|
return t.duration;
|
|
620
|
-
if (d && typeof
|
|
621
|
-
const o =
|
|
625
|
+
if (d && typeof r.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
626
|
+
const o = r.work.observers[r.panoIndex].position, m = r.work.observers[e.panoIndex].position;
|
|
622
627
|
return o.distanceTo(m) / d;
|
|
623
628
|
}
|
|
624
629
|
return 800;
|
|
625
630
|
})();
|
|
626
|
-
|
|
631
|
+
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
|
|
627
632
|
var m, p, u;
|
|
628
|
-
|
|
633
|
+
r.moveToPano(e.panoIndex, {
|
|
629
634
|
latitude: e.latitude,
|
|
630
635
|
longitude: e.longitude,
|
|
631
636
|
fov: e.fov,
|
|
@@ -633,7 +638,7 @@ class z extends V {
|
|
|
633
638
|
effect: (u = (p = t == null ? void 0 : t.moveEffect) != null ? p : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? u : e.moveEffect,
|
|
634
639
|
moveCancelCallback: () => o(),
|
|
635
640
|
moveEndCallback: () => o()
|
|
636
|
-
}), s &&
|
|
641
|
+
}), s && r.once("panoArrived", () => o());
|
|
637
642
|
}), s && (this.privateState.modeChanging = !1);
|
|
638
643
|
});
|
|
639
644
|
}
|
|
@@ -641,11 +646,11 @@ class z extends V {
|
|
|
641
646
|
* @description: Change play speed
|
|
642
647
|
*/
|
|
643
648
|
changeSpeed(e, t = !0) {
|
|
644
|
-
const { state:
|
|
645
|
-
if (n.emit("speedChange", e, { userAction: t }),
|
|
649
|
+
const { state: r, privateState: i, hooks: n } = this, { currentPlayKeyframe: s } = i;
|
|
650
|
+
if (n.emit("speedChange", e, { userAction: t }), r.playing && s)
|
|
646
651
|
try {
|
|
647
652
|
const d = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: d });
|
|
648
|
-
|
|
653
|
+
i.currentPlayQueue.push(a);
|
|
649
654
|
} catch (d) {
|
|
650
655
|
}
|
|
651
656
|
}
|
|
@@ -684,12 +689,12 @@ class z extends V {
|
|
|
684
689
|
* @description Set pause data
|
|
685
690
|
*/
|
|
686
691
|
setPauseData() {
|
|
687
|
-
var e, t,
|
|
692
|
+
var e, t, r, i;
|
|
688
693
|
if ((e = this.data) != null && e.keyframesId)
|
|
689
694
|
return E.set((t = this.data) == null ? void 0 : t.keyframesId, {
|
|
690
|
-
keyframeId: (
|
|
695
|
+
keyframeId: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
|
|
691
696
|
fiveState: this.five.getCurrentState(),
|
|
692
|
-
duration: (
|
|
697
|
+
duration: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.originDuration,
|
|
693
698
|
playedProgress: this.getProgress()
|
|
694
699
|
});
|
|
695
700
|
}
|
|
@@ -710,7 +715,7 @@ class z extends V {
|
|
|
710
715
|
// TODO
|
|
711
716
|
handleDispose() {
|
|
712
717
|
var e, t;
|
|
713
|
-
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((
|
|
718
|
+
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());
|
|
714
719
|
}
|
|
715
720
|
/**
|
|
716
721
|
* @description Action function if plugin is enable
|
|
@@ -738,8 +743,8 @@ class z extends V {
|
|
|
738
743
|
}
|
|
739
744
|
setFiveLinearUpdateCamera() {
|
|
740
745
|
this.privateState.fiveOriginGetProgress && (this.five.controller.cameraMotion.getProgress = (e) => {
|
|
741
|
-
const t = this.five.controller.cameraMotion,
|
|
742
|
-
return
|
|
746
|
+
const t = this.five.controller.cameraMotion, r = e - t.startTime;
|
|
747
|
+
return r < 0 ? 0 : r >= t.duration ? 1 : 1 - H(1, t.startVelocity, t.duration, r);
|
|
743
748
|
});
|
|
744
749
|
}
|
|
745
750
|
setFiveOriginUpdateCamera() {
|
|
@@ -749,5 +754,5 @@ class z extends V {
|
|
|
749
754
|
I(z, "PluginVersion", M);
|
|
750
755
|
export {
|
|
751
756
|
z as default,
|
|
752
|
-
|
|
757
|
+
ar as pluginFlag
|
|
753
758
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "./Controller.js";
|
|
2
|
-
import { typing as
|
|
2
|
+
import { typing as ao } from "./typing/index.js";
|
|
3
3
|
import "../base/BasePluginWithData.js";
|
|
4
4
|
import "../base/BasePlugin.js";
|
|
5
5
|
import "../shared-utils/Subscribe.js";
|
|
@@ -22,7 +22,7 @@ import "../shared-utils/three/getObjectVisible.js";
|
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
23
23
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
24
24
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
25
|
-
import "../shared-utils/absoluteUrl.js";
|
|
25
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
26
26
|
import "../GuideLinePlugin/index.js";
|
|
27
27
|
import "../GuideLinePlugin/Controller.js";
|
|
28
28
|
import "../shared-utils/equal.js";
|
|
@@ -72,9 +72,12 @@ import "../shared-utils/three/loadVideoTexture.js";
|
|
|
72
72
|
import "../PanoTagPlugin/Assets/Icon.js";
|
|
73
73
|
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
74
74
|
import "../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
75
|
+
import "../shared-utils/three/getNormal.js";
|
|
75
76
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
77
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
76
78
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
77
79
|
import "../shared-utils/typescript/entries.js";
|
|
80
|
+
import "../shared-utils/url/getUrl.js";
|
|
78
81
|
import "../shared-utils/five/getFloorIndex.js";
|
|
79
82
|
import "../shared-utils/safeObj.js";
|
|
80
83
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -166,10 +169,10 @@ import "./utils/vectorToCoordinates.js";
|
|
|
166
169
|
import "./utils/formatRad.js";
|
|
167
170
|
import "./utils/linerValue.js";
|
|
168
171
|
import "./utils/sleep.js";
|
|
169
|
-
const
|
|
172
|
+
const lo = (r) => new i(r);
|
|
170
173
|
export {
|
|
171
|
-
|
|
174
|
+
lo as CruisePlugin,
|
|
172
175
|
i as CruisePluginController,
|
|
173
|
-
|
|
174
|
-
|
|
176
|
+
ao as CruisePluginTypes,
|
|
177
|
+
lo as default
|
|
175
178
|
};
|