Skip to content

Commit

Permalink
Nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh committed Apr 1, 2021
1 parent 50cb1f9 commit 4e160bc
Show file tree
Hide file tree
Showing 30 changed files with 303 additions and 316 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Expand Up @@ -7,6 +7,8 @@ assignees: ''

---

We only accept feature requests that are discussed on the BabylonJS forum

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Expand Down
1 change: 1 addition & 0 deletions dist/preview release/babylon.d.ts
Expand Up @@ -42312,6 +42312,7 @@ declare module BABYLON {
private _loadingDivBackgroundColor;
private _loadingDiv;
private _loadingTextDiv;
private _style;
/** Gets or sets the logo url to use for the default loading screen */
static DefaultLogoUrl: string;
/** Gets or sets the spinner url to use for the default loading screen */
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/babylon.js

Large diffs are not rendered by default.

23 changes: 14 additions & 9 deletions dist/preview release/babylon.max.js
Expand Up @@ -76147,11 +76147,11 @@ var DefaultLoadingScreen = /** @class */ (function () {
//set the predefined text
this._loadingTextDiv.innerHTML = this._loadingText;
// Generating keyframes
var style = document.createElement('style');
style.type = 'text/css';
this._style = document.createElement('style');
this._style.type = 'text/css';
var keyFrames = "@-webkit-keyframes spin1 { 0% { -webkit-transform: rotate(0deg);}\n 100% { -webkit-transform: rotate(360deg);}\n } @keyframes spin1 { 0% { transform: rotate(0deg);}\n 100% { transform: rotate(360deg);}\n }";
style.innerHTML = keyFrames;
document.getElementsByTagName('head')[0].appendChild(style);
this._style.innerHTML = keyFrames;
document.getElementsByTagName('head')[0].appendChild(this._style);
var svgSupport = !!window.SVGSVGElement;
// Loading img
var imgBack = new Image();
Expand Down Expand Up @@ -76219,14 +76219,19 @@ var DefaultLoadingScreen = /** @class */ (function () {
return;
}
var onTransitionEnd = function () {
if (!_this._loadingDiv) {
return;
if (_this._loadingDiv) {
if (_this._loadingDiv.parentElement) {
_this._loadingDiv.parentElement.removeChild(_this._loadingDiv);
}
_this._loadingDiv = null;
}
if (_this._loadingDiv.parentElement) {
_this._loadingDiv.parentElement.removeChild(_this._loadingDiv);
if (_this._style) {
if (_this._style.parentElement) {
_this._style.parentElement.removeChild(_this._style);
}
_this._style = null;
}
window.removeEventListener("resize", _this._resizeLoadingUI);
_this._loadingDiv = null;
};
this._loadingDiv.style.opacity = "0";
this._loadingDiv.addEventListener("transitionend", onTransitionEnd);
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/babylon.max.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/preview release/babylon.module.d.ts
Expand Up @@ -43887,6 +43887,7 @@ declare module "babylonjs/Loading/loadingScreen" {
private _loadingDivBackgroundColor;
private _loadingDiv;
private _loadingTextDiv;
private _style;
/** Gets or sets the logo url to use for the default loading screen */
static DefaultLogoUrl: string;
/** Gets or sets the spinner url to use for the default loading screen */
Expand Down Expand Up @@ -129022,6 +129023,7 @@ declare module BABYLON {
private _loadingDivBackgroundColor;
private _loadingDiv;
private _loadingTextDiv;
private _style;
/** Gets or sets the logo url to use for the default loading screen */
static DefaultLogoUrl: string;
/** Gets or sets the spinner url to use for the default loading screen */
Expand Down
1 change: 1 addition & 0 deletions dist/preview release/documentation.d.ts
Expand Up @@ -42312,6 +42312,7 @@ declare module BABYLON {
private _loadingDivBackgroundColor;
private _loadingDiv;
private _loadingTextDiv;
private _style;
/** Gets or sets the logo url to use for the default loading screen */
static DefaultLogoUrl: string;
/** Gets or sets the spinner url to use for the default loading screen */
Expand Down
116 changes: 58 additions & 58 deletions dist/preview release/gui/babylon.gui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preview release/gui/babylon.gui.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/preview release/guiEditor/babylon.guiEditor.js

Large diffs are not rendered by default.

75 changes: 12 additions & 63 deletions dist/preview release/guiEditor/babylon.guiEditor.max.js
Expand Up @@ -117,7 +117,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIconDefinition", function() { return findIconDefinition; });
/*!
* Font Awesome Free 5.15.0 by @fontawesome - https://fontawesome.com
* Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
function _typeof(obj) {
Expand Down Expand Up @@ -1214,7 +1214,7 @@ var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMA
mark: noop$1,
measure: noop$1
};
var preamble = "FA \"5.15.0\"";
var preamble = "FA \"5.15.3\"";

var begin = function begin(name) {
p.mark("".concat(preamble, " ").concat(name, " begins"));
Expand Down Expand Up @@ -1291,35 +1291,6 @@ function toHex(unicode) {

return result;
}
function codePointAt(string, index) {
/*! https://mths.be/codepointat v0.2.0 by @mathias */
var size = string.length;
var first = string.charCodeAt(index);
var second;

if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
second = string.charCodeAt(index + 1);

if (second >= 0xDC00 && second <= 0xDFFF) {
return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
}
}

return first;
}
/**
* Used to check that the character is between the E000..F8FF private unicode
* range
*/

function isPrivateUnicode(iconName) {
if (iconName.length !== 1) {
return false;
} else {
var cp = codePointAt(iconName, 0);
return cp >= 57344 && cp <= 63743;
}
}

function defineIcons(prefix, icons) {
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
Expand Down Expand Up @@ -1898,27 +1869,6 @@ var missing = {
};

var styles$2 = namespace.styles;
function resolveCustomIconVersion() {
var kitConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var iconName = arguments.length > 1 ? arguments[1] : undefined;

if (iconName && isPrivateUnicode(iconName)) {
if (kitConfig && kitConfig.iconUploads) {
var iconUploads = kitConfig.iconUploads;
var descriptiveIconName = Object.keys(iconUploads).find(function (key) {
return iconUploads[key] && iconUploads[key].u && iconUploads[key].u === toHex(iconName);
});

if (descriptiveIconName) {
return iconUploads[descriptiveIconName].v;
}
}
} else {
if (kitConfig && kitConfig.iconUploads && kitConfig.iconUploads[iconName] && kitConfig.iconUploads[iconName].v) {
return kitConfig.iconUploads[iconName].v;
}
}
}
function asFoundIcon(icon) {
var width = icon[0];
var height = icon[1];
Expand Down Expand Up @@ -1981,12 +1931,6 @@ function findIcon(iconName, prefix) {
var icon = styles$2[prefix][iconName];
return resolve(asFoundIcon(icon));
}
var kitToken = null;
var iconVersion = resolveCustomIconVersion(WINDOW.FontAwesomeKitConfig, iconName);

if (WINDOW.FontAwesomeKitConfig && WINDOW.FontAwesomeKitConfig.token) {
kitToken = WINDOW.FontAwesomeKitConfig.token;
}

if (iconName && prefix && !config.showMissingIcons) {
reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
Expand Down Expand Up @@ -9908,9 +9852,12 @@ function log () {
}
}

// Normalize icon arguments
function normalizeIconArgs(icon) {
// if the icon is null, there's nothing to do
if (_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].icon) {
return _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].icon(icon);
} // if the icon is null, there's nothing to do


if (icon === null) {
return null;
} // if the icon is an object and has a prefix and an icon name, return it
Expand Down Expand Up @@ -9957,14 +9904,16 @@ function FontAwesomeIcon(_ref) {
maskArgs = props.mask,
symbol = props.symbol,
className = props.className,
title = props.title;
title = props.title,
titleId = props.titleId;
var iconLookup = normalizeIconArgs(iconArgs);
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, {
symbol: symbol,
title: title
title: title,
titleId: titleId
}));

if (!renderedIcon) {
Expand Down Expand Up @@ -40173,7 +40122,7 @@ function applyToTag(style, options, obj) {
style.removeAttribute('media');
}

if (sourceMap && btoa) {
if (sourceMap && typeof btoa !== 'undefined') {
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
} // For old IE

Expand Down

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/preview release/inspector/babylon.inspector.bundle.js

Large diffs are not rendered by default.

0 comments on commit 4e160bc

Please sign in to comment.