@realsee/dnalogel 3.0.0-dev.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/dist/index.cjs.js +48 -48
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4403 -4376
- package/dist/index.umd.js +45 -45
- package/dist/shared-utils/five/FiveDomEvents.d.ts +24 -10
- package/dist/shared-utils/five/calculateThreeMouse.d.ts +11 -0
- package/dist/shared-utils/index.d.ts +1 -1
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/url/getUrl.d.ts +4 -0
- package/libs/AreaMakerPlugin/Controller.js +1 -1
- package/libs/AreaMakerPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CruisePlugin/Controller.js +107 -102
- package/libs/CruisePlugin/index.js +9 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +22 -24
- package/libs/CurrentPanoImagePlugin/index.js +4 -5
- package/libs/GuideLinePlugin/Controller.js +25 -22
- package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
- package/libs/GuideLinePlugin/index.js +11 -8
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +192 -205
- package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +66 -62
- package/libs/PanoTagPlugin/controller/TagRender.js +55 -52
- package/libs/PanoTagPlugin/controller/TagUtil.js +99 -97
- package/libs/PanoTagPlugin/controller/index.js +45 -43
- package/libs/PanoTagPlugin/index.js +15 -12
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +97 -99
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/PipelinePlugin/Controller.js +1 -1
- package/libs/PipelinePlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +2 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/index.js +1 -0
- package/libs/index.d.ts +0 -1
- package/libs/index.js +120 -118
- package/libs/shared-utils/five/FiveDomEvents.d.ts +24 -10
- package/libs/shared-utils/five/FiveDomEvents.js +104 -66
- package/libs/shared-utils/five/calculateThreeMouse.d.ts +11 -0
- package/libs/shared-utils/five/calculateThreeMouse.js +8 -0
- package/libs/shared-utils/five/changeMode.js +11 -11
- package/libs/shared-utils/index.d.ts +1 -1
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/nearlyEqual.d.ts +7 -0
- package/libs/shared-utils/nearlyEqual.js +9 -3
- package/libs/shared-utils/three/PointSelector.js +39 -39
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +6 -5
- package/libs/shared-utils/three/PointSelectorHelper.js +4 -4
- package/libs/shared-utils/three/getNormal.d.ts +2 -0
- package/libs/shared-utils/three/getNormal.js +10 -0
- package/libs/shared-utils/url/getUrl.d.ts +4 -0
- package/libs/shared-utils/url/getUrl.js +7 -0
- package/package.json +2 -2
- package/dist/shared-utils/five/adapt.d.ts +0 -9
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
- package/docs/classes/CSS3DRender.html +0 -773
- package/docs/classes/CruisePluginController.html +0 -672
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
- package/docs/classes/Magnifier.html +0 -480
- package/docs/classes/ModelRoomLabelController.html +0 -398
- package/docs/classes/Object3DHelperController.html +0 -640
- package/docs/classes/PaintBrush.html +0 -502
- package/docs/classes/PanoMeasurePluginLine.html +0 -522
- package/docs/classes/PanoMeasurePluginModel.html +0 -571
- package/docs/classes/PanoMeasurePluginPoint.html +0 -362
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
- package/docs/classes/PanoTagPluginController.html +0 -1050
- package/docs/classes/Util.BetterTween.html +0 -416
- package/docs/classes/Util.Interval.html +0 -432
- package/docs/classes/Util.LineSegments.html +0 -384
- package/docs/classes/Util.Magnifier.html +0 -503
- package/docs/classes/Util.Object3D.html +0 -406
- package/docs/classes/Util.PointDomHelper.html +0 -407
- package/docs/classes/Util.PointHelper.html +0 -398
- package/docs/classes/Util.PointSelectorHelper.html +0 -454
- package/docs/classes/Util.Rectangle.html +0 -455
- package/docs/enums/CameraMovementEffect.html +0 -310
- package/docs/enums/ContentType.html +0 -446
- package/docs/enums/DIRECTION.html +0 -320
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/DimensionType.html +0 -310
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/PaintBrushTypeEnum.html +0 -313
- package/docs/enums/PointType.html +0 -310
- package/docs/enums/Rotation.html +0 -317
- package/docs/functions/AreaMakerPlugin.html +0 -290
- package/docs/functions/CSS3DRenderPlugin.html +0 -288
- package/docs/functions/CameraMovementPlugin.html +0 -293
- package/docs/functions/CruisePlugin.html +0 -290
- package/docs/functions/CurrentPanoImagePlugin.html +0 -290
- package/docs/functions/GuideLinePlugin.html +0 -290
- package/docs/functions/ItemLabelPlugin.html +0 -290
- package/docs/functions/MapviewFloorplanPlugin.html +0 -290
- package/docs/functions/ModelChassisCompassPlugin.html +0 -293
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
- package/docs/functions/ModelFloorplanPlugin.html +0 -290
- package/docs/functions/ModelItemLabelPlugin.html +0 -290
- package/docs/functions/ModelRoomLabelPlugin.html +0 -288
- package/docs/functions/ModelTVVideoPlugin.html +0 -290
- package/docs/functions/ModelViewPlugin.html +0 -293
- package/docs/functions/Object3DHelperPlugin.html +0 -288
- package/docs/functions/PanoCompassPlugin.html +0 -290
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
- package/docs/functions/PanoDoorLabelPlugin.html +0 -290
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
- package/docs/functions/PanoMeasurePlugin.html +0 -290
- package/docs/functions/PanoRulerPlugin.html +0 -293
- package/docs/functions/PanoRulerProPlugin.html +0 -293
- package/docs/functions/PanoSpatialTagPlugin.html +0 -293
- package/docs/functions/PanoTagPlugin.html +0 -295
- package/docs/functions/PanoVideoPlugin.html +0 -299
- package/docs/functions/PipelinePlugin.html +0 -288
- package/docs/functions/TopviewFloorplanPlugin.html +0 -290
- package/docs/functions/Util.absoluteUrl.html +0 -326
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
- package/docs/functions/Util.equal.html +0 -338
- package/docs/functions/Util.getCoordsFromClient.html +0 -328
- package/docs/functions/Util.getCoordsFromElement.html +0 -328
- package/docs/functions/Util.getFrameTime.html +0 -320
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
- package/docs/functions/Util.isAbsoluteURL.html +0 -321
- package/docs/functions/Util.isModelLike.html +0 -321
- package/docs/functions/Util.isNil.html +0 -329
- package/docs/functions/Util.isPanoramaLike.html +0 -321
- package/docs/functions/Util.nextFrame.html +0 -334
- package/docs/functions/Util.notNil.html +0 -329
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
- package/docs/functions/Util.tweenProgress.html +0 -323
- package/docs/functions/Util.uuid.html +0 -319
- package/docs/functions/pluginFlag.html +0 -288
- package/docs/index.html +0 -354
- package/docs/interfaces/AddTagConfig.html +0 -303
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
- package/docs/interfaces/EventMap.html +0 -542
- package/docs/interfaces/FloorplanBounding.html +0 -332
- package/docs/interfaces/FloorplanData.html +0 -335
- package/docs/interfaces/FloorplanEntrance.html +0 -360
- package/docs/interfaces/FloorplanExtraObject.html +0 -350
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
- package/docs/interfaces/FloorplanFloorData.html +0 -328
- package/docs/interfaces/FloorplanImagePosition.html +0 -314
- package/docs/interfaces/FloorplanObserver.html +0 -332
- package/docs/interfaces/FloorplanOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanPosition.html +0 -314
- package/docs/interfaces/FloorplanRoomItem.html +0 -379
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
- package/docs/interfaces/FloorplanServerBounding.html +0 -332
- package/docs/interfaces/FloorplanServerComputedData.html +0 -331
- package/docs/interfaces/FloorplanServerData.html +0 -314
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
- package/docs/interfaces/FloorplanServerEntrance.html +0 -360
- package/docs/interfaces/FloorplanServerFloorData.html +0 -328
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
- package/docs/interfaces/FloorplanServerObserver.html +0 -332
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanServerPosition.html +0 -314
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
- package/docs/interfaces/HelperOffset.html +0 -332
- package/docs/interfaces/ImagePlaneGroup.html +0 -306
- package/docs/interfaces/ItemLabelPluginData.html +0 -303
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
- package/docs/interfaces/MinMax.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
- package/docs/interfaces/ModelViewPluginExportType.html +0 -416
- package/docs/interfaces/Object3DHelperState.html +0 -317
- package/docs/interfaces/ObjectHelperControllers.html +0 -324
- package/docs/interfaces/PaintBrushAction.html +0 -363
- package/docs/interfaces/PaintBrushConfigs.html +0 -361
- package/docs/interfaces/PaintBrushState.html +0 -345
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
- package/docs/interfaces/PanoMeasureParameterType.html +0 -449
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
- package/docs/interfaces/PanoRulerProPluginState.html +0 -317
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
- package/docs/interfaces/Point.html +0 -317
- package/docs/interfaces/Room.html +0 -324
- package/docs/interfaces/RoomInfo.html +0 -310
- package/docs/interfaces/RoomLabel.html +0 -386
- package/docs/interfaces/RoomRules.html +0 -285
- package/docs/interfaces/Rooms.html +0 -285
- package/docs/interfaces/Scissor.html +0 -344
- package/docs/interfaces/State.html +0 -331
- package/docs/interfaces/TagCacheInterface.html +0 -362
- package/docs/interfaces/TagConfig.html +0 -565
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
- package/docs/interfaces/TagIconUrl.html +0 -363
- package/docs/interfaces/TagObjectGroup.html +0 -306
- package/docs/interfaces/TagStyle.html +0 -316
- package/docs/interfaces/Tags.html +0 -2688
- package/docs/interfaces/TemporaryState.html +0 -303
- package/docs/interfaces/Util.MagnifierParameter.html +0 -391
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
- package/docs/interfaces/Util.PointIntersection.html +0 -365
- package/docs/modules/AreaMakerPluginType.html +0 -323
- package/docs/modules/CruisePluginTypes.html +0 -328
- package/docs/modules/CurrentPanoImagePluginType.html +0 -297
- package/docs/modules/GuideLineItem.html +0 -289
- package/docs/modules/GuideLineModeItem.html +0 -294
- package/docs/modules/GuideLinePluginType.html +0 -348
- package/docs/modules/PanoVideoPluginType.html +0 -301
- package/docs/modules/Util.html +0 -351
- package/docs/modules.html +0 -540
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
- package/docs/types/ArrayPosition.html +0 -279
- package/docs/types/AudioAppearance.html +0 -279
- package/docs/types/AudioTagTypeConfigKey.html +0 -279
- package/docs/types/CSS3DRenderExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
- package/docs/types/ClassFunctionParameters.html +0 -286
- package/docs/types/Color.html +0 -279
- package/docs/types/ContentTypeConfigKey.html +0 -279
- package/docs/types/ContentTypeConfigKeySplit.html +0 -279
- package/docs/types/ContentTypeMap.html +0 -279
- package/docs/types/Create3DDomContainerReturnType.html +0 -279
- package/docs/types/Create3DElementReturnType.html +0 -279
- package/docs/types/CruisePluginExportType.html +0 -279
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
- package/docs/types/DeprecatedTagProperty.html +0 -294
- package/docs/types/Direction-1.html +0 -279
- package/docs/types/Direction4.html +0 -279
- package/docs/types/ElementRenderer.html +0 -303
- package/docs/types/FloorplanRuleLabels.html +0 -282
- package/docs/types/FloorplanServerRuleLabels.html +0 -279
- package/docs/types/GuideLinePluginExportType.html +0 -279
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
- package/docs/types/GuideLinePluginType.PathItem.html +0 -308
- package/docs/types/GuideLinePluginType.PluginData.html +0 -317
- package/docs/types/HelperEventMap.html +0 -517
- package/docs/types/LoadTagConfig.html +0 -279
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/MediaData.html +0 -295
- package/docs/types/MediaStore.html +0 -284
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
- package/docs/types/ModelId.html +0 -279
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
- package/docs/types/MoveArgs.html +0 -289
- package/docs/types/MoveOpts.html +0 -287
- package/docs/types/Object3DHelperEventMap.html +0 -372
- package/docs/types/ObjectFit.html +0 -279
- package/docs/types/PaintBrushEventMap.html +0 -310
- package/docs/types/PanoCompassPluginData.html +0 -279
- package/docs/types/PanoCompassPluginExportType.html +0 -279
- package/docs/types/PanoCompassPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
- package/docs/types/PanoIndex.html +0 -279
- package/docs/types/PanoMeasurePluginEvent.html +0 -279
- package/docs/types/PanoMeasureReturnType.html +0 -279
- package/docs/types/PanoSpatialTagPluginId.html +0 -279
- package/docs/types/PanoTagPluginExportInterface.html +0 -279
- package/docs/types/PanoTagPluginParamsInterface.html +0 -279
- package/docs/types/PanoVideoPluginParameterType.html +0 -279
- package/docs/types/PanoVideoPluginReturnType.html +0 -279
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
- package/docs/types/PipelinePluginParameterType.html +0 -279
- package/docs/types/PipelinePluginReturnType.html +0 -279
- package/docs/types/PlaneTag.html +0 -287
- package/docs/types/Point2DTag.html +0 -287
- package/docs/types/Point3DTag.html +0 -287
- package/docs/types/PointTag.html +0 -284
- package/docs/types/PointTagInstance.html +0 -284
- package/docs/types/Position.html +0 -279
- package/docs/types/RotateArgs.html +0 -291
- package/docs/types/RotateOpts.html +0 -287
- package/docs/types/RuleLabelsKey.html +0 -279
- package/docs/types/RuleLabelsValue.html +0 -279
- package/docs/types/StickType.html +0 -279
- package/docs/types/Tag.html +0 -345
- package/docs/types/Tag2D.html +0 -287
- package/docs/types/Tag3D.html +0 -287
- package/docs/types/TagConfigByKey.html +0 -284
- package/docs/types/TagContentType.html +0 -279
- package/docs/types/TagDimensionType.html +0 -281
- package/docs/types/TagElement.html +0 -289
- package/docs/types/TagEvents.html +0 -332
- package/docs/types/TagGLTFObject.html +0 -302
- package/docs/types/TagHooks.html +0 -279
- package/docs/types/TagId.html +0 -279
- package/docs/types/TagInstance.html +0 -353
- package/docs/types/TagPointType.html +0 -282
- package/docs/types/TagRendererMap.html +0 -284
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/WorkCode.html +0 -279
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
- package/docs/variables/PLUGIN.html +0 -279
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
- package/docs/variables/ROOM_TYPE_MAP.html +0 -289
- package/docs/variables/defaultGlobalConfig.html +0 -279
- package/docs/variables/itemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
- package/libs/shared-utils/five/adapt.d.ts +0 -9
- package/libs/shared-utils/five/adapt.js +0 -16
- /package/dist/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.js → url/absoluteUrl.js} +0 -0
package/libs/index.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { PipelinePlugin as
|
|
35
|
-
import { AreaMakerPlugin as
|
|
36
|
-
import { CurrentPanoImagePlugin as
|
|
37
|
-
import { index as
|
|
38
|
-
import { CSS3DRender as
|
|
39
|
-
import { Model as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { Polyline as
|
|
43
|
-
import { default as
|
|
44
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
45
|
-
import { ModelItemLabelPlugin as
|
|
46
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { Plugin as
|
|
48
|
-
import { GuideLineItem$1 as
|
|
49
|
-
import { GuideLineModeItem$1 as
|
|
50
|
-
import { default as
|
|
51
|
-
import { typing as
|
|
52
|
-
import { default as
|
|
53
|
-
import { defaultGlobalConfig as
|
|
54
|
-
import { ContentType as
|
|
55
|
-
import { Object3DHelperController as
|
|
56
|
-
import { typings as
|
|
3
|
+
import { PaintBrush as jp } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as kp } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as zp } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as Kp } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as Wp } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as Zp, modelRoomLabelPluginServerParams as oe } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as te } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as me } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as ee } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as le } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as Pe } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as fe, ROOM_FETILE_TYPE_MAP as xe, ROOM_TYPE_MAP as ge } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as de } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Te } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as Ce } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as Ee, Rotation as Ie } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as Oe } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as Ae } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as De } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as be } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as Ye } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as ce } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as Ne } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as we } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as He } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as je } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as ke } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as ze } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as Ke } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as We } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as Ze } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as rn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as mn } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as en } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { index as ln } from "./shared-utils/index.js";
|
|
38
|
+
import { CSS3DRender as Pn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
39
|
+
import { Model as fn } from "./PanoMeasurePlugin/Model/index.js";
|
|
40
|
+
import { default as gn } from "./PanoMeasurePlugin/Model/point.js";
|
|
41
|
+
import { default as dn } from "./PanoMeasurePlugin/Model/line.js";
|
|
42
|
+
import { Polyline as Tn } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
43
|
+
import { default as Cn } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
44
|
+
import { DISPLAY_STRATEGY_TYPE as En } from "./ModelItemLabelPlugin/typings.js";
|
|
45
|
+
import { ModelItemLabelPlugin as Rn } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
46
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as yn } from "./ItemLabelPlugin/typings.js";
|
|
47
|
+
import { Plugin as Sn } from "./ItemLabelPlugin/Plugin.js";
|
|
48
|
+
import { GuideLineItem$1 as Gn } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
49
|
+
import { GuideLineModeItem$1 as Fn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
50
|
+
import { default as vn } from "./CruisePlugin/Controller.js";
|
|
51
|
+
import { typing as Vn } from "./CruisePlugin/typing/index.js";
|
|
52
|
+
import { default as hn, pluginFlag as wn } from "./PanoTagPlugin/controller/index.js";
|
|
53
|
+
import { defaultGlobalConfig as Hn } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
54
|
+
import { ContentType as jn, DimensionType as $n, PointType as kn } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
55
|
+
import { Object3DHelperController as zn, PLUGIN as Jn } from "./Object3DHelperPlugin/Controller.js";
|
|
56
|
+
import { typings as Qn } from "./PanoVideoPlugin/typings/index.js";
|
|
57
57
|
import "./components/PaintBrush/Controller.js";
|
|
58
58
|
import "./components/PaintBrush/utils.js";
|
|
59
59
|
import "./components/PaintBrush/tween.js";
|
|
@@ -67,7 +67,7 @@ import "./CSS3DRenderPlugin/Controller.js";
|
|
|
67
67
|
import "./CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
68
68
|
import "./CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
69
69
|
import "hammerjs";
|
|
70
|
-
import "./shared-utils/absoluteUrl.js";
|
|
70
|
+
import "./shared-utils/url/absoluteUrl.js";
|
|
71
71
|
import "./shared-utils/positionToVector3.js";
|
|
72
72
|
import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
73
73
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -279,9 +279,12 @@ import "./shared-utils/math/pointIsRectangle.js";
|
|
|
279
279
|
import "./shared-utils/three/loadVideoTexture.js";
|
|
280
280
|
import "./shared-utils/three/getPositionsByObjectFit.js";
|
|
281
281
|
import "./shared-utils/three/FragmentTransparencyMaterial.js";
|
|
282
|
+
import "./shared-utils/three/getNormal.js";
|
|
282
283
|
import "./shared-utils/five/FiveDomEvents.js";
|
|
284
|
+
import "./shared-utils/five/calculateThreeMouse.js";
|
|
283
285
|
import "./PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
284
286
|
import "./shared-utils/typescript/entries.js";
|
|
287
|
+
import "./shared-utils/url/getUrl.js";
|
|
285
288
|
import "./shared-utils/five/getFloorIndex.js";
|
|
286
289
|
import "./PanoTagPlugin/Components/TagContainer.js";
|
|
287
290
|
import "./PanoTagPlugin/Components/TagItem.js";
|
|
@@ -406,7 +409,6 @@ import "./shared-utils/three/objects/LineSegments.js";
|
|
|
406
409
|
import "./components/AreaLabel/LabelItem.js";
|
|
407
410
|
import "./components/AreaLabel/Assets/roomLabelBg.js";
|
|
408
411
|
import "./CurrentPanoImagePlugin/Controller.js";
|
|
409
|
-
import "./shared-utils/five/adapt.js";
|
|
410
412
|
import "./shared-utils/math/Interval.js";
|
|
411
413
|
import "./shared-utils/math/Rectangle.js";
|
|
412
414
|
import "./shared-utils/five/index.js";
|
|
@@ -415,66 +417,66 @@ import "./shared-utils/three/getRaycaster.js";
|
|
|
415
417
|
r();
|
|
416
418
|
o();
|
|
417
419
|
export {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
420
|
+
mn as AreaMakerPlugin,
|
|
421
|
+
Pn as CSS3DRender,
|
|
422
|
+
Kp as CSS3DRenderPlugin,
|
|
423
|
+
Ee as CameraMovementEffect,
|
|
424
|
+
Ce as CameraMovementPlugin,
|
|
425
|
+
jn as ContentType,
|
|
426
|
+
ze as CruisePlugin,
|
|
427
|
+
vn as CruisePluginController,
|
|
428
|
+
Vn as CruisePluginTypes,
|
|
429
|
+
en as CurrentPanoImagePlugin,
|
|
430
|
+
we as DIRECTION,
|
|
431
|
+
En as DISPLAY_STRATEGY_TYPE,
|
|
432
|
+
$n as DimensionType,
|
|
433
|
+
te as FLOOR_PLAN_ATTACHED_TO,
|
|
434
|
+
fe as FLOOR_TYPE_MAP,
|
|
435
|
+
Gn as GuideLineItem,
|
|
436
|
+
Fn as GuideLineModeItem,
|
|
437
|
+
ke as GuideLinePlugin,
|
|
438
|
+
yn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
439
|
+
Sn as ItemLabelPlugin,
|
|
440
|
+
Cn as Magnifier,
|
|
441
|
+
ee as MapviewFloorplanPlugin,
|
|
442
|
+
de as ModelChassisCompassPlugin,
|
|
443
|
+
Te as ModelEntryDoorGuidePlugin,
|
|
444
|
+
me as ModelFloorplanPlugin,
|
|
445
|
+
Rn as ModelItemLabelPlugin,
|
|
446
|
+
Zp as ModelRoomLabelPlugin,
|
|
447
|
+
Ne as ModelTVVideoPlugin,
|
|
448
|
+
zp as ModelViewPlugin,
|
|
449
|
+
zn as Object3DHelperController,
|
|
450
|
+
We as Object3DHelperPlugin,
|
|
451
|
+
Jn as PLUGIN,
|
|
452
|
+
jp as PaintBrush,
|
|
453
|
+
kp as PaintBrushTypeEnum,
|
|
454
|
+
De as PanoCompassPlugin,
|
|
455
|
+
Wp as PanoCursorRaycasterPlugin,
|
|
456
|
+
je as PanoDoorLabelPlugin,
|
|
457
|
+
Pe as PanoFloorplanRadarPlugin,
|
|
458
|
+
be as PanoMeasurePlugin,
|
|
459
|
+
dn as PanoMeasurePluginLine,
|
|
460
|
+
fn as PanoMeasurePluginModel,
|
|
461
|
+
gn as PanoMeasurePluginPoint,
|
|
462
|
+
Tn as PanoMeasurePluginPolyline,
|
|
463
|
+
Oe as PanoRulerPlugin,
|
|
464
|
+
Ae as PanoRulerProPlugin,
|
|
465
|
+
Ye as PanoSpatialTagPlugin,
|
|
466
|
+
Ke as PanoTagPlugin,
|
|
467
|
+
hn as PanoTagPluginController,
|
|
468
|
+
Ze as PanoVideoPlugin,
|
|
469
|
+
Qn as PanoVideoPluginType,
|
|
470
|
+
rn as PipelinePlugin,
|
|
471
|
+
kn as PointType,
|
|
472
|
+
xe as ROOM_FETILE_TYPE_MAP,
|
|
473
|
+
ge as ROOM_TYPE_MAP,
|
|
474
|
+
Ie as Rotation,
|
|
475
|
+
le as TopviewFloorplanPlugin,
|
|
476
|
+
ln as Util,
|
|
477
|
+
Hn as defaultGlobalConfig,
|
|
478
|
+
He as itemLabelPluginServerParams,
|
|
479
|
+
ce as modelItemLabelPluginServerParams,
|
|
480
|
+
oe as modelRoomLabelPluginServerParams,
|
|
481
|
+
wn as pluginFlag
|
|
480
482
|
};
|
|
@@ -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
|
}
|
|
@@ -1,89 +1,119 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var f = (i, e, t) => e in i ? O(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, p = (i, e) => {
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var _ = Object.getOwnPropertySymbols;
|
|
3
|
+
var y = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var E = (u, e, t) => e in u ? g(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, b = (u, e) => {
|
|
6
5
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
var
|
|
14
|
-
import
|
|
15
|
-
|
|
6
|
+
y.call(e, t) && E(u, t, e[t]);
|
|
7
|
+
if (_)
|
|
8
|
+
for (var t of _(e))
|
|
9
|
+
H.call(e, t) && E(u, t, e[t]);
|
|
10
|
+
return u;
|
|
11
|
+
};
|
|
12
|
+
var v = (u, e, t) => (E(u, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import * as L from "three";
|
|
14
|
+
import { getObjectVisible as $ } from "../three/getObjectVisible.js";
|
|
15
|
+
import { calculateThreeMouse as x } from "./calculateThreeMouse.js";
|
|
16
|
+
class D {
|
|
16
17
|
constructor(e) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const t = "click", n = this.boundObject[t];
|
|
22
|
-
if (!n || (n == null ? void 0 : n.length) === 0)
|
|
18
|
+
v(this, "five");
|
|
19
|
+
v(this, "boundObject", {});
|
|
20
|
+
v(this, "handleWantsGesture", (e, t) => {
|
|
21
|
+
if (t.length !== 1)
|
|
23
22
|
return;
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
23
|
+
const n = t[0];
|
|
24
|
+
if (n) {
|
|
25
|
+
if (e === "mouseMove")
|
|
26
|
+
return this.onDomEvent("hover", n);
|
|
27
|
+
if (e === "tap")
|
|
28
|
+
return this.onDomEvent("click", n);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
v(this, "onDomEvent", (e, t) => {
|
|
32
|
+
var f, i;
|
|
33
|
+
const n = this.boundObject[e];
|
|
34
|
+
if (!n || (n == null ? void 0 : n.length) === 0 || !t)
|
|
26
35
|
return;
|
|
27
|
-
const
|
|
28
|
-
|
|
36
|
+
const s = (f = t.raycaster) != null ? f : this.getRaycaster(t), r = (() => {
|
|
37
|
+
var h;
|
|
38
|
+
const d = s.intersectObjects(n, !0);
|
|
39
|
+
if (d.length === 0)
|
|
40
|
+
return;
|
|
41
|
+
const o = this.five.model.intersectRaycaster(s);
|
|
42
|
+
if (!(o.length > 0 && d.length > 0 && o[0].distance < d[0].distance))
|
|
43
|
+
return (h = d[0]) == null ? void 0 : h.object;
|
|
44
|
+
})();
|
|
45
|
+
if (!r || !this.objectIsBound(r)) {
|
|
46
|
+
for (const d of (i = this.boundObject.hover) != null ? i : [])
|
|
47
|
+
d._hovered && this.notify("unHover", d);
|
|
29
48
|
return;
|
|
30
|
-
|
|
49
|
+
}
|
|
50
|
+
if (this.notify(e, r))
|
|
31
51
|
return !1;
|
|
32
52
|
});
|
|
33
|
-
|
|
53
|
+
v(this, "objectIsBound", (e) => {
|
|
34
54
|
let t = e._domEvent, n = e.parent;
|
|
35
55
|
for (; typeof t == "undefined" && n; )
|
|
36
56
|
t = n._domEvent, n = n.parent;
|
|
37
57
|
return !!t;
|
|
38
58
|
});
|
|
39
59
|
// eslint-disable-next-line max-params
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
v(this, "notify", (e, t, n, s) => {
|
|
61
|
+
var d;
|
|
62
|
+
let r = !1, a = [];
|
|
63
|
+
const f = [];
|
|
64
|
+
let i = t;
|
|
65
|
+
for (f.push(i); i.parent; )
|
|
66
|
+
i = i.parent, f.push(i);
|
|
67
|
+
for (const o of f) {
|
|
68
|
+
if (r)
|
|
48
69
|
break;
|
|
49
|
-
const h =
|
|
70
|
+
const h = o._domEvent;
|
|
50
71
|
if (!h)
|
|
51
72
|
continue;
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
for (const [
|
|
55
|
-
if (
|
|
73
|
+
const p = h[`${e}Handler`];
|
|
74
|
+
if (p)
|
|
75
|
+
for (const [O, l] of p) {
|
|
76
|
+
if (l != null && l.checkVisible && !$(o))
|
|
56
77
|
continue;
|
|
57
|
-
|
|
78
|
+
if (e === "hover") {
|
|
79
|
+
if (o._hovered)
|
|
80
|
+
continue;
|
|
81
|
+
o._hovered = !0;
|
|
82
|
+
for (const c of (d = this.boundObject.hover) != null ? d : [])
|
|
83
|
+
c !== o && c._hovered && this.notify("unHover", c);
|
|
84
|
+
}
|
|
85
|
+
if (e === "unHover") {
|
|
86
|
+
if (!o._hovered)
|
|
87
|
+
continue;
|
|
88
|
+
o._hovered = !1;
|
|
89
|
+
}
|
|
90
|
+
const m = O({
|
|
58
91
|
type: e,
|
|
59
|
-
target:
|
|
92
|
+
target: o,
|
|
60
93
|
origDomEvent: n,
|
|
61
|
-
intersect:
|
|
94
|
+
intersect: s,
|
|
62
95
|
stopPropagation: () => {
|
|
63
|
-
|
|
96
|
+
r = !0;
|
|
64
97
|
}
|
|
65
98
|
});
|
|
66
|
-
|
|
99
|
+
a.push(m != null ? m : !0);
|
|
67
100
|
}
|
|
68
101
|
}
|
|
69
|
-
|
|
102
|
+
if (e === "click")
|
|
103
|
+
return a.some((o) => o === !0);
|
|
70
104
|
});
|
|
71
|
-
this.five = e, e.on("
|
|
105
|
+
this.five = e, e.on("wantsGesture", this.handleWantsGesture);
|
|
72
106
|
}
|
|
73
107
|
/**
|
|
74
108
|
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
75
109
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
76
110
|
* @todo: added 和 removed 还是不太智能
|
|
77
111
|
*/
|
|
78
|
-
addAutoBindEventListener(
|
|
79
|
-
const t = e
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
this.removeEventListener(...e);
|
|
84
|
-
}), t.addEventListener("dispose", () => {
|
|
85
|
-
this.removeEventListener(...e);
|
|
86
|
-
});
|
|
112
|
+
addAutoBindEventListener(e, t, n, s) {
|
|
113
|
+
const r = () => this.addEventListener(e, t, n, s), a = () => this.removeEventListener(e, t, n, s);
|
|
114
|
+
return e.addEventListener("added", r), e.addEventListener("removed", a), e.addEventListener("dispose", a), () => {
|
|
115
|
+
e.removeEventListener("added", r), e.removeEventListener("removed", a), e.removeEventListener("dispose", a);
|
|
116
|
+
};
|
|
87
117
|
}
|
|
88
118
|
/**
|
|
89
119
|
* @description: add event listener
|
|
@@ -92,24 +122,32 @@ class G {
|
|
|
92
122
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
93
123
|
* @return {void}
|
|
94
124
|
*/
|
|
95
|
-
addEventListener(e, t, n,
|
|
96
|
-
var
|
|
97
|
-
e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n,
|
|
125
|
+
addEventListener(e, t, n, s) {
|
|
126
|
+
var r;
|
|
127
|
+
e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b({ checkVisible: !0 }, s)]), (r = this.boundObject[t]) == null || r.push(e);
|
|
98
128
|
}
|
|
99
|
-
removeEventListener(e, t, n, ...
|
|
100
|
-
var
|
|
129
|
+
removeEventListener(e, t, n, ...s) {
|
|
130
|
+
var a, f;
|
|
101
131
|
if (!e._domEvent || !e._domEvent[`${t}Handler`])
|
|
102
132
|
return;
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
105
|
-
const
|
|
106
|
-
|
|
133
|
+
const r = e._domEvent[`${t}Handler`].findIndex((i) => i[0] === n);
|
|
134
|
+
if (r !== -1 && (e._domEvent[`${t}Handler`].splice(r, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
|
|
135
|
+
const i = (a = this.boundObject[t]) == null ? void 0 : a.findIndex((d) => d === e);
|
|
136
|
+
i !== -1 && ((f = this.boundObject[t]) == null || f.splice(i, 1));
|
|
107
137
|
}
|
|
108
138
|
}
|
|
109
139
|
dispose() {
|
|
110
|
-
|
|
140
|
+
var e;
|
|
141
|
+
(e = this.five) == null || e.off("wantsGesture", this.handleWantsGesture), this.boundObject = {};
|
|
142
|
+
}
|
|
143
|
+
getRaycaster(e) {
|
|
144
|
+
const t = this.five.getElement();
|
|
145
|
+
if (!t)
|
|
146
|
+
return;
|
|
147
|
+
const n = x(e, t), s = new L.Raycaster();
|
|
148
|
+
return s.setFromCamera(n, this.five.camera), s;
|
|
111
149
|
}
|
|
112
150
|
}
|
|
113
151
|
export {
|
|
114
|
-
|
|
152
|
+
D as FiveDomEvents
|
|
115
153
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* 计算 three 中的 mouse 的值
|
|
4
|
+
* @param mouseXY - 鼠标相对屏幕位置
|
|
5
|
+
* @param element - canvas元素(three的展示元素)
|
|
6
|
+
*/
|
|
7
|
+
declare function calculateThreeMouse(mouseXY: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}, element: HTMLElement): THREE.Vector2;
|
|
11
|
+
export { calculateThreeMouse };
|
|
@@ -14,17 +14,17 @@ var f = (t, c, n) => new Promise((e, r) => {
|
|
|
14
14
|
}, u = (o) => o.done ? e(o.value) : Promise.resolve(o.value).then(a, i);
|
|
15
15
|
u((n = n.apply(t, c)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
18
|
-
import { to as
|
|
19
|
-
function
|
|
17
|
+
import { nearlyEqualRad as d, nearlyEqual as m } from "../nearlyEqual.js";
|
|
18
|
+
import { to as h } from "../to.js";
|
|
19
|
+
function w(t) {
|
|
20
20
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
22
|
+
function l(t) {
|
|
23
|
+
return w(t) && !!t.isVector3;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function j(t, c) {
|
|
26
26
|
return f(this, null, function* () {
|
|
27
|
-
const [n] = yield
|
|
27
|
+
const [n] = yield h(t.changeMode(...c));
|
|
28
28
|
if (n)
|
|
29
29
|
throw new Error("change mode canceled");
|
|
30
30
|
yield new Promise((i) => {
|
|
@@ -36,16 +36,16 @@ function g(t, c) {
|
|
|
36
36
|
if (!e)
|
|
37
37
|
return !0;
|
|
38
38
|
const r = t.getCurrentState();
|
|
39
|
-
if (!
|
|
39
|
+
if (!b(e, r))
|
|
40
40
|
throw new Error("pose 与预期不符");
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function b(t, c) {
|
|
44
44
|
return Object.keys(t).every((n) => {
|
|
45
45
|
const e = c[n], r = t[n];
|
|
46
|
-
return e === void 0 || r === void 0 ? !0 : typeof e == "number" && typeof r == "number" ?
|
|
46
|
+
return e === void 0 || r === void 0 ? !0 : n === "longitude" || n === "latitude" ? d(e, r, 2) : typeof e == "number" && typeof r == "number" ? m(e, r, 2) : l(r) && l(e) ? r.distanceTo(e) < 0.01 : e === r;
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
j as changeMode
|
|
51
51
|
};
|