@realsee/dnalogel 3.2.0-dev.8 → 3.2.1
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/GuideLinePlugin/GuideLineItem.d.ts +0 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/dist/GuideLinePlugin/typing.d.ts +6 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3071 -3056
- package/dist/index.umd.js +51 -51
- package/dist/shared-utils/five/getFloorIndex.d.ts +8 -2
- package/libs/CruisePlugin/Controller.js +34 -35
- package/libs/CruisePlugin/index.js +5 -6
- package/libs/GuideLinePlugin/Controller.js +40 -41
- package/libs/GuideLinePlugin/GuideLineItem/index.js +33 -36
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +124 -86
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- package/libs/GuideLinePlugin/index.js +7 -8
- package/libs/GuideLinePlugin/typing.d.ts +6 -1
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +26 -26
- package/libs/PanoTagPlugin/controller/TagComputer.js +95 -89
- package/libs/PanoTagPlugin/controller/TagRender.js +81 -81
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/libs/PanoTagPlugin/controller/TagUtil.js +107 -123
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/index.js +36 -41
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +116 -117
- package/libs/shared-utils/five/getFloorIndex.d.ts +8 -2
- package/libs/shared-utils/five/getFloorIndex.js +12 -16
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/shared-utils/five/transformPosition.d.ts +0 -2
- 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 -1077
- 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 -355
- 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/transformPosition.d.ts +0 -2
- package/libs/shared-utils/five/transformPosition.js +0 -10
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default function getFloorIndex(observer: {
|
|
2
|
+
floorIndex: number;
|
|
3
|
+
position: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
z: number;
|
|
7
|
+
};
|
|
8
|
+
}[], point: {
|
|
3
9
|
y: number;
|
|
4
10
|
}): number;
|
|
@@ -110,7 +110,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
110
110
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
111
111
|
import "../shared-utils/typescript/entries.js";
|
|
112
112
|
import "../shared-utils/url/getUrl.js";
|
|
113
|
-
import "../shared-utils/five/transformPosition.js";
|
|
114
113
|
import "../shared-utils/five/getFloorIndex.js";
|
|
115
114
|
import "../shared-utils/safeObj.js";
|
|
116
115
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -198,7 +197,7 @@ import "../shared-utils/nearlyEqual.js";
|
|
|
198
197
|
import "./utils/coordinatesToVector.js";
|
|
199
198
|
import "../shared-utils/isTruelyObject.js";
|
|
200
199
|
import "./utils/formatRad.js";
|
|
201
|
-
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 = () => {
|
|
202
201
|
console.error(`${x} is disposed`);
|
|
203
202
|
}, W = () => {
|
|
204
203
|
console.warn(`${x} is disabled`);
|
|
@@ -245,30 +244,30 @@ class z extends V {
|
|
|
245
244
|
*/
|
|
246
245
|
load(e, t, r) {
|
|
247
246
|
return v(this, null, function* () {
|
|
248
|
-
var o, m,
|
|
247
|
+
var o, m, p, u, h, g;
|
|
249
248
|
if (this.state.disposed)
|
|
250
249
|
return D();
|
|
251
|
-
this.privateState.fiveOriginGetProgress || (m = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && m.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (
|
|
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();
|
|
252
251
|
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
|
|
253
252
|
this.data = n, this.hooks.emit("dataChange", n, i);
|
|
254
253
|
let s = [], d;
|
|
255
|
-
const a = this.data.keyframes.filter((
|
|
256
|
-
a.filter((
|
|
254
|
+
const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
|
|
255
|
+
a.filter((f, y) => {
|
|
257
256
|
var S;
|
|
258
|
-
return
|
|
259
|
-
}).map((
|
|
257
|
+
return f.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
|
|
258
|
+
}).map((f) => f.data.panoIndex).forEach((f) => {
|
|
260
259
|
var S, k;
|
|
261
|
-
const y = (S = this.five.work.observers[
|
|
260
|
+
const y = (S = this.five.work.observers[f]) == null ? void 0 : S.floorIndex;
|
|
262
261
|
if (y !== void 0)
|
|
263
262
|
if (d === y) {
|
|
264
263
|
const b = s.length - 1;
|
|
265
|
-
s[b] = [...(k = s[b]) != null ? k : [],
|
|
264
|
+
s[b] = [...(k = s[b]) != null ? k : [], f];
|
|
266
265
|
} else {
|
|
267
266
|
d = y;
|
|
268
267
|
const b = s.length;
|
|
269
|
-
s[b] = [
|
|
268
|
+
s[b] = [f];
|
|
270
269
|
}
|
|
271
|
-
}), !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((
|
|
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);
|
|
272
271
|
});
|
|
273
272
|
}
|
|
274
273
|
/**
|
|
@@ -368,12 +367,12 @@ class z extends V {
|
|
|
368
367
|
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
|
|
369
368
|
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((a, o) => {
|
|
370
369
|
const m = (() => {
|
|
371
|
-
var
|
|
372
|
-
const
|
|
373
|
-
if (
|
|
370
|
+
var f, y, S, k;
|
|
371
|
+
const p = r.panoIndexList.slice(o).find((b) => b !== a);
|
|
372
|
+
if (p === void 0)
|
|
374
373
|
return;
|
|
375
|
-
const u = (
|
|
376
|
-
if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[
|
|
374
|
+
const u = (f = t[a]) == null ? void 0 : f.position, h = (y = t[p]) == null ? void 0 : y.position;
|
|
375
|
+
if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[p]) == null ? void 0 : k.floorIndex))
|
|
377
376
|
return;
|
|
378
377
|
const g = new j.Vector3().subVectors(h, u);
|
|
379
378
|
return N(g.normalize());
|
|
@@ -426,23 +425,23 @@ class z extends V {
|
|
|
426
425
|
const d = t.keyframes, a = this.getPauseData();
|
|
427
426
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
|
|
428
427
|
let o = !1;
|
|
429
|
-
const
|
|
428
|
+
const p = yield (() => v(this, null, function* () {
|
|
430
429
|
var h, g;
|
|
431
430
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
432
431
|
return e.playFromIndex;
|
|
433
432
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
434
|
-
return (h = this.data) == null ? void 0 : h.keyframes.findIndex((
|
|
433
|
+
return (h = this.data) == null ? void 0 : h.keyframes.findIndex((f) => f.id === e.playFromId);
|
|
435
434
|
if (a != null && a.keyframeId) {
|
|
436
|
-
const
|
|
435
|
+
const f = (g = this.data) == null ? void 0 : g.keyframes.find((y) => y.id === a.keyframeId);
|
|
437
436
|
if (a != null && a.fiveState && (yield this.move(a.fiveState, {
|
|
438
437
|
moveEffect: i.moveToFirstPanoEffect,
|
|
439
438
|
duration: i.moveToFirstPanoDuration
|
|
440
|
-
})),
|
|
441
|
-
if (
|
|
442
|
-
return
|
|
443
|
-
if (
|
|
439
|
+
})), f) {
|
|
440
|
+
if (f.data.effect === "Move")
|
|
441
|
+
return f.index;
|
|
442
|
+
if (f.data.effect === "Rotate") {
|
|
444
443
|
const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
|
|
445
|
-
return yield this.playKeyframe(
|
|
444
|
+
return yield this.playKeyframe(f, { duration: y }), o = !0, f.index + 1;
|
|
446
445
|
}
|
|
447
446
|
}
|
|
448
447
|
}
|
|
@@ -451,7 +450,7 @@ class z extends V {
|
|
|
451
450
|
for (const h of d) {
|
|
452
451
|
if (i.broke || !r.playing || !i.playing || s !== i.playId)
|
|
453
452
|
return;
|
|
454
|
-
if (!(
|
|
453
|
+
if (!(p !== void 0 && h.index < p))
|
|
455
454
|
try {
|
|
456
455
|
n.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
|
|
457
456
|
moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
@@ -582,11 +581,11 @@ class z extends V {
|
|
|
582
581
|
return v(this, arguments, function* (e, t = {}) {
|
|
583
582
|
const { five: i, privateState: n, state: s } = this, d = (() => {
|
|
584
583
|
var u, h;
|
|
585
|
-
const m = (u = s.config) == null ? void 0 : u.speedConfig,
|
|
584
|
+
const m = (u = s.config) == null ? void 0 : u.speedConfig, p = (h = e.rotateSpeed) != null ? h : m == null ? void 0 : m.rotateSpeed;
|
|
586
585
|
if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
|
|
587
|
-
return
|
|
588
|
-
if (
|
|
589
|
-
return m.rotateSpeedUnit === "rad/ms" ?
|
|
586
|
+
return p;
|
|
587
|
+
if (p !== void 0)
|
|
588
|
+
return m.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
|
|
590
589
|
})(), a = (() => {
|
|
591
590
|
if (t.duration)
|
|
592
591
|
return t.duration;
|
|
@@ -614,8 +613,8 @@ class z extends V {
|
|
|
614
613
|
const s = r.getCurrentState().mode !== "Panorama";
|
|
615
614
|
s && (this.privateState.modeChanging = !0);
|
|
616
615
|
const d = (() => {
|
|
617
|
-
var
|
|
618
|
-
const o = (
|
|
616
|
+
var p, u;
|
|
617
|
+
const o = (p = n.config) == null ? void 0 : p.speedConfig, m = (u = e.moveSpeed) != null ? u : o == null ? void 0 : o.moveSpeed;
|
|
619
618
|
if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
|
|
620
619
|
return m;
|
|
621
620
|
if (m !== void 0)
|
|
@@ -630,13 +629,13 @@ class z extends V {
|
|
|
630
629
|
return 800;
|
|
631
630
|
})();
|
|
632
631
|
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
|
|
633
|
-
var m,
|
|
632
|
+
var m, p, u;
|
|
634
633
|
r.moveToPano(e.panoIndex, {
|
|
635
634
|
latitude: e.latitude,
|
|
636
635
|
longitude: e.longitude,
|
|
637
636
|
fov: e.fov,
|
|
638
637
|
duration: this.getSpeededDuration(a),
|
|
639
|
-
effect: (u = (
|
|
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,
|
|
640
639
|
moveCancelCallback: () => o(),
|
|
641
640
|
moveEndCallback: () => o()
|
|
642
641
|
}), s && r.once("panoArrived", () => o());
|
|
@@ -755,5 +754,5 @@ class z extends V {
|
|
|
755
754
|
I(z, "PluginVersion", M);
|
|
756
755
|
export {
|
|
757
756
|
z as default,
|
|
758
|
-
|
|
757
|
+
ar as pluginFlag
|
|
759
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";
|
|
@@ -78,7 +78,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
78
78
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
79
79
|
import "../shared-utils/typescript/entries.js";
|
|
80
80
|
import "../shared-utils/url/getUrl.js";
|
|
81
|
-
import "../shared-utils/five/transformPosition.js";
|
|
82
81
|
import "../shared-utils/five/getFloorIndex.js";
|
|
83
82
|
import "../shared-utils/safeObj.js";
|
|
84
83
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -170,10 +169,10 @@ import "./utils/vectorToCoordinates.js";
|
|
|
170
169
|
import "./utils/formatRad.js";
|
|
171
170
|
import "./utils/linerValue.js";
|
|
172
171
|
import "./utils/sleep.js";
|
|
173
|
-
const
|
|
172
|
+
const lo = (r) => new i(r);
|
|
174
173
|
export {
|
|
175
|
-
|
|
174
|
+
lo as CruisePlugin,
|
|
176
175
|
i as CruisePluginController,
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
ao as CruisePluginTypes,
|
|
177
|
+
lo as default
|
|
179
178
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
2
|
var G = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (p, o, t) => o in p ? O(p, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[o] = t, f = (p, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
|
|
6
|
+
M.call(o, t) && c(p, t, o[t]);
|
|
7
7
|
if (G)
|
|
8
8
|
for (var t of G(o))
|
|
9
|
-
|
|
9
|
+
N.call(o, t) && c(p, t, o[t]);
|
|
10
10
|
return p;
|
|
11
11
|
};
|
|
12
|
-
var d = (p, o, t) => (
|
|
13
|
-
var u = (p, o, t) => new Promise((i,
|
|
14
|
-
var
|
|
12
|
+
var d = (p, o, t) => (c(p, typeof o != "symbol" ? o + "" : o, t), t);
|
|
13
|
+
var u = (p, o, t) => new Promise((i, a) => {
|
|
14
|
+
var m = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
r(t.next(
|
|
16
|
+
r(t.next(s));
|
|
17
17
|
} catch (n) {
|
|
18
|
-
|
|
18
|
+
a(n);
|
|
19
19
|
}
|
|
20
|
-
}, e = (
|
|
20
|
+
}, e = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
r(t.throw(
|
|
22
|
+
r(t.throw(s));
|
|
23
23
|
} catch (n) {
|
|
24
|
-
|
|
24
|
+
a(n);
|
|
25
25
|
}
|
|
26
|
-
}, r = (
|
|
26
|
+
}, r = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(m, e);
|
|
27
27
|
r((t = t.apply(p, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as P } from "../base/BasePluginWithData.js";
|
|
@@ -103,7 +103,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
103
103
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
104
104
|
import "../shared-utils/typescript/entries.js";
|
|
105
105
|
import "../shared-utils/url/getUrl.js";
|
|
106
|
-
import "../shared-utils/five/transformPosition.js";
|
|
107
106
|
import "../shared-utils/five/getFloorIndex.js";
|
|
108
107
|
import "../shared-utils/safeObj.js";
|
|
109
108
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -197,8 +196,8 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
|
197
196
|
import "../CruisePlugin/utils/formatRad.js";
|
|
198
197
|
import "../CruisePlugin/utils/linerValue.js";
|
|
199
198
|
import "../CruisePlugin/utils/sleep.js";
|
|
200
|
-
const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`,
|
|
201
|
-
class
|
|
199
|
+
const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, qr = (p) => `${g}--${p}`;
|
|
200
|
+
class zr extends P {
|
|
202
201
|
constructor(t, i) {
|
|
203
202
|
super(t, i);
|
|
204
203
|
d(this, "version", V);
|
|
@@ -226,27 +225,27 @@ class Kr extends P {
|
|
|
226
225
|
get disposed() {
|
|
227
226
|
return this._disposed;
|
|
228
227
|
}
|
|
229
|
-
load(t, i,
|
|
228
|
+
load(t, i, a = !0) {
|
|
230
229
|
return u(this, null, function* () {
|
|
231
|
-
var v, w,
|
|
230
|
+
var v, w, I, E, y, L, D;
|
|
232
231
|
if (this.disposed)
|
|
233
232
|
return;
|
|
234
|
-
const
|
|
235
|
-
this.hooks.emit("dataChange", e,
|
|
233
|
+
const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
234
|
+
this.hooks.emit("dataChange", e, m), this.data = e;
|
|
236
235
|
const r = e.config, n = {
|
|
237
236
|
panorama_style: {
|
|
238
237
|
visible: !!(!e.lines && e.routes),
|
|
239
238
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
240
239
|
width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
|
|
241
|
-
texture: { url: (
|
|
240
|
+
texture: { url: (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
242
241
|
}
|
|
243
|
-
}, h = (y = (
|
|
242
|
+
}, h = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
|
|
244
243
|
var _;
|
|
245
244
|
return S({}, n, { id: (_ = l.id) != null ? _ : Date.now(), pano_group: l.panoIndexList });
|
|
246
245
|
})) != null ? y : [], A = (D = (L = e.lines) == null ? void 0 : L.map((l) => S({}, n, l))) != null ? D : [], C = [...h, ...A];
|
|
247
246
|
yield this.waitFiveLoaded(), this.clear(), C.forEach((l) => {
|
|
248
247
|
this.addGuideLineItem(l);
|
|
249
|
-
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction:
|
|
248
|
+
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
250
249
|
});
|
|
251
250
|
}
|
|
252
251
|
formatData(t) {
|
|
@@ -279,18 +278,18 @@ class Kr extends P {
|
|
|
279
278
|
this.disposed || (this.clear(), this.hooks.emit("dispose"));
|
|
280
279
|
}
|
|
281
280
|
setState(t, i) {
|
|
282
|
-
var
|
|
281
|
+
var m;
|
|
283
282
|
if (this.disposed)
|
|
284
283
|
return this.disposedErrorLog();
|
|
285
|
-
const
|
|
286
|
-
this.state =
|
|
284
|
+
const a = f({}, this.state);
|
|
285
|
+
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), $(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (m = i == null ? void 0 : i.userAction) != null ? m : !0 }), this.five.needsRender = !0);
|
|
287
286
|
}
|
|
288
287
|
/** 添加一个 GuideLineItem */
|
|
289
288
|
addGuideLineItem(t) {
|
|
290
|
-
const i = t.render_id || t.id,
|
|
291
|
-
|
|
292
|
-
const
|
|
293
|
-
return this.itemMap.set(i,
|
|
289
|
+
const i = t.render_id || t.id, a = this.itemMap.get(i);
|
|
290
|
+
a && this.removeGuideLineItem(a);
|
|
291
|
+
const m = new k({ five: this.five, id: i, plugin: this });
|
|
292
|
+
return this.itemMap.set(i, m), t && m.setData(t), this.heightOffset += 1e-4, m.modelItem.setHeightOffset(this.heightOffset), m.panoramaItem.setHeightOffset(this.heightOffset), m;
|
|
294
293
|
}
|
|
295
294
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
296
295
|
getGuideLineItemByID(t) {
|
|
@@ -306,22 +305,22 @@ class Kr extends P {
|
|
|
306
305
|
function i(e) {
|
|
307
306
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
308
307
|
}
|
|
309
|
-
function
|
|
308
|
+
function a(e, r) {
|
|
310
309
|
return new T.Vector3().fromArray(e).distanceTo(new T.Vector3().fromArray(r)) < 0.01;
|
|
311
310
|
}
|
|
312
|
-
function
|
|
313
|
-
var
|
|
314
|
-
const r = (
|
|
311
|
+
function m(e) {
|
|
312
|
+
var s;
|
|
313
|
+
const r = (s = e.tag) == null ? void 0 : s.position;
|
|
315
314
|
return i(r) ? t.every((n) => {
|
|
316
315
|
var h;
|
|
317
|
-
return i((h = n.tag) == null ? void 0 : h.position) ? !
|
|
316
|
+
return i((h = n.tag) == null ? void 0 : h.position) ? !a(r, n.tag.position) : !0;
|
|
318
317
|
}) : !1;
|
|
319
318
|
}
|
|
320
319
|
this.itemMap.forEach((e) => {
|
|
321
|
-
const r = e.modelItem.startTagContainer,
|
|
320
|
+
const r = e.modelItem.startTagContainer, s = e.modelItem.endTagContainer, n = m(r);
|
|
322
321
|
n && t.push(r), r.plugin.setState({ enabled: n }, {});
|
|
323
|
-
const h =
|
|
324
|
-
h && t.push(
|
|
322
|
+
const h = m(s);
|
|
323
|
+
h && t.push(s), s.plugin.setState({ enabled: h }, {});
|
|
325
324
|
});
|
|
326
325
|
}
|
|
327
326
|
/** 清空所有 GuideLineItem */
|
|
@@ -357,6 +356,6 @@ class Kr extends P {
|
|
|
357
356
|
}
|
|
358
357
|
}
|
|
359
358
|
export {
|
|
360
|
-
|
|
361
|
-
|
|
359
|
+
zr as default,
|
|
360
|
+
qr as pluginFlag
|
|
362
361
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
2
|
var w = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (o, e, t) => e in o ? v(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, c = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
6
|
+
S.call(e, t) && d(o, t, e[t]);
|
|
7
7
|
if (w)
|
|
8
8
|
for (var t of w(e))
|
|
9
|
-
|
|
9
|
+
b.call(e, t) && d(o, t, e[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
|
-
var s = (o, e, t) => (
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var s = (o, e, t) => (d(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var g = (o, e, t) => new Promise((n, i) => {
|
|
14
|
+
var p = (r) => {
|
|
15
15
|
try {
|
|
16
16
|
a(t.next(r));
|
|
17
17
|
} catch (m) {
|
|
@@ -23,13 +23,13 @@ var c = (o, e, t) => new Promise((n, i) => {
|
|
|
23
23
|
} catch (m) {
|
|
24
24
|
i(m);
|
|
25
25
|
}
|
|
26
|
-
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(
|
|
26
|
+
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(p, l);
|
|
27
27
|
a((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { GuideLineModeItem as y } from "../GuideLineModeItem/index.js";
|
|
30
|
-
import
|
|
31
|
-
import { logError as
|
|
32
|
-
import { to as
|
|
30
|
+
import x from "../../CruisePlugin/Controller.js";
|
|
31
|
+
import { logError as G } from "../../shared-utils/log.js";
|
|
32
|
+
import { to as L } from "../../shared-utils/to.js";
|
|
33
33
|
import { Subscribe as k } from "@realsee/five";
|
|
34
34
|
import { changeMode as P } from "../../shared-utils/five/changeMode.js";
|
|
35
35
|
class C {
|
|
@@ -43,7 +43,7 @@ class C {
|
|
|
43
43
|
s(this, "_visible", !0);
|
|
44
44
|
s(this, "plugin");
|
|
45
45
|
s(this, "five");
|
|
46
|
-
s(this, "logError", (e) =>
|
|
46
|
+
s(this, "logError", (e) => G("GuideLineItem: ", e));
|
|
47
47
|
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new y(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new y(this.five, { mode: "model", plugin: this.plugin, parent: this });
|
|
48
48
|
}
|
|
49
49
|
get visible() {
|
|
@@ -52,18 +52,15 @@ class C {
|
|
|
52
52
|
setData(e) {
|
|
53
53
|
this.setDataByMode("panorama", e), this.setDataByMode("model", e);
|
|
54
54
|
}
|
|
55
|
-
setHeightOffset(e) {
|
|
56
|
-
this.modelItem.mesh.position.y = e, this.panoramaItem.mesh.position.y = e;
|
|
57
|
-
}
|
|
58
55
|
setDataByMode(e, t) {
|
|
59
|
-
var
|
|
60
|
-
const n = e === "panorama" ? this.panoramaItem : this.modelItem, i = e === "panorama" ? t.panorama_style : t.model_style,
|
|
56
|
+
var m;
|
|
57
|
+
const n = e === "panorama" ? this.panoramaItem : this.modelItem, i = e === "panorama" ? t.panorama_style : t.model_style, p = t.path, l = i, a = i, r = i;
|
|
61
58
|
if (t.pano_group) {
|
|
62
|
-
const
|
|
63
|
-
n.setGeometryByPanoGroup(t.pano_group,
|
|
59
|
+
const h = e === "panorama";
|
|
60
|
+
n.setGeometryByPanoGroup(t.pano_group, c({ skipPanoGroup: h }, l));
|
|
64
61
|
} else
|
|
65
|
-
t.path && n.setGeometryByPath(
|
|
66
|
-
n.name = t.name, n.setMartial(a), n.setVisibleFloorIndexes((
|
|
62
|
+
t.path && n.setGeometryByPath(p, l);
|
|
63
|
+
n.name = t.name, n.setMeshStyle(r), n.setMartial(a), n.setVisibleFloorIndexes((m = t.visible_floor_indexes) != null ? m : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
|
|
67
64
|
}
|
|
68
65
|
show() {
|
|
69
66
|
this._visible = !0, this.hooks.emit("show", { userAction: !0 });
|
|
@@ -75,47 +72,47 @@ class C {
|
|
|
75
72
|
this.panoramaItem.dispose(), this.modelItem.dispose();
|
|
76
73
|
}
|
|
77
74
|
walk(e) {
|
|
78
|
-
return
|
|
75
|
+
return g(this, null, function* () {
|
|
79
76
|
if (!this.panoramaItem.panoGroup)
|
|
80
77
|
return;
|
|
81
|
-
const t =
|
|
78
|
+
const t = c({ panoIndexList: this.panoramaItem.panoGroup }, e);
|
|
82
79
|
this.hooks.emit("walkStart", { userAction: !0 });
|
|
83
|
-
const [n] = yield
|
|
80
|
+
const [n] = yield L(M(this.five, t));
|
|
84
81
|
if (this.hooks.emit("walkEnded", { userAction: !0 }), n)
|
|
85
82
|
return this.logError(n.message);
|
|
86
83
|
});
|
|
87
84
|
}
|
|
88
85
|
}
|
|
89
86
|
function M(o, e) {
|
|
90
|
-
return
|
|
87
|
+
return g(this, null, function* () {
|
|
91
88
|
if (e.panoIndexList.length === 0)
|
|
92
89
|
return;
|
|
93
90
|
const t = o.getCurrentState();
|
|
94
91
|
t.mode !== "Panorama" && (yield P(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
|
|
95
|
-
const n = new
|
|
96
|
-
yield n.load(e), yield new Promise((i,
|
|
92
|
+
const n = new x(o, { useGuideLine: !1 });
|
|
93
|
+
yield n.load(e), yield new Promise((i, p) => {
|
|
97
94
|
const l = o.getCurrentState();
|
|
98
95
|
let a = e.panoIndexList.slice();
|
|
99
96
|
l.panoIndex === a[0] && m(l.panoIndex), n.playFromStart();
|
|
100
|
-
function r(
|
|
101
|
-
if (
|
|
97
|
+
function r(u) {
|
|
98
|
+
if (u !== "Panorama")
|
|
102
99
|
return f(new Error("mode not match"));
|
|
103
100
|
}
|
|
104
|
-
function m(
|
|
101
|
+
function m(u) {
|
|
105
102
|
const I = a[0];
|
|
106
|
-
if (a = a.slice(1),
|
|
107
|
-
return f(new Error("panoIndex not match, wanted: " + I + ", got: " +
|
|
103
|
+
if (a = a.slice(1), u !== I)
|
|
104
|
+
return f(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
|
|
108
105
|
if (a.length === 0)
|
|
109
106
|
return _();
|
|
110
107
|
}
|
|
111
|
-
function
|
|
108
|
+
function h() {
|
|
112
109
|
o.off("modeChange", r), o.off("panoArrived", m);
|
|
113
110
|
}
|
|
114
|
-
function f(
|
|
115
|
-
|
|
111
|
+
function f(u) {
|
|
112
|
+
h(), p(u);
|
|
116
113
|
}
|
|
117
114
|
function _() {
|
|
118
|
-
|
|
115
|
+
h(), i();
|
|
119
116
|
}
|
|
120
117
|
o.on("modeChange", r), o.on("panoArrived", m);
|
|
121
118
|
});
|
|
@@ -26,7 +26,6 @@ declare class GuideLineItem {
|
|
|
26
26
|
plugin: GuideLinePlugin;
|
|
27
27
|
});
|
|
28
28
|
setData(data: PluginType.GuideLineItem): void;
|
|
29
|
-
setHeightOffset(heightOffset: number): void;
|
|
30
29
|
setDataByMode(mode: PluginType.GuideLineModeItemMode, data: PluginType.GuideLineItem): void;
|
|
31
30
|
show(): void;
|
|
32
31
|
hide(): void;
|
|
@@ -4,7 +4,7 @@ import "../shared-utils/log.js";
|
|
|
4
4
|
import "../shared-utils/to.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "../shared-utils/five/changeMode.js";
|
|
7
|
-
import { GuideLineItem as
|
|
7
|
+
import { GuideLineItem as uo } from "./GuideLineItem/index.js";
|
|
8
8
|
import "three";
|
|
9
9
|
import "./utils/createLineGeometry.js";
|
|
10
10
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -74,7 +74,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
74
74
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
75
75
|
import "../shared-utils/typescript/entries.js";
|
|
76
76
|
import "../shared-utils/url/getUrl.js";
|
|
77
|
-
import "../shared-utils/five/transformPosition.js";
|
|
78
77
|
import "../shared-utils/five/getFloorIndex.js";
|
|
79
78
|
import "../shared-utils/safeObj.js";
|
|
80
79
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -170,5 +169,5 @@ import "../CruisePlugin/utils/formatRad.js";
|
|
|
170
169
|
import "../CruisePlugin/utils/linerValue.js";
|
|
171
170
|
import "../CruisePlugin/utils/sleep.js";
|
|
172
171
|
export {
|
|
173
|
-
|
|
172
|
+
uo as GuideLineItem
|
|
174
173
|
};
|