@realsee/dnalogel 3.0.0-dev.2 → 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 +37 -37
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3449 -3433
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/five/FiveDomEvents.d.ts +24 -10
- package/dist/shared-utils/five/calculateThreeMouse.d.ts +11 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
- package/libs/CruisePlugin/Controller.js +132 -129
- package/libs/CruisePlugin/index.js +6 -5
- package/libs/CurrentPanoImagePlugin/Controller.js +21 -23
- package/libs/CurrentPanoImagePlugin/index.js +3 -4
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +192 -205
- package/libs/PanoTagPlugin/controller/TagComputer.js +63 -61
- package/libs/PanoTagPlugin/controller/TagRender.js +52 -51
- package/libs/PanoTagPlugin/controller/TagUtil.js +94 -98
- package/libs/PanoTagPlugin/controller/index.js +42 -42
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/index.js +1 -0
- package/libs/index.d.ts +0 -1
- package/libs/index.js +1 -1
- 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/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.js +5 -5
- 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
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var U = Object.defineProperty, X = Object.defineProperties;
|
|
2
|
+
var q = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (a, r, e) => r in a ? U(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, C = (a, r) => {
|
|
6
6
|
for (var e in r || (r = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
7
|
+
K.call(r, e) && w(a, e, r[e]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var e of R(r))
|
|
10
|
+
Q.call(r, e) && w(a, e, r[e]);
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
13
|
-
var d = (a, r, e) => (
|
|
14
|
-
import { defaultGlobalConfig as
|
|
15
|
-
import { objectAssignDeepExports as
|
|
16
|
-
import * as
|
|
17
|
-
import { DefaultConfig as
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
20
|
-
import { getTagCenterPosition as
|
|
21
|
-
import { normalPositionToPositions as
|
|
22
|
-
import { TagCache as
|
|
23
|
-
import { writable as
|
|
24
|
-
import { isIOSWX as
|
|
25
|
-
import { Five as
|
|
26
|
-
import { isMediaPlaneTag as
|
|
27
|
-
import { VideoPlane as
|
|
28
|
-
import { FiveDomEvents as
|
|
29
|
-
import
|
|
30
|
-
import { isPanoramaLike as
|
|
12
|
+
}, B = (a, r) => X(a, q(r));
|
|
13
|
+
var d = (a, r, e) => (w(a, typeof r != "symbol" ? r + "" : r, e), e);
|
|
14
|
+
import { defaultGlobalConfig as Y } from "../typings/tag/TagConfig.js";
|
|
15
|
+
import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
+
import * as Z from "three";
|
|
17
|
+
import { DefaultConfig as ee } from "../tag.config.js";
|
|
18
|
+
import { anyPositionToVector3 as ie, arrayPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as W } from "../utils/planeNormal.js";
|
|
20
|
+
import { getTagCenterPosition as N } from "../utils/tagPosition.js";
|
|
21
|
+
import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
|
|
22
|
+
import { TagCache as oe } from "./TagCache.js";
|
|
23
|
+
import { writable as ne } from "../../vendor/svelte/store/index.js";
|
|
24
|
+
import { isIOSWX as re } from "../../shared-utils/device.js";
|
|
25
|
+
import { Five as se } from "@realsee/five";
|
|
26
|
+
import { isMediaPlaneTag as fe, isMediaModelTag as G, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
|
|
27
|
+
import { VideoPlane as le } from "../utils/model/mediaPlane.js";
|
|
28
|
+
import { FiveDomEvents as de } from "../../shared-utils/five/FiveDomEvents.js";
|
|
29
|
+
import _ from "../utils/tag/adaptConfig.js";
|
|
30
|
+
import { isPanoramaLike as j, isModelLike as $ } from "../../shared-utils/five/mode.js";
|
|
31
31
|
import "hammerjs";
|
|
32
32
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
34
34
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
35
|
-
import { entries as
|
|
36
|
-
import { getUrlExt as
|
|
35
|
+
import { entries as z } from "../../shared-utils/typescript/entries.js";
|
|
36
|
+
import { getUrlExt as H } from "../../shared-utils/url/getUrl.js";
|
|
37
37
|
import "../../shared-utils/three/centerPoint.js";
|
|
38
38
|
import "../../base/BasePlugin.js";
|
|
39
39
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -58,12 +58,13 @@ import "../Assets/Icon.js";
|
|
|
58
58
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
59
59
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
60
60
|
import "../../shared-utils/three/getNormal.js";
|
|
61
|
-
|
|
61
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
62
|
+
class si extends oe {
|
|
62
63
|
constructor(e) {
|
|
63
64
|
super(e);
|
|
64
65
|
d(this, "tags", []);
|
|
65
|
-
d(this, "config",
|
|
66
|
-
d(this, "mediaStore",
|
|
66
|
+
d(this, "config", ee);
|
|
67
|
+
d(this, "mediaStore", ne({
|
|
67
68
|
currentMediaElement: null
|
|
68
69
|
}));
|
|
69
70
|
/** css3DRenderPlugin */
|
|
@@ -74,10 +75,10 @@ class ti extends ee {
|
|
|
74
75
|
resizeObserverDisposerAdding: !1,
|
|
75
76
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
76
77
|
});
|
|
77
|
-
d(this, "domEvents", new
|
|
78
|
+
d(this, "domEvents", new de(this.five));
|
|
78
79
|
d(this, "mouseInfo");
|
|
79
80
|
d(this, "loadVideoFirstFrame", () => {
|
|
80
|
-
|
|
81
|
+
re && this.hooks.emit("loadVideoFirstFrame");
|
|
81
82
|
});
|
|
82
83
|
d(this, "preventWhenMouseDown", () => {
|
|
83
84
|
var e;
|
|
@@ -87,7 +88,7 @@ class ti extends ee {
|
|
|
87
88
|
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
88
89
|
this.tags.forEach((o) => {
|
|
89
90
|
var t;
|
|
90
|
-
if (o.mediaPlane instanceof
|
|
91
|
+
if (o.mediaPlane instanceof le && i !== o.mediaPlane.videoInstance) {
|
|
91
92
|
if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
|
|
92
93
|
return;
|
|
93
94
|
o.mediaPlane.pause();
|
|
@@ -125,11 +126,12 @@ class ti extends ee {
|
|
|
125
126
|
}
|
|
126
127
|
updateTagConfig() {
|
|
127
128
|
this.clearCache(), this.tags.forEach((e) => {
|
|
128
|
-
var
|
|
129
|
+
var o;
|
|
129
130
|
const i = this.getTagConfig(e, { useCache: !1 });
|
|
130
|
-
e.config = i
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
if (e.config = i, e.config.initialData) {
|
|
132
|
+
const t = JSON.parse(JSON.stringify(e.data));
|
|
133
|
+
e.data = (o = i.initialData) != null && o.important ? P(e.data, t, i.initialData) : P(e.data, i.initialData, t);
|
|
134
|
+
}
|
|
133
135
|
});
|
|
134
136
|
}
|
|
135
137
|
can(e, i) {
|
|
@@ -159,15 +161,15 @@ class ti extends ee {
|
|
|
159
161
|
return;
|
|
160
162
|
const t = e.data.mediaData;
|
|
161
163
|
if (!(!t || t.length === 0) && o.renderType === "Mesh") {
|
|
162
|
-
if (
|
|
164
|
+
if (fe(e)) {
|
|
163
165
|
if (t.length === 1) {
|
|
164
166
|
if (t[0].type === "Video")
|
|
165
167
|
return "Mesh";
|
|
166
168
|
if (t[0].type === "Image")
|
|
167
|
-
return
|
|
169
|
+
return H(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
168
170
|
}
|
|
169
|
-
} else if (
|
|
170
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
171
|
+
} else if (G(e))
|
|
172
|
+
return t.length === 1 && t[0].type === "Image" ? H(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
171
173
|
}
|
|
172
174
|
})();
|
|
173
175
|
return i != null ? i : "Dom";
|
|
@@ -187,44 +189,44 @@ class ti extends ee {
|
|
|
187
189
|
const f = (n = (s = this.five.work) == null ? void 0 : s.observers[o]) == null ? void 0 : n.position;
|
|
188
190
|
if (f === void 0)
|
|
189
191
|
throw new Error(`getAngle(): observerPosition is ${f}`);
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
192
|
+
const u = (() => e.stickType === "3DPoint" ? ie(e.normal) : W(e.position))();
|
|
193
|
+
if (!u)
|
|
192
194
|
return;
|
|
193
|
-
const g =
|
|
195
|
+
const g = N(e);
|
|
194
196
|
if (!g)
|
|
195
197
|
return;
|
|
196
|
-
const
|
|
197
|
-
return t.angle =
|
|
198
|
+
const l = new Z.Vector3().copy(f).sub(g), T = u.angleTo(l) * 180 / Math.PI;
|
|
199
|
+
return t.angle = T, t.angle;
|
|
198
200
|
}
|
|
199
201
|
}
|
|
200
202
|
/**
|
|
201
203
|
* @description: 获取距离
|
|
202
204
|
*/
|
|
203
205
|
getDistance(e, i) {
|
|
204
|
-
var
|
|
205
|
-
const o = C(C({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n =
|
|
206
|
+
var u, g;
|
|
207
|
+
const o = C(C({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n = j(s) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
206
208
|
if ((n == null ? void 0 : n.distance) !== void 0)
|
|
207
209
|
return n.distance;
|
|
208
|
-
const f =
|
|
210
|
+
const f = N(e);
|
|
209
211
|
if (!f)
|
|
210
212
|
return -1;
|
|
211
|
-
if (
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
213
|
+
if (j(s)) {
|
|
214
|
+
const l = (g = (u = this.five.work) == null ? void 0 : u.observers[t]) == null ? void 0 : g.position;
|
|
215
|
+
if (l === void 0)
|
|
214
216
|
return -1;
|
|
215
|
-
const
|
|
216
|
-
return n && (n.distance =
|
|
217
|
+
const T = l.distanceTo(f);
|
|
218
|
+
return n && (n.distance = T), T;
|
|
217
219
|
}
|
|
218
|
-
if (
|
|
220
|
+
if ($(s))
|
|
219
221
|
return this.five.camera.position.distanceTo(f);
|
|
220
222
|
}
|
|
221
223
|
getPositions(e) {
|
|
222
|
-
if (
|
|
224
|
+
if (ae(e))
|
|
223
225
|
return e.position;
|
|
224
|
-
if (
|
|
226
|
+
if (G(e))
|
|
225
227
|
return e.data.mediaPosition;
|
|
226
|
-
if (
|
|
227
|
-
return
|
|
228
|
+
if (ce(e))
|
|
229
|
+
return te(this.five.camera.position, E(e.position), E(e.normal));
|
|
228
230
|
}
|
|
229
231
|
addObjectClickHandler(e, i, o) {
|
|
230
232
|
if (!i || !this.domEvents)
|
|
@@ -242,11 +244,11 @@ class ti extends ee {
|
|
|
242
244
|
}
|
|
243
245
|
getTagNormal(e) {
|
|
244
246
|
if (e.normal)
|
|
245
|
-
return
|
|
247
|
+
return E(e.normal);
|
|
246
248
|
if (e.stickType === "Plane")
|
|
247
|
-
return
|
|
249
|
+
return W(e.position);
|
|
248
250
|
if (e.stickType === "Model")
|
|
249
|
-
return
|
|
251
|
+
return W(this.getPositions(e));
|
|
250
252
|
}
|
|
251
253
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
252
254
|
get filterPointTag() {
|
|
@@ -282,52 +284,46 @@ class ti extends ee {
|
|
|
282
284
|
* @description: 获取merge后的配置
|
|
283
285
|
*/
|
|
284
286
|
calculateTagConfig(e, i) {
|
|
285
|
-
var
|
|
286
|
-
const o = (
|
|
287
|
+
var A, I, S, O;
|
|
288
|
+
const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
|
|
287
289
|
if (!e)
|
|
288
|
-
return (
|
|
289
|
-
if (o && ((
|
|
290
|
+
return (I = this.config.globalConfig) != null ? I : {};
|
|
291
|
+
if (o && ((S = e.config) != null && S._isMerged))
|
|
290
292
|
return e.config;
|
|
291
293
|
const t = {}, s = {}, n = {};
|
|
292
294
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([p, h]) => {
|
|
293
|
-
var
|
|
294
|
-
const
|
|
295
|
-
if (!M[
|
|
296
|
-
if (
|
|
297
|
-
const [m] =
|
|
298
|
-
(e.contentType === m || m === "Any") && (M[
|
|
295
|
+
var F, L;
|
|
296
|
+
const c = p, k = c.split("-"), V = p.startsWith("["), y = V ? k[0].slice(1, -1) : void 0, v = V ? k.slice(1) : k, M = y ? ["PanoramaLike", "ModelLike"].includes(y) ? (F = s[y]) != null ? F : s[y] = {} : (L = n[y]) != null ? L : n[y] = {} : t;
|
|
297
|
+
if (!M[c]) {
|
|
298
|
+
if (v.length === 0 && (M[c] = h), v.length === 1) {
|
|
299
|
+
const [m] = v;
|
|
300
|
+
(e.contentType === m || m === "Any") && (M[c] = h);
|
|
299
301
|
}
|
|
300
|
-
if (
|
|
301
|
-
const [m = "Any",
|
|
302
|
-
m === "Mixin" && e.contentType ===
|
|
302
|
+
if (v.length === 2) {
|
|
303
|
+
const [m = "Any", b = "Any"] = v;
|
|
304
|
+
m === "Mixin" && e.contentType === b && (M[c] = h), (e.stickType === m || m === "Any") && (e.contentType === b || b === "Any") && (M[c] = h);
|
|
303
305
|
}
|
|
304
|
-
if (
|
|
305
|
-
const [m = "Any",
|
|
306
|
-
if (
|
|
307
|
-
const
|
|
308
|
-
(
|
|
306
|
+
if (v.length === 3) {
|
|
307
|
+
const [m = "Any", b, J] = v;
|
|
308
|
+
if (b === "Audio" && e.contentType === "Audio") {
|
|
309
|
+
const x = e;
|
|
310
|
+
(x.stickType === m || m === "Any") && x.data.appearance === J && (M[c] = h);
|
|
309
311
|
}
|
|
310
312
|
}
|
|
311
313
|
}
|
|
312
314
|
});
|
|
313
|
-
const f =
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
...Object.values(t),
|
|
318
|
-
e.config
|
|
319
|
-
), c = {}, g = Object.values(oe.Mode);
|
|
320
|
-
G(s).forEach(([p, h]) => {
|
|
321
|
-
g.forEach((l) => {
|
|
322
|
-
(p === "PanoramaLike" && W(l) || p === "ModelLike" && N(l)) && (c[l] = b({}, f, ...Object.values(h)));
|
|
315
|
+
const f = (O = e.config) != null && O._isMerged ? e.initialConfig : e.config, u = P({}, Y, this.config.globalConfig, ...Object.values(t)), g = P({}, u, f), l = {}, T = Object.values(se.Mode);
|
|
316
|
+
z(s).forEach(([p, h]) => {
|
|
317
|
+
T.forEach((c) => {
|
|
318
|
+
(p === "PanoramaLike" && j(c) || p === "ModelLike" && $(c)) && (l[c] = P({}, u, ...Object.values(h), f));
|
|
323
319
|
});
|
|
324
|
-
}),
|
|
325
|
-
|
|
320
|
+
}), z(n).forEach(([p, h]) => {
|
|
321
|
+
l[p] = P({}, u, ...Object.values(h), f);
|
|
326
322
|
});
|
|
327
|
-
const
|
|
328
|
-
return
|
|
323
|
+
const D = B(C({}, g), { configWithFiveMode: l });
|
|
324
|
+
return _(D, e), Object.values(l).forEach((p) => _(p, e)), D._isMerged = !0, D;
|
|
329
325
|
}
|
|
330
326
|
}
|
|
331
327
|
export {
|
|
332
|
-
|
|
328
|
+
si as TagUtil
|
|
333
329
|
};
|
|
@@ -2,15 +2,15 @@ var w = Object.defineProperty, E = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var m = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
I.call(a, e) &&
|
|
7
|
+
I.call(a, e) && m(d, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
B.call(a, e) &&
|
|
10
|
+
B.call(a, e) && m(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
var l = (d, a, e) => (
|
|
12
|
+
}, u = (d, a) => E(d, U(a));
|
|
13
|
+
var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var p = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
@@ -27,13 +27,13 @@ var p = (d, a, e) => new Promise((t, i) => {
|
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as v from "three";
|
|
31
31
|
import { Subscribe as F } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
-
import { addDebugPoints as
|
|
33
|
+
import { addDebugPoints as M } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { debounce as
|
|
35
|
+
import { isMediaModelTag as R, isModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { debounce as k } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as O } from "../utils/throttle.js";
|
|
38
38
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
39
39
|
import V from "../utils/tag/format.js";
|
|
@@ -85,6 +85,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
85
85
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
86
86
|
import "../../shared-utils/three/getNormal.js";
|
|
87
87
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
88
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
88
89
|
import "../utils/tag/adaptConfig.js";
|
|
89
90
|
import "../../shared-utils/typescript/entries.js";
|
|
90
91
|
import "../../shared-utils/url/getUrl.js";
|
|
@@ -166,8 +167,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
166
167
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
167
168
|
import "@realsee/five/gltf-loader";
|
|
168
169
|
import "../../shared-utils/animationFrame/index.js";
|
|
169
|
-
const P = "Dnalogel-PanoTagPlugin",
|
|
170
|
-
class
|
|
170
|
+
const P = "Dnalogel-PanoTagPlugin", Di = (d) => `${P}--${d}`;
|
|
171
|
+
class Pi extends N {
|
|
171
172
|
constructor(e, t) {
|
|
172
173
|
super(e);
|
|
173
174
|
/** state */
|
|
@@ -181,7 +182,7 @@ class Di extends N {
|
|
|
181
182
|
e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
182
183
|
}));
|
|
183
184
|
l(this, "whyHide", (e) => {
|
|
184
|
-
var i, s;
|
|
185
|
+
var i, s, o;
|
|
185
186
|
if (!this.state.enabled)
|
|
186
187
|
return { reason: `plugin.state.enabled is ${this.state.enabled}` };
|
|
187
188
|
if (!this.state.visible)
|
|
@@ -192,15 +193,15 @@ class Di extends N {
|
|
|
192
193
|
if (!t.enabled)
|
|
193
194
|
return { reason: `tag ${e} enabled is ${t.enabled}` };
|
|
194
195
|
if (!t.state.visible) {
|
|
195
|
-
const
|
|
196
|
-
return { reason: (
|
|
196
|
+
const n = (s = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__) == null ? void 0 : s.reason;
|
|
197
|
+
return { reason: (o = n.type) != null ? o : n, reasonObj: n };
|
|
197
198
|
}
|
|
198
199
|
return t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : { reason: "check your eyes" };
|
|
199
200
|
});
|
|
200
201
|
l(this, "updateVisible", () => {
|
|
201
202
|
const e = this.five.getCurrentState().mode;
|
|
202
203
|
this.tags.forEach((t) => {
|
|
203
|
-
|
|
204
|
+
R(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
204
205
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
205
206
|
});
|
|
206
207
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
@@ -240,24 +241,23 @@ class Di extends N {
|
|
|
240
241
|
this.updatePointTagPosition();
|
|
241
242
|
});
|
|
242
243
|
l(this, "handleFivePanoArrived", () => p(this, null, function* () {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
if (!n)
|
|
244
|
+
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
245
|
+
e.temporaryState = u(c({}, e.temporaryState), { visible: !0 });
|
|
246
|
+
}), this.tags.filter(_).filter((e) => {
|
|
247
|
+
var t, i;
|
|
248
|
+
return (i = (t = e.config) == null ? void 0 : t.modelConfig) == null ? void 0 : i.autoLookAtEnabled;
|
|
249
|
+
}).forEach((e) => {
|
|
250
|
+
var h;
|
|
251
|
+
const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
|
|
252
|
+
if (!i)
|
|
253
253
|
return;
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}),
|
|
254
|
+
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
255
|
+
const s = this.five.camera.position;
|
|
256
|
+
t.lookAt(s.clone().setY(t.position.y));
|
|
257
|
+
const o = i.quaternion.clone(), n = t.quaternion.clone(), r = $();
|
|
258
|
+
r.onUpdate(({ progress: g }) => {
|
|
259
|
+
i.quaternion.copy(o.clone().slerp(n, g));
|
|
260
|
+
}), r.play();
|
|
261
261
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
262
262
|
}));
|
|
263
263
|
/** 楼层切换时,需要更新标签可见性 */
|
|
@@ -287,7 +287,7 @@ class Di extends N {
|
|
|
287
287
|
const i = yield this.addTag(e.tagList, t);
|
|
288
288
|
if (this.debug)
|
|
289
289
|
try {
|
|
290
|
-
|
|
290
|
+
M(this.five, this.tags);
|
|
291
291
|
} catch (n) {
|
|
292
292
|
console.error(n);
|
|
293
293
|
}
|
|
@@ -300,12 +300,12 @@ class Di extends N {
|
|
|
300
300
|
addTag(e, t) {
|
|
301
301
|
return p(this, null, function* () {
|
|
302
302
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
303
|
-
var
|
|
303
|
+
var b, T, y;
|
|
304
304
|
const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
|
|
305
|
-
return o.config = n,
|
|
306
|
-
enabled: (
|
|
307
|
-
id: (
|
|
308
|
-
data: (
|
|
305
|
+
return o.config = n, u(c({}, o), {
|
|
306
|
+
enabled: (b = o.enabled) != null ? b : !0,
|
|
307
|
+
id: (T = o.id) != null ? T : z(),
|
|
308
|
+
data: (y = n.initialData) != null && y.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
|
|
309
309
|
state: c({
|
|
310
310
|
visible: void 0,
|
|
311
311
|
unfolded: !this.can("fold", o)
|
|
@@ -511,7 +511,7 @@ class Di extends N {
|
|
|
511
511
|
}, 500),
|
|
512
512
|
e
|
|
513
513
|
), { observe: n, unobserve: r } = D(
|
|
514
|
-
|
|
514
|
+
k(() => t(), 400),
|
|
515
515
|
e
|
|
516
516
|
);
|
|
517
517
|
return s(), n(), () => {
|
|
@@ -534,7 +534,7 @@ class Di extends N {
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
export {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
537
|
+
Pi as PanoTagPluginController,
|
|
538
|
+
Pi as default,
|
|
539
|
+
Di as pluginFlag
|
|
540
540
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as Lt } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Nt } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Qt, DimensionType as Rt, PointType as St } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "@realsee/five";
|
|
7
7
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -56,6 +56,7 @@ import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
56
56
|
import "../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
57
57
|
import "../shared-utils/three/getNormal.js";
|
|
58
58
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
59
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
59
60
|
import "./utils/tag/adaptConfig.js";
|
|
60
61
|
import "../shared-utils/typescript/entries.js";
|
|
61
62
|
import "../shared-utils/url/getUrl.js";
|
|
@@ -140,14 +141,14 @@ import "@realsee/five/gltf-loader";
|
|
|
140
141
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
141
142
|
import "../shared-utils/animationFrame/index.js";
|
|
142
143
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
143
|
-
const
|
|
144
|
+
const It = (o, t) => new r(o, t);
|
|
144
145
|
export {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
Qt as ContentType,
|
|
147
|
+
Rt as DimensionType,
|
|
148
|
+
It as PanoTagPlugin,
|
|
148
149
|
r as PanoTagPluginController,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
St as PointType,
|
|
151
|
+
It as default,
|
|
152
|
+
Nt as defaultGlobalConfig,
|
|
153
|
+
Lt as pluginFlag
|
|
153
154
|
};
|
|
@@ -5,6 +5,7 @@ import type { MinMax } from './Utils';
|
|
|
5
5
|
import type { TagInstance } from './TagInstance';
|
|
6
6
|
import type { PartialObjectDeep } from '../../../typings/typings';
|
|
7
7
|
import type { Vector3 } from 'three';
|
|
8
|
+
type TagVisibleMode = Mode | Mode[] | 'PanoramaLike' | 'ModelLike' | 'all';
|
|
8
9
|
export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
9
10
|
/**
|
|
10
11
|
* @description: 显示/隐藏相关配置
|
|
@@ -57,7 +58,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
57
58
|
* }
|
|
58
59
|
* ```
|
|
59
60
|
*/
|
|
60
|
-
visibleFiveMode?:
|
|
61
|
+
visibleFiveMode?: TagVisibleMode | ((tag: TagInstance) => TagVisibleMode);
|
|
61
62
|
/**
|
|
62
63
|
* @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
|
|
63
64
|
* @default false
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/floorplan/index.js
CHANGED
package/libs/index.d.ts
CHANGED
package/libs/index.js
CHANGED
|
@@ -281,6 +281,7 @@ import "./shared-utils/three/getPositionsByObjectFit.js";
|
|
|
281
281
|
import "./shared-utils/three/FragmentTransparencyMaterial.js";
|
|
282
282
|
import "./shared-utils/three/getNormal.js";
|
|
283
283
|
import "./shared-utils/five/FiveDomEvents.js";
|
|
284
|
+
import "./shared-utils/five/calculateThreeMouse.js";
|
|
284
285
|
import "./PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
285
286
|
import "./shared-utils/typescript/entries.js";
|
|
286
287
|
import "./shared-utils/url/getUrl.js";
|
|
@@ -408,7 +409,6 @@ import "./shared-utils/three/objects/LineSegments.js";
|
|
|
408
409
|
import "./components/AreaLabel/LabelItem.js";
|
|
409
410
|
import "./components/AreaLabel/Assets/roomLabelBg.js";
|
|
410
411
|
import "./CurrentPanoImagePlugin/Controller.js";
|
|
411
|
-
import "./shared-utils/five/adapt.js";
|
|
412
412
|
import "./shared-utils/math/Interval.js";
|
|
413
413
|
import "./shared-utils/math/Rectangle.js";
|
|
414
414
|
import "./shared-utils/five/index.js";
|
|
@@ -7,13 +7,24 @@
|
|
|
7
7
|
* 4. 重构之后只会在 wantsTapGesture 事件触发的时候做射线检测
|
|
8
8
|
*/
|
|
9
9
|
import type { Five } from '@realsee/five';
|
|
10
|
-
import
|
|
11
|
-
|
|
10
|
+
import * as THREE from 'three';
|
|
11
|
+
interface EventMap {
|
|
12
|
+
/**
|
|
13
|
+
* @description 点击事件
|
|
14
|
+
* @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
15
|
+
*/
|
|
16
|
+
click: (event: CallbackEvent) => PreventFiveEvent | void;
|
|
17
|
+
/**
|
|
18
|
+
* @description 鼠标移入事件
|
|
19
|
+
*/
|
|
20
|
+
hover: (event: CallbackEvent) => void;
|
|
21
|
+
/**
|
|
22
|
+
* @description 鼠标移出事件
|
|
23
|
+
*/
|
|
24
|
+
unHover: (event: CallbackEvent) => void;
|
|
25
|
+
}
|
|
26
|
+
type EventName = keyof EventMap;
|
|
12
27
|
type PreventFiveEvent = boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
15
|
-
*/
|
|
16
|
-
type Callback = (event: CallbackEvent) => PreventFiveEvent | void;
|
|
17
28
|
interface EventHandlerConfig {
|
|
18
29
|
/**
|
|
19
30
|
* @default true
|
|
@@ -29,8 +40,9 @@ interface CallbackEvent {
|
|
|
29
40
|
}
|
|
30
41
|
type Object3DWithEvent = THREE.Object3D & {
|
|
31
42
|
_domEvent?: {
|
|
32
|
-
[key in `${EventName}Handler`]?: Array<[
|
|
43
|
+
[key in `${EventName}Handler`]?: Array<[EventMap[EventName], EventHandlerConfig]>;
|
|
33
44
|
};
|
|
45
|
+
_hovered?: boolean;
|
|
34
46
|
};
|
|
35
47
|
export declare class FiveDomEvents {
|
|
36
48
|
private five;
|
|
@@ -41,7 +53,7 @@ export declare class FiveDomEvents {
|
|
|
41
53
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
42
54
|
* @todo: added 和 removed 还是不太智能
|
|
43
55
|
*/
|
|
44
|
-
addAutoBindEventListener(
|
|
56
|
+
addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): () => void;
|
|
45
57
|
/**
|
|
46
58
|
* @description: add event listener
|
|
47
59
|
* @param params.object: object
|
|
@@ -49,10 +61,12 @@ export declare class FiveDomEvents {
|
|
|
49
61
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
50
62
|
* @return {void}
|
|
51
63
|
*/
|
|
52
|
-
addEventListener(object: Object3DWithEvent, event:
|
|
64
|
+
addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): void;
|
|
53
65
|
removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: CallbackEvent) => any, ...args: any[]): void;
|
|
54
66
|
dispose(): void;
|
|
55
|
-
private
|
|
67
|
+
private getRaycaster;
|
|
68
|
+
private handleWantsGesture;
|
|
69
|
+
private onDomEvent;
|
|
56
70
|
private objectIsBound;
|
|
57
71
|
private notify;
|
|
58
72
|
}
|