@realsee/dnalogel 3.20.7 → 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/Modules/Magnifier.d.ts +2 -55
- 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 +11537 -9326
- 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/five/FiveDomEvents.d.ts +50 -13
- 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 +10 -5
- 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/PanoMeasurePlugin/Components/Controller0.js +6 -7
- package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -7
- package/libs/PanoMeasurePlugin/Controller/EditController.js +7 -8
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +5 -5
- package/libs/PanoMeasurePlugin/Model/area.js +2 -2
- package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +22 -156
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -7
- package/libs/PanoMeasurePlugin/index.js +24 -25
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- 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 +172 -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/five/FiveDomEvents.d.ts +50 -13
- package/libs/shared-utils/five/FiveDomEvents.js +135 -90
- 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,31 +1,32 @@
|
|
|
1
1
|
import * as P from "three";
|
|
2
|
-
const g = (B) => {
|
|
3
|
-
const n = B.elements, e = n[0], o = n[1], t = n[2], c = n[3], r = n[4], s = n[5], i = n[6], a = n[7], l = n[8], p = n[9], f = n[10], d = n[11], u = n[12], x = n[13], m = n[14], v = n[15], M = p * m * a - x * f * a + x * i * d - s * m * d - p * i * v + s * f * v, W = u * f * a - l * m * a - u * i * d + r * m * d + l * i * v - r * f * v, E = l * x * a - u * p * a + u * s * d - r * x * d - l * s * v + r * p * v, w = u * p * i - l * x * i - u * s * f + r * x * f + l * s * m - r * p * m, h = e * M + o * W + t * E + c * w;
|
|
4
|
-
if (h === 0)
|
|
5
|
-
return B.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
6
|
-
const y = 1 / h;
|
|
7
|
-
return n[0] = M * y, n[1] = (x * f * c - p * m * c - x * t * d + o * m * d + p * t * v - o * f * v) * y, n[2] = (s * m * c - x * i * c + x * t * a - o * m * a - s * t * v + o * i * v) * y, n[3] = (p * i * c - s * f * c - p * t * a + o * f * a + s * t * d - o * i * d) * y, n[4] = W * y, n[5] = (l * m * c - u * f * c + u * t * d - e * m * d - l * t * v + e * f * v) * y, n[6] = (u * i * c - r * m * c - u * t * a + e * m * a + r * t * v - e * i * v) * y, n[7] = (r * f * c - l * i * c + l * t * a - e * f * a - r * t * d + e * i * d) * y, n[8] = E * y, n[9] = (u * p * c - l * x * c - u * o * d + e * x * d + l * o * v - e * p * v) * y, n[10] = (r * x * c - u * s * c + u * o * a - e * x * a - r * o * v + e * s * v) * y, n[11] = (l * s * c - r * p * c - l * o * a + e * p * a + r * o * d - e * s * d) * y, n[12] = w * y, n[13] = (l * x * t - u * p * t + u * o * f - e * x * f - l * o * m + e * p * m) * y, n[14] = (u * s * t - r * x * t - u * o * i + e * x * i + r * o * m - e * s * m) * y, n[15] = (r * p * t - l * s * t + l * o * i - e * p * i - r * o * f + e * s * f) * y, B;
|
|
8
|
-
};
|
|
9
2
|
function A(B) {
|
|
10
|
-
const n = new P.Box3(),
|
|
11
|
-
if (B.updateWorldMatrix(!1, !1), B.traverse((
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
3
|
+
const n = new P.Box3(), r = new P.Vector3();
|
|
4
|
+
if (B.updateWorldMatrix(!1, !1), B.traverse((t) => {
|
|
5
|
+
var e;
|
|
6
|
+
if (t.name === "shadow" || t.type === "Line2")
|
|
14
7
|
return;
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
for (let s = 0,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
n.expandByPoint(
|
|
8
|
+
const o = t.geometry;
|
|
9
|
+
if (t.updateWorldMatrix(!1, !1), o !== void 0) {
|
|
10
|
+
const i = (e = o == null ? void 0 : o.attributes) == null ? void 0 : e.position;
|
|
11
|
+
if (i)
|
|
12
|
+
for (let s = 0, c = i.count; s < c; s++)
|
|
13
|
+
r.fromBufferAttribute(i, s).applyMatrix4(t.matrixWorld), n.expandByPoint(r);
|
|
14
|
+
else
|
|
15
|
+
o.vertices && o.vertices.forEach((s) => {
|
|
16
|
+
const c = s.clone().applyMatrix4(t.matrixWorld);
|
|
17
|
+
n.expandByPoint(c);
|
|
25
18
|
});
|
|
19
|
+
}
|
|
26
20
|
}), !n.isEmpty())
|
|
27
21
|
return n.applyMatrix4(g(B.matrixWorld.clone())), n;
|
|
28
22
|
}
|
|
23
|
+
const g = (B) => {
|
|
24
|
+
const n = B.elements, r = n[0], t = n[1], o = n[2], e = n[3], i = n[4], s = n[5], c = n[6], a = n[7], f = n[8], l = n[9], p = n[10], d = n[11], u = n[12], x = n[13], m = n[14], v = n[15], M = l * m * a - x * p * a + x * c * d - s * m * d - l * c * v + s * p * v, W = u * p * a - f * m * a - u * c * d + i * m * d + f * c * v - i * p * v, E = f * x * a - u * l * a + u * s * d - i * x * d - f * s * v + i * l * v, w = u * l * c - f * x * c - u * s * p + i * x * p + f * s * m - i * l * m, h = r * M + t * W + o * E + e * w;
|
|
25
|
+
if (h === 0)
|
|
26
|
+
return B.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
27
|
+
const y = 1 / h;
|
|
28
|
+
return n[0] = M * y, n[1] = (x * p * e - l * m * e - x * o * d + t * m * d + l * o * v - t * p * v) * y, n[2] = (s * m * e - x * c * e + x * o * a - t * m * a - s * o * v + t * c * v) * y, n[3] = (l * c * e - s * p * e - l * o * a + t * p * a + s * o * d - t * c * d) * y, n[4] = W * y, n[5] = (f * m * e - u * p * e + u * o * d - r * m * d - f * o * v + r * p * v) * y, n[6] = (u * c * e - i * m * e - u * o * a + r * m * a + i * o * v - r * c * v) * y, n[7] = (i * p * e - f * c * e + f * o * a - r * p * a - i * o * d + r * c * d) * y, n[8] = E * y, n[9] = (u * l * e - f * x * e - u * t * d + r * x * d + f * t * v - r * l * v) * y, n[10] = (i * x * e - u * s * e + u * t * a - r * x * a - i * t * v + r * s * v) * y, n[11] = (f * s * e - i * l * e - f * t * a + r * l * a + i * t * d - r * s * d) * y, n[12] = w * y, n[13] = (f * x * o - u * l * o + u * t * p - r * x * p - f * t * m + r * l * m) * y, n[14] = (u * s * o - i * x * o - u * t * c + r * x * c + i * t * m - r * s * m) * y, n[15] = (i * l * o - f * s * o + f * t * c - r * l * c - i * t * p + r * s * p) * y, B;
|
|
29
|
+
};
|
|
29
30
|
export {
|
|
30
31
|
A as boundingBox
|
|
31
32
|
};
|
|
@@ -8,44 +8,76 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { Five } from '@realsee/five';
|
|
10
10
|
import * as THREE from 'three';
|
|
11
|
-
interface
|
|
11
|
+
export interface FiveDomEventMap {
|
|
12
12
|
/**
|
|
13
13
|
* @description 点击事件
|
|
14
14
|
* @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
15
15
|
*/
|
|
16
|
-
click: (event:
|
|
16
|
+
click: (event: FiveDomEvent) => PreventFiveEvent | void;
|
|
17
|
+
/**
|
|
18
|
+
* @description 双击事件
|
|
19
|
+
*/
|
|
20
|
+
dblclick: (event: FiveDomEvent) => void;
|
|
21
|
+
/**
|
|
22
|
+
* @description 鼠标按下事件
|
|
23
|
+
*/
|
|
24
|
+
mousedown: (event: FiveDomEvent) => void;
|
|
25
|
+
/**
|
|
26
|
+
* @description 鼠标抬起事件
|
|
27
|
+
*/
|
|
28
|
+
mouseup: (event: FiveDomEvent) => void;
|
|
17
29
|
/**
|
|
18
30
|
* @description 鼠标移入事件
|
|
19
31
|
*/
|
|
20
|
-
hover: (event:
|
|
32
|
+
hover: (event: FiveDomEvent) => void;
|
|
21
33
|
/**
|
|
22
34
|
* @description 鼠标移出事件
|
|
23
35
|
*/
|
|
24
|
-
unHover: (event:
|
|
36
|
+
unHover: (event: FiveDomEvent) => void;
|
|
37
|
+
/**
|
|
38
|
+
* @description: 拖动开始
|
|
39
|
+
*/
|
|
40
|
+
dragstart: (event: FiveDomEvent) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @description: 拖动中
|
|
43
|
+
*/
|
|
44
|
+
drag: (event: FiveDomEvent) => void;
|
|
45
|
+
/**
|
|
46
|
+
* @description: 拖动结束
|
|
47
|
+
*/
|
|
48
|
+
dragend: (event: FiveDomEvent) => void;
|
|
25
49
|
}
|
|
26
|
-
type EventName = keyof
|
|
50
|
+
type EventName = keyof FiveDomEventMap;
|
|
27
51
|
type PreventFiveEvent = boolean;
|
|
28
52
|
interface EventHandlerConfig {
|
|
29
53
|
/**
|
|
30
|
-
* @default
|
|
54
|
+
* @default false
|
|
31
55
|
*/
|
|
32
|
-
|
|
56
|
+
noEmitWhenHide?: boolean;
|
|
33
57
|
}
|
|
34
|
-
interface
|
|
58
|
+
export interface FiveDomEvent {
|
|
35
59
|
type: EventName;
|
|
36
60
|
target: THREE.Object3D;
|
|
37
61
|
origDomEvent?: Event;
|
|
38
|
-
|
|
62
|
+
raycaster: THREE.Raycaster;
|
|
63
|
+
intersects?: THREE.Intersection[];
|
|
39
64
|
stopPropagation: () => void;
|
|
40
65
|
}
|
|
41
66
|
type Object3DWithEvent = THREE.Object3D & {
|
|
42
67
|
_domEvent?: {
|
|
43
|
-
[key in `${EventName}Handler`]?: Array<[
|
|
68
|
+
[key in `${EventName}Handler`]?: Array<[FiveDomEventMap[EventName], EventHandlerConfig]>;
|
|
44
69
|
};
|
|
45
70
|
_hovered?: boolean;
|
|
71
|
+
_dragging?: boolean;
|
|
72
|
+
draggable?: boolean;
|
|
46
73
|
};
|
|
47
74
|
export declare class FiveDomEvents {
|
|
48
75
|
private five;
|
|
76
|
+
/**
|
|
77
|
+
* @description: 拖动中
|
|
78
|
+
*/
|
|
79
|
+
private dragging;
|
|
80
|
+
private get haveDragEventObject();
|
|
49
81
|
private boundObject;
|
|
50
82
|
constructor(five: Five);
|
|
51
83
|
/**
|
|
@@ -53,7 +85,7 @@ export declare class FiveDomEvents {
|
|
|
53
85
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
54
86
|
* @todo: added 和 removed 还是不太智能
|
|
55
87
|
*/
|
|
56
|
-
addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback:
|
|
88
|
+
addAutoBindEventListener<T extends EventName = EventName>(object: Object3DWithEvent, event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig): () => void;
|
|
57
89
|
/**
|
|
58
90
|
* @description: add event listener
|
|
59
91
|
* @param params.object: object
|
|
@@ -61,11 +93,16 @@ export declare class FiveDomEvents {
|
|
|
61
93
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
62
94
|
* @return {void}
|
|
63
95
|
*/
|
|
64
|
-
addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback:
|
|
65
|
-
removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e:
|
|
96
|
+
addEventListener<T extends EventName = EventName>(object: Object3DWithEvent, event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig): void;
|
|
97
|
+
removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: FiveDomEvent) => any, ...args: any[]): void;
|
|
66
98
|
dispose(): void;
|
|
67
99
|
private getRaycaster;
|
|
68
100
|
private handleWantsGesture;
|
|
101
|
+
private handleDomEvent;
|
|
102
|
+
private handleMouseEvent;
|
|
103
|
+
private handleMousedown;
|
|
104
|
+
private handleMouseup;
|
|
105
|
+
private handleMousemove;
|
|
69
106
|
private onDomEvent;
|
|
70
107
|
private objectIsBound;
|
|
71
108
|
private notify;
|
|
@@ -1,118 +1,164 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var L = Object.defineProperty;
|
|
2
|
+
var b = Object.getOwnPropertySymbols;
|
|
3
|
+
var D = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var p = (h, e, t) => e in h ? L(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, y = (h, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
D.call(e, t) && p(h, t, e[t]);
|
|
7
|
+
if (b)
|
|
8
|
+
for (var t of b(e))
|
|
9
|
+
w.call(e, t) && p(h, t, e[t]);
|
|
10
|
+
return h;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
import * as
|
|
14
|
-
import { getObjectVisible as
|
|
12
|
+
var d = (h, e, t) => (p(h, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import * as H from "three";
|
|
14
|
+
import { getObjectVisible as M } from "../three/getObjectVisible.js";
|
|
15
15
|
import { calculateThreeMouse as x } from "./calculateThreeMouse.js";
|
|
16
|
-
class
|
|
16
|
+
class I {
|
|
17
17
|
constructor(e) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
d(this, "five");
|
|
19
|
+
/**
|
|
20
|
+
* @description: 拖动中
|
|
21
|
+
*/
|
|
22
|
+
d(this, "dragging", !1);
|
|
23
|
+
d(this, "boundObject", {});
|
|
24
|
+
d(this, "handleWantsGesture", (e, t) => {
|
|
21
25
|
if (t.length !== 1)
|
|
22
26
|
return;
|
|
23
27
|
const n = t[0];
|
|
24
28
|
if (n) {
|
|
25
|
-
if (e === "mouseMove")
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
if (e === "mouseMove" && this.onDomEvent("hover", n), e === "tap") {
|
|
30
|
+
const i = this.onDomEvent("click", n), o = this.onDomEvent("wantDblclick", n, void 0, this.boundObject.dblclick);
|
|
31
|
+
if (i === !1 || o === !1)
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
if (this.dragging)
|
|
35
|
+
return !1;
|
|
29
36
|
}
|
|
30
37
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
d(this, "handleDomEvent", (e, t, n) => {
|
|
39
|
+
const i = { x: t.clientX, y: t.clientY };
|
|
40
|
+
this.onDomEvent(e, i, t, n);
|
|
41
|
+
});
|
|
42
|
+
d(this, "handleMouseEvent", (e) => {
|
|
43
|
+
this.handleDomEvent(e.type, e);
|
|
44
|
+
});
|
|
45
|
+
d(this, "handleMousedown", (e) => {
|
|
46
|
+
this.handleDomEvent("mousedown", e), this.handleDomEvent("dragstart", e, this.haveDragEventObject);
|
|
47
|
+
});
|
|
48
|
+
d(this, "handleMouseup", (e) => {
|
|
49
|
+
var t;
|
|
50
|
+
this.dragging = !1, (t = this.haveDragEventObject) == null || t.forEach((n) => {
|
|
51
|
+
n._dragging && (n._dragging = !1, this.notify({
|
|
52
|
+
eventName: "dragend",
|
|
53
|
+
object: n,
|
|
54
|
+
originEvent: e,
|
|
55
|
+
raycaster: this.getRaycaster({ x: e.clientX, y: e.clientY })
|
|
56
|
+
}));
|
|
57
|
+
}), this.handleDomEvent("mouseup", e);
|
|
58
|
+
});
|
|
59
|
+
d(this, "handleMousemove", (e) => {
|
|
60
|
+
var t;
|
|
61
|
+
this.dragging && ((t = this.boundObject.drag) == null || t.forEach((n) => {
|
|
62
|
+
n._dragging && this.notify({
|
|
63
|
+
eventName: "drag",
|
|
64
|
+
object: n,
|
|
65
|
+
originEvent: e,
|
|
66
|
+
raycaster: this.getRaycaster({ x: e.clientX, y: e.clientY })
|
|
67
|
+
});
|
|
68
|
+
}));
|
|
69
|
+
});
|
|
70
|
+
// eslint-disable-next-line complexity
|
|
71
|
+
d(this, "onDomEvent", (e, t, n, i = this.boundObject[e]) => {
|
|
72
|
+
var f, c, r;
|
|
73
|
+
if (!t || !i || (i == null ? void 0 : i.length) === 0)
|
|
74
|
+
return;
|
|
75
|
+
const o = (f = t.raycaster) != null ? f : this.getRaycaster(t);
|
|
76
|
+
o.params.Points.threshold = 0.02;
|
|
77
|
+
const s = o.intersectObjects(i, !0);
|
|
78
|
+
if (s.length === 0)
|
|
35
79
|
return;
|
|
36
|
-
const
|
|
37
|
-
|
|
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);
|
|
80
|
+
const l = this.five.model.intersectRaycaster(o), u = 0.01;
|
|
81
|
+
if (l.length > 0 && s.length > 0 && l[0].distance + u < s[0].distance)
|
|
48
82
|
return;
|
|
83
|
+
const a = (c = s[0]) == null ? void 0 : c.object;
|
|
84
|
+
if (a) {
|
|
85
|
+
if (e === "wantDblclick")
|
|
86
|
+
return !1;
|
|
87
|
+
if ((!a || !this.objectIsBound(a)) && (e === "hover" || e === "unHover"))
|
|
88
|
+
for (const v of (r = this.boundObject.hover) != null ? r : [])
|
|
89
|
+
v._hovered && this.notify({ eventName: "unHover", object: v });
|
|
90
|
+
if (a && this.notify({ eventName: e, object: a, originEvent: n, raycaster: o, intersects: s }))
|
|
91
|
+
return !1;
|
|
49
92
|
}
|
|
50
|
-
if (this.notify(e, r))
|
|
51
|
-
return !1;
|
|
52
93
|
});
|
|
53
|
-
|
|
94
|
+
d(this, "objectIsBound", (e) => {
|
|
54
95
|
let t = e._domEvent, n = e.parent;
|
|
55
96
|
for (; typeof t == "undefined" && n; )
|
|
56
97
|
t = n._domEvent, n = n.parent;
|
|
57
98
|
return !!t;
|
|
58
99
|
});
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
let
|
|
63
|
-
const
|
|
64
|
-
let
|
|
65
|
-
for (
|
|
66
|
-
|
|
67
|
-
for (const
|
|
68
|
-
if (
|
|
100
|
+
d(this, "notify", (e) => {
|
|
101
|
+
var c;
|
|
102
|
+
const { eventName: t, object: n, originEvent: i, raycaster: o, intersects: s } = e;
|
|
103
|
+
let l = !1, u = [];
|
|
104
|
+
const a = [];
|
|
105
|
+
let f = n;
|
|
106
|
+
for (a.push(f); f.parent; )
|
|
107
|
+
f = f.parent, a.push(f);
|
|
108
|
+
for (const r of a) {
|
|
109
|
+
if (l)
|
|
69
110
|
break;
|
|
70
|
-
|
|
71
|
-
|
|
111
|
+
r.draggable && (t === "dragstart" && (r._dragging = !0, this.dragging = !0), t === "dragend" && (r._dragging = !1, this.dragging = !1));
|
|
112
|
+
const v = r._domEvent;
|
|
113
|
+
if (!v)
|
|
72
114
|
continue;
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
for (const [O,
|
|
76
|
-
if (
|
|
115
|
+
const _ = v[`${t}Handler`];
|
|
116
|
+
if (_)
|
|
117
|
+
for (const [O, E] of _) {
|
|
118
|
+
if (E != null && E.noEmitWhenHide && !M(r))
|
|
77
119
|
continue;
|
|
78
|
-
if (
|
|
79
|
-
if (
|
|
120
|
+
if (t === "hover") {
|
|
121
|
+
if (r._hovered)
|
|
80
122
|
continue;
|
|
81
|
-
|
|
82
|
-
for (const
|
|
83
|
-
|
|
123
|
+
r._hovered = !0;
|
|
124
|
+
for (const m of (c = this.boundObject.hover) != null ? c : [])
|
|
125
|
+
m !== r && m._hovered && this.notify({ eventName: "unHover", object: m });
|
|
84
126
|
}
|
|
85
|
-
if (
|
|
86
|
-
if (!
|
|
127
|
+
if (t === "unHover") {
|
|
128
|
+
if (!r._hovered)
|
|
87
129
|
continue;
|
|
88
|
-
|
|
130
|
+
r._hovered = !1;
|
|
89
131
|
}
|
|
90
|
-
const
|
|
91
|
-
type:
|
|
92
|
-
target:
|
|
93
|
-
origDomEvent:
|
|
94
|
-
|
|
132
|
+
const g = O({
|
|
133
|
+
type: t,
|
|
134
|
+
target: r,
|
|
135
|
+
origDomEvent: i,
|
|
136
|
+
raycaster: o,
|
|
137
|
+
intersects: s,
|
|
95
138
|
stopPropagation: () => {
|
|
96
|
-
|
|
139
|
+
l = !0;
|
|
97
140
|
}
|
|
98
141
|
});
|
|
99
|
-
|
|
142
|
+
u.push(g != null ? g : !0);
|
|
100
143
|
}
|
|
101
144
|
}
|
|
102
|
-
if (
|
|
103
|
-
return
|
|
145
|
+
if (t === "click" || t === "wantDblclick")
|
|
146
|
+
return u.some((r) => r === !0);
|
|
104
147
|
});
|
|
105
|
-
this.five = e, e.on("wantsGesture", this.handleWantsGesture);
|
|
148
|
+
this.five = e, e.on("wantsGesture", this.handleWantsGesture), document.addEventListener("mousedown", this.handleMousedown), document.addEventListener("dblclick", this.handleMouseEvent), document.addEventListener("mouseup", this.handleMouseup), document.addEventListener("mousemove", this.handleMousemove);
|
|
149
|
+
}
|
|
150
|
+
get haveDragEventObject() {
|
|
151
|
+
return [...new Set([this.boundObject.dragend, this.boundObject.drag, this.boundObject.dragstart].flat())].filter(Boolean);
|
|
106
152
|
}
|
|
107
153
|
/**
|
|
108
154
|
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
109
155
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
110
156
|
* @todo: added 和 removed 还是不太智能
|
|
111
157
|
*/
|
|
112
|
-
addAutoBindEventListener(e, t, n,
|
|
113
|
-
const
|
|
114
|
-
return e.addEventListener("added",
|
|
115
|
-
e.removeEventListener("added",
|
|
158
|
+
addAutoBindEventListener(e, t, n, i) {
|
|
159
|
+
const o = () => this.addEventListener(e, t, n, i), s = () => this.removeEventListener(e, t, n, i);
|
|
160
|
+
return e.addEventListener("added", o), e.addEventListener("removed", s), e.addEventListener("dispose", s), () => {
|
|
161
|
+
e.removeEventListener("added", o), e.removeEventListener("removed", s), e.removeEventListener("dispose", s);
|
|
116
162
|
};
|
|
117
163
|
}
|
|
118
164
|
/**
|
|
@@ -122,32 +168,31 @@ class D {
|
|
|
122
168
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
123
169
|
* @return {void}
|
|
124
170
|
*/
|
|
125
|
-
addEventListener(e, t, n,
|
|
126
|
-
|
|
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);
|
|
171
|
+
addEventListener(e, t, n, i) {
|
|
172
|
+
e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, y({ noEmitWhenHide: !1 }, i)]), this.boundObject[t].push(e);
|
|
128
173
|
}
|
|
129
|
-
removeEventListener(e, t, n, ...
|
|
130
|
-
var
|
|
174
|
+
removeEventListener(e, t, n, ...i) {
|
|
175
|
+
var s, l;
|
|
131
176
|
if (!e._domEvent || !e._domEvent[`${t}Handler`])
|
|
132
177
|
return;
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
|
|
178
|
+
const o = e._domEvent[`${t}Handler`].findIndex((u) => u[0] === n);
|
|
179
|
+
if (o !== -1 && (e._domEvent[`${t}Handler`].splice(o, 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)) {
|
|
180
|
+
const u = (s = this.boundObject[t]) == null ? void 0 : s.findIndex((a) => a === e);
|
|
181
|
+
u !== -1 && ((l = this.boundObject[t]) == null || l.splice(u, 1));
|
|
137
182
|
}
|
|
138
183
|
}
|
|
139
184
|
dispose() {
|
|
140
185
|
var e;
|
|
141
|
-
(e = this.five) == null || e.off("wantsGesture", this.handleWantsGesture), this.boundObject = {};
|
|
186
|
+
(e = this.five) == null || e.off("wantsGesture", this.handleWantsGesture), document.removeEventListener("mousedown", this.handleMousedown), document.removeEventListener("mouseup", this.handleMouseup), document.removeEventListener("mousemove", this.handleMousemove), this.boundObject = {};
|
|
142
187
|
}
|
|
143
188
|
getRaycaster(e) {
|
|
144
189
|
const t = this.five.getElement();
|
|
145
190
|
if (!t)
|
|
146
191
|
return;
|
|
147
|
-
const n = x(e, t),
|
|
148
|
-
return
|
|
192
|
+
const n = x(e, t), i = new H.Raycaster();
|
|
193
|
+
return i.setFromCamera(n, this.five.camera), i;
|
|
149
194
|
}
|
|
150
195
|
}
|
|
151
196
|
export {
|
|
152
|
-
|
|
197
|
+
I as FiveDomEvents
|
|
153
198
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { Five } from '@realsee/five';
|
|
3
|
+
interface IIntersection extends THREE.Intersection {
|
|
4
|
+
raycaster: THREE.Raycaster;
|
|
5
|
+
isVirtual: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function getIntersectByNdcPosition(five: Five, position: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}): IIntersection;
|
|
11
|
+
export declare function getIntersectByRaycaster(five: Five, raycaster: THREE.Raycaster): IIntersection;
|
|
12
|
+
export declare function getVirtualIntersectByRaycaster(raycaster: THREE.Raycaster): IIntersection;
|
|
13
|
+
export declare function getRealIntersectByRaycaster(five: Five, raycaster: THREE.Raycaster): IIntersection;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var l = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var d = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var i = Object.getOwnPropertySymbols;
|
|
4
|
+
var y = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var o = (t, e, n) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, s = (t, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
y.call(e, n) && o(t, n, e[n]);
|
|
8
|
+
if (i)
|
|
9
|
+
for (var n of i(e))
|
|
10
|
+
f.call(e, n) && o(t, n, e[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, a = (t, e) => u(t, d(e));
|
|
13
|
+
import * as r from "three";
|
|
14
|
+
import { getRaycasterByNdcPosition as m } from "./getRaycasterByNdcPosition.js";
|
|
15
|
+
function w(t, e) {
|
|
16
|
+
const n = m(t, e);
|
|
17
|
+
return g(t, n);
|
|
18
|
+
}
|
|
19
|
+
function g(t, e) {
|
|
20
|
+
var n;
|
|
21
|
+
return (n = p(t, e)) != null ? n : R(e);
|
|
22
|
+
}
|
|
23
|
+
function R(t) {
|
|
24
|
+
const n = new r.Vector3().addVectors(
|
|
25
|
+
t.ray.origin,
|
|
26
|
+
t.ray.direction.clone().normalize().multiplyScalar(3)
|
|
27
|
+
), c = t.ray.direction.clone().negate();
|
|
28
|
+
return {
|
|
29
|
+
distance: 3,
|
|
30
|
+
point: n,
|
|
31
|
+
object: new r.Object3D(),
|
|
32
|
+
face: new r.Face3(0, 0, 0, c),
|
|
33
|
+
raycaster: t,
|
|
34
|
+
isVirtual: !0
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function p(t, e) {
|
|
38
|
+
const c = t.model.intersectRaycaster(e)[0];
|
|
39
|
+
if (c)
|
|
40
|
+
return a(s({}, c), { raycaster: e, isVirtual: !1 });
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
w as getIntersectByNdcPosition,
|
|
44
|
+
g as getIntersectByRaycaster
|
|
45
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.21.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",
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Vector3 as n } from "three";
|
|
2
|
-
const
|
|
3
|
-
|
|
2
|
+
const f = ({ x: r, y: e, z: c }) => new n(r, e, c), a = (r) => new n().fromArray(r), t = (r) => {
|
|
3
|
+
if (r)
|
|
4
|
+
return r instanceof n ? r : Array.isArray(r) ? a(r) : f(r);
|
|
5
|
+
};
|
|
6
|
+
function o(r) {
|
|
4
7
|
if (r)
|
|
5
8
|
return Array.isArray(r) ? typeof r[0] == "number" ? t(r) : r.map(t) : t(r);
|
|
6
9
|
}
|
|
7
10
|
export {
|
|
8
11
|
t as anyPositionToVector3,
|
|
9
12
|
a as arrayPositionToVector3,
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
f as positionToVector3,
|
|
14
|
+
o as vector3Position
|
|
12
15
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Object3D } from 'three';
|
|
2
2
|
export declare class IObject3D extends Object3D {
|
|
3
|
+
name: string;
|
|
4
|
+
needsRender: boolean;
|
|
3
5
|
constructor();
|
|
6
|
+
removeChildren(): this;
|
|
4
7
|
add(...objects: Object3D[]): this;
|
|
8
|
+
addIfNotExists(...objects: Object3D[]): this;
|
|
5
9
|
remove(...objects: Object3D[]): this;
|
|
6
10
|
removeFromParent(): this;
|
|
7
11
|
}
|