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
574
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 4.1.0-alpha.14 to 4.1.0-alpha.15

8

2D/controls/container.d.ts

@@ -21,2 +21,10 @@ import { Nullable } from "@babylonjs/core/types";

protected _adaptHeightToChildren: boolean;
/**
* Gets or sets a boolean indicating that layout cycle errors should be displayed on the console
*/
logLayoutCycleErrors: boolean;
/**
* Gets or sets the number of layout cycles (a change involved by a control while evaluating the layout) allowed
*/
maxLayoutCycle: number;
/** Gets or sets a boolean indicating if the container should try to adapt to its children height */

@@ -23,0 +31,0 @@ adaptHeightToChildren: boolean;

12

2D/controls/container.js

@@ -28,2 +28,10 @@ import * as tslib_1 from "tslib";

_this._adaptHeightToChildren = false;
/**
* Gets or sets a boolean indicating that layout cycle errors should be displayed on the console
*/
_this.logLayoutCycleErrors = false;
/**
* Gets or sets the number of layout cycles (a change involved by a control while evaluating the layout) allowed
*/
_this.maxLayoutCycle = 3;
return _this;

@@ -304,4 +312,4 @@ }

rebuildCount++;
} while (this._rebuildLayout && rebuildCount < 3);
if (rebuildCount >= 3) {
} while (this._rebuildLayout && rebuildCount < this.maxLayoutCycle);
if (rebuildCount >= 3 && this.logLayoutCycleErrors) {
Logger.Error("Layout cycle detected in GUI (Container name=" + this.name + ", uniqueId=" + this.uniqueId + ")");

@@ -308,0 +316,0 @@ }

@@ -12,2 +12,6 @@ import { Container } from "./container";

private _doNotTrackManualChanges;
/**
* Gets or sets a boolean indicating that layou warnings should be ignored
*/
ignoreLayoutWarnings: boolean;
/** Gets or sets a boolean indicating if the stack panel is vertical or horizontal*/

@@ -14,0 +18,0 @@ isVertical: boolean;

@@ -21,2 +21,6 @@ import * as tslib_1 from "tslib";

_this._doNotTrackManualChanges = false;
/**
* Gets or sets a boolean indicating that layou warnings should be ignored
*/
_this.ignoreLayoutWarnings = false;
return _this;

@@ -126,3 +130,5 @@ }

if (child._height.isPercentage) {
Tools.Warn("Control (Name:" + child.name + ", UniqueId:" + child.uniqueId + ") is using height in percentage mode inside a vertical StackPanel");
if (!this.ignoreLayoutWarnings) {
Tools.Warn("Control (Name:" + child.name + ", UniqueId:" + child.uniqueId + ") is using height in percentage mode inside a vertical StackPanel");
}
}

@@ -140,3 +146,5 @@ else {

if (child._width.isPercentage) {
Tools.Warn("Control (Name:" + child.name + ", UniqueId:" + child.uniqueId + ") is using width in percentage mode inside a horizontal StackPanel");
if (!this.ignoreLayoutWarnings) {
Tools.Warn("Control (Name:" + child.name + ", UniqueId:" + child.uniqueId + ") is using width in percentage mode inside a horizontal StackPanel");
}
}

@@ -143,0 +151,0 @@ else {

4

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": "4.1.0-alpha.14",
"version": "4.1.0-alpha.15",
"repository": {

@@ -198,3 +198,3 @@ "type": "git",

"dependencies": {
"@babylonjs/core": "4.1.0-alpha.14",
"@babylonjs/core": "4.1.0-alpha.15",
"tslib": "^1.9.3"

@@ -201,0 +201,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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