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
#include<fogVertex>
<mask> fClipDistance = dot(worldPos, vClipPlane); <mask> #endif <mask> <mask> // Fog <mask> #ifdef FOG <mask> fFogDistance = (view * worldPos).z; <mask> #endif <mask> <mask> // Shadows <mask> #ifdef SHADOWS <mask> #if defined(SPOTLIGHT0) || defined(DIRLIGHT0) <mask> vPositionFromLight0 = lightMatrix0...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/fur/fur.vertex.fx
#include<shadowsVertex>
<mask> fFogDistance = (view * worldPos).z; <mask> #endif <mask> <mask> // Shadows <mask> #ifdef SHADOWS <mask> #if defined(SPOTLIGHT0) || defined(DIRLIGHT0) <mask> vPositionFromLight0 = lightMatrix0 * worldPos; <mask> #endif <mask> #if defined(SPOTLIGHT1) || defined(DIRLIGHT1) <mask> vPositionFromLight1 ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/fur/fur.vertex.fx
<mask> public UV2 = false; <mask> public VERTEXCOLOR = false; <mask> public VERTEXALPHA = false; <mask> public NUM_BONE_INFLUENCERS = 0; <mask> public BONES = false; <mask> public BONES4 = false; <mask> public BonesPerMesh = 0; <mask> public INSTAN...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/terrain/babylon.terrainMaterial.ts
<mask> public NORMAL = false; <mask> public VERTEXCOLOR = false; <mask> public VERTEXALPHA = false; <mask> public NUM_BONE_INFLUENCERS = 0; <mask> public BONES = false; <mask> public BONES4 = false; <mask> public BonesPerMesh = 0; <mask> public INS...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/triPlanar/babylon.triPlanarMaterial.ts
this.rebuild();
<mask> public INSTANCES = false; <mask> <mask> constructor() { <mask> super(); <mask> this._keys = Object.keys(this); <mask> } <mask> } <mask> <mask> export class TriPlanarMaterial extends Material { <mask> @serializeAsTexture() </s> Updated F...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/triPlanar/babylon.triPlanarMaterial.ts
<mask> public UV2 = false; <mask> public VERTEXCOLOR = false; <mask> public VERTEXALPHA = false; <mask> public NUM_BONE_INFLUENCERS = 0; <mask> public BONES = false; <mask> public BONES4 = false; <mask> public BonesPerMesh = 0; <mask> public INSTAN...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/water/babylon.waterMaterial.ts
public getRenderList(): AbstractMesh[] { return this._refractionRTT.renderList; } public get renderTargetsEnabled(): boolean { return !(this._refractionRTT.refreshRate === 0); }
<mask> this._refractionRTT.refreshRate = refreshRate; <mask> this._reflectionRTT.refreshRate = refreshRate; <mask> } <mask> <mask> public needAlphaBlending(): boolean { <mask> return (this.alpha < 1.0); <mask> } <mask> <mask> public needAl...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/water/babylon.waterMaterial.ts
serializationObject.reflectionTexture.isRenderTarget = true; serializationObject.refractionTexture.isRenderTarget = true;
<mask> var serializationObject = SerializationHelper.Serialize(this); <mask> serializationObject.customType = "BABYLON.WaterMaterial"; <mask> return serializationObject; <mask> } <mask> <mask> // Statics <mask> public static Parse(source: any, scene: S...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/85a12380c3285084c0fedd1048e13758cf1c49fa
materialsLibrary/materials/water/babylon.waterMaterial.ts
* Defines the passed node as the parent of the current node. * Returns the TransformNode.
<mask> return this; <mask> } <mask> <mask> /** <mask> * Defines the passed mesh as the parent of the current mesh. <mask> * Returns the AbstractMesh. <mask> */ <mask> public setParent(mesh: Nullable<AbstractMesh>): TransformNode { <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/8653cc96c9a28ff72c3b43aebd9e607879fc181a
src/Mesh/babylon.transformNode.ts
public setParent(node: Nullable<TransformNode>): TransformNode { if (node == null) {
<mask> /** <mask> * Defines the passed mesh as the parent of the current mesh. <mask> * Returns the AbstractMesh. <mask> */ <mask> public setParent(mesh: Nullable<AbstractMesh>): TransformNode { <mask> var parent = (<AbstractMesh>mesh); <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/8653cc96c9a28ff72c3b43aebd9e607879fc181a
src/Mesh/babylon.transformNode.ts
this.computeWorldMatrix(true);
<mask> if(this.parent && (<TransformNode>this.parent).computeWorldMatrix){ <mask> (<TransformNode>this.parent).computeWorldMatrix(true); <mask> } <mask> this.getWorldMatrix().decompose(scale, rotation, position); <mask> <mask> if...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/8653cc96c9a28ff72c3b43aebd9e607879fc181a
src/Mesh/babylon.transformNode.ts
node.computeWorldMatrix(true); node.getWorldMatrix().decompose(scale, rotation, position);
<mask> var m1 = Tmp.Matrix[0]; <mask> var m2 = Tmp.Matrix[1]; <mask> var invParentMatrix = Tmp.Matrix[2]; <mask> <mask> parent.computeWorldMatrix(true); <mask> parent.getWorldMatrix().decompose(scale, rotation, positi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/8653cc96c9a28ff72c3b43aebd9e607879fc181a
src/Mesh/babylon.transformNode.ts
node.getWorldMatrix().invertToRef(invParentMatrix);
<mask> } else { <mask> rotation.toEulerAnglesToRef(this.rotation); <mask> } <mask> <mask> parent.getWorldMatrix().invertToRef(invParentMatrix); <mask> <mask> var m = this.getWorldMatrix().multi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/8653cc96c9a28ff72c3b43aebd9e607879fc181a
src/Mesh/babylon.transformNode.ts
this.parent = node;
<mask> this.position.y = position.y; <mask> this.position.z = position.z; <mask> } <mask> <mask> this.parent = parent; <mask> return this; <mask> } <mask> <mask> private _nonUniformScaling = false; ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/8653cc96c9a28ff72c3b43aebd9e607879fc181a
src/Mesh/babylon.transformNode.ts
<mask> # Symlinks <mask> inspector/src/sharedUiComponents/**/* <mask> nodeEditor/src/sharedUiComponents/**/* <mask> guiEditor/src/sharedUiComponents/**/* <mask> package.json <mask> dist/preview release/documentation.d.ts <mask> dist/preview release/gui/babylon.gui.d.ts <mask> dist/preview release/gui/babylon.gu...
[ "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/86762cc03dba867bfa1982d8df03fc65ca748f2b
.gitignore
private _populateNinePatchSlicesFromImage = false;
<mask> private _cellHeight: number = 0; <mask> private _cellId: number = -1; <mask> <mask> private _sliceLeft: number; <mask> private _sliceRight: number; <mask> private _sliceTop: number; <mask> private _sliceBottom: number; </s> Revert "ninepatch" This reverts commit 505347bd8a19519f...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/86762cc03dba867bfa1982d8df03fc65ca748f2b
gui/src/2D/controls/image.ts
if (this._populateNinePatchSlicesFromImage) { this._extractNinePatchSliceDataFromImage(); }
<mask> this._imageWidth = this._domImage.width; <mask> this._imageHeight = this._domImage.height; <mask> this._loaded = true; <mask> <mask> // if (this._populateNinePatchSlicesFromImage) { <mask> // this._extractNinePatchSliceDataFromImage(); <mask> // } <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/86762cc03dba867bfa1982d8df03fc65ca748f2b
gui/src/2D/controls/image.ts
private _renderCornerPatch(context: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, targetX: number, targetY: number): void { this._drawImage(context, x, y, width, height, this._currentMeasure.left + targetX, this._currentMeasure.top + targetY, width, height); }
<mask> <mask> context.restore(); <mask> } <mask> <mask> private _renderNinePatch(context: CanvasRenderingContext2D): void { <mask> let height = this._imageHeight; <mask> let leftWidth = this._sliceLeft; <mask> let topHeight = this._sliceTop; <mask> let bottomHe...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/86762cc03dba867bfa1982d8df03fc65ca748f2b
gui/src/2D/controls/image.ts
let height = this._imageHeight; let leftWidth = this._sliceLeft; let topHeight = this._sliceTop; let bottomHeight = this._imageHeight - this._sliceBottom; let rightWidth = this._imageWidth - this._sliceRight; let left = 0; let top = 0; if (this._p...
<mask> context.restore(); <mask> } <mask> <mask> private _renderNinePatch(context: CanvasRenderingContext2D): void { <mask> let height = this._imageHeight, width = this._imageWidth; <mask> let leftWidth = this._sliceLeft, rightWidth = this._imageWidth - this._sliceRight; <mask> ...
[ "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/86762cc03dba867bfa1982d8df03fc65ca748f2b
gui/src/2D/controls/image.ts
* @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).
<mask> * @param fallback defines texture to use while falling back when (compressed) texture file not found. <mask> * @param loaderOptions options to be passed to the loader <mask> * @returns the cube texture as an InternalTexture <mask> */ <mask> createCubeTexture(rootU...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
format: number | undefined, forcedExtension: any, createPolynomials: boolean, lodScale: number, lodOffset: number, fallback: Nullable<InternalTexture>, loaderOptions: any, useSRGBBuffer?: boolean): InternalTexture;
<mask> * @returns the cube texture as an InternalTexture <mask> */ <mask> createCubeTexture(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap: boolean | undefined, <mask> onLoad: Nullable<(data?: any) => void>, onError: Nullable<(message?: string, exc...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
beforeLoadCubeDataCallback: Nullable<(texture: InternalTexture, data: ArrayBufferView | ArrayBufferView[]) => void>, imageHandler: Nullable<(texture: InternalTexture, imgs: HTMLImageElement[] | ImageBitmap[]) => void>, useSRGBBuffer?: boolean): InternalTexture;
<mask> /** @hidden */ <mask> createCubeTextureBase(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap: boolean, <mask> onLoad: Nullable<(data?: any) => void>, onError: Nullable<(message?: string, exception?: any) => void>, <mask> format: number | und...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
imageHandler: Nullable<(texture: InternalTexture, imgs: HTMLImageElement[] | ImageBitmap[]) => void> = null, useSRGBBuffer?: boolean): InternalTexture {
<mask> <mask> ThinEngine.prototype.createCubeTextureBase = function(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap?: boolean, onLoad: Nullable<(data?: any) => void> = null, <mask> onError: Nullable<(message?: string, exception?: any) => void> = null, format?: number, forcedExte...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
texture._useSRGBBuffer = !!useSRGBBuffer && this._caps.supportSRGBBuffers && (this.webGLVersion > 1 || this.isWebGPU || !!noMipmap);
<mask> texture.url = rootUrl; <mask> texture.generateMipMaps = !noMipmap; <mask> texture._lodGenerationScale = lodScale; <mask> texture._lodGenerationOffset = lodOffset; <mask> <mask> if (!this._doNotHandleContextLost) { <mask> texture._extension = forcedExtension; <mask> te...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
this.createCubeTextureBase(originalRootUrl, scene, files, !!noMipmap, onLoad, onError, format, forcedExtension, createPolynomials, lodScale, lodOffset, texture, beforeLoadCubeDataCallback, imageHandler, useSRGBBuffer);
<mask> } <mask> else { <mask> // fall back to the original url if the transformed url fails to load <mask> Logger.Warn(`Failed to load ${rootUrl}, falling back to the ${originalRootUrl}`); <mask> this.createCubeTextureBase(originalRootUrl, scene, files, !!noMipma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
ThinEngine.prototype.createCubeTexture = function(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap?: boolean, onLoad: Nullable<(data?: any) => void> = null, onError: Nullable<(message?: string, exception?: any) => void> = null, format?: number, forcedExtension: any = null, createPolynom...
<mask> <mask> return texture; <mask> }; <mask> <mask> ThinEngine.prototype.createCubeTexture = function(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap?: boolean, onLoad: Nullable<(data?: any) => void> = null, onError: Nullable<(message?: string, exception?: any) => void> = null,...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
const internalFormat = format ? this._getInternalFormat(format, texture._useSRGBBuffer) : (texture._useSRGBBuffer ? gl.SRGB8_ALPHA8 : gl.RGBA); let texelFormat = format ? this._getInternalFormat(format) : gl.RGBA; if (texture._useSRGBBuffer && this.webGLVersion === 1) { ...
<mask> <mask> this._bindTextureDirectly(gl.TEXTURE_CUBE_MAP, texture, true); <mask> this._unpackFlipY(false); <mask> <mask> const internalFormat = format ? this._getInternalFormat(format) : this._gl.RGBA; <mask> for (var index = 0; index < faces.length; index++) {...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
gl.texImage2D(faces[index], 0, internalFormat, texelFormat, gl.UNSIGNED_BYTE, this._workingCanvas);
<mask> this._workingCanvas.width = width; <mask> this._workingCanvas.height = height; <mask> <mask> this._workingContext.drawImage(imgs[index], 0, 0, imgs[index].width, imgs[index].height, 0, 0, width, height); <mask> gl.texImage2D(fa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
gl.texImage2D(faces[index], 0, internalFormat, texelFormat, gl.UNSIGNED_BYTE, imgs[index]);
<mask> <mask> this._workingContext.drawImage(imgs[index], 0, 0, imgs[index].width, imgs[index].height, 0, 0, width, height); <mask> gl.texImage2D(faces[index], 0, internalFormat, internalFormat, gl.UNSIGNED_BYTE, this._workingCanvas); <mask> } else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
}, useSRGBBuffer
<mask> <mask> if (onLoad) { <mask> onLoad(); <mask> } <mask> } <mask> ); <mask> }; </s> Add support for sRGB buffers to cube textures Former-commit-id: 4ce5354943e3f9e53434f23d1b0f0c80603c3d0a </s> remove } </s> add }, useSRGBBuffer </s>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/Extensions/engine.cubeTexture.ts
onError: Nullable<(message?: string, exception?: any) => void> = null, format?: number, forcedExtension: any = null, createPolynomials: boolean = false, lodScale: number = 0, lodOffset: number = 0, fallback: Nullable<InternalTexture> = null, useSRGBBuffer?: boolean): InternalTexture {
<mask> return internalTexture; <mask> }; <mask> <mask> WebGPUEngine.prototype.createCubeTexture = function(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap?: boolean, onLoad: Nullable<(data?: any) => void> = null, <mask> onError: Nullable<(message?: string, exception?: any) =>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/WebGPU/Extensions/engine.cubeTexture.ts
}, useSRGBBuffer
<mask> <mask> if (onLoad) { <mask> onLoad(); <mask> } <mask> } <mask> ); <mask> }; <mask> <mask> WebGPUEngine.prototype._setCubeMapTextureParams = function(texture: InternalTexture, loadMipmap: boolean) { <mask> texture.samplingMode = loadMipmap ?...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Engines/WebGPU/Extensions/engine.cubeTexture.ts
private _useSRGBBuffer?: boolean;
<mask> <mask> private _format: number; <mask> private _createPolynomials: boolean; <mask> private _loaderOptions: any; <mask> <mask> /** <mask> * Creates a cube texture from an array of image urls <mask> * @param files defines an array of image urls <mask> * @param scene define...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Materials/Textures/cubeTexture.ts
* @param useSRGBBuffer Defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU) (default: false) * @return the cube texture
<mask> * @param createPolynomials defines whether or not to create polynomial harmonics from the texture data if necessary <mask> * @param lodScale defines the scale applied to environment texture. This manages the range of LOD level used for IBL according to the roughness <mask> * @param lodOffset de...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Materials/Textures/cubeTexture.ts
lodScale: number = 0.8, lodOffset: number = 0, loaderOptions?: any, useSRGBBuffer?: boolean) {
<mask> */ <mask> constructor(rootUrl: string, sceneOrEngine: Scene | ThinEngine, extensions: Nullable<string[]> = null, noMipmap: boolean = false, files: Nullable<string[]> = null, <mask> onLoad: Nullable<() => void> = null, onError: Nullable<(message?: string, exception?: any) => void> = null, form...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Materials/Textures/cubeTexture.ts
this._useSRGBBuffer = useSRGBBuffer;
<mask> this._extensions = extensions; <mask> this._files = files; <mask> this._forcedExtension = forcedExtension; <mask> this._loaderOptions = loaderOptions; <mask> <mask> if (!rootUrl && !files) { <mask> return; <mask> } </s> Add support for sRGB bu...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Materials/Textures/cubeTexture.ts
this._texture = this._getEngine()!.createCubeTexture(rootUrl, scene, files, noMipmap, onLoad, onError, this._format, forcedExtension, false, lodScale, lodOffset, null, loaderOptions, this._useSRGBBuffer);
<mask> if (prefiltered) { <mask> this._texture = this._getEngine()!.createPrefilteredCubeTexture(rootUrl, scene, lodScale, lodOffset, onLoad, onError, format, forcedExtension, this._createPolynomials); <mask> } <mask> else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Materials/Textures/cubeTexture.ts
this._texture = this._getEngine()!.createCubeTexture(this.url, scene, this._files, this._noMipmap, this._delayedOnLoad, null, this._format, forcedExtension, false, 0, 0, null, this._loaderOptions, this._useSRGBBuffer);
<mask> if (this._prefiltered) { <mask> this._texture = this._getEngine()!.createPrefilteredCubeTexture(this.url, scene, 0.8, 0, this._delayedOnLoad, undefined, this._format, forcedExtension, this._createPolynomials); <mask> } <mask> else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Materials/Textures/cubeTexture.ts
}, null, this.format, this._extension, false, 0, 0, null, undefined, this._useSRGBBuffer);
<mask> proxy = this._engine.createCubeTexture(this.url, null, this._files, !this.generateMipMaps, () => { <mask> proxy._swapAndDie(this, false); <mask> rebuildSamples(); <mask> this.isReady = true; <mask> }, null, this.form...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/867b0792149a7714c3f14ea6bc1a0810c473d6f6
src/Materials/Textures/internalTexture.ts
private static dstAreaPos = Vector2.Zero();
<mask> private _columnWidths: Array<number> = []; <mask> <mask> private static dstOffset = Vector4.Zero(); <mask> private static dstArea = Size.Zero(); <mask> <mask> public updateLayout(prim: Prim2DBase) { <mask> if (prim._isFlagSet(SmartPropertyPrim.flagLayoutDirty)...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
if (!prim.layoutArea) { return; }
<mask> if (prim._isFlagSet(SmartPropertyPrim.flagLayoutDirty)) { <mask> <mask> for (let child of prim.children) { <mask> if (child._isFlagSet(SmartPropertyPrim.flagNoPartOfLayout)) { <mask> continue; <mask> } <mask> ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
<mask> continue; <mask> } <mask> if (child._hasMargin) { <mask> child.margin.computeWithAlignment(prim.layoutArea, child.actualSize, child.marginAlignment, child.actualScale, GridPanelLayoutEngine.dstOffset, GridPanelLayoutEngin...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
child.margin.computeArea(child.actualSize, child.actualScale, GridPanelLayoutEngine.dstArea);
<mask> if (child._hasMargin) { <mask> child.margin.computeWithAlignment(prim.layoutArea, child.actualSize, child.marginAlignment, child.actualScale, GridPanelLayoutEngine.dstOffset, GridPanelLayoutEngine.dstArea, true); <mask> child.layoutArea = Gri...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
child.layoutArea = GridPanelLayoutEngine.dstArea;
<mask> child.margin.computeWithAlignment(prim.layoutArea, child.actualSize, child.marginAlignment, child.actualScale, GridPanelLayoutEngine.dstOffset, GridPanelLayoutEngine.dstArea, true); <mask> } else { <mask> child.margin.computeArea(child.actual...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
let dstArea = GridPanelLayoutEngine.dstArea; let dstAreaPos = GridPanelLayoutEngine.dstAreaPos;
<mask> let rl = this._rows.length; <mask> let cl = this._columns.length; <mask> let columnWidth = 0; <mask> let rowHeight = 0; <mask> let layoutArea = new BABYLON.Size(0, 0); <mask> <mask> for(let i = 0; i < _childre...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
dstArea.width = columnWidth; dstArea.height = rowHeight;
<mask> } <mask> <mask> } <mask> <mask> child.layoutArea = dstArea; <mask> <mask> dstAreaPos.x = left; <mask> ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
child.layoutArea = dstArea;
<mask> } <mask> <mask> } <mask> <mask> layoutArea.width = columnWidth; <mask> layoutArea.height = rowHeight; <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
dstAreaPos.x = left; dstAreaPos.y = bottom; child.layoutAreaPos = dstAreaPos;
<mask> dstArea.height = rowHeight; <mask> <mask> child.layoutArea = dstArea; <mask> <mask> bottom = oBottom; <mask> rowHeight = oRowHeight; <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87715f3033183c0bfa2301447ea7f36190bf0044
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts
X = 2, // Horizontal constraint Y = 3, // Vertical constraint
<mask> }; <mask> <mask> export enum ConstraintDirection { <mask> NONE = 0, <mask> SET = 1, <mask> X = 2, <mask> Y = 3, <mask> } <mask> <mask> export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps> { <mask> private _rootContainer: React.RefObject<HTMLCanvasElem...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
public artBoardBackground: Nullable<Rectangle>; private _rootContainer: React.RefObject<HTMLCanvasElement>; private _setConstraintDirection: boolean;
<mask> Y = 3, <mask> } <mask> <mask> export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps> { <mask> private _rootContainer: React.RefObject<HTMLCanvasElement>;; <mask> private _mouseStartPointX: Nullable<number> = null; <mask> private _mouseStartPointY: Nullable<numbe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
<mask> private _forcePanning = false; <mask> private _forceZooming = false; <mask> private _forceSelecting = false; <mask> private _outlines = false; <mask> public _frameIsMoving = false; <mask> public _isLoading = false; <mask> public isOverGUINode = false; <mask> public artBoar...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
private _isOverGUINode = false;
<mask> private _panning: boolean; <mask> private _canvas: HTMLCanvasElement; <mask> private _responsive: boolean; <mask> <mask> public get globalState() { <mask> return this.props.globalState; <mask> } <mask> </s> fixes for PR Former-commit-id: 5f324e9d76447d47dbec98976e1861728d...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
if (evt.shiftKey) { this._setConstraintDirection = this._constraintDirection === ConstraintDirection.NONE; } else { this._constraintDirection = ConstraintDirection.NONE; }
<mask> } <mask> <mask> ctrlEvent = (evt: KeyboardEvent) => { <mask> this._ctrlKeyIsPressed = evt.ctrlKey; <mask> this._constraintDirection = evt.shiftKey ? <mask> (this._constraintDirection > ConstraintDirection.SET ? this._constraintDirection : ConstraintDirection.SET) <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
this._isOverGUINode = true;
<mask> this.isUp = false; <mask> }); <mask> <mask> guiControl.onPointerEnterObservable.add((evt) => { <mask> this.isOverGUINode = true; <mask> }); <mask> <mask> guiControl.onPointerOutObservable.add((evt) => { <mask> this.isOverGUINode = fal...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
this._isOverGUINode = false;
<mask> this.isOverGUINode = true; <mask> }); <mask> <mask> guiControl.onPointerOutObservable.add((evt) => { <mask> this.isOverGUINode = false; <mask> }); <mask> <mask> if (this.isContainer(guiControl)) { <mask> (guiControl as Container).chil...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
if (this._setConstraintDirection) { this._setConstraintDirection = false;
<mask> public _onMove(guiControl: Control, evt: Vector2, startPos: Vector2, ignorClick: boolean = false) { <mask> let newX = evt.x - startPos.x; <mask> let newY = evt.y - startPos.y; <mask> <mask> if (this._constraintDirection === ConstraintDirection.SET) { <mask> this._co...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
if (this._constraintDirection === ConstraintDirection.X) {
<mask> <mask> if (this._constraintDirection === ConstraintDirection.SET) { <mask> this._constraintDirection = Math.abs(newX) >= Math.abs(newY) ? ConstraintDirection.X : ConstraintDirection.Y; <mask> } <mask> if (this._constraintDirection == ConstraintDirection.X) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
else if (this._constraintDirection === ConstraintDirection.Y) {
<mask> } <mask> if (this._constraintDirection == ConstraintDirection.X) { <mask> newY = 0; <mask> } <mask> else if (this._constraintDirection == ConstraintDirection.Y) { <mask> newX = 0; <mask> } <mask> <mask> if (guiControl.typeName === ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
if (!this._isOverGUINode) {
<mask> <mask> onDown(evt: React.PointerEvent<HTMLElement>) { <mask> this._rootContainer.current?.setPointerCapture(evt.pointerId); <mask> <mask> if (!this.isOverGUINode) { <mask> this.props.globalState.onSelectionChangedObservable.notifyObservers(null); <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
this._constraintDirection = ConstraintDirection.NONE;
<mask> public isUp: boolean = true; <mask> onUp(evt: React.PointerEvent) { <mask> this._mouseStartPointX = null; <mask> this._mouseStartPointY = null; <mask> if (this._constraintDirection > ConstraintDirection.SET) { <mask> this._constraintDirection = ConstraintDirectio...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/87f1e872fbdb7e70a839cb6de2e080e56317ce3f
guiEditor/src/diagram/workbench.tsx
if (!this.props.globalState) {
<mask> this.setState({ isExpanded: newState }); <mask> } <mask> <mask> componentDidMount() { <mask> if (this.props.globalState && this.props.globalState.selectedLineContainerTitles.length === 0) { <mask> return; <mask> } <mask> <mask> if (this.props.globalS...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887a9aa9eb6f03da1a0515bbd832a3285d747c3c
inspector/src/components/actionTabs/lineContainerComponent.tsx
if (this.props.globalState.selectedLineContainerTitles.length === 0 && this.props.globalState.selectedLineContainerTitlesNoFocus.length === 0) { return; } if (this.props.globalState.selectedLineContainerTitles.indexOf(this.props.title) > -1) {
<mask> if (this.props.globalState && this.props.globalState.selectedLineContainerTitles.length === 0) { <mask> return; <mask> } <mask> <mask> if (this.props.globalState && this.props.globalState.selectedLineContainerTitles.indexOf(this.props.title) > -1) { <mask> s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887a9aa9eb6f03da1a0515bbd832a3285d747c3c
inspector/src/components/actionTabs/lineContainerComponent.tsx
} else if (this.props.globalState.selectedLineContainerTitlesNoFocus.indexOf(this.props.title) > -1) { this.setState({ isExpanded: true, isHighlighted: false });
<mask> window.setTimeout(() => { <mask> this.setState({ isHighlighted: false }); <mask> }, 5000); <mask> } else { <mask> this.setState({isExpanded: false}); <mask> } <mask> } <mask> </s> animation support for sandbox Former-commit-id: 2...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887a9aa9eb6f03da1a0515bbd832a3285d747c3c
inspector/src/components/actionTabs/lineContainerComponent.tsx
public selectedLineContainerTitles:Array<string> = []; public selectedLineContainerTitlesNoFocus:Array<string> = [];
<mask> public glTFLoaderExtensionDefaults: { [name: string]: { [key: string]: any } } = {}; <mask> public glTFLoaderDefaults: { [key: string]: any } = { "validate": true }; <mask> <mask> public blockMutationUpdates = false; <mask> public selectedLineContainerTitles:Array<string> = []; <mask> <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887a9aa9eb6f03da1a0515bbd832a3285d747c3c
inspector/src/components/globalState.ts
this.selectedLineContainerTitlesNoFocus.push("GLTF VALIDATION");
<mask> this.validationResults = results; <mask> this.onValidationResultsUpdatedObservable.notifyObservers(results); <mask> <mask> if (results.issues.numErrors || results.issues.numWarnings) { <mask> Inspector.MarkLineContainerTitleForHighlighting("GLTF VALIDATIO...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887a9aa9eb6f03da1a0515bbd832a3285d747c3c
inspector/src/components/globalState.ts
padding: 0px; margin: 0px;
<mask> grid-column: 2; <mask> grid-row: 1; <mask> } <mask> <mask> .row { <mask> display: flex; <mask> flex-direction: row; </s> animation support for sandbox Former-commit-id: 21d8f5d9480ad9bebf0042a1a0a72ad7f4bf5ad5 </s> remove if (this.props.globalState && this.props.globalState.sel...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887a9aa9eb6f03da1a0515bbd832a3285d747c3c
sandbox/index.css
var iconUp = require("../img/icon-up.svg"); var iconDown = require("../img/icon-down.svg");
<mask> import { Nullable } from 'babylonjs/types'; <mask> import { Observer } from 'babylonjs/Misc/observable'; <mask> <mask> <mask> interface IDropUpButtonProps { <mask> globalState: GlobalState; <mask> enabled: boolean; <mask> icon?: any; </s> animation support for sandbox Former-commit-id: 2...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887a9aa9eb6f03da1a0515bbd832a3285d747c3c
sandbox/src/components/dropUpButton.tsx
private _sessionMode: XRSessionMode;
<mask> private _xrNavigator: any; <mask> private _baseLayer: Nullable<XRWebGLLayer> = null; <mask> private _renderTargetTextures: Array<RenderTargetTexture> = []; <mask> <mask> /** <mask> * The base reference space from which the session started. good if you want to reset your <mask> *...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887bba2f0e183f4cec975533199ca3ed0a60c84b
src/XR/webXRSessionManager.ts
this._sessionMode = xrSessionMode;
<mask> return this._xrNavigator.xr.requestSession(xrSessionMode, xrSessionInit).then((session: XRSession) => { <mask> this.session = session; <mask> this.onXRSessionInit.notifyObservers(session); <mask> this._sessionEnded = false; <mask> <mask> // handle wh...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887bba2f0e183f4cec975533199ca3ed0a60c84b
src/XR/webXRSessionManager.ts
if (this._sessionMode === 'immersive-ar') { renderTargetTexture.clearColor = new Color4(0, 0, 0, 0); }
<mask> // Create render target texture from the internal texture <mask> const renderTargetTexture = new RenderTargetTexture("XR renderTargetTexture", { width: width, height: height }, this.scene, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, true); ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887bba2f0e183f4cec975533199ca3ed0a60c84b
src/XR/webXRSessionManager.ts
if (camera?.rigCameras?.length) {
<mask> private checkCameraRenderTarget(camera: Nullable<Camera>) { <mask> if (camera?.outputRenderTarget && !camera?.isRigCamera) { <mask> camera.outputRenderTarget._cleared = false; <mask> } <mask> if (camera?.rigCameras?.length && camera?.rigCameras?.length > 1) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/887bba2f0e183f4cec975533199ca3ed0a60c84b
src/scene.ts
<mask> top: 0; <mask> left: 0; <mask> right: 0; <mask> bottom: 0; <mask> z-index: 8; <mask> } <mask> <mask> /* Media queries */ <mask> <mask> @media (min-width: 1270px) { </s> Fix issue with fps counter Former-commit-id: 610ec264567dd53e3e6d2802760d387503f9ae69 </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/893e98a7b7ef64a0c979567131d569e645e9fd3a
Playground/css/index.css
// we do not want to proceed if a menu is displayed or if we are in diff mode const candidates = ["saveLayer", "diffLayer", "diffView"]; if (candidates.every(c => !(document.getElementById(c).style.display === "block"))) { this.removeAllOptions();
<mask> this.skipNextClick = false; <mask> return; <mask> } <mask> <mask> if (document.getElementById("saveLayer").style.display === "block") { <mask> return; <mask> } <mask> this.removeAllOptions(); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/893e98a7b7ef64a0c979567131d569e645e9fd3a
Playground/js/menuPG.js
<mask> <mask> if (document.getElementById("saveLayer").style.display === "block") { <mask> return; <mask> } <mask> this.removeAllOptions(); <mask> }.bind(this)); <mask> <mask> // Version selection <mask> for (var i = 0; i < this.pare...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/893e98a7b7ef64a0c979567131d569e645e9fd3a
Playground/js/menuPG.js
const frameDist = currentFrame - prevFrame;
<mask> const currentFrame = keys[keyIndex].frame; <mask> const prevValue = keys[keyIndex - 1].value; <mask> const currentValue = keys[keyIndex].value; <mask> <mask> let controlPoint0Frame = prevFrame + frameDist / 2; <mask> let controlPoint1Frame = prev...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
let controlPoint0Frame = prevFrame + frameDist / 2; let controlPoint1Frame = prevFrame + frameDist / 2;
<mask> const currentFrame = keys[keyIndex].frame; <mask> const prevValue = keys[keyIndex - 1].value; <mask> const currentValue = keys[keyIndex].value; <mask> <mask> let controlPoint0Frame = prevFrame + (currentFrame - prevFrame) / 2; <mask> let controlP...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
controlPoint0Frame = prevFrame + frameDist / 3; controlPoint0Value = prevValue + outTangent * frameDist / 3;
<mask> let controlPoint0Value: number; <mask> let controlPoint1Value: number; <mask> <mask> if (outTangent) { <mask> controlPoint0Frame = 2 * prevFrame / 3 + currentFrame / 3; <mask> controlPoint0Value = prevValue + outTangent / 3; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
controlPoint1Frame = currentFrame - frameDist / 3; controlPoint1Value = currentValue - inTangent * frameDist / 3;
<mask> controlPoint0Value = this.property ? animEval[this.property] : animEval; <mask> } <mask> <mask> if (inTangent) { <mask> controlPoint1Frame = prevFrame / 3 + 2 * currentFrame / 3; <mask> controlPoint1Value = currentValue - inTangent / ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
public getInControlPoint(keyIndex: number, length: number) {
<mask> <mask> return pathData; <mask> } <mask> <mask> public getInControlPoint(keyIndex: number) { <mask> if (keyIndex === 0) { <mask> return null; <mask> } <mask> <mask> const keys = this.keys; </s> ace: last stage Former-commit-id: cdaf55eff8ef81fe251...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
return 0;
<mask> } <mask> <mask> public getInControlPoint(keyIndex: number) { <mask> if (keyIndex === 0) { <mask> return null; <mask> } <mask> <mask> const keys = this.keys; <mask> const inTangent = keys[keyIndex].inTangent; <mask> </s> ace: last stage Former-com...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
let inTangent = keys[keyIndex].inTangent;
<mask> return null; <mask> } <mask> <mask> const keys = this.keys; <mask> const inTangent = keys[keyIndex].inTangent; <mask> <mask> if (inTangent) { <mask> const prevFrame = keys[keyIndex - 1].frame; <mask> const currentFrame = keys[keyIndex...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
if (!inTangent) {
<mask> <mask> const keys = this.keys; <mask> const inTangent = keys[keyIndex].inTangent; <mask> <mask> if (inTangent) { <mask> const prevFrame = keys[keyIndex - 1].frame; <mask> const currentFrame = keys[keyIndex].frame; <mask> const currentValue = k...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
const evaluatedValueEntry = this.animation.evaluate(midFrame); let evaluatedValue = 0;
<mask> const prevFrame = keys[keyIndex - 1].frame; <mask> const currentFrame = keys[keyIndex].frame; <mask> const midFrame = prevFrame + (currentFrame - prevFrame) / 2; <mask> <mask> let evaluatedValue = this.animation.evaluate(midFrame); <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
if (this.property) { evaluatedValue = evaluatedValueEntry[this.property];
<mask> const midFrame = prevFrame + (currentFrame - prevFrame) / 2; <mask> <mask> let evaluatedValue = this.animation.evaluate(midFrame); <mask> <mask> return { <mask> frame: midFrame, <mask> value: this.property ? evaluatedValue[this.property...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
inTangent = (keys[keyIndex].value - evaluatedValue) / (currentFrame - midFrame);
<mask> <mask> if (this.property) { <mask> evaluatedValue = evaluatedValueEntry[this.property]; <mask> } <mask> } <mask> <mask> return length * inTangent; <mask> } </s> ace: last stage Former-commit-id: cdaf55eff8ef81fe2518733b7139d15007e7aa86 </s> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
return length * inTangent;
<mask> <mask> inTangent = (keys[keyIndex].value - evaluatedValue) / (currentFrame - midFrame); <mask> } <mask> } <mask> <mask> public getOutControlPoint(keyIndex: number, length: number) { <mask> const keys = this.keys; <mask> if (keyIndex === keys.length - ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
public getOutControlPoint(keyIndex: number, length: number) {
<mask> } <mask> } <mask> } <mask> <mask> public getOutControlPoint(keyIndex: number) { <mask> const keys = this.keys; <mask> if (keyIndex === keys.length - 1) { <mask> return null; <mask> } <mask> const outTangent = keys[keyIndex...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
return 0;
<mask> <mask> public getOutControlPoint(keyIndex: number) { <mask> const keys = this.keys; <mask> if (keyIndex === keys.length - 1) { <mask> return null; <mask> } <mask> const outTangent = keys[keyIndex].outTangent; <mask> <mask> if (outTangent)...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
<mask> const keys = this.keys; <mask> if (keyIndex === keys.length - 1) { <mask> return null; <mask> } <mask> const outTangent = keys[keyIndex].outTangent; <mask> <mask> if (outTangent) { <mask> const prevFrame = keys[keyIndex].frame; ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
let outTangent = keys[keyIndex].outTangent;
<mask> const prevFrame = keys[keyIndex].frame; <mask> const prevValue = keys[keyIndex].value; <mask> const currentFrame = keys[keyIndex + 1].frame; <mask> <mask> const frame = 2 * prevFrame / 3 + currentFrame / 3; <mask> const value = prevValue ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
if (!outTangent) {
<mask> <mask> const frame = 2 * prevFrame / 3 + currentFrame / 3; <mask> const value = prevValue + outTangent / 3; <mask> <mask> return { <mask> frame: frame, <mask> value: value <mask> } <mask> } else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
const evaluatedValueEntry = this.animation.evaluate(midFrame); let evaluatedValue = 0;
<mask> const prevFrame = keys[keyIndex].frame; <mask> const currentFrame = keys[keyIndex + 1].frame; <mask> const midFrame = prevFrame + (currentFrame - prevFrame) / 2; <mask> <mask> let evaluatedValue = this.animation.evaluate(midFrame); <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
if (this.property) { evaluatedValue = evaluatedValueEntry[this.property];
<mask> const midFrame = prevFrame + (currentFrame - prevFrame) / 2; <mask> <mask> let evaluatedValue = this.animation.evaluate(midFrame); <mask> <mask> return { <mask> frame: midFrame, <mask> value: this.property ? evaluatedValue[this.property...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
outTangent = (evaluatedValue - keys[keyIndex].value) / (midFrame - currentFrame);
<mask> <mask> if (this.property) { <mask> evaluatedValue = evaluatedValueEntry[this.property]; <mask> } <mask> } <mask> <mask> return length * outTangent; <mask> } <mask> <mask> public updateInTangentFromControlPoint(keyId: number, slope: numb...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
return length * outTangent;
<mask> outTangent = (evaluatedValue - keys[keyIndex].value) / (midFrame - currentFrame); <mask> } <mask> } <mask> <mask> public updateInTangentFromControlPoint(keyId: number, slope: number) { <mask> this.keys[keyId].inTangent = slope; <mask> <mask> if (this.property...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
public updateInTangentFromControlPoint(keyId: number, slope: number) { this.keys[keyId].inTangent = slope;
<mask> } <mask> } <mask> } <mask> <mask> public updateInTangentFromControlPoint(keyId: number, value: number) { <mask> const slope = (this.keys[keyId].value - value); <mask> this.keys[keyId].inTangent = slope * (this.keys[keyId].inTangent ? 2 / 3 : 1 / 2); <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
public updateOutTangentFromControlPoint(keyId: number, slope: number) { console.log(slope) this.keys[keyId].outTangent = slope;
<mask> <mask> this.onDataUpdatedObservable.notifyObservers(); <mask> } <mask> <mask> public updateOutTangentFromControlPoint(keyId: number, value: number) { <mask> const slope = (value - this.keys[keyId].value); <mask> this.keys[keyId].outTangent = slope * (this.keys[keyId].outT...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts
private _storedLengthin: number; private _storedLengthOut: number;
<mask> private _keyPointSVG: React.RefObject<SVGImageElement>; <mask> <mask> private _controlMode = ControlMode.None; <mask> <mask> private _currentLeftControlPoint: Nullable<{frame: number, value: number}>; <mask> private _currentRightControlPoint: Nullable<{frame: number, value: number}>; <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/keyPoint.tsx
private _inVec: Vector2; private _outVec: Vector2;
<mask> <mask> private _currentLeftControlPoint: Nullable<{frame: number, value: number}>; <mask> private _currentRightControlPoint: Nullable<{frame: number, value: number}>; <mask> <mask> private _tangentReferenceX: number; <mask> private _tangentReferenceY: number; <mask> <mask> construc...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/keyPoint.tsx
<mask> evt.currentTarget.setPointerCapture(evt.pointerId); <mask> this._sourcePointerX = evt.nativeEvent.offsetX; <mask> this._sourcePointerY = evt.nativeEvent.offsetY; <mask> <mask> const bbox = (evt.nativeEvent.target as HTMLElement).getBoundingClientRect(); <mask> this....
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/89f6c4e0ea73a5fdcd4696faba11f24399708654
inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/keyPoint.tsx