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.
@@ -733,10 +733,12 @@ declare module BABYLON {
733
733
  globalState: GlobalState;
734
734
  control: BABYLON.GUI.Line;
735
735
  }
736
+ /**
737
+ * This class represents the gizmo drawn on a line Control.
738
+ */
736
739
  export function GizmoLine(props: IGizmoLineProps): JSX.Element;
737
740
 
738
741
 
739
- /// <reference types="react" />
740
742
  export enum ScalePointPosition {
741
743
  Top = -1,
742
744
  Left = -1,
@@ -751,16 +753,18 @@ declare module BABYLON {
751
753
  rotation: number;
752
754
  isPivot: boolean;
753
755
  defaultRotation: number;
756
+ id?: number;
754
757
  }
755
758
  interface IGizmoScalePointProps {
756
759
  scalePoint: IScalePoint;
757
760
  clickable: boolean;
758
761
  key: number;
759
- onDrag: () => void;
760
- onRotate: () => void;
762
+ onDrag: (event?: React.PointerEvent<HTMLDivElement>, scalePoint?: IScalePoint) => void;
763
+ onRotate: (event?: React.PointerEvent<HTMLDivElement>, scalePoint?: IScalePoint) => void;
761
764
  onUp: () => void;
762
765
  overrideCursor?: string;
763
766
  canRotate: boolean;
767
+ allowClickOnPivot?: boolean;
764
768
  }
765
769
  export function GizmoScalePoint(props: IGizmoScalePointProps): JSX.Element;
766
770