@realsee/dnalogel 2.6.4 → 2.6.7-dev.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/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/dist/Object3DHelperPlugin/Controller.d.ts +25 -10
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
- package/dist/Object3DHelperPlugin/typings.d.ts +14 -0
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
- package/dist/PanoTagPlugin/controller/index.d.ts +32 -6
- package/dist/PanoTagPlugin/typings/controller.d.ts +17 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/index.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +5078 -4667
- package/dist/index.umd.js +32 -32
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
- package/dist/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
- package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
- package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
- package/dist/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
- package/{libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/index.d.ts +4 -27
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
- package/dist/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
- package/dist/shared-utils/three/GLTFLoader.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +40 -33
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +205 -77
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +34 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +10 -5
- package/docs/functions/CameraMovementPlugin.html +10 -5
- package/docs/functions/CruisePlugin.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/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 +15 -10
- package/docs/functions/TopviewFloorplanPlugin.html +10 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +10 -5
- package/docs/index.html +9 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +19 -19
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +78 -0
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +85 -0
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +10 -5
- package/docs/interfaces/Rooms.html +10 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +25 -16
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +11 -11
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +14 -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 +268 -0
- 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/Direction-1.html +10 -5
- package/docs/types/Direction4.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/HelperEventMap.html +174 -21
- 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/ModelElement.html +266 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginReturnType.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 +10 -5
- 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/PlaneTag.html +10 -5
- package/docs/types/PlaneTagElement.html +10 -5
- package/docs/types/Point2DElement.html +10 -5
- package/docs/types/Point2DTag.html +10 -5
- package/docs/types/Point3DElement.html +10 -5
- package/docs/types/Point3DTag.html +10 -5
- package/docs/types/PointTag.html +10 -5
- package/docs/types/PointTagElement.html +10 -5
- package/docs/types/Position.html +10 -5
- 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/StickType.html +11 -6
- package/docs/types/Tag.html +11 -6
- package/docs/types/Tag2D.html +10 -5
- package/docs/types/Tag3D.html +10 -5
- package/docs/types/TagContentType.html +11 -6
- package/docs/types/TagDimensionType.html +10 -5
- package/docs/types/TagElement.html +11 -6
- package/docs/types/TagEvents.html +10 -5
- package/docs/types/TagGLTFObject.html +261 -0
- package/docs/types/TagHooks.html +10 -5
- package/docs/types/TagIconSize.html +10 -5
- package/docs/types/TagId.html +10 -5
- package/docs/types/TagPointType.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 +10 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
- package/docs/variables/ROOM_TYPE_MAP.html +10 -5
- package/docs/variables/VERSION.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/CSS3DRenderPlugin/CSS3DRender.js +43 -43
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +16 -15
- package/libs/Object3DHelperPlugin/Controller.d.ts +25 -10
- package/libs/Object3DHelperPlugin/Controller.js +117 -97
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +29 -22
- package/libs/Object3DHelperPlugin/index.js +16 -11
- package/libs/Object3DHelperPlugin/typings.d.ts +14 -0
- package/libs/PanoTagPlugin/Components/Common/Media.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +68 -68
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +12 -11
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +33 -33
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +46 -46
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +12 -11
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +26 -25
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +29 -28
- package/libs/PanoTagPlugin/Components/Tag/index.js +126 -119
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -65
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.js +14 -12
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
- package/libs/PanoTagPlugin/controller/TagComputer.js +242 -176
- package/libs/PanoTagPlugin/controller/index.d.ts +32 -6
- package/libs/PanoTagPlugin/controller/index.js +176 -91
- package/libs/PanoTagPlugin/index.js +15 -12
- package/libs/PanoTagPlugin/tag.config.js +9 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +17 -2
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +6 -5
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
- package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +5 -4
- package/libs/PanoTagPlugin/utils/color.js +5 -5
- package/libs/PanoTagPlugin/utils/index.js +37 -34
- package/libs/PanoTagPlugin/utils/planeNormal.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/index.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/index.js +11 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +6 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +20 -8
- package/libs/index.js +111 -104
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -90
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +55 -22
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +14 -0
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +14 -10
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +80 -37
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +44 -41
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +95 -67
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +21 -0
- package/libs/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +87 -0
- package/{dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
- package/libs/shared-utils/Object3DHelper/Helper/{RectangleScaleHelper.js → CSS3DScaleHelper.js} +5 -7
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -9
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +72 -66
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +9 -0
- package/libs/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -2
- package/libs/shared-utils/Object3DHelper/index.d.ts +4 -27
- package/libs/shared-utils/Object3DHelper/index.js +48 -96
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +2 -1
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +24 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +2 -2
- package/libs/shared-utils/three/GLTFLoader.d.ts +2 -0
- package/libs/shared-utils/three/GLTFLoader.js +16 -0
- package/libs/typings/math.type.js +1 -0
- package/package.json +4 -4
- package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -2
- package/libs/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +0 -1
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Subscribe } from '../../Subscribe';
|
|
3
|
-
import type { HelperEventMap } from '../typings';
|
|
3
|
+
import type { HelperEventMap, HelperOffset } from '../typings';
|
|
4
4
|
import type { BaseHelper } from './BaseHelper';
|
|
5
5
|
import DomEvents from '../utils/threex/domevents';
|
|
6
6
|
export declare let originOpacity: {
|
|
7
7
|
opacity: number;
|
|
8
8
|
} | null;
|
|
9
9
|
export declare abstract class BaseController<T extends BaseHelper = BaseHelper, K extends THREE.Object3D = THREE.Object3D> {
|
|
10
|
-
hooks: Subscribe<HelperEventMap>;
|
|
11
|
-
helperObject3D: T;
|
|
12
10
|
originObject3D: K;
|
|
11
|
+
hooks: Subscribe<HelperEventMap>;
|
|
12
|
+
protected readonly disposers: (() => void)[];
|
|
13
|
+
protected helperObject3D: T;
|
|
13
14
|
protected camera: THREE.Camera;
|
|
14
15
|
protected model: THREE.Object3D;
|
|
15
|
-
protected scene: THREE.
|
|
16
|
+
protected scene: THREE.Object3D;
|
|
16
17
|
protected container: HTMLElement;
|
|
17
18
|
protected domEvents: DomEvents;
|
|
18
19
|
protected isDragging: boolean;
|
|
19
|
-
protected onRender: () => void;
|
|
20
20
|
protected enabled: boolean;
|
|
21
|
-
|
|
21
|
+
protected name: string;
|
|
22
|
+
protected boundingBox?: THREE.Box3;
|
|
23
|
+
private offset?;
|
|
24
|
+
private onRender;
|
|
25
|
+
constructor(params: {
|
|
26
|
+
camera: THREE.Camera;
|
|
27
|
+
model: THREE.Object3D;
|
|
28
|
+
originObject3D: K;
|
|
29
|
+
helperObject3D: T;
|
|
30
|
+
container: HTMLElement;
|
|
31
|
+
scene: THREE.Object3D;
|
|
32
|
+
onRender?: () => void;
|
|
33
|
+
sharedHooks?: Subscribe<HelperEventMap>;
|
|
34
|
+
}, config?: {
|
|
35
|
+
offset?: HelperOffset;
|
|
36
|
+
});
|
|
22
37
|
initialHelperPosition(): void;
|
|
23
38
|
initialHelperQuaternion(): void;
|
|
24
39
|
enable(): void;
|
|
@@ -26,23 +41,34 @@ export declare abstract class BaseController<T extends BaseHelper = BaseHelper,
|
|
|
26
41
|
show(): void;
|
|
27
42
|
hide(): void;
|
|
28
43
|
dispose(): void;
|
|
29
|
-
setOpacity(opacity: number): void;
|
|
30
|
-
restoreOpacity(): void;
|
|
31
|
-
setOriginOpacityProperty(): void;
|
|
32
|
-
updateHelperPosition(): void;
|
|
33
|
-
updateHelperQuaternion(): void;
|
|
34
44
|
applyHelperMatrix4(matrix4: THREE.Matrix4): void;
|
|
35
45
|
applyHelperQuaternion(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
36
|
-
applyHelperScaleMatrix4(matrix4: THREE.Matrix4,
|
|
37
|
-
origin?: THREE.Vector3;
|
|
38
|
-
helperOrigin?: THREE.Vector3;
|
|
39
|
-
}): void;
|
|
46
|
+
applyHelperScaleMatrix4(matrix4: THREE.Matrix4, origin?: THREE.Vector3): void;
|
|
40
47
|
onWantsTapGesture: (raycaster: THREE.Raycaster) => false | void;
|
|
41
48
|
onWantsGesture(type: 'press' | 'pan' | string, pointers: {
|
|
42
49
|
x: number;
|
|
43
50
|
y: number;
|
|
44
51
|
}[], final: boolean): false | void;
|
|
52
|
+
onIntersectionOnModelUpdate(intersection: {
|
|
53
|
+
point: THREE.Vector3;
|
|
54
|
+
}): void;
|
|
55
|
+
protected onApplyOriginObjectScale(params: {
|
|
56
|
+
matrix4: THREE.Matrix4;
|
|
57
|
+
origin?: THREE.Vector3;
|
|
58
|
+
}): void;
|
|
59
|
+
protected onApplyOriginObjectRotate(params: {
|
|
60
|
+
quaternion: THREE.Quaternion;
|
|
61
|
+
origin: THREE.Vector3;
|
|
62
|
+
}): void;
|
|
63
|
+
protected onApplyOriginObjectPosition(params: {
|
|
64
|
+
matrix4: THREE.Matrix4;
|
|
65
|
+
}): void;
|
|
66
|
+
protected onSetOriginObjectScale(scale: THREE.Vector3): void;
|
|
67
|
+
protected onSetOriginObjectRotate(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
68
|
+
protected onSetOriginObjectPosition(position: THREE.Vector3): void;
|
|
45
69
|
protected render(): void;
|
|
70
|
+
protected updateOffsetByScale(scale: THREE.Vector3): void;
|
|
46
71
|
protected hoverListener(object3D: THREE.Object3D | undefined | THREE.Group | (THREE.Object3D | undefined | THREE.Group)[], hoverColor?: THREE.Color | string | number, hoverOpacity?: number): () => void;
|
|
47
72
|
private getIntersectObject;
|
|
73
|
+
private calculateOffset;
|
|
48
74
|
}
|
|
@@ -3,7 +3,12 @@ import type * as THREE from 'three';
|
|
|
3
3
|
import { Mesh, Object3D, Vector3 } from 'three';
|
|
4
4
|
import type { Direction, Direction4 } from '../typings';
|
|
5
5
|
import type { tipsDom } from '../Helper/HTML/tipsDom';
|
|
6
|
-
|
|
6
|
+
declare type NonVoid<T> = T extends void ? never : T;
|
|
7
|
+
declare class IObject3D extends Object3D {
|
|
8
|
+
constructor();
|
|
9
|
+
removeFromParent(): this;
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class BaseHelper<OriginObject3D extends Object3D = Object3D> extends IObject3D {
|
|
7
12
|
protected originObject3D: OriginObject3D;
|
|
8
13
|
protected onRender: () => any;
|
|
9
14
|
get helperObject(): Object3D;
|
|
@@ -11,17 +16,16 @@ export declare abstract class BaseHelper<OriginObject3D extends Object3D = Objec
|
|
|
11
16
|
onRender?: () => any;
|
|
12
17
|
});
|
|
13
18
|
render(): void;
|
|
19
|
+
enable(): void;
|
|
20
|
+
disable(): void;
|
|
14
21
|
show(): void;
|
|
15
22
|
hide(): void;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
applyHelperScaleMatrix4(matrix: THREE.Matrix4,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
|
|
23
|
-
abstract showDraggingHelper(directions?: Direction[]): void;
|
|
24
|
-
abstract dispose(): void;
|
|
23
|
+
initialPosition(): void;
|
|
24
|
+
initQuaternion(): void;
|
|
25
|
+
applyHelperScaleMatrix4(matrix: THREE.Matrix4, origin?: Vector3): void;
|
|
26
|
+
setHelperQuaternion(quaternion: THREE.Quaternion, origin?: Vector3): void;
|
|
27
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: Vector3): void;
|
|
28
|
+
dispose(): void;
|
|
25
29
|
}
|
|
26
30
|
export declare abstract class MoveHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
27
31
|
abstract xArrow?: Object3D & {
|
|
@@ -39,29 +43,32 @@ export declare abstract class MoveHelperAbstract<OriginObject3D extends Object3D
|
|
|
39
43
|
line?: Object3D;
|
|
40
44
|
direction: Direction;
|
|
41
45
|
};
|
|
46
|
+
abstract showDraggingHelper(directions?: Direction[]): void;
|
|
47
|
+
}
|
|
48
|
+
export declare abstract class BoundingBoxHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
42
49
|
}
|
|
43
50
|
export declare abstract class RotateHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
44
|
-
abstract xyCircle
|
|
51
|
+
abstract xyCircle?: Mesh & {
|
|
45
52
|
direction: Direction;
|
|
46
53
|
};
|
|
47
|
-
abstract xzCircle
|
|
54
|
+
abstract xzCircle?: Mesh & {
|
|
48
55
|
direction: Direction;
|
|
49
56
|
};
|
|
50
|
-
abstract yzCircle
|
|
57
|
+
abstract yzCircle?: Mesh & {
|
|
51
58
|
direction: Direction;
|
|
52
59
|
};
|
|
53
|
-
abstract xRingHelper
|
|
54
|
-
abstract yRingHelper
|
|
55
|
-
abstract zRingHelper
|
|
56
|
-
abstract xAngleHelper
|
|
60
|
+
abstract xRingHelper?: Object3D;
|
|
61
|
+
abstract yRingHelper?: Object3D;
|
|
62
|
+
abstract zRingHelper?: Object3D;
|
|
63
|
+
abstract xAngleHelper?: Object3D & {
|
|
57
64
|
baseAxes: Vector3;
|
|
58
65
|
direction: Direction;
|
|
59
66
|
};
|
|
60
|
-
abstract yAngleHelper
|
|
67
|
+
abstract yAngleHelper?: Object3D & {
|
|
61
68
|
baseAxes: Vector3;
|
|
62
69
|
direction: Direction;
|
|
63
70
|
};
|
|
64
|
-
abstract zAngleHelper
|
|
71
|
+
abstract zAngleHelper?: Object3D & {
|
|
65
72
|
baseAxes: Vector3;
|
|
66
73
|
direction: Direction;
|
|
67
74
|
};
|
|
@@ -71,7 +78,6 @@ export declare abstract class RotateHelperAbstract<OriginObject3D extends Object
|
|
|
71
78
|
}
|
|
72
79
|
export declare abstract class ScaleHelperAbstract<OriginObject3D extends Object3D = Object3D> extends BaseHelper<OriginObject3D> {
|
|
73
80
|
}
|
|
74
|
-
declare type NonVoid<T> = T extends void ? never : T;
|
|
75
81
|
export declare abstract class RectangleScaleHelperAbstract<OriginObject3D extends Object3D, PointType extends Object3D | HTMLElement> extends ScaleHelperAbstract<OriginObject3D> {
|
|
76
82
|
abstract points: PointType extends Object3D ? {
|
|
77
83
|
point: PointType;
|
|
@@ -84,6 +90,7 @@ export declare abstract class RectangleScaleHelperAbstract<OriginObject3D extend
|
|
|
84
90
|
abstract cornerPositions: Vector3[];
|
|
85
91
|
abstract css3DInstance?: NonVoid<Create3DElementReturnType>;
|
|
86
92
|
abstract plane?: THREE.Mesh;
|
|
93
|
+
abstract showDraggingHelper(directions?: Direction[]): void;
|
|
87
94
|
abstract updatePoints(): void;
|
|
88
95
|
abstract enable(): void;
|
|
89
96
|
abstract disable(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseController } from '../Base/BaseController';
|
|
2
|
+
import type { BoundingBoxHelperAbstract } from '../Helper';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
export declare class BoundingBoxController<OriginObject3D extends THREE.Object3D = THREE.Object3D> extends BaseController<BoundingBoxHelperAbstract<OriginObject3D>> {
|
|
5
|
+
protected name: string;
|
|
6
|
+
constructor(...params: ConstructorParameters<typeof BaseController<BoundingBoxHelperAbstract<OriginObject3D>>>);
|
|
7
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
2
2
|
import { RectangleScaleController } from './RectangleScaleController';
|
|
3
3
|
export declare class CSS3DScaleController extends RectangleScaleController<CSS3DObject, HTMLElement> {
|
|
4
|
+
protected name: string;
|
|
4
5
|
constructor(...params: ConstructorParameters<typeof RectangleScaleController<CSS3DObject, HTMLElement>>);
|
|
5
6
|
private addHTMLEventListener;
|
|
6
7
|
}
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
import { BaseController } from '../Base/BaseController';
|
|
2
|
+
import * as THREE from 'three';
|
|
2
3
|
import type { MoveHelperAbstract } from '../Helper';
|
|
3
4
|
export declare class MoveController<T extends MoveHelperAbstract = MoveHelperAbstract> extends BaseController<T> {
|
|
5
|
+
get moveByMouseEnable(): boolean;
|
|
6
|
+
protected name: string;
|
|
4
7
|
private startInfo?;
|
|
8
|
+
private _moveByMouseEnable;
|
|
9
|
+
private mouseInfo?;
|
|
10
|
+
private mousedownEventListenerDisposer;
|
|
5
11
|
constructor(...params: ConstructorParameters<typeof BaseController<T>>);
|
|
12
|
+
dispose(): void;
|
|
13
|
+
/**
|
|
14
|
+
* @description: 跟随鼠标移动
|
|
15
|
+
*/
|
|
16
|
+
moveByMouse(): void;
|
|
17
|
+
/**
|
|
18
|
+
* @description: 禁用跟随鼠标移动
|
|
19
|
+
*/
|
|
20
|
+
disableMoveByMouse(): void;
|
|
21
|
+
onIntersectionOnModelUpdate(intersection: {
|
|
22
|
+
point: THREE.Vector3;
|
|
23
|
+
}): void;
|
|
24
|
+
protected onApplyOriginObjectScale(params: {
|
|
25
|
+
matrix4: THREE.Matrix4;
|
|
26
|
+
origin?: THREE.Vector3;
|
|
27
|
+
}): void;
|
|
28
|
+
private handleMouseDown;
|
|
29
|
+
private handleMouseUp;
|
|
6
30
|
/**
|
|
7
31
|
* @description: 拖动开始,找出拖的Direction
|
|
8
32
|
*/
|
|
@@ -12,13 +12,18 @@ interface StartInfo {
|
|
|
12
12
|
dragPointInCenterLeft?: boolean | null;
|
|
13
13
|
plane: THREE.Plane;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare class RectangleScaleController<OriginObject3D extends THREE.Object3D, PointType extends THREE.Object3D | HTMLElement> extends BaseController<RectangleScaleHelperAbstract<OriginObject3D, PointType>> {
|
|
16
16
|
protected startInfo?: StartInfo;
|
|
17
|
+
protected name: string;
|
|
17
18
|
constructor(...params: ConstructorParameters<typeof BaseController<RectangleScaleHelperAbstract<OriginObject3D, PointType>>>);
|
|
18
19
|
enable(): void;
|
|
19
20
|
disable(): void;
|
|
20
21
|
show(): void;
|
|
21
22
|
hide(): void;
|
|
23
|
+
protected onApplyOriginObjectScale(params: {
|
|
24
|
+
matrix4: THREE.Matrix4;
|
|
25
|
+
origin?: THREE.Vector3;
|
|
26
|
+
}): void;
|
|
22
27
|
protected getDragPlane(): THREE.Plane;
|
|
23
28
|
protected dragStart(mousePoint: {
|
|
24
29
|
x: number;
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import { BaseController } from '../Base/BaseController';
|
|
2
2
|
import type { RotateHelperAbstract } from '../Helper';
|
|
3
|
+
import * as THREE from 'three';
|
|
3
4
|
export declare class RotateController<T extends RotateHelperAbstract = RotateHelperAbstract> extends BaseController<T> {
|
|
5
|
+
protected name: string;
|
|
6
|
+
private get rotateCenter();
|
|
4
7
|
private startInfo?;
|
|
5
8
|
private lastRotation?;
|
|
6
9
|
private rotations;
|
|
7
10
|
private helperObject3DQuaternion;
|
|
11
|
+
private removeListener;
|
|
8
12
|
constructor(...params: ConstructorParameters<typeof BaseController<T>>);
|
|
9
13
|
initialHelperQuaternion(): void;
|
|
14
|
+
setRotateAngle(angle: {
|
|
15
|
+
x?: number;
|
|
16
|
+
y?: number;
|
|
17
|
+
z?: number;
|
|
18
|
+
}): void;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
protected onApplyOriginObjectScale(params: {
|
|
21
|
+
matrix4: THREE.Matrix4;
|
|
22
|
+
origin?: THREE.Vector3;
|
|
23
|
+
}): void;
|
|
10
24
|
/**
|
|
11
25
|
* @description: 拖动开始,找出拖的Direction
|
|
12
26
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseController } from '../Base/BaseController';
|
|
2
|
+
import type { ScaleHelperAbstract } from '../Helper';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
export declare class ScaleController<OriginObject3D extends THREE.Object3D = THREE.Object3D> extends BaseController<ScaleHelperAbstract<OriginObject3D>> {
|
|
5
|
+
protected name: string;
|
|
6
|
+
constructor(...params: ConstructorParameters<typeof BaseController<ScaleHelperAbstract<OriginObject3D>>>);
|
|
7
|
+
setScale(scale: number | {
|
|
8
|
+
x?: number;
|
|
9
|
+
y?: number;
|
|
10
|
+
z?: number;
|
|
11
|
+
}): void;
|
|
12
|
+
}
|
package/dist/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
|
|
2
|
+
import { BoundingBoxHelperAbstract } from '../Base/BaseHelper';
|
|
3
|
+
export declare class BoundingBoxHelper<T extends THREE.Object3D = THREE.Object3D> extends BoundingBoxHelperAbstract<T> {
|
|
3
4
|
box: THREE.Mesh<THREE.BufferGeometry, THREE.MeshBasicMaterial>;
|
|
4
5
|
outline: THREE.LineSegments<THREE.BufferGeometry, THREE.LineBasicMaterial>;
|
|
5
6
|
private originObject;
|
|
6
7
|
private positionAttribute;
|
|
7
|
-
constructor(
|
|
8
|
+
constructor(originObject: T);
|
|
8
9
|
private update;
|
|
9
10
|
private createOutline;
|
|
10
11
|
private createBox;
|
|
@@ -2,11 +2,9 @@ import * as THREE from 'three';
|
|
|
2
2
|
import { RectangleScaleHelperAbstract } from '.';
|
|
3
3
|
import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
|
|
4
4
|
import type { Vector3 } from 'three';
|
|
5
|
-
import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
6
5
|
import type { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/three/CSS3DObject';
|
|
7
6
|
declare type NonVoid<T> = T extends void ? never : T;
|
|
8
|
-
declare
|
|
9
|
-
export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObjectType> extends RectangleScaleHelperAbstract<T, HTMLElement> {
|
|
7
|
+
export declare class CSS3DScaleHelper<T extends CSS3DObjectPlus = CSS3DObjectPlus> extends RectangleScaleHelperAbstract<T, HTMLElement> {
|
|
10
8
|
points: RectangleScaleHelperAbstract<THREE.Object3D, HTMLElement>['points'];
|
|
11
9
|
cornerPositions: Vector3[];
|
|
12
10
|
css3DInstance?: NonVoid<Create3DElementReturnType>;
|
|
@@ -22,12 +20,9 @@ export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObj
|
|
|
22
20
|
updateQuaternion(): void;
|
|
23
21
|
applyMatrix4(matrix: THREE.Matrix4): void;
|
|
24
22
|
showDraggingHelper(): void;
|
|
25
|
-
applyHelperScaleMatrix4(matrix: THREE.Matrix4,
|
|
26
|
-
origin?: Vector3;
|
|
27
|
-
helperOrigin?: Vector3;
|
|
28
|
-
}): void;
|
|
23
|
+
applyHelperScaleMatrix4(matrix: THREE.Matrix4, origin?: Vector3): void;
|
|
29
24
|
updatePoints(): void;
|
|
30
|
-
applyHelperQuaternion(quaternion: THREE.Quaternion, origin:
|
|
25
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin: Vector3): void;
|
|
31
26
|
enable(): void;
|
|
32
27
|
disable(): void;
|
|
33
28
|
show(): void;
|
|
@@ -4,19 +4,22 @@ import { RotateHelperAbstract } from '../Base/BaseHelper';
|
|
|
4
4
|
import type { Color, Direction } from '../typings';
|
|
5
5
|
import { tipsDom } from './HTML/tipsDom';
|
|
6
6
|
export declare class RotateHelper extends RotateHelperAbstract {
|
|
7
|
-
yzCircle
|
|
8
|
-
xzCircle
|
|
9
|
-
xyCircle
|
|
10
|
-
xRingHelper
|
|
11
|
-
yRingHelper
|
|
12
|
-
zRingHelper
|
|
13
|
-
xAngleHelper
|
|
14
|
-
yAngleHelper
|
|
15
|
-
zAngleHelper
|
|
7
|
+
yzCircle?: Circle;
|
|
8
|
+
xzCircle?: Circle;
|
|
9
|
+
xyCircle?: Circle;
|
|
10
|
+
xRingHelper?: AxesDashedRing;
|
|
11
|
+
yRingHelper?: AxesDashedRing;
|
|
12
|
+
zRingHelper?: AxesDashedRing;
|
|
13
|
+
xAngleHelper?: Sector;
|
|
14
|
+
yAngleHelper?: Sector;
|
|
15
|
+
zAngleHelper?: Sector;
|
|
16
16
|
angleTips?: ReturnType<typeof tipsDom>;
|
|
17
17
|
private container?;
|
|
18
|
-
constructor(originObject3D: Object3D,
|
|
19
|
-
container
|
|
18
|
+
constructor(originObject3D: Object3D, config?: {
|
|
19
|
+
container?: HTMLElement;
|
|
20
|
+
yzCircleEnable?: boolean;
|
|
21
|
+
xzCircleEnable?: boolean;
|
|
22
|
+
xyCircleEnable?: boolean;
|
|
20
23
|
});
|
|
21
24
|
updateAngleHelperQuaternion(): void;
|
|
22
25
|
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import type { OutlineHelper } from './Helper';
|
|
2
1
|
import type { Object3DHelperEventMap, Object3DHelperState } from './typings';
|
|
3
|
-
import type {
|
|
4
|
-
import type { RotateController } from './Controller/RotateController';
|
|
5
|
-
import type { BaseController } from './Base/BaseController';
|
|
2
|
+
import type { ObjectHelperControllers } from './typings';
|
|
6
3
|
import { Subscribe } from '../Subscribe';
|
|
7
|
-
interface Controllers {
|
|
8
|
-
moveController?: MoveController;
|
|
9
|
-
rotateController?: RotateController;
|
|
10
|
-
scaleController?: BaseController;
|
|
11
|
-
}
|
|
12
|
-
interface Helpers {
|
|
13
|
-
outlineHelper?: OutlineHelper;
|
|
14
|
-
}
|
|
15
4
|
export declare class Object3DHelper {
|
|
16
|
-
controllers:
|
|
5
|
+
controllers: ObjectHelperControllers;
|
|
17
6
|
state: Object3DHelperState;
|
|
18
7
|
hooks: Subscribe<Object3DHelperEventMap>;
|
|
19
|
-
private helpers;
|
|
20
8
|
private eventListener;
|
|
21
|
-
constructor(controllers?:
|
|
9
|
+
constructor(controllers?: ObjectHelperControllers);
|
|
22
10
|
/**
|
|
23
11
|
* @description Show guide line
|
|
24
12
|
*/
|
|
@@ -50,22 +38,11 @@ export declare class Object3DHelper {
|
|
|
50
38
|
setState(state: Partial<Object3DHelperState>, options?: {
|
|
51
39
|
userAction?: boolean;
|
|
52
40
|
} & Record<string, any>): void;
|
|
53
|
-
addControllers(controllers:
|
|
54
|
-
addHelpers(helpers: Partial<{
|
|
55
|
-
[K in keyof Helpers]: Helpers[K];
|
|
56
|
-
}>): void;
|
|
41
|
+
addControllers(controllers: ObjectHelperControllers): void;
|
|
57
42
|
getCurrentState(): Object3DHelperState;
|
|
58
|
-
private addEventListener;
|
|
59
|
-
private handleEnd;
|
|
60
|
-
private handleStart;
|
|
61
|
-
private setOtherHelpersVisible;
|
|
62
|
-
private handlePositionUpdate;
|
|
63
|
-
private handleScaleUpdate;
|
|
64
|
-
private handleRotateUpdate;
|
|
65
43
|
private handleEnable;
|
|
66
44
|
private handleVisible;
|
|
67
45
|
private everyControllerDo;
|
|
68
46
|
private handleDispose;
|
|
69
47
|
private actionIfStateIsEnabled;
|
|
70
48
|
}
|
|
71
|
-
export {};
|
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
2
|
export declare type HelperEventMap = {
|
|
3
|
+
wantToMove: (position: THREE.Vector3) => void;
|
|
4
|
+
wantToRotate: (quaternion: THREE.Quaternion) => void;
|
|
5
|
+
wantToScale: (scale: THREE.Vector3) => void;
|
|
6
|
+
move: (position: THREE.Vector3) => void;
|
|
7
|
+
rotate: (quaternion: THREE.Quaternion) => void;
|
|
8
|
+
scale: (scale: THREE.Vector3) => void;
|
|
3
9
|
moveStart: () => void;
|
|
4
10
|
rotateStart: () => void;
|
|
5
11
|
scaleStart: () => void;
|
|
6
|
-
positionUpdate: (position: {
|
|
7
|
-
matrix4?: THREE.Matrix4;
|
|
8
|
-
} | undefined) => void;
|
|
9
|
-
rotateUpdate: (rotate: {
|
|
10
|
-
quaternion?: THREE.Quaternion;
|
|
11
|
-
origin: THREE.Vector3;
|
|
12
|
-
} | undefined) => void;
|
|
13
|
-
scaleUpdate: (scale: {
|
|
14
|
-
matrix4?: THREE.Matrix4;
|
|
15
|
-
origin?: THREE.Vector3;
|
|
16
|
-
helperOrigin: THREE.Vector3;
|
|
17
|
-
} | undefined) => void;
|
|
18
12
|
moveEnd: () => void;
|
|
19
13
|
rotateEnd: () => void;
|
|
20
14
|
scaleEnd: () => void;
|
|
15
|
+
setObjectPosition: (position: THREE.Vector3) => void;
|
|
16
|
+
setObjectRotate: (quaternion: THREE.Quaternion, origin: THREE.Vector3) => void;
|
|
17
|
+
setObjectScale: (scale: THREE.Vector3) => void;
|
|
18
|
+
applyObjectPosition: (position: {
|
|
19
|
+
matrix4: THREE.Matrix4;
|
|
20
|
+
}) => void;
|
|
21
|
+
applyObjectRotate: (rotate: {
|
|
22
|
+
quaternion: THREE.Quaternion;
|
|
23
|
+
origin: THREE.Vector3;
|
|
24
|
+
}) => void;
|
|
25
|
+
applyObjectScale: (scale: {
|
|
26
|
+
matrix4: THREE.Matrix4;
|
|
27
|
+
origin?: THREE.Vector3;
|
|
28
|
+
}) => void;
|
|
29
|
+
moveByMouseEnable: () => void;
|
|
30
|
+
moveByMouseDisable: () => void;
|
|
21
31
|
};
|
|
22
32
|
export interface Object3DHelperState {
|
|
23
33
|
enabled: boolean;
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
|
+
import type { MoveController } from '../Controller/MoveController';
|
|
3
|
+
import type { RotateController } from '../Controller/RotateController';
|
|
4
|
+
import type { BoundingBoxController } from '../Controller/BoundingBoxController';
|
|
5
|
+
import { ScaleController } from '../Controller/ScaleController';
|
|
2
6
|
export * from './Scissor';
|
|
3
7
|
export * from './Direction';
|
|
4
8
|
export * from './Hooks';
|
|
9
|
+
export interface HelperOffset {
|
|
10
|
+
x: number | {
|
|
11
|
+
percents: number;
|
|
12
|
+
};
|
|
13
|
+
y: number | {
|
|
14
|
+
percents: number;
|
|
15
|
+
};
|
|
16
|
+
z: number | {
|
|
17
|
+
percents: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
5
20
|
export declare type Color = THREE.Color | string | number;
|
|
21
|
+
export declare type ClassFunctionParameters<C extends new (...params: any[]) => any, F extends keyof InstanceType<C>> = Parameters<InstanceType<C>[F]>;
|
|
22
|
+
export interface ObjectHelperControllers {
|
|
23
|
+
moveController?: MoveController;
|
|
24
|
+
rotateController?: RotateController;
|
|
25
|
+
scaleController?: ScaleController;
|
|
26
|
+
boundingBoxController?: BoundingBoxController;
|
|
27
|
+
}
|