@realsee/dnalogel 3.20.6 → 3.21.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/Object3DHelperPlugin/Controller.d.ts +25 -18
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/Sculpt/Meshes/Area.d.ts +30 -0
- package/dist/Sculpt/Meshes/Box.d.ts +35 -0
- package/dist/Sculpt/Meshes/Circle.d.ts +26 -0
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/dist/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/dist/Sculpt/Meshes/Line.d.ts +27 -0
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/dist/Sculpt/Meshes/Point.d.ts +22 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/dist/Sculpt/Meshes/Prism.d.ts +31 -0
- package/dist/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/dist/Sculpt/Modules/Cursor.d.ts +13 -0
- package/dist/Sculpt/Modules/Global.d.ts +20 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +60 -0
- package/dist/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Box/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/dist/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +35 -0
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/dist/Sculpt/index.d.ts +184 -0
- package/dist/Sculpt/typings/index.d.ts +16 -0
- package/dist/Sculpt/typings/utils.type.d.ts +12 -0
- package/dist/Sculpt/utils/color.d.ts +40 -0
- package/dist/Sculpt/utils/data.d.ts +7 -0
- package/dist/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/dist/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/dist/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/dist/index.cjs.js +70 -70
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11554 -9325
- package/dist/index.umd.js +63 -63
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/dist/shared-utils/createLine/index.d.ts +2 -2
- package/dist/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/dist/shared-utils/five/FiveLine.d.ts +8 -0
- package/dist/shared-utils/five/getPosition.d.ts +14 -0
- package/dist/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/dist/shared-utils/positionToVector3.d.ts +1 -0
- package/dist/shared-utils/three/IObject3D.d.ts +4 -0
- package/dist/shared-utils/three/Magnifier.d.ts +33 -19
- package/dist/shared-utils/three/PointSelector.d.ts +25 -11
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/{libs/PanoMeasurePlugin/utils → dist/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/dist/shared-utils/three/getIntersect.d.ts +16 -2
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/dist/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +9 -4
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +9 -4
- package/docs/classes/CSS3DRender.html +10 -5
- package/docs/classes/GuideLineItem.GuideLineItem.html +10 -5
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +10 -5
- package/docs/classes/ModelRoomLabelController.html +10 -5
- package/docs/classes/MoveController.html +10 -5
- package/docs/classes/Object3DHelperController.html +26 -39
- package/docs/classes/PaintBrush.html +10 -5
- package/docs/classes/PanoMeasurePluginLine.html +12 -7
- package/docs/classes/PanoMeasurePluginModel.html +10 -5
- package/docs/classes/PanoMeasurePluginPoint.html +10 -5
- package/docs/classes/PanoMeasurePluginPolyline.html +10 -5
- package/docs/classes/PanoTagPluginController.html +10 -5
- package/docs/classes/Sculpt.html +847 -0
- package/docs/classes/Util.BetterTween.html +10 -5
- package/docs/classes/Util.Interval.html +10 -5
- package/docs/classes/Util.LineSegments.html +10 -5
- package/docs/classes/Util.Magnifier.html +82 -58
- package/docs/classes/Util.Object3D.html +10 -5
- package/docs/classes/Util.PointDomHelper.html +10 -5
- package/docs/classes/Util.PointHelper.html +10 -5
- package/docs/classes/Util.PointSelectorHelper.html +23 -18
- package/docs/classes/Util.Rectangle.html +10 -5
- package/docs/classes/WalkController.html +10 -5
- package/docs/enums/CameraMovementEffect.html +10 -5
- package/docs/enums/ContentType.html +10 -5
- package/docs/enums/DIRECTION.html +10 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/DimensionType.html +10 -5
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -5
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/PaintBrushTypeEnum.html +10 -5
- package/docs/enums/PointType.html +10 -5
- package/docs/enums/Rotation.html +10 -5
- package/docs/functions/AreaMakerPlugin.html +10 -5
- package/docs/functions/CSS3DRenderPlugin.html +10 -5
- package/docs/functions/CameraMovementPlugin.html +10 -5
- package/docs/functions/CruisePlugin.html +10 -5
- package/docs/functions/CurrentPanoImagePlugin.html +10 -5
- package/docs/functions/GuideLinePlugin.html +10 -5
- package/docs/functions/ItemLabelPlugin.html +10 -5
- package/docs/functions/MapviewFloorplanPlugin.html +10 -5
- package/docs/functions/ModelChassisCompassPlugin.html +10 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
- package/docs/functions/ModelFloorplanPlugin.html +10 -5
- package/docs/functions/ModelItemLabelPlugin.html +10 -5
- package/docs/functions/ModelRoomLabelPlugin.html +10 -5
- package/docs/functions/ModelTVVideoPlugin.html +10 -5
- package/docs/functions/ModelViewPlugin.html +10 -5
- package/docs/functions/MovePlugin.html +10 -5
- package/docs/functions/Object3DHelperPlugin.html +10 -5
- package/docs/functions/PanoCompassPlugin.html +10 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
- package/docs/functions/PanoDoorLabelPlugin.html +10 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
- package/docs/functions/PanoMeasurePlugin.html +10 -5
- package/docs/functions/PanoRulerPlugin.html +10 -5
- package/docs/functions/PanoRulerProPlugin.html +10 -5
- package/docs/functions/PanoSpatialTagPlugin.html +10 -5
- package/docs/functions/PanoTagPlugin.html +10 -5
- package/docs/functions/PanoVideoPlugin.html +10 -5
- package/docs/functions/PipelinePlugin.html +10 -5
- package/docs/functions/TopviewFloorplanPlugin.html +10 -5
- package/docs/functions/Util.absoluteUrl.html +10 -5
- package/docs/functions/Util.checkFiveModelLoaded.html +10 -5
- package/docs/functions/Util.equal.html +10 -5
- package/docs/functions/Util.getCoordsFromClient.html +10 -5
- package/docs/functions/Util.getCoordsFromElement.html +10 -5
- package/docs/functions/Util.getFrameTime.html +10 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +17 -7
- package/docs/functions/Util.getRaycasterFromFivePointer.html +10 -5
- package/docs/functions/Util.isAbsoluteURL.html +10 -5
- package/docs/functions/Util.isModelLike.html +10 -5
- package/docs/functions/Util.isNil.html +10 -5
- package/docs/functions/Util.isPanoramaLike.html +10 -5
- package/docs/functions/Util.nextFrame.html +10 -5
- package/docs/functions/Util.notNil.html +10 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +10 -5
- package/docs/functions/Util.tweenProgress.html +10 -5
- package/docs/functions/Util.uuid.html +10 -5
- package/docs/functions/pluginFlag.html +10 -5
- package/docs/index.html +11 -6
- package/docs/interfaces/AddTagConfig.html +10 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Params.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.State.html +9 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -5
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -5
- package/docs/interfaces/CameraMovementPluginExportType.html +10 -5
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +9 -4
- package/docs/interfaces/CruisePluginTypes.EventMap.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginState.html +9 -4
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -5
- package/docs/interfaces/EventMap.html +10 -5
- package/docs/interfaces/FloorplanBounding.html +10 -5
- package/docs/interfaces/FloorplanData.html +10 -5
- package/docs/interfaces/FloorplanEntrance.html +10 -5
- package/docs/interfaces/FloorplanExtraObject.html +10 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -5
- package/docs/interfaces/FloorplanFloorData.html +10 -5
- package/docs/interfaces/FloorplanImagePosition.html +10 -5
- package/docs/interfaces/FloorplanObserver.html +10 -5
- package/docs/interfaces/FloorplanOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanPosition.html +10 -5
- package/docs/interfaces/FloorplanRoomItem.html +10 -5
- package/docs/interfaces/FloorplanRoomLabelItem.html +10 -5
- package/docs/interfaces/FloorplanServerBounding.html +10 -5
- package/docs/interfaces/FloorplanServerComputedData.html +10 -5
- package/docs/interfaces/FloorplanServerData.html +10 -5
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -5
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -5
- package/docs/interfaces/FloorplanServerEntrance.html +10 -5
- package/docs/interfaces/FloorplanServerFloorData.html +10 -5
- package/docs/interfaces/FloorplanServerImagePosition.html +10 -5
- package/docs/interfaces/FloorplanServerObserver.html +10 -5
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanServerPosition.html +10 -5
- package/docs/interfaces/FloorplanServerRoomItem.html +10 -5
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -5
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -5
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -4
- package/docs/interfaces/GuideLinePluginType.EventMap.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +9 -4
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -4
- package/docs/interfaces/HelperOffset.html +10 -5
- package/docs/interfaces/ImagePlaneGroup.html +10 -5
- package/docs/interfaces/ItemLabelPluginData.html +10 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/MinMax.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginData.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginData.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +10 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -5
- package/docs/interfaces/Object3DHelperState.html +14 -9
- package/docs/interfaces/ObjectHelperControllers.html +16 -11
- package/docs/interfaces/PaintBrushAction.html +10 -5
- package/docs/interfaces/PaintBrushConfigs.html +10 -5
- package/docs/interfaces/PaintBrushState.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
- package/docs/interfaces/PanoMeasureParameterType.html +10 -5
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginState.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -5
- package/docs/interfaces/Point.html +10 -5
- package/docs/interfaces/Room.html +10 -5
- package/docs/interfaces/RoomInfo.html +10 -5
- package/docs/interfaces/RoomLabel.html +10 -5
- package/docs/interfaces/RoomRules.html +10 -5
- package/docs/interfaces/Rooms.html +10 -5
- package/docs/interfaces/Scissor.html +10 -5
- package/docs/interfaces/State.html +10 -5
- package/docs/interfaces/TagCacheInterface.html +10 -5
- package/docs/interfaces/TagConfig.html +12 -7
- package/docs/interfaces/TagGLTFObjectGroup.html +10 -5
- package/docs/interfaces/TagIconUrl.html +10 -5
- package/docs/interfaces/TagObjectGroup.html +10 -5
- package/docs/interfaces/TagStyle.html +10 -5
- package/docs/interfaces/Tags.html +10 -5
- package/docs/interfaces/TemporaryState.html +10 -5
- package/docs/interfaces/Util.MagnifierParameter.html +32 -22
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -5
- package/docs/interfaces/Util.PointIntersection.html +19 -7
- package/docs/modules/AreaMakerPluginType.html +9 -4
- package/docs/modules/CruisePluginTypes.html +9 -4
- package/docs/modules/CurrentPanoImagePluginType.html +10 -5
- package/docs/modules/GuideLineItem.html +10 -5
- package/docs/modules/GuideLineModeItem.html +10 -5
- package/docs/modules/GuideLinePluginType.html +9 -4
- package/docs/modules/PanoVideoPluginType.html +10 -5
- package/docs/modules/Util.html +10 -5
- package/docs/modules.html +22 -9
- package/docs/types/AddObject3DHelperConfig.html +310 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +9 -4
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +9 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +9 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +9 -4
- package/docs/types/ArrayPosition.html +10 -5
- package/docs/types/AudioAppearance.html +10 -5
- package/docs/types/AudioTagTypeConfigKey.html +10 -5
- package/docs/types/CSS3DRenderExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
- package/docs/types/ClassFunctionParameters.html +10 -5
- package/docs/types/Color.html +10 -5
- package/docs/types/ContentTypeConfigKey.html +10 -5
- package/docs/types/ContentTypeConfigKeySplit.html +10 -5
- package/docs/types/ContentTypeMap.html +10 -5
- package/docs/types/Create3DDomContainerReturnType.html +10 -5
- package/docs/types/Create3DElementReturnType.html +10 -5
- package/docs/types/CruisePluginExportType.html +10 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +9 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +9 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +10 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +10 -5
- package/docs/types/DeprecatedTagProperty.html +10 -5
- package/docs/types/Direction-1.html +10 -5
- package/docs/types/Direction4.html +10 -5
- package/docs/types/ElementRenderer.html +10 -5
- package/docs/types/FloorplanRuleLabels.html +10 -5
- package/docs/types/FloorplanServerRuleLabels.html +10 -5
- package/docs/types/GuideLinePluginExportType.html +10 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +9 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +9 -4
- package/docs/types/GuideLinePluginType.PathItem.html +9 -4
- package/docs/types/GuideLinePluginType.PluginData.html +9 -4
- package/docs/types/HelperEventMap.html +10 -5
- package/docs/types/InternalHelperEventMap.html +22 -9
- package/docs/types/LoadTagConfig.html +10 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/MediaData.html +10 -5
- package/docs/types/MediaStore.html +10 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
- package/docs/types/ModelId.html +10 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
- package/docs/types/MoveArgs.html +10 -5
- package/docs/types/MoveOpts.html +10 -5
- package/docs/types/Object3DHelperEventMap.html +11 -6
- package/docs/types/ObjectFit.html +10 -5
- package/docs/types/PaintBrushEventMap.html +10 -5
- package/docs/types/PanoCompassPluginData.html +10 -5
- package/docs/types/PanoCompassPluginExportType.html +10 -5
- package/docs/types/PanoCompassPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
- package/docs/types/PanoIndex.html +10 -5
- package/docs/types/PanoMeasurePluginEvent.html +10 -5
- package/docs/types/PanoMeasureReturnType.html +10 -5
- package/docs/types/PanoSpatialTagPluginId.html +10 -5
- package/docs/types/PanoTagPluginExportInterface.html +10 -5
- package/docs/types/PanoTagPluginParamsInterface.html +10 -5
- package/docs/types/PanoVideoPluginParameterType.html +10 -5
- package/docs/types/PanoVideoPluginReturnType.html +10 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +10 -5
- package/docs/types/PipelinePluginParameterType.html +10 -5
- package/docs/types/PipelinePluginReturnType.html +10 -5
- package/docs/types/PlaneTag.html +10 -5
- package/docs/types/Point2DTag.html +10 -5
- package/docs/types/Point3DTag.html +10 -5
- package/docs/types/PointTag.html +10 -5
- package/docs/types/PointTagInstance.html +10 -5
- package/docs/types/Position.html +10 -5
- package/docs/types/PositionFrom.html +297 -0
- package/docs/types/RotateArgs.html +10 -5
- package/docs/types/RotateOpts.html +10 -5
- package/docs/types/RuleLabelsKey.html +10 -5
- package/docs/types/RuleLabelsValue.html +10 -5
- package/docs/types/ScaleCallback.html +309 -0
- package/docs/types/ScalePosition.html +298 -0
- package/docs/types/StickType.html +10 -5
- package/docs/types/Tag.html +10 -5
- package/docs/types/Tag2D.html +10 -5
- package/docs/types/Tag3D.html +10 -5
- package/docs/types/TagConfigByKey.html +10 -5
- package/docs/types/TagContentType.html +10 -5
- package/docs/types/TagContentTypeMapping.html +10 -5
- package/docs/types/TagDimensionType.html +10 -5
- package/docs/types/TagElement.html +10 -5
- package/docs/types/TagEvents.html +10 -5
- package/docs/types/TagGLTFObject.html +10 -5
- package/docs/types/TagHooks.html +10 -5
- package/docs/types/TagId.html +10 -5
- package/docs/types/TagInstance.html +10 -5
- package/docs/types/TagPointType.html +10 -5
- package/docs/types/TagRendererMap.html +10 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/WorkCode.html +10 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
- package/docs/variables/PLUGIN.html +11 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
- package/docs/variables/ROOM_TYPE_MAP.html +10 -5
- package/docs/variables/defaultGlobalConfig.html +10 -5
- package/docs/variables/itemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
- package/libs/GuideLinePlugin/Controller.js +15 -15
- package/libs/Object3DHelperPlugin/Controller.d.ts +25 -18
- package/libs/Object3DHelperPlugin/Controller.js +91 -91
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +22 -18
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCursorRaycasterPlugin/index.js +9 -8
- package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
- package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -6
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -9
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +5 -4
- package/libs/PanoMeasurePlugin/Controller/index.js +8 -7
- package/libs/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/area.js +16 -8
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +26 -25
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +22 -156
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +13 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.js +5 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -13
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +20 -10
- package/libs/Sculpt/Meshes/Area.d.ts +30 -0
- package/libs/Sculpt/Meshes/Area.js +56 -0
- package/libs/Sculpt/Meshes/Box.d.ts +35 -0
- package/libs/Sculpt/Meshes/Box.js +88 -0
- package/libs/Sculpt/Meshes/Circle.d.ts +26 -0
- package/libs/Sculpt/Meshes/Circle.js +42 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.js +41 -0
- package/libs/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/libs/Sculpt/Meshes/Cylinder.js +88 -0
- package/libs/Sculpt/Meshes/Line.d.ts +27 -0
- package/libs/Sculpt/Meshes/Line.js +108 -0
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/libs/Sculpt/Meshes/LineWithDots.js +70 -0
- package/libs/Sculpt/Meshes/Point.d.ts +22 -0
- package/libs/Sculpt/Meshes/Point.js +74 -0
- package/libs/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/libs/Sculpt/Meshes/Polygon.js +52 -0
- package/libs/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/libs/Sculpt/Meshes/Polyline.js +105 -0
- package/libs/Sculpt/Meshes/Prism.d.ts +31 -0
- package/libs/Sculpt/Meshes/Prism.js +78 -0
- package/libs/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/libs/Sculpt/Meshes/Rectangle.js +49 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +49 -0
- package/libs/Sculpt/Modules/Cursor.d.ts +13 -0
- package/libs/Sculpt/Modules/Cursor.js +37 -0
- package/libs/Sculpt/Modules/Global.d.ts +20 -0
- package/libs/Sculpt/Modules/Global.js +45 -0
- package/libs/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/libs/Sculpt/Objects/Base/Editor.js +52 -0
- package/libs/Sculpt/Objects/Base/index.d.ts +60 -0
- package/libs/Sculpt/Objects/Base/index.js +77 -0
- package/libs/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Box/Editor.js +44 -0
- package/libs/Sculpt/Objects/Box/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Box/index.js +107 -0
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Circle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Circle/index.js +114 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.js +41 -0
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +100 -0
- package/libs/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Point/Editor.js +25 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +35 -0
- package/libs/Sculpt/Objects/Point/index.js +92 -0
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Polygon/Editor.js +23 -0
- package/libs/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Polygon/index.js +113 -0
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/libs/Sculpt/Objects/Polyline/Editor.js +68 -0
- package/libs/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/libs/Sculpt/Objects/Polyline/index.js +96 -0
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Prism/Editor.js +44 -0
- package/libs/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Prism/index.js +105 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +105 -0
- package/libs/Sculpt/index.d.ts +184 -0
- package/libs/Sculpt/index.js +209 -0
- package/libs/Sculpt/typings/index.d.ts +16 -0
- package/libs/Sculpt/typings/utils.type.d.ts +12 -0
- package/libs/Sculpt/utils/color.d.ts +40 -0
- package/libs/Sculpt/utils/color.js +7 -0
- package/libs/Sculpt/utils/data.d.ts +7 -0
- package/libs/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/libs/Sculpt/utils/getBetterNormal.js +8 -0
- package/libs/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/libs/Sculpt/utils/radiusToSegments.js +6 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +58 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.js +19 -0
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/libs/Sculpt/utils/three/rayOnLine.js +8 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +173 -127
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +95 -80
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +40 -35
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +9 -9
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +54 -53
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +49 -15
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +16 -12
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +8 -5
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +21 -12
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +38 -5
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +22 -21
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +7 -0
- package/libs/shared-utils/Subscribe.js +1 -1
- package/libs/shared-utils/createLine/index.d.ts +2 -2
- package/libs/shared-utils/createLine/index.js +5 -5
- package/libs/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/libs/shared-utils/five/FiveDomEvents.js +135 -90
- package/libs/shared-utils/five/FiveLine.d.ts +8 -0
- package/libs/shared-utils/five/FiveLine.js +15 -0
- package/libs/shared-utils/five/getPosition.d.ts +14 -0
- package/libs/shared-utils/five/getPosition.js +45 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.js +8 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +1 -0
- package/libs/shared-utils/positionToVector3.js +7 -4
- package/libs/shared-utils/three/IObject3D.d.ts +4 -0
- package/libs/shared-utils/three/IObject3D.js +22 -9
- package/libs/shared-utils/three/Magnifier.d.ts +33 -19
- package/libs/shared-utils/three/Magnifier.js +112 -70
- package/libs/shared-utils/three/PointSelector.d.ts +25 -11
- package/libs/shared-utils/three/PointSelector.js +70 -78
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +14 -14
- package/libs/shared-utils/three/generatePolygonGeometry.js +15 -0
- package/{dist/PanoMeasurePlugin/utils → libs/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/libs/shared-utils/three/geometryUtil.js +37 -0
- package/libs/shared-utils/three/getIntersect.d.ts +16 -2
- package/libs/shared-utils/three/getIntersect.js +20 -5
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.js +8 -7
- package/libs/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/libs/shared-utils/three/recurveFindObject.js +6 -0
- package/libs/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/libs/shared-utils/three/vector3ToArray.js +6 -0
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +372 -0
- package/package.json +4 -3
- package/dist/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/docs/classes/Magnifier.html +0 -485
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
- package/libs/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/libs/shared-utils/getIntersectionFromEvent.js +0 -9
- /package/dist/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var v = Object.defineProperty, S = Object.defineProperties;
|
|
2
|
+
var H = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var m = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var b = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (o, s, e) => s in o ? v(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e, p = (o, s) => {
|
|
6
|
+
for (var e in s || (s = {}))
|
|
7
|
+
b.call(s, e) && f(o, e, s[e]);
|
|
8
8
|
if (m)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var i = (s, e
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const l = () => !1;
|
|
22
|
-
class N {
|
|
9
|
+
for (var e of m(s))
|
|
10
|
+
w.call(s, e) && f(o, e, s[e]);
|
|
11
|
+
return o;
|
|
12
|
+
}, u = (o, s) => S(o, H(s));
|
|
13
|
+
var i = (o, s, e) => (f(o, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
+
import { PointSelectorHelper as E } from "./PointSelectorHelper.js";
|
|
15
|
+
import { isTouchDevice as y } from "../isTouchDevice.js";
|
|
16
|
+
import F from "hammerjs";
|
|
17
|
+
import { Subscribe as I } from "../Subscribe.js";
|
|
18
|
+
import { getIntersectByNdcPosition as d } from "../five/getPosition.js";
|
|
19
|
+
const a = () => !1;
|
|
20
|
+
class x extends I {
|
|
23
21
|
constructor(e, t) {
|
|
24
|
-
|
|
22
|
+
var r, l;
|
|
23
|
+
super();
|
|
25
24
|
/**
|
|
26
25
|
* @description: 不在 five canvas 上时为 true
|
|
27
26
|
*/
|
|
28
27
|
i(this, "outOfFive", !1);
|
|
28
|
+
i(this, "enabled", !1);
|
|
29
|
+
i(this, "pointSelectorHelper");
|
|
30
|
+
/** @deprecated directly use `pointSelector.on/off` instead */
|
|
31
|
+
i(this, "hook", this);
|
|
29
32
|
i(this, "five");
|
|
30
33
|
i(this, "hammer");
|
|
31
34
|
i(this, "mode");
|
|
32
|
-
i(this, "pointSelectorHelper");
|
|
33
|
-
i(this, "enabled", !1);
|
|
34
35
|
/** 长按屏幕的动作触发后为true,手指抬起后为false */
|
|
35
36
|
i(this, "pressDown", !1);
|
|
36
37
|
/** 一组吸附的点,光标靠近这些点时,会将helper以及放大镜的位置设置为这些点 */
|
|
37
|
-
i(this, "adherePoints"
|
|
38
|
+
i(this, "adherePoints");
|
|
38
39
|
/** 吸附点的半径 */
|
|
39
40
|
i(this, "adherePointsRadius", 0.1);
|
|
40
41
|
i(this, "lastFiveHelperVisible");
|
|
42
|
+
i(this, "mousePosition");
|
|
41
43
|
/**
|
|
42
44
|
* @description: 主动触发一次选点
|
|
43
45
|
* @return: select 是否成功
|
|
44
46
|
*/
|
|
45
47
|
i(this, "select", (e) => {
|
|
46
48
|
e && this.updatePointSelectorHelperIntersect(e);
|
|
47
|
-
const t = this.
|
|
48
|
-
return t || (this.pointSelectorHelper.hide(), this.
|
|
49
|
+
const t = this.emit("wantsSelect", this.position);
|
|
50
|
+
return t || (this.pointSelectorHelper.hide(), this.emit("select", this.position), console.debug(this.position)), !t;
|
|
49
51
|
});
|
|
50
52
|
/**
|
|
51
53
|
* @description: 鼠标进入five canvas时
|
|
52
54
|
*/
|
|
53
55
|
i(this, "onEnter", () => {
|
|
54
|
-
this.pointSelectorHelper.show(), this.outOfFive = !1, this.
|
|
56
|
+
this.pointSelectorHelper.show(), this.outOfFive = !1, this.emit("intersectionUpdate", this.position);
|
|
55
57
|
});
|
|
56
58
|
/**
|
|
57
59
|
* @description: 鼠标离开five canvas时
|
|
58
60
|
*/
|
|
59
61
|
i(this, "onLeave", () => {
|
|
60
|
-
this.pointSelectorHelper.hide(), this.outOfFive = !0, this.
|
|
62
|
+
this.pointSelectorHelper.hide(), this.outOfFive = !0, this.emit("intersectionUpdate", null);
|
|
61
63
|
});
|
|
62
64
|
i(this, "onTap", (e) => {
|
|
63
|
-
const
|
|
65
|
+
const t = d(this.five, this.mouseNdcPosition);
|
|
64
66
|
t != null && t.face && this.select(t);
|
|
65
67
|
});
|
|
66
68
|
/**
|
|
@@ -70,15 +72,15 @@ class N {
|
|
|
70
72
|
i(this, "onPan", (e) => {
|
|
71
73
|
if (!this.pressDown)
|
|
72
74
|
return;
|
|
73
|
-
const
|
|
74
|
-
t != null && t.face && this.
|
|
75
|
+
const t = d(this.five, this.mouseNdcPosition);
|
|
76
|
+
t != null && t.face && this.updatePointSelectorHelperIntersect(t);
|
|
75
77
|
});
|
|
76
78
|
/**
|
|
77
79
|
* @description: 长按屏幕后,更新长按点的位置
|
|
78
80
|
*/
|
|
79
81
|
i(this, "onPress", (e) => {
|
|
80
|
-
const
|
|
81
|
-
t != null && t.face && (this.pressDown = !0, this.
|
|
82
|
+
const t = d(this.five, this.mouseNdcPosition);
|
|
83
|
+
t != null && t.face && (this.pressDown = !0, this.updatePointSelectorHelperIntersect(t));
|
|
82
84
|
});
|
|
83
85
|
/**
|
|
84
86
|
* @description: 手指抬起后,重置pressDown状态
|
|
@@ -86,41 +88,42 @@ class N {
|
|
|
86
88
|
i(this, "onPanEnd", () => {
|
|
87
89
|
this.pressDown && (this.pressDown = !1, this.select());
|
|
88
90
|
});
|
|
89
|
-
i(this, "intersectionOnModelUpdate", (e) => {
|
|
90
|
-
this.pointSelectorHelper.show(), this.updatePointSelectorHelperIntersect(e);
|
|
91
|
-
});
|
|
92
91
|
i(this, "updateByMousePosition", (e) => {
|
|
93
|
-
|
|
94
|
-
if (!t)
|
|
95
|
-
return;
|
|
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
|
-
};
|
|
100
|
-
this.updateByNdcPosition(v);
|
|
92
|
+
this.five.getElement() && (this.mousePosition = e, this.updateByNdcPosition(this.mouseNdcPosition));
|
|
101
93
|
});
|
|
102
94
|
/**
|
|
103
95
|
* @description: 根据鼠标位置更新helper位置
|
|
104
96
|
*/
|
|
105
97
|
i(this, "updateByNdcPosition", (e) => {
|
|
106
|
-
const t =
|
|
107
|
-
this.updatePointSelectorHelperIntersect(
|
|
98
|
+
const t = d(this.five, e);
|
|
99
|
+
this.updatePointSelectorHelperIntersect(t);
|
|
108
100
|
});
|
|
109
101
|
/**
|
|
110
102
|
* @description: 更新 pointSelectorHelper 的焦点位置
|
|
111
103
|
*/
|
|
112
104
|
i(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
105
|
+
var h;
|
|
106
|
+
this.pointSelectorHelper.show();
|
|
107
|
+
const t = p({}, e);
|
|
108
|
+
let n = !1;
|
|
109
|
+
if (((h = this.adherePoints) == null ? void 0 : h.length) > 0 && typeof this.adherePointsRadius == "number") {
|
|
110
|
+
for (const r of this.adherePoints(e))
|
|
111
|
+
if (r.distanceTo(e.point) < this.adherePointsRadius) {
|
|
112
|
+
t.point = r.clone(), n = !0;
|
|
120
113
|
break;
|
|
121
114
|
}
|
|
122
115
|
}
|
|
123
|
-
this.pointSelectorHelper.updateWithIntersect(t, { emitEvent: !1 }), this.
|
|
116
|
+
this.pointSelectorHelper.updateWithIntersect(t, { emitEvent: !1 }), this.emit("intersectionUpdate", t, n);
|
|
117
|
+
});
|
|
118
|
+
i(this, "mousePositionToNdcPosition", (e) => {
|
|
119
|
+
const t = this.five.getElement();
|
|
120
|
+
if (!t)
|
|
121
|
+
return null;
|
|
122
|
+
const { top: n, left: h, width: r, height: l } = t.getBoundingClientRect(), { clientX: c, clientY: P } = e;
|
|
123
|
+
return {
|
|
124
|
+
x: (c - h) / r,
|
|
125
|
+
y: 1 - (P - n) / l
|
|
126
|
+
};
|
|
124
127
|
});
|
|
125
128
|
i(this, "onFiveWantsPanGesture", () => {
|
|
126
129
|
if (this.pressDown)
|
|
@@ -130,23 +133,25 @@ class N {
|
|
|
130
133
|
this.updateByNdcPosition({ x: 0.5, y: 0.5 });
|
|
131
134
|
});
|
|
132
135
|
i(this, "emitIntersectionUpdate", (e) => {
|
|
133
|
-
this.
|
|
136
|
+
this.emit("intersectionUpdate", e);
|
|
134
137
|
});
|
|
135
|
-
var n, a;
|
|
136
138
|
this.five = e;
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
const
|
|
139
|
+
const n = (r = t == null ? void 0 : t.mode) != null ? r : "auto";
|
|
140
|
+
n === "auto" ? this.mode = y ? "fixed" : "cursor" : this.mode = n;
|
|
141
|
+
const h = {
|
|
140
142
|
autoFixPCPosition: this.mode === "cursor",
|
|
141
143
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
142
144
|
};
|
|
143
|
-
this.pointSelectorHelper = new
|
|
144
|
-
magnifierParams:
|
|
145
|
+
this.pointSelectorHelper = new E(e, u(p({}, t == null ? void 0 : t.pointSelectorHelperParams), {
|
|
146
|
+
magnifierParams: p(p({}, h), (l = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : l.magnifierParams)
|
|
145
147
|
})), this.pointSelectorHelper.hide();
|
|
146
148
|
}
|
|
147
149
|
get position() {
|
|
148
150
|
return this.outOfFive ? null : this.pointSelectorHelper.position;
|
|
149
151
|
}
|
|
152
|
+
get mouseNdcPosition() {
|
|
153
|
+
return this.mousePosition ? this.mousePositionToNdcPosition(this.mousePosition) : null;
|
|
154
|
+
}
|
|
150
155
|
enable() {
|
|
151
156
|
if (this.enabled)
|
|
152
157
|
return;
|
|
@@ -154,35 +159,22 @@ class N {
|
|
|
154
159
|
const e = this.five.getElement();
|
|
155
160
|
if (!e)
|
|
156
161
|
throw new Error("five element not found");
|
|
157
|
-
this.hammer || (this.hammer = new
|
|
162
|
+
this.hammer || (this.hammer = new F(e)), this.mode === "cursor" ? (this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", a), this.five.on("wantsChangeMode", a), this.five.on("wantsTapGesture", a), 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, this.emit("enable");
|
|
158
163
|
}
|
|
159
164
|
disable() {
|
|
160
165
|
if (!this.enabled)
|
|
161
166
|
return;
|
|
162
167
|
this.enabled = !1, this.pointSelectorHelper.disable();
|
|
163
168
|
const e = this.five.getElement();
|
|
164
|
-
this.five.off("
|
|
169
|
+
this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", a), this.five.off("wantsChangeMode", a), this.five.off("wantsTapGesture", a), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
|
|
165
170
|
}
|
|
166
171
|
dispose() {
|
|
167
172
|
this.disable(), this.pointSelectorHelper.dispose();
|
|
168
173
|
}
|
|
169
174
|
setAdherePoints(e, t) {
|
|
170
|
-
e ? this.adherePoints =
|
|
175
|
+
e ? typeof e == "function" ? this.adherePoints = e : this.adherePoints = () => e : this.adherePoints = null, typeof t == "number" && (this.adherePointsRadius = t);
|
|
171
176
|
}
|
|
172
177
|
}
|
|
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
|
-
}
|
|
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
|
-
return {
|
|
180
|
-
distance: o,
|
|
181
|
-
point: r,
|
|
182
|
-
object: new I(),
|
|
183
|
-
face: new O(0, 0, 0, n)
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
178
|
export {
|
|
187
|
-
|
|
179
|
+
x as PointSelector
|
|
188
180
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
1
2
|
import type { Five } from '@realsee/five';
|
|
2
3
|
import { Subscribe } from '@realsee/five';
|
|
3
4
|
import { Magnifier, PointHelper, PointDomHelper } from '.';
|
|
@@ -18,6 +19,7 @@ type EventMap = {
|
|
|
18
19
|
};
|
|
19
20
|
export interface PointIntersection extends Intersection {
|
|
20
21
|
isVirtual?: boolean;
|
|
22
|
+
raycaster?: THREE.Raycaster;
|
|
21
23
|
}
|
|
22
24
|
export declare class PointSelectorHelper {
|
|
23
25
|
five: Five;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (r, i, e) => (
|
|
4
|
-
import * as
|
|
5
|
-
import { Subscribe as
|
|
6
|
-
import { Magnifier as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var h = (r, i, e) => i in r ? l(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e;
|
|
3
|
+
var t = (r, i, e) => (h(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import * as p from "three";
|
|
5
|
+
import { Subscribe as d } from "@realsee/five";
|
|
6
|
+
import { Magnifier as m } from "./Magnifier.js";
|
|
7
7
|
import { PointHelper as o } from "./PointHelper.js";
|
|
8
8
|
import { PointDomHelper as f } from "./PointDomHelper.js";
|
|
9
|
-
class
|
|
9
|
+
class c {
|
|
10
10
|
constructor(i, e) {
|
|
11
11
|
t(this, "five");
|
|
12
|
-
t(this, "hooks", new
|
|
12
|
+
t(this, "hooks", new d());
|
|
13
13
|
t(this, "position");
|
|
14
14
|
t(this, "magnifier", null);
|
|
15
15
|
t(this, "pointHelper", null);
|
|
16
16
|
t(this, "pointDomHelper", null);
|
|
17
17
|
t(this, "state", { enabled: !1, visible: !0 });
|
|
18
|
-
t(this, "group", new
|
|
18
|
+
t(this, "group", new p.Group());
|
|
19
19
|
t(this, "show", () => {
|
|
20
|
-
this.state.visible || (this.state.visible = !0, this.pointHelper.visible = !0, this.pointDomHelper.enable(), this.magnifier.
|
|
20
|
+
this.state.visible || (this.state.visible = !0, this.pointHelper.visible = !0, this.pointDomHelper.enable(), this.magnifier.enable(), this.five.needsRender = !0);
|
|
21
21
|
});
|
|
22
22
|
t(this, "hide", () => {
|
|
23
|
-
this.state.visible && (this.state.visible = !1, this.pointHelper.visible = !1, this.pointDomHelper.disable(), this.magnifier.
|
|
23
|
+
this.state.visible && (this.state.visible = !1, this.pointHelper.visible = !1, this.pointDomHelper.disable(), this.magnifier.disable(), this.five.needsRender = !0);
|
|
24
24
|
});
|
|
25
25
|
t(this, "updateWithIntersect", (i, e = { emitEvent: !0 }) => {
|
|
26
26
|
var n;
|
|
@@ -30,8 +30,8 @@ class v {
|
|
|
30
30
|
});
|
|
31
31
|
t(this, "abortUpdateMagnifier", () => {
|
|
32
32
|
});
|
|
33
|
-
var s, n;
|
|
34
|
-
this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new
|
|
33
|
+
var s, n, a;
|
|
34
|
+
this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new m(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((a = (n = e.container) != null ? n : i.getElement().parentElement) != null ? a : document.body);
|
|
35
35
|
}
|
|
36
36
|
enable() {
|
|
37
37
|
var i, e;
|
|
@@ -46,5 +46,5 @@ class v {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
c as PointSelectorHelper
|
|
50
50
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i from "three";
|
|
2
|
+
import a from "earcut";
|
|
3
|
+
function l(s) {
|
|
4
|
+
const t = [...new Set(s)];
|
|
5
|
+
if (t.length < 3)
|
|
6
|
+
return;
|
|
7
|
+
!t.at(-1).equals(t[0]) && t.length !== 3 && t.push(t[0]);
|
|
8
|
+
const r = t.flatMap((n) => [n.x, n.y, n.z]), u = new i.Float32BufferAttribute(r, 3), o = a(r, void 0, 3);
|
|
9
|
+
o.length === 0 && t.length === 4 && t[0].equals(t.at(-1)) && o.push(0, 1, 2);
|
|
10
|
+
const e = new i.BufferGeometry();
|
|
11
|
+
return e.setAttribute("position", u), e.setIndex(o), e.name = "PolygonGeometry", e;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
l as generatePolygonGeometry
|
|
15
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Vector3 as l } from "three";
|
|
2
|
+
import { centerPoint as p } from "./centerPoint.js";
|
|
3
|
+
function b(n) {
|
|
4
|
+
const t = A(n);
|
|
5
|
+
if (t.length === 0) {
|
|
6
|
+
console.warn("No geometry triangles found"), console.debug({ geometry: n, triangles: t });
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
let e = 0, r = new l();
|
|
10
|
+
for (const [i, o, c] of t) {
|
|
11
|
+
const s = u(i, o, c), g = d(i, o, c, s);
|
|
12
|
+
e += s, r.add(g);
|
|
13
|
+
}
|
|
14
|
+
return r = r.divideScalar(e), { center: r, area: e };
|
|
15
|
+
}
|
|
16
|
+
function u(n, t, e) {
|
|
17
|
+
return t.clone().sub(n).cross(e.clone().sub(n)).length() / 2;
|
|
18
|
+
}
|
|
19
|
+
function d(n, t, e, r) {
|
|
20
|
+
const i = r != null ? r : u(n, t, e);
|
|
21
|
+
return p(n, t, e).multiplyScalar(i);
|
|
22
|
+
}
|
|
23
|
+
function A(n) {
|
|
24
|
+
var i;
|
|
25
|
+
const t = n.getAttribute("position"), e = (i = n.getIndex()) == null ? void 0 : i.array;
|
|
26
|
+
if (!t || !e)
|
|
27
|
+
return [];
|
|
28
|
+
let r = [];
|
|
29
|
+
for (let o = 0; o < e.length; o += 3) {
|
|
30
|
+
const c = e[o], s = e[o + 1], g = e[o + 2], f = new l().fromArray([t.getX(c), t.getY(c), t.getZ(c)]), a = new l().fromArray([t.getX(s), t.getY(s), t.getZ(s)]), m = new l().fromArray([t.getX(g), t.getY(g), t.getZ(g)]);
|
|
31
|
+
r.push([f, a, m]);
|
|
32
|
+
}
|
|
33
|
+
return r;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
b as getGeometryInfo
|
|
37
|
+
};
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { Five } from '@realsee/five';
|
|
2
3
|
export declare function getIntersectFromRelativePosition(five: Five, position: {
|
|
3
4
|
x: number;
|
|
4
5
|
y: number;
|
|
5
|
-
}):
|
|
6
|
+
}): {
|
|
7
|
+
raycaster: THREE.Raycaster;
|
|
8
|
+
isVirtual: boolean;
|
|
9
|
+
floor: number;
|
|
10
|
+
distance: number;
|
|
11
|
+
distanceToRay?: number;
|
|
12
|
+
point: THREE.Vector3;
|
|
13
|
+
index?: number;
|
|
14
|
+
face?: THREE.Face3;
|
|
15
|
+
faceIndex?: number;
|
|
16
|
+
object: THREE.Object3D;
|
|
17
|
+
uv?: THREE.Vector2;
|
|
18
|
+
instanceId?: number;
|
|
19
|
+
};
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var f = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
+
var p = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var n = Object.getOwnPropertySymbols;
|
|
4
|
+
var u = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var o = (e, t, s) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, a = (e, t) => {
|
|
6
|
+
for (var s in t || (t = {}))
|
|
7
|
+
u.call(t, s) && o(e, s, t[s]);
|
|
8
|
+
if (n)
|
|
9
|
+
for (var s of n(t))
|
|
10
|
+
x.call(t, s) && o(e, s, t[s]);
|
|
11
|
+
return e;
|
|
12
|
+
}, i = (e, t) => R(e, p(t));
|
|
13
|
+
import * as E from "three";
|
|
14
|
+
function g(e, t) {
|
|
15
|
+
const { x: s, y: m } = t, l = s * 2 - 1, y = m * 2 - 1, r = new E.Raycaster();
|
|
16
|
+
r.setFromCamera({ x: l, y }, e.camera);
|
|
17
|
+
const c = e.model.intersectRaycaster(r)[0];
|
|
18
|
+
if (c)
|
|
19
|
+
return i(a({}, c), { raycaster: r, isVirtual: !1 });
|
|
5
20
|
}
|
|
6
21
|
export {
|
|
7
|
-
|
|
22
|
+
g as getIntersectFromRelativePosition
|
|
8
23
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Vector3 } from 'three';
|
|
1
|
+
import type { Vector3 } from 'three';
|
|
2
2
|
export default function getNormal(points: Vector3[], length?: number): Vector3;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
function u(n, o) {
|
|
2
|
+
if (n.length < 3) {
|
|
3
|
+
console.error("points.length < 3");
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
const [r, t, c] = n, l = r.clone().sub(t), s = r.clone().sub(c), e = l.cross(s).normalize();
|
|
7
|
+
return typeof o == "number" ? e.multiplyScalar(o) : e;
|
|
7
8
|
}
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
u as getNormal
|
|
10
11
|
};
|