@realsee/dnalogel 2.6.6 → 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 +5075 -4664
- 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 +15 -14
- 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/Text/FlyMText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
- 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/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 +4 -2
- 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,94 +1,122 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { BaseController as
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var T = (f, p, o) => p in f ? O(f, p, { enumerable: !0, configurable: !0, writable: !0, value: o }) : f[p] = o;
|
|
3
|
+
var m = (f, p, o) => (T(f, typeof p != "symbol" ? p + "" : p, o), o);
|
|
4
|
+
import { BaseController as R } from "../Base/BaseController.js";
|
|
5
5
|
import * as i from "three";
|
|
6
|
-
import { getMouseRaycaster as
|
|
7
|
-
class
|
|
8
|
-
constructor(...
|
|
9
|
-
super(...
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
import { getMouseRaycaster as A } from "../utils/getMouseRaycaster.js";
|
|
7
|
+
class Q extends R {
|
|
8
|
+
constructor(...o) {
|
|
9
|
+
super(...o);
|
|
10
|
+
m(this, "name", "RotateController");
|
|
11
|
+
m(this, "startInfo");
|
|
12
|
+
m(this, "lastRotation");
|
|
13
|
+
m(this, "rotations", []);
|
|
14
|
+
m(this, "helperObject3DQuaternion", this.originObject3D.quaternion.clone());
|
|
15
|
+
m(this, "removeListener");
|
|
14
16
|
const t = this.helperObject3D;
|
|
15
17
|
this.hoverListener([t.xyCircle, t.xzCircle, t.yzCircle]);
|
|
16
|
-
const e = this.dragStart.bind(this), r = this.dragging.bind(this),
|
|
17
|
-
this.domEvents.addEventListener(this.helperObject3D, "mousedown", e), document.addEventListener("mousemove", r), document.addEventListener("mouseup",
|
|
18
|
+
const e = this.dragStart.bind(this), r = this.dragging.bind(this), s = this.dragEnd.bind(this), n = this.show.bind(this), c = this.hide.bind(this);
|
|
19
|
+
this.domEvents.addEventListener(this.helperObject3D, "mousedown", e), document.addEventListener("mousemove", r), document.addEventListener("mouseup", s), this.hooks.on("moveStart", c), this.hooks.on("moveEnd", n), this.hooks.on("moveByMouseEnable", c), this.hooks.on("moveByMouseDisable", n), this.removeListener = () => {
|
|
20
|
+
this.domEvents.removeEventListener(this.helperObject3D, "mousedown", e), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", s), this.hooks.off("moveStart", c), this.hooks.off("moveEnd", n), this.hooks.off("moveByMouseEnable", c), this.hooks.off("moveByMouseDisable", n);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
get rotateCenter() {
|
|
24
|
+
return this.helperObject3D.position.clone();
|
|
18
25
|
}
|
|
19
26
|
initialHelperQuaternion() {
|
|
20
27
|
this.helperObject3D.updateAngleHelperQuaternion(), this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion);
|
|
21
28
|
}
|
|
22
|
-
|
|
29
|
+
setRotateAngle(o) {
|
|
30
|
+
const { x: t = 0, y: e = 0, z: r = 0 } = o, s = new i.Euler(Math.PI * t / 180, Math.PI * e / 180, Math.PI * r / 180), n = new i.Quaternion().setFromEuler(s);
|
|
31
|
+
if (this.hooks.emit("wantToRotate", n))
|
|
32
|
+
return;
|
|
33
|
+
const { originObject3D: a, rotateCenter: g } = this;
|
|
34
|
+
if (g) {
|
|
35
|
+
const l = new i.Vector3().subVectors(a.position, g).applyQuaternion(n).add(g);
|
|
36
|
+
a.position.copy(l);
|
|
37
|
+
}
|
|
38
|
+
a.quaternion.copy(n), this.helperObject3DQuaternion.copy(n), this.hooks.emit("setObjectRotate", n, g), this.hooks.emit("rotate", n), this.render();
|
|
39
|
+
}
|
|
40
|
+
dispose() {
|
|
41
|
+
this.removeListener(), super.dispose();
|
|
42
|
+
}
|
|
43
|
+
onApplyOriginObjectScale(o) {
|
|
44
|
+
}
|
|
45
|
+
dragStart(o) {
|
|
23
46
|
if (this.isDragging)
|
|
24
47
|
return;
|
|
25
|
-
const t =
|
|
48
|
+
const t = o == null ? void 0 : o.intersect;
|
|
26
49
|
if (!t)
|
|
27
50
|
return this.dragEnd();
|
|
28
51
|
const e = (t == null ? void 0 : t.object).direction;
|
|
29
52
|
if (!e)
|
|
30
53
|
return this.dragEnd();
|
|
31
54
|
this.helperObject3D.updateAngleHelperQuaternion();
|
|
32
|
-
const r = t.point,
|
|
55
|
+
const r = t.point, s = this.getAngleHelper(e);
|
|
33
56
|
this.setTipsAngle(0);
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
const
|
|
57
|
+
const n = r.clone();
|
|
58
|
+
n.y += 0.2, this.setTipsPosition(n);
|
|
59
|
+
const c = new i.Vector3(1, 0, 0).applyQuaternion(this.helperObject3DQuaternion), a = new i.Vector3(0, 1, 0).applyQuaternion(this.helperObject3DQuaternion), g = new i.Vector3(0, 0, 1).applyQuaternion(this.helperObject3DQuaternion), l = (() => {
|
|
37
60
|
switch (e) {
|
|
38
61
|
case "x":
|
|
39
|
-
return
|
|
62
|
+
return c;
|
|
40
63
|
case "y":
|
|
41
|
-
return
|
|
64
|
+
return a;
|
|
42
65
|
case "z":
|
|
43
|
-
return
|
|
66
|
+
return g;
|
|
44
67
|
}
|
|
45
|
-
})(),
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
this.setAngleHelperStart(e,
|
|
68
|
+
})(), b = new i.Plane().setFromNormalAndCoplanarPoint(l, r), u = new i.Vector3();
|
|
69
|
+
b.projectPoint(r.clone(), u);
|
|
70
|
+
const h = u.clone().sub(this.rotateCenter), D = h.clone(), E = h.angleTo(s.baseAxes);
|
|
71
|
+
this.setAngleHelperStart(e, E), this.setAngleHelperLength(e, 0), this.rotations.push({ vector: h.clone(), direction: !0 }), this.startInfo = { direction: e, startVector: h, staticStartVector: D, plane: b, angleHelper: s }, this.helperObject3D.showDraggingHelper([e]), this.hooks.emit("rotateStart"), this.isDragging = !0, console.log(`%c RotateController dragStart ${e}`, "color: #e5af2e");
|
|
49
72
|
}
|
|
50
|
-
dragging(
|
|
73
|
+
dragging(o) {
|
|
51
74
|
var e;
|
|
52
75
|
if (!this.isDragging)
|
|
53
76
|
return;
|
|
54
|
-
const t =
|
|
77
|
+
const t = A(this.camera, o, this.container);
|
|
55
78
|
return t ? (console.log(`%c RotateController dragging ${(e = this.startInfo) == null ? void 0 : e.direction}`, "color: #49de1b"), this.rotate(t), !1) : this.dragEnd();
|
|
56
79
|
}
|
|
57
|
-
rotate(
|
|
80
|
+
rotate(o) {
|
|
58
81
|
if (!this.startInfo)
|
|
59
82
|
return this.dragEnd();
|
|
60
|
-
const { startVector: t, plane: e, angleHelper: r, staticStartVector:
|
|
61
|
-
if (!
|
|
83
|
+
const { startVector: t, plane: e, angleHelper: r, staticStartVector: s, direction: n } = this.startInfo, c = o.ray.intersectPlane(e, new i.Vector3());
|
|
84
|
+
if (!c)
|
|
62
85
|
return;
|
|
63
|
-
const
|
|
64
|
-
e.projectPoint(
|
|
65
|
-
const
|
|
66
|
-
if (t.angleTo(
|
|
86
|
+
const a = this.rotateCenter, g = new i.Vector3();
|
|
87
|
+
e.projectPoint(c.clone(), g);
|
|
88
|
+
const l = g.clone().sub(a);
|
|
89
|
+
if (t.angleTo(l) === 0 || (this.lastRotation === void 0 && (this.lastRotation = { angle: 0 }), this.rotations.length === 0))
|
|
67
90
|
return;
|
|
68
|
-
const
|
|
91
|
+
const b = (() => {
|
|
69
92
|
if (this.rotations.length === 1)
|
|
70
|
-
return
|
|
93
|
+
return l.angleTo(r.baseAxes) > s.angleTo(r.baseAxes);
|
|
71
94
|
{
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
95
|
+
const d = this.rotations[this.rotations.length - 1], w = this.rotations[this.rotations.length - 2], y = l.angleTo(w.vector), v = l.angleTo(d.vector), j = d.vector.angleTo(w.vector);
|
|
96
|
+
if (j === 0 || v === 0 || y === 0)
|
|
74
97
|
return;
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
if (
|
|
78
|
-
return !
|
|
98
|
+
if (y > v && y > j)
|
|
99
|
+
return d.direction;
|
|
100
|
+
if (y < j && v < j || y < v && v > j)
|
|
101
|
+
return !d.direction;
|
|
79
102
|
}
|
|
80
103
|
})();
|
|
81
|
-
if (
|
|
104
|
+
if (b === void 0)
|
|
82
105
|
return console.warn("rotationDirection is undefined");
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
106
|
+
const u = new i.Quaternion().setFromUnitVectors(t.clone().normalize(), l.clone().normalize()), { originObject3D: h } = this, D = h.quaternion.clone().premultiply(u);
|
|
107
|
+
if (!this.hooks.emit("wantToRotate", D)) {
|
|
108
|
+
if (this.rotations.push({ vector: l, direction: b }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + l.angleTo(t) * (b ? 1 : -1), this.setAngleHelperLength(n, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180), a) {
|
|
109
|
+
const d = new i.Vector3().subVectors(h.position, a).applyQuaternion(u).add(a);
|
|
110
|
+
h.position.copy(d);
|
|
111
|
+
}
|
|
112
|
+
h.applyQuaternion(u), this.helperObject3DQuaternion.premultiply(u), this.hooks.emit("applyObjectRotate", { quaternion: u, origin: a }), this.hooks.emit("rotate", h.quaternion), this.startInfo.startVector = l;
|
|
113
|
+
}
|
|
86
114
|
}
|
|
87
115
|
dragEnd() {
|
|
88
116
|
!this.isDragging || (console.log("%c RotateController dragEnd", "color: #e94e4e"), this.startInfo = void 0, this.isDragging = !1, this.lastRotation = void 0, this.rotations = [], this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
|
|
89
117
|
}
|
|
90
|
-
getAngleHelper(
|
|
91
|
-
switch (
|
|
118
|
+
getAngleHelper(o) {
|
|
119
|
+
switch (o) {
|
|
92
120
|
case "x":
|
|
93
121
|
return this.helperObject3D.xAngleHelper;
|
|
94
122
|
case "y":
|
|
@@ -97,38 +125,38 @@ class C extends O {
|
|
|
97
125
|
return this.helperObject3D.zAngleHelper;
|
|
98
126
|
}
|
|
99
127
|
}
|
|
100
|
-
setAngleHelperStart(
|
|
101
|
-
const e = this.getAngleHelper(
|
|
128
|
+
setAngleHelperStart(o, t) {
|
|
129
|
+
const e = this.getAngleHelper(o);
|
|
102
130
|
if (e instanceof i.Mesh && e.geometry instanceof i.CircleGeometry) {
|
|
103
|
-
const { radius: r, segments:
|
|
104
|
-
e.geometry = new i.CircleGeometry(r,
|
|
131
|
+
const { radius: r, segments: s, thetaLength: n } = e.geometry.parameters;
|
|
132
|
+
e.geometry = new i.CircleGeometry(r, s, t, n);
|
|
105
133
|
} else
|
|
106
134
|
console.warn("only support THREE.CircleGeometry");
|
|
107
135
|
}
|
|
108
|
-
setAngleHelperLength(
|
|
109
|
-
const r = t >= 0 ? Math.max(t, 1e-3) : Math.min(t, -1e-3),
|
|
110
|
-
if (
|
|
111
|
-
const { radius:
|
|
112
|
-
|
|
136
|
+
setAngleHelperLength(o, t) {
|
|
137
|
+
const r = t >= 0 ? Math.max(t, 1e-3) : Math.min(t, -1e-3), s = this.getAngleHelper(o);
|
|
138
|
+
if (s instanceof i.Mesh && s.geometry instanceof i.CircleGeometry) {
|
|
139
|
+
const { radius: n, thetaStart: c } = s.geometry.parameters, a = Math.ceil(Math.abs(r) * (40 / (2 * Math.PI)));
|
|
140
|
+
s.geometry = new i.CircleGeometry(n, a, c, r);
|
|
113
141
|
} else
|
|
114
142
|
console.warn("only support THREE.CircleGeometry");
|
|
115
143
|
}
|
|
116
|
-
setTipsAngle(
|
|
144
|
+
setTipsAngle(o) {
|
|
117
145
|
var e;
|
|
118
146
|
const t = (e = this.helperObject3D.angleTips) == null ? void 0 : e.element;
|
|
119
|
-
!t || (t.innerText = `${
|
|
147
|
+
!t || (t.innerText = `${o.toFixed(0)}\xB0`);
|
|
120
148
|
}
|
|
121
|
-
setTipsPosition(
|
|
149
|
+
setTipsPosition(o) {
|
|
122
150
|
const t = this.helperObject3D.angleTips;
|
|
123
151
|
if (!t)
|
|
124
152
|
return;
|
|
125
|
-
const e =
|
|
126
|
-
if (
|
|
153
|
+
const e = o.project(this.camera), { x: r, y: s, z: n } = e;
|
|
154
|
+
if (n > 1)
|
|
127
155
|
return;
|
|
128
|
-
const
|
|
129
|
-
t.setLeftTop(
|
|
156
|
+
const c = (r + 1) / 2 * 100 + "%", a = (-s + 1) / 2 * 100 + "%";
|
|
157
|
+
t.setLeftTop(c, a);
|
|
130
158
|
}
|
|
131
159
|
}
|
|
132
160
|
export {
|
|
133
|
-
|
|
161
|
+
Q as RotateController
|
|
134
162
|
};
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var f = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var a = (o, t, e) => (f(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { BaseController as p } from "../Base/BaseController.js";
|
|
5
|
+
import * as y from "three";
|
|
6
|
+
class u extends p {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e);
|
|
9
|
+
a(this, "name", "ScaleController");
|
|
10
|
+
}
|
|
11
|
+
setScale(e) {
|
|
12
|
+
var i, l, m;
|
|
13
|
+
let c = 1, n = 1, s = 1;
|
|
14
|
+
typeof e == "number" ? (c = e, n = e, s = e) : typeof e == "object" && (c = (i = e.x) != null ? i : 1, n = (l = e.y) != null ? l : 1, s = (m = e.z) != null ? m : 1);
|
|
15
|
+
const r = new y.Vector3(c, n, s);
|
|
16
|
+
this.hooks.emit("wantToScale", r) || (this.originObject3D.scale.copy(r), this.hooks.emit("setObjectScale", r), this.hooks.emit("scale", r), this.render());
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
u as ScaleController
|
|
21
|
+
};
|
package/libs/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;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var p = (n, s, i) => s in n ? a(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i;
|
|
3
|
+
var r = (n, s, i) => (p(n, typeof s != "symbol" ? s + "" : s, i), i);
|
|
4
|
+
import * as o from "three";
|
|
5
|
+
import { BoundingBoxHelperAbstract as b } from "../Base/BaseHelper.js";
|
|
6
|
+
import { boundingBox as c } from "../utils/boundingBox.js";
|
|
7
|
+
class A extends b {
|
|
8
|
+
constructor(i) {
|
|
9
|
+
super(i);
|
|
10
|
+
r(this, "box");
|
|
11
|
+
r(this, "outline");
|
|
12
|
+
r(this, "originObject");
|
|
13
|
+
r(this, "positionAttribute");
|
|
14
|
+
this.originObject = i, this.positionAttribute = new o.BufferAttribute(new Float32Array(8 * 3), 3), this.box = this.createBox(), this.outline = this.createOutline(), this.add(this.box, this.outline), this.update();
|
|
15
|
+
}
|
|
16
|
+
update() {
|
|
17
|
+
const i = c(this.originObject);
|
|
18
|
+
if (!i)
|
|
19
|
+
return;
|
|
20
|
+
const { min: t, max: e } = i;
|
|
21
|
+
this.positionAttribute.setXYZ(0, e.x, e.y, e.z), this.positionAttribute.setXYZ(1, t.x, e.y, e.z), this.positionAttribute.setXYZ(2, t.x, t.y, e.z), this.positionAttribute.setXYZ(3, e.x, t.y, e.z), this.positionAttribute.setXYZ(4, e.x, e.y, t.z), this.positionAttribute.setXYZ(5, t.x, e.y, t.z), this.positionAttribute.setXYZ(6, t.x, t.y, t.z), this.positionAttribute.setXYZ(7, e.x, t.y, t.z), this.positionAttribute.needsUpdate = !0;
|
|
22
|
+
}
|
|
23
|
+
createOutline() {
|
|
24
|
+
const i = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), t = new o.BufferGeometry();
|
|
25
|
+
t.setIndex(new o.BufferAttribute(i, 1)), t.setAttribute("position", this.positionAttribute);
|
|
26
|
+
const e = new o.LineBasicMaterial({
|
|
27
|
+
color: 64767,
|
|
28
|
+
linewidth: 1,
|
|
29
|
+
opacity: 1,
|
|
30
|
+
depthTest: !1,
|
|
31
|
+
transparent: !0,
|
|
32
|
+
toneMapped: !1
|
|
33
|
+
}), u = new o.LineSegments(t, e);
|
|
34
|
+
return u.matrixAutoUpdate = !1, u;
|
|
35
|
+
}
|
|
36
|
+
createBox() {
|
|
37
|
+
const i = new Uint16Array([
|
|
38
|
+
0,
|
|
39
|
+
1,
|
|
40
|
+
2,
|
|
41
|
+
0,
|
|
42
|
+
2,
|
|
43
|
+
3,
|
|
44
|
+
0,
|
|
45
|
+
3,
|
|
46
|
+
7,
|
|
47
|
+
0,
|
|
48
|
+
7,
|
|
49
|
+
4,
|
|
50
|
+
0,
|
|
51
|
+
4,
|
|
52
|
+
5,
|
|
53
|
+
0,
|
|
54
|
+
5,
|
|
55
|
+
1,
|
|
56
|
+
6,
|
|
57
|
+
1,
|
|
58
|
+
5,
|
|
59
|
+
6,
|
|
60
|
+
2,
|
|
61
|
+
1,
|
|
62
|
+
6,
|
|
63
|
+
5,
|
|
64
|
+
4,
|
|
65
|
+
6,
|
|
66
|
+
4,
|
|
67
|
+
7,
|
|
68
|
+
6,
|
|
69
|
+
3,
|
|
70
|
+
2,
|
|
71
|
+
6,
|
|
72
|
+
7,
|
|
73
|
+
3
|
|
74
|
+
]), t = new o.BufferGeometry();
|
|
75
|
+
t.setIndex(new o.BufferAttribute(i, 1)), t.setAttribute("position", this.positionAttribute);
|
|
76
|
+
const e = new o.MeshBasicMaterial({
|
|
77
|
+
color: 64767,
|
|
78
|
+
opacity: 0.1,
|
|
79
|
+
depthTest: !1,
|
|
80
|
+
transparent: !0
|
|
81
|
+
});
|
|
82
|
+
return new o.Mesh(t, e);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
A as BoundingBoxHelper
|
|
87
|
+
};
|
|
@@ -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;
|
package/libs/shared-utils/Object3DHelper/Helper/{RectangleScaleHelper.js → CSS3DScaleHelper.js}
RENAMED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var u = (c, n, e) => n in c ? d(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e;
|
|
3
3
|
var i = (c, n, e) => (u(c, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
-
import { CSS3DRender as
|
|
4
|
+
import { CSS3DRender as D } from "../../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
5
5
|
import * as p from "three";
|
|
6
|
-
import { RectangleScaleHelperAbstract as
|
|
7
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
6
|
+
import { RectangleScaleHelperAbstract as b } from "../Base/BaseHelper.js";
|
|
8
7
|
import { rectangleScaleDom as f } from "./HTML/rectangleScaleDom.js";
|
|
9
|
-
|
|
10
|
-
class g extends D {
|
|
8
|
+
class O extends b {
|
|
11
9
|
constructor(e, t, s, o) {
|
|
12
10
|
super(e);
|
|
13
11
|
i(this, "points", []);
|
|
14
12
|
i(this, "cornerPositions", []);
|
|
15
13
|
i(this, "css3DInstance");
|
|
16
14
|
i(this, "plane");
|
|
17
|
-
i(this, "css3DRenderer", new
|
|
15
|
+
i(this, "css3DRenderer", new D());
|
|
18
16
|
i(this, "camera");
|
|
19
17
|
i(this, "scene");
|
|
20
18
|
i(this, "container");
|
|
@@ -123,5 +121,5 @@ class g extends D {
|
|
|
123
121
|
}
|
|
124
122
|
}
|
|
125
123
|
export {
|
|
126
|
-
|
|
124
|
+
O as CSS3DScaleHelper
|
|
127
125
|
};
|
|
@@ -2,18 +2,16 @@ var w = Object.defineProperty;
|
|
|
2
2
|
var h = (i, o, r) => o in i ? w(i, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[o] = r;
|
|
3
3
|
var s = (i, o, r) => (h(i, typeof o != "symbol" ? o + "" : o, r), r);
|
|
4
4
|
import { MoveHelperAbstract as A } from "../Base/BaseHelper.js";
|
|
5
|
-
import { ArrowGroup as
|
|
6
|
-
import { AXES_THREE_COLOR as
|
|
5
|
+
import { ArrowGroup as e } from "./Objects/ArrowGroup.js";
|
|
6
|
+
import { AXES_THREE_COLOR as t } from "../Constants/color.js";
|
|
7
7
|
import "three";
|
|
8
8
|
import "../../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
9
|
-
|
|
10
|
-
import "./OutlineHelper.js";
|
|
11
|
-
class x extends A {
|
|
9
|
+
class m extends A {
|
|
12
10
|
constructor(r) {
|
|
13
11
|
super(r);
|
|
14
|
-
s(this, "xArrow", new
|
|
15
|
-
s(this, "yArrow", new
|
|
16
|
-
s(this, "zArrow", new
|
|
12
|
+
s(this, "xArrow", new e({ direction: "x", color: t.X }));
|
|
13
|
+
s(this, "yArrow", new e({ direction: "y", color: t.Y }));
|
|
14
|
+
s(this, "zArrow", new e({ direction: "z", color: t.Z }));
|
|
17
15
|
this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
|
|
18
16
|
}
|
|
19
17
|
show() {
|
|
@@ -27,5 +25,5 @@ class x extends A {
|
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
export {
|
|
30
|
-
|
|
28
|
+
m as MoveHelper
|
|
31
29
|
};
|
|
@@ -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;
|