Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babylonjs-gui

Package Overview
Dependencies
Maintainers
1
Versions
641
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babylonjs-gui - npm Package Compare versions

Comparing version 3.2.0-alpha7 to 3.2.0-alpha8

77

babylon.gui.d.ts

@@ -21,3 +21,5 @@

_lastControlDown: Nullable<Control>;
_capturingControl: Nullable<Control>;
_capturingControl: {
[pointerId: number]: Control;
};
_shouldBlockPointer: boolean;

@@ -53,3 +55,3 @@ _layerToDispose: Nullable<Layer>;

private _render();
private _doPicking(x, y, type, buttonIndex);
private _doPicking(x, y, type, pointerId, buttonIndex);
attach(): void;

@@ -168,2 +170,3 @@ attachToMesh(mesh: AbstractMesh, supportPointerMove?: boolean): void;

private _isDirty;
_tempParentMeasure: Measure;
protected _cachedParentMeasure: Measure;

@@ -194,2 +197,3 @@ private _paddingLeft;

private _doNotRender;
private _downPointerIds;
isHitTestVisible: boolean;

@@ -254,2 +258,4 @@ isPointerBlocker: boolean;

fontStyle: string;
/** @ignore */
readonly _isFontSizeInPercentage: boolean;
readonly fontSizeInPixels: number;

@@ -282,2 +288,4 @@ fontSize: string | number;

protected _getTypeName(): string;
/** @ignore */
_resetFontCache(): void;
getLocalCoordinates(globalCoordinates: Vector2): Vector2;

@@ -303,10 +311,10 @@ getLocalCoordinatesToRef(globalCoordinates: Vector2, result: Vector2): Control;

contains(x: number, y: number): boolean;
_processPicking(x: number, y: number, type: number, buttonIndex: number): boolean;
_processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number): boolean;
_onPointerMove(target: Control, coordinates: Vector2): void;
_onPointerEnter(target: Control): boolean;
_onPointerOut(target: Control): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
forcePointerUp(): void;
_processObservables(type: number, x: number, y: number, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
forcePointerUp(pointerId?: Nullable<number>): void;
_processObservables(type: number, x: number, y: number, pointerId: number, buttonIndex: number): boolean;
private _prepareFont();

@@ -362,3 +370,3 @@ dispose(): void;

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_processPicking(x: number, y: number, type: number, buttonIndex: number): boolean;
_processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number): boolean;
protected _clipForChildren(context: CanvasRenderingContext2D): void;

@@ -447,3 +455,15 @@ protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

protected _computeAlignment(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_moveToProjectedPosition(projectedPosition: Vector3): void;
/**
* Move one end of the line given 3D cartesian coordinates.
* @param position Targeted world position
* @param scene Scene
* @param end (opt) Set to true to assign x2 and y2 coordinates of the line. Default assign to x1 and y1.
*/
moveToVector3(position: Vector3, scene: Scene, end?: boolean): void;
/**
* Move one end of the line to a position in screen absolute space.
* @param projectedPosition Position in screen absolute space (X, Y)
* @param end (opt) Set to true to assign x2 and y2 coordinates of the line. Default assign to x1 and y1.
*/
_moveToProjectedPosition(projectedPosition: Vector3, end?: boolean): void;
}

@@ -482,5 +502,5 @@ }

private _updateValueFromPointer(x, y);
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerMove(target: Control, coordinates: Vector2): void;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
}

@@ -505,3 +525,3 @@ }

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
}

@@ -527,3 +547,3 @@ }

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
}

@@ -546,2 +566,4 @@ }

private _lineSpacing;
private _outlineWidth;
private _outlineColor;
/**

@@ -604,2 +626,16 @@ * An event triggered after the text is changed

/**
* Gets or sets outlineWidth of the text to display
*/
/**
* Gets or sets outlineWidth of the text to display
*/
outlineWidth: number;
/**
* Gets or sets outlineColor of the text to display
*/
/**
* Gets or sets outlineColor of the text to display
*/
outlineColor: string;
/**
* Creates a new TextBlock object

@@ -618,2 +654,3 @@ * @param name defines the name of the control

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
protected _applyStates(context: CanvasRenderingContext2D): void;
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

@@ -683,7 +720,7 @@ protected _parseLine(line: string | undefined, context: CanvasRenderingContext2D): object;

protected _getTypeName(): string;
_processPicking(x: number, y: number, type: number, buttonIndex: number): boolean;
_processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number): boolean;
_onPointerEnter(target: Control): boolean;
_onPointerOut(target: Control): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
static CreateImageButton(name: string, text: string, imageUrl: string): Button;

@@ -729,5 +766,5 @@ static CreateImageOnlyButton(name: string, imageUrl: string): Button;

private _isPointOnWheel(coordinates);
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerMove(target: Control, coordinates: Vector2): void;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
}

@@ -779,4 +816,4 @@ }

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
dispose(): void;

@@ -783,0 +820,0 @@ }

@@ -27,3 +27,5 @@ /// <reference types="babylonjs"/>

_lastControlDown: Nullable<Control>;
_capturingControl: Nullable<Control>;
_capturingControl: {
[pointerId: number]: Control;
};
_shouldBlockPointer: boolean;

@@ -59,3 +61,3 @@ _layerToDispose: Nullable<Layer>;

private _render();
private _doPicking(x, y, type, buttonIndex);
private _doPicking(x, y, type, pointerId, buttonIndex);
attach(): void;

@@ -174,2 +176,3 @@ attachToMesh(mesh: AbstractMesh, supportPointerMove?: boolean): void;

private _isDirty;
_tempParentMeasure: Measure;
protected _cachedParentMeasure: Measure;

@@ -200,2 +203,3 @@ private _paddingLeft;

private _doNotRender;
private _downPointerIds;
isHitTestVisible: boolean;

@@ -260,2 +264,4 @@ isPointerBlocker: boolean;

fontStyle: string;
/** @ignore */
readonly _isFontSizeInPercentage: boolean;
readonly fontSizeInPixels: number;

@@ -288,2 +294,4 @@ fontSize: string | number;

protected _getTypeName(): string;
/** @ignore */
_resetFontCache(): void;
getLocalCoordinates(globalCoordinates: Vector2): Vector2;

@@ -309,10 +317,10 @@ getLocalCoordinatesToRef(globalCoordinates: Vector2, result: Vector2): Control;

contains(x: number, y: number): boolean;
_processPicking(x: number, y: number, type: number, buttonIndex: number): boolean;
_processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number): boolean;
_onPointerMove(target: Control, coordinates: Vector2): void;
_onPointerEnter(target: Control): boolean;
_onPointerOut(target: Control): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
forcePointerUp(): void;
_processObservables(type: number, x: number, y: number, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
forcePointerUp(pointerId?: Nullable<number>): void;
_processObservables(type: number, x: number, y: number, pointerId: number, buttonIndex: number): boolean;
private _prepareFont();

@@ -368,3 +376,3 @@ dispose(): void;

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_processPicking(x: number, y: number, type: number, buttonIndex: number): boolean;
_processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number): boolean;
protected _clipForChildren(context: CanvasRenderingContext2D): void;

@@ -453,3 +461,15 @@ protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

protected _computeAlignment(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_moveToProjectedPosition(projectedPosition: Vector3): void;
/**
* Move one end of the line given 3D cartesian coordinates.
* @param position Targeted world position
* @param scene Scene
* @param end (opt) Set to true to assign x2 and y2 coordinates of the line. Default assign to x1 and y1.
*/
moveToVector3(position: Vector3, scene: Scene, end?: boolean): void;
/**
* Move one end of the line to a position in screen absolute space.
* @param projectedPosition Position in screen absolute space (X, Y)
* @param end (opt) Set to true to assign x2 and y2 coordinates of the line. Default assign to x1 and y1.
*/
_moveToProjectedPosition(projectedPosition: Vector3, end?: boolean): void;
}

@@ -488,5 +508,5 @@ }

private _updateValueFromPointer(x, y);
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerMove(target: Control, coordinates: Vector2): void;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
}

@@ -511,3 +531,3 @@ }

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
}

@@ -533,3 +553,3 @@ }

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
}

@@ -552,2 +572,4 @@ }

private _lineSpacing;
private _outlineWidth;
private _outlineColor;
/**

@@ -610,2 +632,16 @@ * An event triggered after the text is changed

/**
* Gets or sets outlineWidth of the text to display
*/
/**
* Gets or sets outlineWidth of the text to display
*/
outlineWidth: number;
/**
* Gets or sets outlineColor of the text to display
*/
/**
* Gets or sets outlineColor of the text to display
*/
outlineColor: string;
/**
* Creates a new TextBlock object

@@ -624,2 +660,3 @@ * @param name defines the name of the control

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
protected _applyStates(context: CanvasRenderingContext2D): void;
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

@@ -689,7 +726,7 @@ protected _parseLine(line: string | undefined, context: CanvasRenderingContext2D): object;

protected _getTypeName(): string;
_processPicking(x: number, y: number, type: number, buttonIndex: number): boolean;
_processPicking(x: number, y: number, type: number, pointerId: number, buttonIndex: number): boolean;
_onPointerEnter(target: Control): boolean;
_onPointerOut(target: Control): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
static CreateImageButton(name: string, text: string, imageUrl: string): Button;

@@ -735,5 +772,5 @@ static CreateImageOnlyButton(name: string, imageUrl: string): Button;

private _isPointOnWheel(coordinates);
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerMove(target: Control, coordinates: Vector2): void;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
}

@@ -785,4 +822,4 @@ }

_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
_onPointerDown(target: Control, coordinates: Vector2, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, buttonIndex: number): void;
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): void;
dispose(): void;

@@ -789,0 +826,0 @@ }

@@ -7,3 +7,3 @@ {

"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
"version": "3.2.0-alpha7",
"version": "3.2.0-alpha8",
"repository": {

@@ -10,0 +10,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc