docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
/** * Defines if the loader should always compute the bounding boxes of meshes and not use the min/max values from the position accessor. Defaults to false. */ public alwaysComputeBoundingBox = false;
<mask> */ <mask> public createInstances = true; <mask> <mask> /** <mask> * Function called before loading a url referenced by the asset. <mask> */ <mask> public preprocessUrlAsync = (url: string) => Promise.resolve(url); </s> Add an option to force bounding box computation Former-c...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/06bcb095d4a67241b21ed5a42aa271641025dc5f
loaders/src/glTF/glTFFileLoader.ts
/** @hidden */ public _currentColorGradient: Nullable<ColorGradient>; /** @hidden */ public _currentColor1 = new Color4(0, 0, 0, 0); /** @hidden */ public _currentColor2 = new Color4(0, 0, 0, 0);
<mask> public _initialSize: number; <mask> <mask> /** <mask> * Creates a new instance Particle <mask> * @param particleSystem the particle system the particle belongs to <mask> */ </s> Improved color gradients for particles Former-commit-id: b73de5e2de9b25e4e38586e3a...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/06c52ddfc299de036322c949f3c0fd4778d56fc1
src/Particles/babylon.particle.ts
if (this._currentColorGradient) { other._currentColorGradient = this._currentColorGradient; other._currentColor1.copyFrom(this._currentColor1); other._currentColor2.copyFrom(this._currentColor2); }
<mask> other.particleSystem = this.particleSystem; <mask> other.cellIndex = this.cellIndex; <mask> } <mask> } <mask> } </s> Improved color gradients for particles Former-commit-id: b73de5e2de9b25e4e38586e3a992825281a6810f </s> remove this._colorGradients[0...
[ "keep", "add", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/06c52ddfc299de036322c949f3c0fd4778d56fc1
src/Particles/babylon.particle.ts
<mask> let ratio = particle.age / particle.lifeTime; <mask> <mask> // Color <mask> if (this._colorGradients && this._colorGradients.length > 0) { <mask> var color1 = Tmp.Color4[0]; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/06c52ddfc299de036322c949f3c0fd4778d56fc1
src/Particles/babylon.particleSystem.ts
if (currentGradient !== particle._currentColorGradient) { particle._currentColor1.copyFrom(particle._currentColor2); (<ColorGradient>nextGradient).getColorToRef(particle._currentColor2); ...
<mask> var color1 = Tmp.Color4[0]; <mask> var color2 = Tmp.Color4[1]; <mask> <mask> Tools.GetCurrentGradient(ratio, this._colorGradients, (currentGradient, nextGradient, scale) => { <mask> (<ColorGr...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/06c52ddfc299de036322c949f3c0fd4778d56fc1
src/Particles/babylon.particleSystem.ts
particle._currentColorGradient = null;
<mask> particle = <Particle>this._stockParticles.pop(); <mask> particle.age = 0; <mask> particle.cellIndex = this.startSpriteCellID; <mask> } else { <mask> particle = new Particle(this); <mask> } <mask> return par...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/06c52ddfc299de036322c949f3c0fd4778d56fc1
src/Particles/babylon.particleSystem.ts
particle._currentColorGradient = this._colorGradients[0]; particle._currentColorGradient.getColorToRef(particle.color); particle._currentColor1.copyFrom(particle.color); if (this._colorGradients.length > 1) { t...
<mask> <mask> this.colorDead.subtractToRef(particle.color, this._colorDiff); <mask> this._colorDiff.scaleToRef(1.0 / particle.lifeTime, particle.colorStep); <mask> } else { <mask> this._colorGradients[0].getColorToRef(particle.color); <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/06c52ddfc299de036322c949f3c0fd4778d56fc1
src/Particles/babylon.particleSystem.ts
constructor(rootUrl: string, scene: Scene, extensions?: string[], noMipmap?: boolean, files?: string[], onLoad: () => void = null, onError: (message?: string, exception?: any) => void = null, format: number = Engine.TEXTUREFORMAT_RGBA, prefiltered = false, forcedExtension = null) {
<mask> public static CreateFromPrefilteredData(url: string, scene: Scene, forcedExtension = null) { <mask> return new CubeTexture(url, scene, null, false, null, null, null, undefined, true, forcedExtension); <mask> } <mask> <mask> constructor(rootUrl: string, scene: Scene, exte...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.cubeTexture.ts
constructor(url: string, scene: Scene, size?: number, noMipmap = false, generateHarmonics = true, useInGammaSpace = false, usePMREMGenerator = false, onLoad: () => void = null, onError: (message?: string, exception?: any) => void = null) {
<mask> * @param generateHarmonics Specifies wether you want to extract the polynomial harmonics during the generation process <mask> * @param useInGammaSpace Specifies if the texture will be use in gamma or linear space (the PBR material requires those texture in linear space, but the standard mater...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.hdrCubeTexture.ts
constructor(url: string, scene: Scene, noMipmap: boolean = false, invertY: boolean = true, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE, onLoad: () => void = null, onError: (message?: string, esception?: any) => void = null, buffer: any = null, deleteBuffer: boolean = false, format?: number) {
<mask> public get samplingMode(): number { <mask> return this._samplingMode; <mask> } <mask> <mask> constructor(url: string, scene: Scene, noMipmap: boolean = false, invertY: boolean = true, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE, onLoad: () => void = null, onErr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.texture.ts
if (this.coordinatesMode === Texture.PROJECTION_MODE) { if (this._cachedProjectionMatrixId === scene.getProjectionMatrix().updateFlag) {
<mask> this.vOffset === this._cachedVOffset && <mask> this.uScale === this._cachedUScale && <mask> this.vScale === this._cachedVScale && <mask> this.coordinatesMode === this._cachedCoordinatesMode) { <mask> if (this.coordinatesMode...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.texture.ts
} else { return this._cachedTextureMatrix; }
<mask> if (this.coordinatesMode === Texture.PROJECTION_MODE) { <mask> if (this._cachedProjectionMatrixId === scene.getProjectionMatrix().updateFlag) { <mask> return this._cachedTextureMatrix; <mask> } <mask> } <mask> <ma...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.texture.ts
var parsedCustomTexture: any = customTexture.Parse(parsedTexture, scene, rootUrl);
<mask> public static Parse(parsedTexture: any, scene: Scene, rootUrl: string): BaseTexture { <mask> if (parsedTexture.customType) { <mask> var customTexture = Tools.Instantiate(parsedTexture.customType); <mask> // Update Sampling Mode <mask> var ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.texture.ts
var sampling: number = parsedTexture.samplingMode;
<mask> }, parsedTexture, scene); <mask> <mask> // Update Sampling Mode <mask> if (parsedTexture.samplingMode) { <mask> var sampling:number = parsedTexture.samplingMode; <mask> if (texture._samplingMode !== sampling) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.texture.ts
public static LoadFromDataString(name: string, buffer: any, scene: Scene, deleteBuffer: boolean = false, noMipmap: boolean = false, invertY: boolean = true, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE, onLoad: () => void = null, onError: (message?: string, exception?: any) => void = null, format: numb...
<mask> <mask> return texture; <mask> } <mask> <mask> public static LoadFromDataString(name: string, buffer: any, scene: Scene, deleteBuffer: boolean = false, noMipmap: boolean = false, invertY: boolean = true, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE, onLoad: () => void =...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Materials/Textures/babylon.texture.ts
public onError: (task: ITextureAssetTask, message?: string, exception?: any) => void;
<mask> } <mask> <mask> export class TextureAssetTask implements ITextureAssetTask { <mask> public onSuccess: (task: ITextureAssetTask) => void; <mask> public onError: (task: ITextureAssetTask) => void; <mask> <mask> public isCompleted = false; <mask> public texture: Tex...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
public run(scene: Scene, onSuccess: () => void, onError: (message?: string, exception?: any) => void) {
<mask> <mask> constructor(public name: string, public url: string, public noMipmap?: boolean, public invertY?: boolean, public samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE) { <mask> } <mask> <mask> public run(scene: Scene, onSuccess: () => void, onError: () => void) { <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
var onerror = (msg, exception) => {
<mask> <mask> onSuccess(); <mask> }; <mask> <mask> var onerror = () => { <mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); </s> onError handling of textures th...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
this.onError(this, msg, exception);
<mask> }; <mask> <mask> var onerror = () => { <mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); <mask> }; <mask> </s> onError handling of textures the onError call...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
onError(msg, exception);
<mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); <mask> }; <mask> <mask> this.texture = new Texture(this.url, scene, this.noMipmap, this.invertY, this.samplingMode, onload, onerro...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
public onError: (task: IAssetTask, message?: string, exception?: any) => void;
<mask> } <mask> <mask> export class CubeTextureAssetTask implements IAssetTask { <mask> public onSuccess: (task: IAssetTask) => void; <mask> public onError: (task: IAssetTask) => void; <mask> <mask> public isCompleted = false; <mask> public texture: CubeTexture; <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
public run(scene: Scene, onSuccess: () => void, onError: (message?: string, exception?: any) => void) {
<mask> <mask> constructor(public name: string, public url: string, public extensions?: string[], public noMipmap?: boolean, public files?: string[]) { <mask> } <mask> <mask> public run(scene: Scene, onSuccess: () => void, onError: () => void) { <mask> <mask> var onload = ()...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
var onerror = (msg, exception) => {
<mask> <mask> onSuccess(); <mask> }; <mask> <mask> var onerror = () => { <mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); </s> onError handling of textures th...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
this.onError(this, msg, exception);
<mask> }; <mask> <mask> var onerror = () => { <mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); <mask> }; <mask> </s> onError handling of textures the onError call...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
onError(msg, exception);
<mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); <mask> }; <mask> <mask> this.texture = new CubeTexture(this.url, scene, this.extensions, this.noMipmap, this.files, onload, onerro...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
public onError: (task: IAssetTask, message?: string, exception?: any) => void;
<mask> } <mask> <mask> export class HDRCubeTextureAssetTask implements IAssetTask { <mask> public onSuccess: (task: IAssetTask) => void; <mask> public onError: (task: IAssetTask) => void; <mask> <mask> public isCompleted = false; <mask> public texture: HDRCubeTexture; ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
public run(scene: Scene, onSuccess: () => void, onError: (message?: string, exception?: any) => void) {
<mask> <mask> constructor(public name: string, public url: string, public size?: number, public noMipmap = false, public generateHarmonics = true, public useInGammaSpace = false, public usePMREMGenerator = false) { <mask> } <mask> <mask> public run(scene: Scene, onSuccess: () => void, onE...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
var onerror = (message?: string, exception?: any) => {
<mask> <mask> onSuccess(); <mask> }; <mask> <mask> var onerror = () => { <mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); </s> onError handling of textures th...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
this.onError(this, message, exception);
<mask> }; <mask> <mask> var onerror = () => { <mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); <mask> }; <mask> </s> onError handling of textures the onError call...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
onError(message, exception);
<mask> if (this.onError) { <mask> this.onError(this); <mask> } <mask> <mask> onError(); <mask> }; <mask> <mask> this.texture = new HDRCubeTexture(this.url, scene, this.size, this.noMipmap, this.generateHarmonics, this....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.assetsManager.ts
public static LoadImage(url: any, onLoad, onError: (message?: string, eception?: any) => void, database): HTMLImageElement {
<mask> public static PreprocessUrl = (url: string) => { <mask> return url; <mask> } <mask> <mask> public static LoadImage(url: any, onload, onerror, database): HTMLImageElement { <mask> if (url instanceof ArrayBuffer) { <mask> url = Tools.EncodeArr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.tools.ts
onLoad(img);
<mask> Tools.SetCorsBehavior(url, img); <mask> } <mask> <mask> img.onload = () => { <mask> onload(img); <mask> }; <mask> <mask> img.onerror = err => { <mask> Tools.Error("Error while trying to load image: " + url)...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.tools.ts
onLoad(img);
<mask> Tools.Error("Error while trying to load image: " + url); <mask> <mask> if (Tools.UseFallbackTexture) { <mask> img.src = Tools.fallbackTexture; <mask> onload(img); <mask> } else { <mask> onerror(); ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.tools.ts
onError("Error while trying to load image: " + url, err);
<mask> if (Tools.UseFallbackTexture) { <mask> img.src = Tools.fallbackTexture; <mask> onload(img); <mask> } else { <mask> onerror(); <mask> } <mask> }; <mask> <mask> var noIndexe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.tools.ts
public static LoadScript(scriptUrl: string, onSuccess: () => void, onError?: (message?: string, exception?: any) => void) {
<mask> /** <mask> * Load a script (identified by an url). When the url returns, the <mask> * content of this file is added into a new script element, attached to the DOM (body element) <mask> */ <mask> public static LoadScript(scriptUrl: string, onSuccess: () => void, o...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.tools.ts
script.onerror = (e) => {
<mask> onSuccess(); <mask> } <mask> }; <mask> <mask> script.onerror = () => { <mask> if (onError) { <mask> onError(); <mask> } <mask> }; <mask> </s> onError handling of textures the ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.tools.ts
onError("Unable to load script", e);
<mask> }; <mask> <mask> script.onerror = () => { <mask> if (onError) { <mask> onError(); <mask> } <mask> }; <mask> <mask> head.appendChild(script); <mask> } </s> onError handling of textures the onE...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/Tools/babylon.tools.ts
onfinish: (images: HTMLImageElement[]) => void, onErrorCallBack: (message?: string, exception?: any) => void = null) => {
<mask> } <mask> } <mask> <mask> var partialLoad = (url: string, index: number, loadedImages: any, scene, <mask> onfinish: (images: HTMLImageElement[]) => void, onErrorCallBack: () => void = null) => { <mask> <mask> var img: HTMLImageElement; <mask> <mask> var onload =...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
var onerror = (message?: string, exception?: any) => {
<mask> onfinish(loadedImages); <mask> } <mask> }; <mask> <mask> var onerror = () => { <mask> if (scene) { <mask> scene._removePendingData(img); <mask> } <mask> <mask> if (onErrorCallBack) { </s> onError handling...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
onErrorCallBack(message, exception);
<mask> scene._removePendingData(img); <mask> } <mask> <mask> if (onErrorCallBack) { <mask> onErrorCallBack(); <mask> } <mask> }; <mask> <mask> img = Tools.LoadImage(url, onload, onerror, scene ? scene.database : null); <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
onfinish: (images: HTMLImageElement[]) => void, files: string[], onError: (message?: string, exception?: any) => void = null) => {
<mask> } <mask> } <mask> <mask> var cascadeLoad = (rootUrl: string, scene, <mask> onfinish: (images: HTMLImageElement[]) => void, files: string[], onError: () => void = null) => { <mask> <mask> var loadedImages: any = []; <mask> loadedImages._internalCount = 0; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
setTimeout(() => {
<mask> }; <mask> <mask> this._onContextRestored = (evt: Event) => { <mask> // Adding a timeout to avoid race condition at browser level <mask> setTimeout(()=> { <mask> // Rebuild gl context <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
public isVRDevicePresent(): boolean {
<mask> } <mask> } <mask> <mask> // WebVR functions <mask> public isVRDevicePresent() : boolean { <mask> return !!this._vrDisplay; <mask> } <mask> <mask> public getVRDevice() : any { <mask> return this._vrDisplay; </s> onError handl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
public getVRDevice(): any {
<mask> public isVRDevicePresent() : boolean { <mask> return !!this._vrDisplay; <mask> } <mask> <mask> public getVRDevice() : any { <mask> return this._vrDisplay; <mask> } <mask> <mask> public initWebVR(): Observable<{vrDisplay: any, vrSupported:...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
public initWebVR(): Observable<{ vrDisplay: any, vrSupported: any }> {
<mask> public getVRDevice() : any { <mask> return this._vrDisplay; <mask> } <mask> <mask> public initWebVR(): Observable<{vrDisplay: any, vrSupported: any}> { <mask> var notifyObservers = () => { <mask> var eventArgs = { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
public createPrefilteredCubeTexture(rootUrl: string, scene: Scene, scale: number, offset: number, onLoad: (internalTexture: InternalTexture) => void, onError: (message?: string, exception?: any) => void = null, format?: number, forcedExtension = null): InternalTexture {
<mask> <mask> return texture; <mask> } <mask> <mask> public createPrefilteredCubeTexture(rootUrl: string, scene: Scene, scale: number, offset: number, onLoad: (internalTexture: InternalTexture) => void, onError: () => void = null, format?: number, forcedExtension = null): InternalText...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
public createCubeTexture(rootUrl: string, scene: Scene, files: string[], noMipmap?: boolean, onLoad: (data?: any) => void = null, onError: (message?: string, exception?: any) => void = null, format?: number, forcedExtension = null): InternalTexture {
<mask> <mask> return this.createCubeTexture(rootUrl, scene, null, false, callback, onError, format, forcedExtension); <mask> } <mask> <mask> public createCubeTexture(rootUrl: string, scene: Scene, files: string[], noMipmap?: boolean, onLoad: (data?: any) => void = null, onError: () =>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
let onerror = (request, exception) => { if (onError) { onError(request.status + " " + request.statusText, exception) } }
<mask> } <mask> <mask> if (isKTX) { <mask> Tools.LoadFile(rootUrl, data => { <mask> var ktx = new Internals.KhronosTextureContainer(data, 6); <mask> </s> onError handling of textures the onError callbacks of Texture/CubeTexture and HDRTexture now del...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
}, null, null, true, onerror);
<mask> <mask> texture.width = ktx.pixelWidth; <mask> texture.height = ktx.pixelHeight; <mask> texture.isReady = true; <mask> }, null, null, true, onError); <mask> } else if (isDDS) { <mask> Tools.LoadFile(roo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
}, null, null, true, onerror);
<mask> <mask> if (onLoad) { <mask> onLoad({ isDDS: true, width: info.width, info, data, texture }); <mask> } <mask> }, null, null, true, onError); <mask> } else { <mask> cascadeLoad(rootUrl, scene, imgs =...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
onError: (message?: string, exception?: any) => void = null,
<mask> public createRawCubeTextureFromUrl(url: string, scene: Scene, size: number, format: number, type: number, noMipmap: boolean, <mask> callback: (ArrayBuffer: ArrayBuffer) => ArrayBufferView[], <mask> mipmmapGenerator: ((faces: ArrayBufferView[]) => ArrayBufferView[][]), <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
var onerror = (request, exception) => {
<mask> scene._addPendingData(texture); <mask> texture.url = url; <mask> this._internalTexturesCache.push(texture); <mask> <mask> var onerror = () => { <mask> scene._removePendingData(texture); <mask> if (onError) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
onError(request.status + " " + request.statusText, exception);
<mask> <mask> var onerror = () => { <mask> scene._removePendingData(texture); <mask> if (onError) { <mask> onError(); <mask> } <mask> }; <mask> <mask> var internalCallback = (data) => { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
}, undefined, scene.database, true, onerror);
<mask> }; <mask> <mask> Tools.LoadFile(url, data => { <mask> internalCallback(data); <mask> }, onerror, scene.database, true); <mask> <mask> return texture; <mask> }; <mask> <mask> private _prepareWebGLTextureContinuation(textu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/083ea02c469d3c1f7a38971f97680d544cce7a72
src/babylon.engine.ts
font-family: "acumin-pro-condensed";
<mask> height: 100%; <mask> margin: 0; <mask> padding: 0; <mask> overflow: hidden; <mask> font-family: "acumin-pro"; <mask> } <mask> #waitDiv { <mask> position: absolute; <mask> width: 100%; <mask> height: 100%; </s> Playground v4.2 : - Bug fixes - New class for zipTool - Rewr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index.css
width: 410px;
<mask> color: inherit; <mask> } <mask> .navbar .categoryTitle { <mask> display: inline-block; <mask> vertical-align: top; <mask> background-color: #201936; <mask> padding-right: 20px; <mask> } <mask> .navbar .logo { </s> Playground v4.2 : - Bug fixes - New class for zipTool - Rewriting the...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index.css
float: right;
<mask> height: 55px; <mask> float: left; <mask> } <mask> .navbar .version { <mask> display: inline-block; <mask> vertical-align: top; <mask> height: 55px; <mask> margin-right: 20px; <mask> font-size: 20px; <mask> color: #d5d2ca; </s> Playground v4.2 : - Bug fixes - New class f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index.css
font-family: "acumin-pro-extra-condensed";
<mask> position: relative; <mask> } <mask> .navbar .select .toDisplay { <mask> position: absolute; <mask> z-index: 10; <mask> right: 0; <mask> top: 55px; <mask> width: 190px; <mask> display: none; </s> Playground v4.2 : - Bug fixes - New class for zipTool - Rewriting the index.js ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index.css
font-size: 20px;
<mask> background-color: #ff7656; <mask> } <mask> <mask> .navbar .select .toDisplay .option { <mask> font-size: 16px; <mask> height: 35px; <mask> line-height: 35px; <mask> padding: 1px 5px 1px 15px; <mask> text-align: left; <mask> } </s> Playground v4.2 : - Bug fixes - New class for ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index.css
.navbar .categoryTitle { width: 315px; }
<mask> padding: 20px; <mask> padding-bottom: 10px; <mask> } <mask> <mask> .navbar .select .toDisplayBig ul { <mask> column-count: 2; <mask> } <mask> <mask> .navbar .category .buttonJStoTS { <mask> width: 70px; </s> Playground v4.2 : - Bug fixes - New class fo...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index.css
height: 500px;
<mask> position: fixed; <mask> left: 0; <mask> top: 40px; <mask> width: 180px; <mask> height: auto; <mask> min-height: 100px; <mask> max-height: calc(100% - 40px); <mask> text-align: left; <mask> overflow-y: auto; <mask> } </s> Playg...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index_mobile.css
overflow-x: hidden;
<mask> min-height: 100px; <mask> max-height: calc(100% - 40px); <mask> text-align: left; <mask> overflow-y: auto; <mask> } <mask> .navbar .select .toDisplay.languageJS .option { <mask> background-color: #3f3461; <mask> } <mask> .navbar .select .toDisplay....
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index_mobile.css
overflow: hidden;
<mask> min-width: 180px; <mask> width: 180px; <mask> height: auto; <mask> text-align: left; <mask> overflow-y: auto; <mask> color: white; <mask> } <mask> .navbar .select .subSelect .toDisplaySub.languageJS { <mask> background-color: #9379e6; <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index_mobile.css
.navbar .select .subSelect .toDisplaySub .option { padding-left: 5px; box-sizing: border-box; }
<mask> overflow: hidden; <mask> color: white; <mask> } <mask> .navbar .select .subSelect .toDisplaySub.languageJS { <mask> background-color: #9379e6; <mask> } <mask> .navbar .select .subSelect .toDisplaySub.languageTS { <mask> background-color: #e0684b; <mask> ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/css/index_mobile.css
utils.setToMultipleID("currentVersion", "innerHTML", "v.4.0");
<mask> // TO DO : Rewrite this with unpkg.com <mask> if (location.href.indexOf("indexStable") !== -1) { <mask> setToMultipleID("currentVersion", "innerHTML", "v.3.0"); <mask> } else { <mask> setToMultipleID("currentVersion", "innerHTML", "v.4.0"); <mask> } <mask> <mask> var ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
};
<mask> return false; <mask> } <mask> } <mask> return true; <mask> } <mask> <mask> var loadScript = function (scriptURL, title) { <mask> var xhr = new XMLHttpRequest(); <mask> <mask> xhr.open('GET', scriptURL, true); </s> Playground v4.2 : ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
<mask> // Restore theme <mask> settingsPG.restoreTheme(monacoCreator); <mask> // Restore language <mask> settingsPG.setScriptLanguage(); <mask> <mask> // TO DO - Check why this doesn't work. <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
};
<mask> } <mask> }; <mask> <mask> xhr.send(null); <mask> } <mask> <mask> var createNewScript = function () { <mask> // check if checked is on <mask> let iCanClear = checkSafeMode("Are you sure you want to create a new playground?"); <mask> if (!iCan...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
};
<mask> } <mask> monacoCreator.JsEditor.setPosition({ lineNumber: 11, column: 0 }); <mask> monacoCreator.JsEditor.focus(); <mask> compileAndRun(); <mask> } <mask> <mask> var clear = function () { <mask> // check if checked is on <mask> let iCanClear = che...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
};
<mask> currentSnippetToken = null; <mask> monacoCreator.JsEditor.setValue(''); <mask> monacoCreator.JsEditor.setPosition({ lineNumber: 0, column: 0 }); <mask> monacoCreator.JsEditor.focus(); <mask> } <mask> <mask> // TO DO - Is this really usefull ? Safe mode only availab...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
};
<mask> } <mask> } else { <mask> return true; <mask> } <mask> } <mask> <mask> var showNoMetadata = function () { <mask> if (currentSnippetTitle) { <mask> document.getElementById("saveFormTitle").value = currentSnippetTitle; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
/** * Metadatas form */
<mask> return true; <mask> } <mask> }; <mask> <mask> var showNoMetadata = function () { <mask> if (currentSnippetTitle) { <mask> document.getElementById("saveFormTitle").value = currentSnippetTitle; <mask> document.getElementById("saveFormTitle").read...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
<mask> } <mask> document.getElementById("saveFormButtons").style.display = "block"; <mask> document.getElementById("saveFormButtonOk").style.display = "inline-block"; <mask> }; <mask> showNoMetadata(); <mask> <mask> var hideNoMetadata = function () { <mask> document....
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("editorButton", "removeClass", 'checked');
<mask> var scene = engine.scenes[0]; <mask> <mask> // If the editor is present <mask> if (editorButton.classList.contains('checked')) { <mask> setToMultipleID("editorButton", "removeClass", 'checked'); <mask> splitInstance.collapse(0); <mask> setToMult...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("editorButton", "innerHTML", 'Editor <i class="fa fa-square" aria-hidden="true"></i>');
<mask> // If the editor is present <mask> if (editorButton.classList.contains('checked')) { <mask> setToMultipleID("editorButton", "removeClass", 'checked'); <mask> splitInstance.collapse(0); <mask> setToMultipleID("editorButton", "innerHTML", 'Editor <i class="f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("editorButton", "addClass", 'checked');
<mask> setToMultipleID("editorButton", "removeClass", 'checked'); <mask> splitInstance.collapse(0); <mask> setToMultipleID("editorButton", "innerHTML", 'Editor <i class="fa fa-square" aria-hidden="true"></i>'); <mask> } else { <mask> setToMultipleID("editorBu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("editorButton", "innerHTML", 'Editor <i class="fa fa-check-square" aria-hidden="true"></i>');
<mask> setToMultipleID("editorButton", "innerHTML", 'Editor <i class="fa fa-square" aria-hidden="true"></i>'); <mask> } else { <mask> setToMultipleID("editorButton", "addClass", 'checked'); <mask> splitInstance.setSizes([50, 50]); // Reset <mask> setToMultip...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
/** * Toggle the BJS debug layer */
<mask> scene.debugLayer.show({ embedMode: true }); <mask> } <mask> } <mask> <mask> <mask> <mask> var toggleDebug = function () { <mask> // Always showing the debug layer, because you can close it by itself <mask> var scene = engine.scenes[0]; <mask> i...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
// Load scripts list loadScriptsList();
<mask> scene.debugLayer.show({ embedMode: true }); <mask> } <mask> } <mask> <mask> var toggleMetadata = function () { <mask> document.getElementById("saveLayer").style.display = "block"; <mask> } <mask> <mask> var formatCode = function () { <mask> monacoCr...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
/** * HASH part */ // TO DO - Rewrite / move this code
<mask> loadScriptsList(); <mask> <mask> var previousHash = ""; <mask> var cleanHash = function () { <mask> var splits = decodeURIComponent(location.hash.substr(1)).split("#"); <mask> <mask> if (splits.length > 2) { </s> Playground v4.2 : - Bug fixes - New class for zipTool - Rewrit...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
// utils.setToMultipleID("currentScript", "innerHTML", "Custom");
<mask> monacoCreator.JsEditor.setPosition({ lineNumber: 0, column: 0 }); <mask> monacoCreator.BlockEditorChange = false; <mask> compileAndRun(); <mask> <mask> // setToMultipleID("current...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
// TO DO - A proper UI class
<mask> checkHash(true); <mask> <mask> <mask> // ---------- UI <mask> <mask> // Run <mask> utils.setToMultipleID("runButton", "click", compileAndRun); <mask> // New </s> Playground v4.2 : - Bug fixes - New class for zipTool - Rewriting the index.js in progress [|||| ] 80% Former-commit-...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("runButton", "click", compileAndRun);
<mask> <mask> // ---------- UI <mask> <mask> // Run <mask> setToMultipleID("runButton", "click", compileAndRun); <mask> // New <mask> setToMultipleID("newButton", "click", createNewScript); <mask> // Clear <mask> setToMultipleID("clearButton", "click", clear); <mask> // Save...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("newButton", "click", createNewScript);
<mask> <mask> // Run <mask> setToMultipleID("runButton", "click", compileAndRun); <mask> // New <mask> setToMultipleID("newButton", "click", createNewScript); <mask> // Clear <mask> setToMultipleID("clearButton", "click", clear); <mask> // Save <mask> setToMultipleID("saveButt...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("clearButton", "click", clear);
<mask> setToMultipleID("runButton", "click", compileAndRun); <mask> // New <mask> setToMultipleID("newButton", "click", createNewScript); <mask> // Clear <mask> setToMultipleID("clearButton", "click", clear); <mask> // Save <mask> setToMultipleID("saveButton", "click", askForSave); ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("saveButton", "click", askForSave);
<mask> setToMultipleID("newButton", "click", createNewScript); <mask> // Clear <mask> setToMultipleID("clearButton", "click", clear); <mask> // Save <mask> setToMultipleID("saveButton", "click", askForSave); <mask> // Zip <mask> setToMultipleID("zipButton", "click", getZip); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("zipButton", "click", function() { zipTool.getZip(engine); }); // Themes utils.setToMultipleID("darkTheme", "click", [settingsPG.setTheme.bind(settingsPG, 'dark'), menuPG.clickOptionSub.bind(menuPG)]); utils.setToMultipleID("lightTheme", "click", [settingsPG.setTheme.bi...
<mask> setToMultipleID("clearButton", "click", clear); <mask> // Save <mask> setToMultipleID("saveButton", "click", askForSave); <mask> // Zip <mask> setToMultipleID("zipButton", "click", getZip); <mask> // // Themes <mask> setToMultipleID("darkTheme", "click", [settingsPG.setTheme.bi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("toTSbutton", "click", function () {
<mask> options[j].addEventListener('click', menuPG.clickOptionSub.bind(this)); <mask> } <mask> } <mask> // Language (JS / TS) <mask> setToMultipleID("toTSbutton", "click", function () { <mask> settingsPG.ScriptLanguage = "TS"; <mask> location.reload(); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("toJSbutton", "click", function () {
<mask> setToMultipleID("toTSbutton", "click", function () { <mask> settingsPG.ScriptLanguage = "TS"; <mask> location.reload(); <mask> }); <mask> setToMultipleID("toJSbutton", "click", function () { <mask> settingsPG.ScriptLanguage = "JS"; <mask> location.reload(); <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("safemodeToggle", 'click', function () {
<mask> settingsPG.ScriptLanguage = "JS"; <mask> location.reload(); <mask> }); <mask> // Safe mode <mask> setToMultipleID("safemodeToggle", 'click', function () { <mask> document.getElementById("safemodeToggle1280").classList.toggle('checked'); <mask> if (document.getEl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("safemodeToggle", "innerHTML", 'Safe mode <i class="fa fa-check-square" aria-hidden="true"></i>');
<mask> // Safe mode <mask> setToMultipleID("safemodeToggle", 'click', function () { <mask> document.getElementById("safemodeToggle1280").classList.toggle('checked'); <mask> if (document.getElementById("safemodeToggle1280").classList.contains('checked')) { <mask> setToMultipleID(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("safemodeToggle", "innerHTML", 'Safe mode <i class="fa fa-square" aria-hidden="true"></i>');
<mask> document.getElementById("safemodeToggle1280").classList.toggle('checked'); <mask> if (document.getElementById("safemodeToggle1280").classList.contains('checked')) { <mask> setToMultipleID("safemodeToggle", "innerHTML", 'Safe mode <i class="fa fa-check-square" aria-hidden="true"></i...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("editorButton", "click", toggleEditor);
<mask> setToMultipleID("safemodeToggle", "innerHTML", 'Safe mode <i class="fa fa-square" aria-hidden="true"></i>'); <mask> } <mask> }); <mask> // Editor <mask> setToMultipleID("editorButton", "click", toggleEditor); <mask> // FullScreen <mask> setToMultipleID("fullscreenBu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("fullscreenButton", "click", menuPG.goFullscreen);
<mask> }); <mask> // Editor <mask> setToMultipleID("editorButton", "click", toggleEditor); <mask> // FullScreen <mask> setToMultipleID("fullscreenButton", "click", goFullscreen); <mask> // Editor fullScreen <mask> setToMultipleID("editorFullscreenButton", "click", editorGoFullscreen);...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("editorFullscreenButton", "click", menuPG.editorGoFullscreen);
<mask> setToMultipleID("editorButton", "click", toggleEditor); <mask> // FullScreen <mask> setToMultipleID("fullscreenButton", "click", goFullscreen); <mask> // Editor fullScreen <mask> setToMultipleID("editorFullscreenButton", "click", editorGoFullscreen); <mask> // Format <mask> set...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("formatButton", "click", monacoCreator.formatCode.bind(monacoCreator));
<mask> setToMultipleID("fullscreenButton", "click", goFullscreen); <mask> // Editor fullScreen <mask> setToMultipleID("editorFullscreenButton", "click", editorGoFullscreen); <mask> // Format <mask> setToMultipleID("formatButton", "click", formatCode); <mask> // Format <mask> setToMult...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("minimapToggle", "click", monacoCreator.toggleMinimap.bind(monacoCreator));
<mask> setToMultipleID("editorFullscreenButton", "click", editorGoFullscreen); <mask> // Format <mask> setToMultipleID("formatButton", "click", formatCode); <mask> // Format <mask> setToMultipleID("minimapToggle", "click", toggleMinimap); <mask> // Debug <mask> setToMultipleID("debugB...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("debugButton", "click", toggleDebug);
<mask> setToMultipleID("formatButton", "click", formatCode); <mask> // Format <mask> setToMultipleID("minimapToggle", "click", toggleMinimap); <mask> // Debug <mask> setToMultipleID("debugButton", "click", toggleDebug); <mask> // Metadata <mask> setToMultipleID("metadataButton", "clic...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
utils.setToMultipleID("metadataButton", "click", menuPG.displayMetadata);
<mask> setToMultipleID("minimapToggle", "click", toggleMinimap); <mask> // Debug <mask> setToMultipleID("debugButton", "click", toggleDebug); <mask> // Metadata <mask> setToMultipleID("metadataButton", "click", toggleMetadata); <mask> <mask> // Restore theme <mask> settingsPG.restor...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js
//
<mask> // Restore theme <mask> settingsPG.restoreTheme(monacoCreator); <mask> // Restore language <mask> settingsPG.setScriptLanguage(); <mask> <mask> menuPG.resizeBigCanvas(); <mask> } <mask> </s> Playground v4.2 : - Bug fixes - New class for zipTool - Rewriting the index.js in progress ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/0889458d6c8ec349ff32c208642c28497a4f6133
Playground/js/index.js