@babylonjs/gui-editor 5.40.0 → 5.41.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.
@@ -983,13 +983,16 @@ interface IGizmoLineProps {
|
|
983
983
|
globalState: GlobalState;
|
984
984
|
control: Line;
|
985
985
|
}
|
986
|
+
/**
|
987
|
+
* This class represents the gizmo drawn on a line Control.
|
988
|
+
*/
|
986
989
|
export function GizmoLine(props: IGizmoLineProps): JSX.Element;
|
987
990
|
export {};
|
988
991
|
|
989
992
|
}
|
990
993
|
declare module "@babylonjs/gui-editor/diagram/gizmoScalePoint" {
|
991
|
-
/// <reference types="react" />
|
992
994
|
import { Vector2 } from "@babylonjs/core/Maths/math";
|
995
|
+
import * as React from "react";
|
993
996
|
export enum ScalePointPosition {
|
994
997
|
Top = -1,
|
995
998
|
Left = -1,
|
@@ -1004,16 +1007,18 @@ export interface IScalePoint {
|
|
1004
1007
|
rotation: number;
|
1005
1008
|
isPivot: boolean;
|
1006
1009
|
defaultRotation: number;
|
1010
|
+
id?: number;
|
1007
1011
|
}
|
1008
1012
|
interface IGizmoScalePointProps {
|
1009
1013
|
scalePoint: IScalePoint;
|
1010
1014
|
clickable: boolean;
|
1011
1015
|
key: number;
|
1012
|
-
onDrag: () => void;
|
1013
|
-
onRotate: () => void;
|
1016
|
+
onDrag: (event?: React.PointerEvent<HTMLDivElement>, scalePoint?: IScalePoint) => void;
|
1017
|
+
onRotate: (event?: React.PointerEvent<HTMLDivElement>, scalePoint?: IScalePoint) => void;
|
1014
1018
|
onUp: () => void;
|
1015
1019
|
overrideCursor?: string;
|
1016
1020
|
canRotate: boolean;
|
1021
|
+
allowClickOnPivot?: boolean;
|
1017
1022
|
}
|
1018
1023
|
export function GizmoScalePoint(props: IGizmoScalePointProps): JSX.Element;
|
1019
1024
|
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.41.0",
|
4
4
|
"main": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^5.
|
28
|
-
"@babylonjs/gui": "^5.
|
27
|
+
"@babylonjs/core": "^5.41.0",
|
28
|
+
"@babylonjs/gui": "^5.41.0",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|