New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babylonjs-gui

Package Overview
Dependencies
Maintainers
1
Versions
673
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-alpha4 to 3.2.0-alpha6

71

babylon.gui.d.ts

@@ -59,2 +59,13 @@

static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean): AdvancedDynamicTexture;
/**
* FullScreenUI is created in a layer. This allows it to be treated like any other layer.
* As such, if you have a multi camera setup, you can set the layerMask on the GUI as well.
* When the GUI is not Created as FullscreenUI it does not respect the layerMask.
* layerMask is set through advancedTexture.layer.layerMask
* @param name name for the Texture
* @param foreground render in foreground (default is true)
* @param scene scene to be rendered in
* @param sampling method for scaling to fit screen
* @returns AdvancedDynamicTexture
*/
static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Nullable<Scene>, sampling?: number): AdvancedDynamicTexture;

@@ -513,2 +524,5 @@ }

class TextBlock extends Control {
/**
* Defines the name of the control
*/
name: string | undefined;

@@ -527,11 +541,66 @@ private _text;

onTextChangedObservable: Observable<TextBlock>;
/**
* An event triggered after the text was broken up into lines
* @type {BABYLON.Observable}
*/
onLinesReadyObservable: Observable<TextBlock>;
/**
* Return the line list (you may need to use the onLinesReadyObservable to make sure the list is ready)
*/
readonly lines: any[];
/**
* Gets or sets an boolean indicating that the TextBlock will be resized to fit container
*/
/**
* Gets or sets an boolean indicating that the TextBlock will be resized to fit container
*/
resizeToFit: boolean;
/**
* Gets or sets a boolean indicating if text must be wrapped
*/
/**
* Gets or sets a boolean indicating if text must be wrapped
*/
textWrapping: boolean;
/**
* Gets or sets text to display
*/
/**
* Gets or sets text to display
*/
text: string;
/**
* Gets or sets text horizontal alignment (BABYLON.GUI.Control.HORIZONTAL_ALIGNMENT_CENTER by default)
*/
/**
* Gets or sets text horizontal alignment (BABYLON.GUI.Control.HORIZONTAL_ALIGNMENT_CENTER by default)
*/
textHorizontalAlignment: number;
/**
* Gets or sets text vertical alignment (BABYLON.GUI.Control.VERTICAL_ALIGNMENT_CENTER by default)
*/
/**
* Gets or sets text vertical alignment (BABYLON.GUI.Control.VERTICAL_ALIGNMENT_CENTER by default)
*/
textVerticalAlignment: number;
/**
* Gets or sets line spacing value
*/
/**
* Gets or sets line spacing value
*/
lineSpacing: string | number;
constructor(name?: string | undefined, text?: string);
/**
* Creates a new TextBlock object
* @param name defines the name of the control
* @param text defines the text to display (emptry string by default)
*/
constructor(
/**
* Defines the name of the control
*/
name?: string | undefined, text?: string);
protected _getTypeName(): string;
private _drawText(text, textWidth, y, context);
/** @ignore */
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

@@ -538,0 +607,0 @@ protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

@@ -65,2 +65,13 @@ /// <reference types="babylonjs"/>

static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean): AdvancedDynamicTexture;
/**
* FullScreenUI is created in a layer. This allows it to be treated like any other layer.
* As such, if you have a multi camera setup, you can set the layerMask on the GUI as well.
* When the GUI is not Created as FullscreenUI it does not respect the layerMask.
* layerMask is set through advancedTexture.layer.layerMask
* @param name name for the Texture
* @param foreground render in foreground (default is true)
* @param scene scene to be rendered in
* @param sampling method for scaling to fit screen
* @returns AdvancedDynamicTexture
*/
static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Nullable<Scene>, sampling?: number): AdvancedDynamicTexture;

@@ -519,2 +530,5 @@ }

class TextBlock extends Control {
/**
* Defines the name of the control
*/
name: string | undefined;

@@ -533,11 +547,66 @@ private _text;

onTextChangedObservable: Observable<TextBlock>;
/**
* An event triggered after the text was broken up into lines
* @type {BABYLON.Observable}
*/
onLinesReadyObservable: Observable<TextBlock>;
/**
* Return the line list (you may need to use the onLinesReadyObservable to make sure the list is ready)
*/
readonly lines: any[];
/**
* Gets or sets an boolean indicating that the TextBlock will be resized to fit container
*/
/**
* Gets or sets an boolean indicating that the TextBlock will be resized to fit container
*/
resizeToFit: boolean;
/**
* Gets or sets a boolean indicating if text must be wrapped
*/
/**
* Gets or sets a boolean indicating if text must be wrapped
*/
textWrapping: boolean;
/**
* Gets or sets text to display
*/
/**
* Gets or sets text to display
*/
text: string;
/**
* Gets or sets text horizontal alignment (BABYLON.GUI.Control.HORIZONTAL_ALIGNMENT_CENTER by default)
*/
/**
* Gets or sets text horizontal alignment (BABYLON.GUI.Control.HORIZONTAL_ALIGNMENT_CENTER by default)
*/
textHorizontalAlignment: number;
/**
* Gets or sets text vertical alignment (BABYLON.GUI.Control.VERTICAL_ALIGNMENT_CENTER by default)
*/
/**
* Gets or sets text vertical alignment (BABYLON.GUI.Control.VERTICAL_ALIGNMENT_CENTER by default)
*/
textVerticalAlignment: number;
/**
* Gets or sets line spacing value
*/
/**
* Gets or sets line spacing value
*/
lineSpacing: string | number;
constructor(name?: string | undefined, text?: string);
/**
* Creates a new TextBlock object
* @param name defines the name of the control
* @param text defines the text to display (emptry string by default)
*/
constructor(
/**
* Defines the name of the control
*/
name?: string | undefined, text?: string);
protected _getTypeName(): string;
private _drawText(text, textWidth, y, context);
/** @ignore */
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

@@ -544,0 +613,0 @@ protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;

2

package.json

@@ -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-alpha4",
"version": "3.2.0-alpha6",
"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