@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,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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.0.0
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.0.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -5,3 +5,10 @@
|
|
|
5
5
|
* @param accuracy 精度:精确到小数点后几位,默认精确到 小数点后四位
|
|
6
6
|
*/
|
|
7
7
|
export default function nearlyEqual(num1: number, num2: number, accuracy?: number): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 比较两个弧度近似相等
|
|
10
|
+
* @param rad1 弧度1
|
|
11
|
+
* @param rad2 弧度2
|
|
12
|
+
* @param accuracy 精度:精确到小数点后几位,默认精确到 小数点后四位
|
|
13
|
+
*/
|
|
14
|
+
export declare function nearlyEqualRad(rad1: number, rad2: number, accuracy?: number): boolean;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
function
|
|
2
|
-
return Math.
|
|
1
|
+
function r(t, a, n = 4) {
|
|
2
|
+
return Math.abs(t - a) < Math.pow(10, -n);
|
|
3
3
|
}
|
|
4
|
+
function h(t, a, n = 4) {
|
|
5
|
+
const o = Math.PI * 2, s = t % o, e = a % o, i = Math.min(s, e), c = Math.max(s, e);
|
|
6
|
+
return r(i, c, n) || r(i + o, c, n);
|
|
7
|
+
}
|
|
8
|
+
Object.assign(window, { nearlyEqual: r, nearlyEqualRad: h });
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
r as nearlyEqual,
|
|
11
|
+
h as nearlyEqualRad
|
|
6
12
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var P = Object.defineProperty, S = Object.defineProperties;
|
|
2
|
+
var w = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var m = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var H = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var d = (s, e, t) => e in s ? P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
H.call(e, t) && d(s, t, e[t]);
|
|
8
8
|
if (m)
|
|
9
9
|
for (var t of m(e))
|
|
10
|
-
|
|
10
|
+
b.call(e, t) && d(s, t, e[t]);
|
|
11
11
|
return s;
|
|
12
|
-
}, c = (s, e) =>
|
|
13
|
-
var i = (s, e, t) => (
|
|
14
|
-
import { Subscribe as
|
|
15
|
-
import { PointSelectorHelper as
|
|
16
|
-
import { isTouchDevice as
|
|
17
|
-
import
|
|
18
|
-
import { getIntersectionFromEvent as
|
|
19
|
-
import { Vector3 as
|
|
20
|
-
import { getIntersectFromRelativePosition as
|
|
12
|
+
}, c = (s, e) => S(s, w(e));
|
|
13
|
+
var i = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import { Subscribe as y } from "@realsee/five";
|
|
15
|
+
import { PointSelectorHelper as F } from "./PointSelectorHelper.js";
|
|
16
|
+
import { isTouchDevice as E } from "../isTouchDevice.js";
|
|
17
|
+
import U from "hammerjs";
|
|
18
|
+
import { getIntersectionFromEvent as f } from "../getIntersectionFromEvent.js";
|
|
19
|
+
import { Vector3 as M, Object3D as I, Face3 as O, Vector2 as V, Raycaster as C } from "three";
|
|
20
|
+
import { getIntersectFromRelativePosition as k } from "./getIntersect.js";
|
|
21
21
|
const l = () => !1;
|
|
22
|
-
class
|
|
22
|
+
class N {
|
|
23
23
|
constructor(e, t) {
|
|
24
|
-
i(this, "hook", new
|
|
24
|
+
i(this, "hook", new y());
|
|
25
25
|
/**
|
|
26
26
|
* @description: 不在 five canvas 上时为 true
|
|
27
27
|
*/
|
|
@@ -60,7 +60,7 @@ class W {
|
|
|
60
60
|
this.pointSelectorHelper.hide(), this.outOfFive = !0, this.hook.emit("intersectionUpdate", null);
|
|
61
61
|
});
|
|
62
62
|
i(this, "onTap", (e) => {
|
|
63
|
-
const [t] =
|
|
63
|
+
const [t] = f(this.five, e);
|
|
64
64
|
t != null && t.face && this.select(t);
|
|
65
65
|
});
|
|
66
66
|
/**
|
|
@@ -70,14 +70,14 @@ class W {
|
|
|
70
70
|
i(this, "onPan", (e) => {
|
|
71
71
|
if (!this.pressDown)
|
|
72
72
|
return;
|
|
73
|
-
const [t] =
|
|
73
|
+
const [t] = f(this.five, e);
|
|
74
74
|
t != null && t.face && this.intersectionOnModelUpdate(t);
|
|
75
75
|
});
|
|
76
76
|
/**
|
|
77
77
|
* @description: 长按屏幕后,更新长按点的位置
|
|
78
78
|
*/
|
|
79
79
|
i(this, "onPress", (e) => {
|
|
80
|
-
const [t] =
|
|
80
|
+
const [t] = f(this.five, e);
|
|
81
81
|
t != null && t.face && (this.pressDown = !0, this.intersectionOnModelUpdate(t));
|
|
82
82
|
});
|
|
83
83
|
/**
|
|
@@ -93,17 +93,17 @@ class W {
|
|
|
93
93
|
const t = this.five.getElement();
|
|
94
94
|
if (!t)
|
|
95
95
|
return;
|
|
96
|
-
const {
|
|
97
|
-
x:
|
|
98
|
-
y: 1 -
|
|
96
|
+
const { top: o, left: r, width: n, height: a } = t.getBoundingClientRect(), { clientX: p, clientY: u } = e, v = {
|
|
97
|
+
x: (p - r) / n,
|
|
98
|
+
y: 1 - (u - o) / a
|
|
99
99
|
};
|
|
100
|
-
this.updateByNdcPosition(
|
|
100
|
+
this.updateByNdcPosition(v);
|
|
101
101
|
});
|
|
102
102
|
/**
|
|
103
103
|
* @description: 根据鼠标位置更新helper位置
|
|
104
104
|
*/
|
|
105
105
|
i(this, "updateByNdcPosition", (e) => {
|
|
106
|
-
const t =
|
|
106
|
+
const t = k(this.five, e), o = (() => t ? c(h({}, t), { isVirtual: !1 }) : c(h({}, G(this.five, e)), { isVirtual: !0 }))();
|
|
107
107
|
this.updatePointSelectorHelperIntersect(o);
|
|
108
108
|
});
|
|
109
109
|
/**
|
|
@@ -111,7 +111,7 @@ class W {
|
|
|
111
111
|
*/
|
|
112
112
|
i(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
113
113
|
var r;
|
|
114
|
-
const t =
|
|
114
|
+
const t = h({}, e);
|
|
115
115
|
let o = !1;
|
|
116
116
|
if (((r = this.adherePoints) == null ? void 0 : r.length) > 0 && typeof this.adherePointsRadius == "number") {
|
|
117
117
|
for (const n of this.adherePoints)
|
|
@@ -132,16 +132,16 @@ class W {
|
|
|
132
132
|
i(this, "emitIntersectionUpdate", (e) => {
|
|
133
133
|
this.hook.emit("intersectionUpdate", e);
|
|
134
134
|
});
|
|
135
|
-
var n,
|
|
135
|
+
var n, a;
|
|
136
136
|
this.five = e;
|
|
137
137
|
const o = (n = t == null ? void 0 : t.mode) != null ? n : "auto";
|
|
138
|
-
o === "auto" ? this.mode =
|
|
138
|
+
o === "auto" ? this.mode = E ? "fixed" : "cursor" : this.mode = o;
|
|
139
139
|
const r = {
|
|
140
140
|
autoFixPCPosition: this.mode === "cursor",
|
|
141
141
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
142
142
|
};
|
|
143
|
-
this.pointSelectorHelper = new
|
|
144
|
-
magnifierParams:
|
|
143
|
+
this.pointSelectorHelper = new F(e, c(h({}, t == null ? void 0 : t.pointSelectorHelperParams), {
|
|
144
|
+
magnifierParams: h(h({}, r), (a = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : a.magnifierParams)
|
|
145
145
|
})), this.pointSelectorHelper.hide();
|
|
146
146
|
}
|
|
147
147
|
get position() {
|
|
@@ -154,7 +154,7 @@ class W {
|
|
|
154
154
|
const e = this.five.getElement();
|
|
155
155
|
if (!e)
|
|
156
156
|
throw new Error("five element not found");
|
|
157
|
-
this.hammer || (this.hammer = new
|
|
157
|
+
this.hammer || (this.hammer = new U(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsChangeMode", l), this.five.on("wantsTapGesture", l), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1;
|
|
158
158
|
}
|
|
159
159
|
disable() {
|
|
160
160
|
if (!this.enabled)
|
|
@@ -170,19 +170,19 @@ class W {
|
|
|
170
170
|
e ? this.adherePoints = Array.isArray(e) ? e : [e] : this.adherePoints = null, typeof t == "number" && (this.adherePointsRadius = t);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
const { x: t, y: o } = e, r = t * 2 - 1, n = o * 2 - 1,
|
|
175
|
-
return
|
|
173
|
+
function x(s, e) {
|
|
174
|
+
const { x: t, y: o } = e, r = t * 2 - 1, n = o * 2 - 1, a = new V().fromArray([r, n]), p = new C();
|
|
175
|
+
return p.setFromCamera(a, s.camera), p;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const t =
|
|
177
|
+
function G(s, e) {
|
|
178
|
+
const t = x(s, e), o = 3, r = new M().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(o)), n = t.ray.direction.clone().negate();
|
|
179
179
|
return {
|
|
180
180
|
distance: o,
|
|
181
181
|
point: r,
|
|
182
|
-
object: new
|
|
183
|
-
face: new
|
|
182
|
+
object: new I(),
|
|
183
|
+
face: new O(0, 0, 0, n)
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
export {
|
|
187
|
-
|
|
187
|
+
N as PointSelector
|
|
188
188
|
};
|
|
@@ -3,10 +3,11 @@ import { Subscribe } from '@realsee/five';
|
|
|
3
3
|
import { Magnifier, PointHelper, PointDomHelper } from '.';
|
|
4
4
|
import type { Intersection } from '../../typings/typings';
|
|
5
5
|
interface Options {
|
|
6
|
-
magnifier
|
|
7
|
-
magnifierParams
|
|
8
|
-
pointHelper
|
|
9
|
-
pointDomHelper
|
|
6
|
+
magnifier?: Magnifier | null;
|
|
7
|
+
magnifierParams?: ConstructorParameters<typeof Magnifier>[1];
|
|
8
|
+
pointHelper?: PointHelper | null;
|
|
9
|
+
pointDomHelper?: PointDomHelper | null;
|
|
10
|
+
container?: Element;
|
|
10
11
|
}
|
|
11
12
|
type EventMap = {
|
|
12
13
|
intersectionUpdate: (intersection: PointIntersection) => void;
|
|
@@ -27,7 +28,7 @@ export declare class PointSelectorHelper {
|
|
|
27
28
|
private pointDomHelper;
|
|
28
29
|
private state;
|
|
29
30
|
private group;
|
|
30
|
-
constructor(five: Five, options?:
|
|
31
|
+
constructor(five: Five, options?: Options);
|
|
31
32
|
show: () => void;
|
|
32
33
|
hide: () => void;
|
|
33
34
|
enable(): void;
|
|
@@ -3,8 +3,8 @@ var l = (r, i, e) => i in r ? a(r, i, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var t = (r, i, e) => (l(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
4
|
import * as h from "three";
|
|
5
5
|
import { Subscribe as p } from "@realsee/five";
|
|
6
|
-
import { Magnifier as
|
|
7
|
-
import { PointHelper as
|
|
6
|
+
import { Magnifier as d } from "./Magnifier.js";
|
|
7
|
+
import { PointHelper as o } from "./PointHelper.js";
|
|
8
8
|
import { PointDomHelper as f } from "./PointDomHelper.js";
|
|
9
9
|
class v {
|
|
10
10
|
constructor(i, e) {
|
|
@@ -30,8 +30,8 @@ class v {
|
|
|
30
30
|
});
|
|
31
31
|
t(this, "abortUpdateMagnifier", () => {
|
|
32
32
|
});
|
|
33
|
-
var s;
|
|
34
|
-
this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new
|
|
33
|
+
var s, n;
|
|
34
|
+
this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new d(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new o(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new f(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo((n = e.container) != null ? n : document.body);
|
|
35
35
|
}
|
|
36
36
|
enable() {
|
|
37
37
|
var i, e;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Vector3 as
|
|
2
|
-
function p(o, r
|
|
1
|
+
import { Vector3 as u } from "three";
|
|
2
|
+
function p(o, r) {
|
|
3
3
|
if (o.length < 3)
|
|
4
|
-
return console.error("points.length < 3"), new
|
|
5
|
-
const [
|
|
6
|
-
return
|
|
4
|
+
return console.error("points.length < 3"), new u(0, 0, 0);
|
|
5
|
+
const [n, t, c] = o, l = n.clone().sub(t), s = n.clone().sub(c), e = l.cross(s).normalize();
|
|
6
|
+
return typeof r == "number" ? e.multiplyScalar(r) : e;
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
p as getNormal
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.0.0
|
|
10
|
+
"version": "3.0.0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/core": "^7.22.9",
|
|
39
|
-
"@realsee/five": "6.0.0-alpha.
|
|
39
|
+
"@realsee/five": "6.0.0-alpha.24",
|
|
40
40
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
|
41
41
|
"@tsconfig/svelte": "^4.0.1",
|
|
42
42
|
"@tweenjs/tween.js": "^20.0.3",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 一些函数,来适配 Five@5.x 和 Five@6.x 的差异
|
|
3
|
-
*/
|
|
4
|
-
import type { Five } from '@realsee/five';
|
|
5
|
-
export declare function adaptPanoId(five: Five, func: (params?: {
|
|
6
|
-
panoIndex: number;
|
|
7
|
-
panoId: string;
|
|
8
|
-
derivedId: number;
|
|
9
|
-
}, ...args: any[]) => any): (panoIdOrPanoIndex: string | number, ...args: any[]) => void;
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|