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
texture.baseDepth = depth; texture.width = width; texture.height = height; texture.depth = depth; texture.format = format;
<mask> texture.samplingMode = samplingMode; <mask> texture.invertY = invertY; <mask> texture.baseWidth = width; <mask> texture.baseHeight = height; <mask> texture.width = texture.baseWidth; <mask> texture.height = texture.baseHeight; <mask> texture._compres...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/28dee39f17bbcae30275272c356662de612d48fb
src/Engines/nativeEngine.ts
texture.generateMipMaps = generateMipMaps; texture.samplingMode = samplingMode;
<mask> texture.format = format; <mask> texture.type = textureType; <mask> texture.is2DArray = true; <mask> <mask> if (texture._hardwareTexture) { <mask> var webGLTexture = texture._hardwareTexture.underlyingResource; <mask> this._engine.loadRawTexture2DArr...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/28dee39f17bbcae30275272c356662de612d48fb
src/Engines/nativeEngine.ts
<mask> texture.height = texture.baseHeight; <mask> texture._compression = compression; <mask> texture.type = textureType; <mask> texture.is2DArray = true; <mask> texture.is3D = false; <mask> texture.depth = depth; <mask> <mask> if (texture._hardwareTextur...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/28dee39f17bbcae30275272c356662de612d48fb
src/Engines/nativeEngine.ts
texture.isReady = true; this._internalTexturesCache.push(texture);
<mask> var filter = this._getNativeSamplingMode(samplingMode); <mask> this._setTextureSampling(webGLTexture, filter); <mask> } <mask> <mask> return texture; <mask> } <mask> <mask> public updateRawTexture(texture: Nullable<InternalTexture>, bufferView: Nullable<A...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/28dee39f17bbcae30275272c356662de612d48fb
src/Engines/nativeEngine.ts
<mask> <mask> // Composing transformations <mask> this._pivotMatrix.multiplyToRef(Tmp.Matrix[1], Tmp.Matrix[4]); <mask> Tmp.Matrix[4].multiplyToRef(Tmp.Matrix[0], Tmp.Matrix[5]); <mask> <mask> // Mesh referal <mask> var completeMeshReferalMatrix = Tmp...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/291416fd2529053ef3da97428c7509dc349d3532
src/Mesh/babylon.abstractMesh.ts
this.parent.getWorldMatrix().multiplyToRef(this._meshToBoneReferal.getWorldMatrix(), Tmp.Matrix[6]); Vector3.TransformCoordinatesToRef(this.position, Tmp.Matrix[6], currentPosition);
<mask> var currentPosition = Tmp.Vector3[3]; <mask> <mask> if (this.parent && this.parent.getWorldMatrix) { <mask> if (this._meshToBoneReferal) { <mask> Vector3.TransformCoordinatesToRef(this.position, completeMeshReferalM...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/291416fd2529053ef3da97428c7509dc349d3532
src/Mesh/babylon.abstractMesh.ts
this.parent.getWorldMatrix().multiplyToRef(this._meshToBoneReferal.getWorldMatrix(), Tmp.Matrix[6]); Tmp.Matrix[5].copyFrom(Tmp.Matrix[6]);
<mask> this._markSyncedWithParent(); <mask> <mask> if (this.billboardMode !== AbstractMesh.BILLBOARDMODE_NONE) { <mask> if (this._meshToBoneReferal) { <mask> Tmp.Matrix[5].copyFrom(completeMeshReferalMatrix); <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/291416fd2529053ef3da97428c7509dc349d3532
src/Mesh/babylon.abstractMesh.ts
this._localWorld.multiplyToRef(this.parent.getWorldMatrix(), Tmp.Matrix[6]); Tmp.Matrix[6].multiplyToRef(this._meshToBoneReferal.getWorldMatrix(), this._worldMatrix);
<mask> this._worldMatrix.setTranslation(Tmp.Vector3[5]); <mask> <mask> } else { <mask> if (this._meshToBoneReferal) { <mask> this._localWorld.multiplyToRef(completeMeshReferalMatrix, this._worldMatrix); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/291416fd2529053ef3da97428c7509dc349d3532
src/Mesh/babylon.abstractMesh.ts
public onInputChanged: (deviceType: DeviceType, deviceSlot: number, inputIndex: number, previousState: Nullable<number>, currentState: Nullable<number>, eventData?: any) => void;
<mask> <mask> /** <mask> * Callback to be triggered when event driven input is updated <mask> */ <mask> public onInputChanged: (deviceType: DeviceType, deviceSlot: number, inputIndex: number, previousState: Nullable<number>, currentState: Nullable<number>) => void; <mask> <mask> // Privat...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
private _keyboardBlurEvent = (evt: any) => { };
<mask> private _keyboardDownEvent = (evt: any) => { }; <mask> private _keyboardUpEvent = (evt: any) => { }; <mask> <mask> private _pointerMoveEvent = (evt: any) => { }; <mask> private _pointerDownEvent = (evt: any) => { }; <mask> private _pointerUpEvent = (evt: any) => { }; <mask> privat...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
// Set tab index for the inputElement to the engine's canvasTabIndex, if and only if the element's tab index is -1 this._elementToAttachTo.tabIndex = (this._elementToAttachTo.tabIndex !== -1) ? this._elementToAttachTo.tabIndex : engine.canvasTabIndex;
<mask> <mask> if (inputElement) { <mask> this._elementToAttachTo = inputElement; <mask> this._handleKeyActions(); <mask> this._handlePointerActions(); <mask> this._handleGamepadActions(); <mask> <mask> // Check for devices that are already co...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
// Blur Events this._elementToAttachTo.removeEventListener("blur", this._keyboardBlurEvent);
<mask> /** <mask> * Dispose of all the eventlisteners <mask> */ <mask> public dispose() { <mask> // Keyboard Events <mask> if (this._keyboardActive) { <mask> this._elementToAttachTo.removeEventListener("keydown", this._keyboardDownEvent); <mask> this._el...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this._elementToAttachTo.removeEventListener("keydown", this._keyboardDownEvent); this._elementToAttachTo.removeEventListener("keyup", this._keyboardUpEvent);
<mask> */ <mask> public dispose() { <mask> // Keyboard Events <mask> if (this._keyboardActive) { <mask> window.removeEventListener("keydown", this._keyboardDownEvent); <mask> window.removeEventListener("keyup", this._keyboardUpEvent); <mask> } <mask> <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(DeviceType.Keyboard, 0, evt.keyCode, 0, kbKey[evt.keyCode], evt);
<mask> const kbKey = this._inputs[DeviceType.Keyboard][0]; <mask> if (kbKey) { <mask> kbKey[evt.keyCode] = 1; <mask> if (this.onInputChanged) { <mask> this.onInputChanged(DeviceType.Keyboard, 0, evt.keyCode, 0, kbKey[evt.keyCode]); <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(DeviceType.Keyboard, 0, evt.keyCode, 1, kbKey[evt.keyCode], evt); } } }); this._keyboardBlurEvent = ((evt) => { if (this._keyboardActive) { const kbKey = this._inputs[DeviceType.Keyboard][0]; ...
<mask> const kbKey = this._inputs[DeviceType.Keyboard][0]; <mask> if (kbKey) { <mask> kbKey[evt.keyCode] = 0; <mask> if (this.onInputChanged) { <mask> this.onInputChanged(DeviceType.Keyboard, 0, evt.keyCode, 1, kbKey[evt.keyCode]); <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this._elementToAttachTo.addEventListener("keydown", this._keyboardDownEvent); this._elementToAttachTo.addEventListener("keyup", this._keyboardUpEvent); this._elementToAttachTo.addEventListener("blur", this._keyboardBlurEvent);
<mask> } <mask> } <mask> }); <mask> <mask> window.addEventListener("keydown", this._keyboardDownEvent); <mask> window.addEventListener("keyup", this._keyboardUpEvent); <mask> } <mask> <mask> /** <mask> * Handle all actions that come from point...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerInput.Horizontal], evt);
<mask> pointer[PointerInput.DeltaVertical] = evt.movementY; <mask> <mask> if (this.onInputChanged) { <mask> if (previousHorizontal !== evt.clientX) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHori...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.Vertical, previousVertical, pointer[PointerInput.Vertical], evt);
<mask> if (previousHorizontal !== evt.clientX) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerInput.Horizontal]); <mask> } <mask> if (previousVertical !== evt.clientY...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.DeltaHorizontal, previousDeltaHorizontal, pointer[PointerInput.DeltaHorizontal], evt);
<mask> if (previousVertical !== evt.clientY) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Vertical, previousVertical, pointer[PointerInput.Vertical]); <mask> } <mask> if (pointer[PointerInput.DeltaHorizontal] !=...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.DeltaVertical, previousDeltaVertical, pointer[PointerInput.DeltaVertical], evt);
<mask> if (pointer[PointerInput.DeltaHorizontal] !== 0) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.DeltaHorizontal, previousDeltaHorizontal, pointer[PointerInput.DeltaHorizontal]); <mask> } <mask> if (pointer[...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerInput.Horizontal], evt);
<mask> pointer[evt.button + 2] = 1; <mask> <mask> if (this.onInputChanged) { <mask> if (previousHorizontal !== evt.clientX) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerI...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.Vertical, previousVertical, pointer[PointerInput.Vertical], evt);
<mask> if (previousHorizontal !== evt.clientX) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerInput.Horizontal]); <mask> } <mask> if (previousVertical !== evt.clientY...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, evt.button + 2, previousButton, pointer[evt.button + 2], evt);
<mask> } <mask> if (previousVertical !== evt.clientY) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Vertical, previousVertical, pointer[PointerInput.Vertical]); <mask> } <mask> this.onInputCh...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerInput.Horizontal], evt);
<mask> pointer[evt.button + 2] = 0; <mask> <mask> if (this.onInputChanged) { <mask> if (previousHorizontal !== evt.clientX) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerI...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.Vertical, previousVertical, pointer[PointerInput.Vertical], evt);
<mask> if (previousHorizontal !== evt.clientX) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Horizontal, previousHorizontal, pointer[PointerInput.Horizontal]); <mask> } <mask> if (previousVertical !== evt.clientY...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, evt.button + 2, previousButton, pointer[evt.button + 2], evt);
<mask> } <mask> if (previousVertical !== evt.clientY) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.Vertical, previousVertical, pointer[PointerInput.Vertical]); <mask> } <mask> this.onInputCh...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.MouseWheelX, previousWheelScrollX, pointer[PointerInput.MouseWheelX], evt);
<mask> pointer[PointerInput.MouseWheelZ] = evt.deltaZ; <mask> <mask> if (this.onInputChanged) { <mask> if (evt.deltaX !== 0) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.MouseWheelX, previousWheelScrollX, pointer[Poin...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.MouseWheelY, previousWheelScrollY, pointer[PointerInput.MouseWheelY], evt);
<mask> if (evt.deltaX !== 0) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.MouseWheelX, previousWheelScrollX, pointer[PointerInput.MouseWheelX]); <mask> } <mask> if (evt.deltaY !== 0) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this.onInputChanged(deviceType, deviceSlot, PointerInput.MouseWheelZ, previousWheelScrollZ, pointer[PointerInput.MouseWheelZ], evt);
<mask> if (evt.deltaY !== 0) { <mask> this.onInputChanged(deviceType, deviceSlot, PointerInput.MouseWheelY, previousWheelScrollY, pointer[PointerInput.MouseWheelY]); <mask> } <mask> if (evt.deltaZ !== 0) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/DeviceInput/deviceInputSystem.ts
this._deviceInputSystem.onInputChanged = (deviceType, deviceSlot, inputIndex, previousState, currentState, eventData) => {
<mask> scene.actionManager.processTrigger(Constants.ACTION_OnKeyUpTrigger, ActionEvent.CreateNewFromScene(scene, evt)); <mask> } <mask> }; <mask> <mask> this._deviceInputSystem.onInputChanged = (deviceType, deviceSlot, inputIndex, previousState, currentState) => { <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
// If we have the actual event data, use that. Otherwise, default to derived data. let currentEvent = eventData || evt;
<mask> evt.type = ((currentState === 1) ? "keydown" : "keyup"); <mask> evt.key = String.fromCharCode(inputIndex); <mask> evt.keyCode = inputIndex; <mask> <mask> if (currentState === 1) { <mask> this._onKeyDown((currentEvent as IK...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
this._onKeyDown((currentEvent as IKeyboardEvent));
<mask> evt.key = String.fromCharCode(inputIndex); <mask> evt.keyCode = inputIndex; <mask> <mask> if (currentState === 1) { <mask> this._onKeyDown((evt as IKeyboardEvent)); <mask> } <mask> <mask> if (currentStat...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
this._onKeyUp((currentEvent as IKeyboardEvent));
<mask> this._onKeyDown((evt as IKeyboardEvent)); <mask> } <mask> <mask> if (currentState === 0) { <mask> this._onKeyUp((evt as IKeyboardEvent)); <mask> } <mask> } <mask> <mask> // Pointer Events <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
let currentEvent = eventData || evt; this._onPointerDown((currentEvent as IPointerEvent));
<mask> if (attachDown && inputIndex >= PointerInput.LeftClick && inputIndex <= PointerInput.RightClick && currentState === 1) { // Pointer Down <mask> evt.type = "pointerdown"; <mask> evt.button = (inputIndex - 2); <mask> <mask> this._o...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
let currentEvent = eventData || evt;
<mask> if (attachUp && inputIndex >= PointerInput.LeftClick && inputIndex <= PointerInput.RightClick && currentState === 0) { // Pointer Up <mask> evt.type = "pointerup"; <mask> evt.button = (inputIndex - 2); <mask> <mask> this._onPoint...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
this._onPointerUp((currentEvent as IPointerEvent));
<mask> if (attachUp && inputIndex >= PointerInput.LeftClick && inputIndex <= PointerInput.RightClick && currentState === 0) { // Pointer Up <mask> evt.type = "pointerup"; <mask> evt.button = (inputIndex - 2); <mask> <mask> this._onPoint...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
let currentEvent = eventData || evt;
<mask> if (inputIndex === PointerInput.Horizontal || inputIndex === PointerInput.Vertical || inputIndex === PointerInput.DeltaHorizontal || inputIndex === PointerInput.DeltaVertical) { <mask> evt.type = "pointermove"; <mask> <mask> this._onPointer...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
this._onPointerMove((currentEvent as IPointerEvent));
<mask> if (attachMove) { <mask> if (inputIndex === PointerInput.Horizontal || inputIndex === PointerInput.Vertical || inputIndex === PointerInput.DeltaHorizontal || inputIndex === PointerInput.DeltaVertical) { <mask> evt.type = "pointermove"; <mask> <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
let currentEvent = eventData || evt; this._onPointerMove((currentEvent as IWheelEvent));
<mask> evt.deltaZ = deltaZ; <mask> <mask> // If we have a delta, use it. <mask> if (deltaX !== 0 || deltaY !== 0 || deltaZ !== 0) { <mask> this._onPointerMove((evt as IWheelEvent)); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2ab987943a1bece1ca18907ffd83f99914d2ecd5
src/Inputs/scene.inputManager.ts
this._markAllSubMeshesAsImageProcessingDirty();
<mask> } <mask> <mask> // Attaches observer. <mask> this._imageProcessingObserver = this._imageProcessingConfiguration.onUpdateParameters.add(conf => { <mask> this._markAllSubMeshesAsTexturesDirty(); <mask> }); <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/PBR/babylon.pbrBaseMaterial.ts
}
<mask> defines.PREMULTIPLYALPHA = this._premultiplyAlpha; <mask> defines.ALPHABLEND = this.needAlphaBlending(); <mask> defines.ALPHAFRESNEL = this._useAlphaFresnel; <mask> <mask> if (defines._areImageProcessingDirty) { <mask> if (!this._...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/PBR/babylon.pbrBaseMaterial.ts
if (defines._areImageProcessingDirty) {
<mask> defines.ALPHABLEND = this.needAlphaBlending(); <mask> defines.ALPHAFRESNEL = this._useAlphaFresnel; <mask> } <mask> <mask> if (!this._imageProcessingConfiguration.isReady()) { <mask> return false; <mask> } <m...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/PBR/babylon.pbrBaseMaterial.ts
public _areImageProcessingDirty = true;
<mask> public _areFresnelDirty = true; <mask> public _areMiscDirty = true; <mask> <mask> public _normals = false; <mask> public _uvs = false; <mask> </s> Added dirty for image processing Former-commit-id: 0744f4063f15ff79a49db7d91f357bd19d05fbe3 </s> remove ...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.material.ts
this._areImageProcessingDirty = false;
<mask> this._areTexturesDirty = false; <mask> this._areFresnelDirty = false; <mask> this._areLightsDirty = false; <mask> this._areMiscDirty = false; <mask> } <mask> <mask> public markAsUnprocessed() { <mask> this._isDirty = true; <mas...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.material.ts
this._areImageProcessingDirty = true;
<mask> this._areFresnelDirty = true; <mask> this._areMiscDirty = true; <mask> this._isDirty = true; <mask> } <mask> <mask> public markAsImageProcessingDirty() { <mask> this._areImageProcessingDirty = true; </s> Added dirty for image processing F...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.material.ts
public markAsImageProcessingDirty() { this._areImageProcessingDirty = true; this._isDirty = true; }
<mask> this._isDirty = true; <mask> } <mask> <mask> public markAsLightDirty() { <mask> this._areLightsDirty = true; <mask> this._isDirty = true; <mask> } <mask> </s> Added dirty for image processing Former-commit-id: 0744f4063f15ff79a49db7d91f357b...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.material.ts
protected _markAllSubMeshesAsImageProcessingDirty() { this._markAllSubMeshesAsDirty(defines => defines.markAsImageProcessingDirty()); }
<mask> } <mask> } <mask> <mask> protected _markAllSubMeshesAsTexturesDirty() { <mask> this._markAllSubMeshesAsDirty(defines => defines.markAsTexturesDirty()); <mask> } <mask> </s> Added dirty for image processing Former-commit-id: 0744f4063f15ff79a49db7d91f357...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.material.ts
this._markAllSubMeshesAsImageProcessingDirty();
<mask> } <mask> <mask> // Attaches observer. <mask> this._imageProcessingObserver = this._imageProcessingConfiguration.onUpdateParameters.add(conf => { <mask> this._markAllSubMeshesAsTexturesDirty(); <mask> }); <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.standardMaterial.ts
<mask> defines.BUMP = false; <mask> defines.REFRACTION = false; <mask> } <mask> <mask> if (!this.imageProcessingConfiguration.isReady()) { <mask> return false; <mask> } <mask> <mask> th...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.standardMaterial.ts
if (defines._areImageProcessingDirty) { if (!this._imageProcessingConfiguration.isReady()) { return false; } this._imageProcessingConfiguration.prepareDefines(defines); }
<mask> defines.SPECULAROVERALPHA = this._useSpecularOverAlpha; <mask> } <mask> <mask> if (defines._areFresnelDirty) { <mask> if (StandardMaterial.FresnelEnabled) { <mask> // Fresnel <mask> if (this._diffuseFresnelPar...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2b9c50936c895efc03742a440d5de31ea45f6460
src/Materials/babylon.standardMaterial.ts
// Delta is in seconds, should be provided in milliseconds this.world.step(this._fixedTimeStep, this._useDeltaForWorldStep ? delta * 1000 : 0, 3);
<mask> this._fixedTimeStep = timeStep; <mask> } <mask> <mask> public executeStep(delta: number, impostors: Array<PhysicsImpostor>): void { <mask> this.world.step(this._fixedTimeStep, this._useDeltaForWorldStep ? delta : 0, 3); <mask> } <mask> <mask> publ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public getBodyMass(impostor: PhysicsImpostor): number {
<mask> impostor.physicsBody.mass = mass; <mask> impostor.physicsBody.updateMassProperties(); <mask> } <mask> <mask> public getBodyMass(impostor: PhysicsImpostor):number { <mask> return impostor.physicsBody.mass; <mask> } <mask> <mask> public...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public getBodyFriction(impostor: PhysicsImpostor): number {
<mask> public getBodyMass(impostor: PhysicsImpostor):number { <mask> return impostor.physicsBody.mass; <mask> } <mask> <mask> public getBodyFriction(impostor: PhysicsImpostor):number { <mask> return impostor.physicsBody.material.friction; <mask> } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public setBodyFriction(impostor: PhysicsImpostor, friction: number) {
<mask> public getBodyFriction(impostor: PhysicsImpostor):number { <mask> return impostor.physicsBody.material.friction; <mask> } <mask> <mask> public setBodyFriction(impostor: PhysicsImpostor, friction:number) { <mask> impostor.physicsBody.material.friction = frict...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public getBodyRestitution(impostor: PhysicsImpostor): number {
<mask> public setBodyFriction(impostor: PhysicsImpostor, friction:number) { <mask> impostor.physicsBody.material.friction = friction; <mask> } <mask> <mask> public getBodyRestitution(impostor: PhysicsImpostor):number { <mask> return impostor.physicsBody.material.re...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public setBodyRestitution(impostor: PhysicsImpostor, restitution: number) {
<mask> public getBodyRestitution(impostor: PhysicsImpostor):number { <mask> return impostor.physicsBody.material.restitution; <mask> } <mask> <mask> public setBodyRestitution(impostor: PhysicsImpostor, restitution:number) { <mask> impostor.physicsBody.material.rest...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public syncMeshWithImpostor(mesh: AbstractMesh, impostor: PhysicsImpostor) {
<mask> joint.physicsJoint.motorEquation.maxForce = upperLimit; <mask> joint.physicsJoint.motorEquation.minForce = lowerLimit === void 0 ? -upperLimit : lowerLimit; <mask> } <mask> <mask> public syncMeshWithImpostor(mesh:AbstractMesh, impostor:PhysicsImpostor){ <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public getRadius(impostor: PhysicsImpostor): number {
<mask> mesh.rotationQuaternion.z = body.quaternion.z; <mask> mesh.rotationQuaternion.w = body.quaternion.w; <mask> } <mask> <mask> public getRadius(impostor: PhysicsImpostor):number{ <mask> var shape = impostor.physicsBody.shapes[0]; <mask> return ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
public getBoxSizeToRef(impostor: PhysicsImpostor, result: Vector3): void {
<mask> var shape = impostor.physicsBody.shapes[0]; <mask> return shape.boundingSphereRadius; <mask> } <mask> <mask> public getBoxSizeToRef(impostor: PhysicsImpostor, result:Vector3):void{ <mask> var shape = impostor.physicsBody.shapes[0]; <mask> re...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2bbc63dcfbd235fcb884ceb725af5eccbc1734f3
src/Physics/Plugins/babylon.cannonJSPlugin.ts
Animatable.prototype.getAnimations = function () { return this._animations; };
<mask> } <mask> // Methods <mask> Animatable.prototype.appendAnimations = function (target, animations) { <mask> for (var index = 0; index < animations.length; index++) { <mask> var animation = animations[index]; <mask> animation._target = target...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/Animations/babylon.animatable.js
public getAnimations(): Animation[] { return this._animations; }
<mask> <mask> // Methods <mask> public appendAnimations(target: any, animations: Animation[]): void { <mask> for (var index = 0; index < animations.length; index++) { <mask> var animation = animations[index]; <mask> <mask> animation._target = target; ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/Animations/babylon.animatable.ts
this._drawingCanvas.style.backgroundColor = "transparent";
<mask> this._drawingCanvas = document.createElement("canvas"); <mask> this._drawingCanvas.id = "DebugLayerDrawingCanvas"; <mask> this._drawingCanvas.style.position = "absolute"; <mask> this._drawingCanvas.style.pointerEvents = "none"; <mask> this._drawing...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/Debug/babylon.debugLayer.js
this._drawingCanvas.style.backgroundColor = "transparent";
<mask> this._drawingCanvas = document.createElement("canvas"); <mask> this._drawingCanvas.id = "DebugLayerDrawingCanvas"; <mask> this._drawingCanvas.style.position = "absolute"; <mask> this._drawingCanvas.style.pointerEvents = "none"; <mask> this._drawing...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/Debug/babylon.debugLayer.ts
arc: 1,
<mask> radius: radius, <mask> tessellation: tessellation, <mask> radiusFunction: radiusFunction, <mask> cap: cap, <mask> updatable: updatable, <mask> sideOrientation: sideOrientation, <mask> instance: ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/Mesh/babylon.mesh.js
arc: 1,
<mask> path: path, <mask> radius: radius, <mask> tessellation: tessellation, <mask> radiusFunction: radiusFunction, <mask> cap: cap, <mask> updatable: updatable, <mask> sideOrientation: sideOrientation...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/Mesh/babylon.mesh.ts
BABYLON.Tools.QueueNewFrame(this._bindedRenderFunction);
<mask> this.endFrame(); <mask> } <mask> if (this._activeRenderLoops.length > 0) { <mask> // Register new frame <mask> BABYLON.Tools.QueueNewFrame(this._renderLoop.bind(this)); <mask> } <mask> else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/babylon.engine.js
<mask> * scene.render() <mask> * }) <mask> */ <mask> Engine.prototype.runRenderLoop = function (renderFunction) { <mask> var _this = this; <mask> if (this._activeRenderLoops.indexOf(renderFunction) !== -1) { <mask> return; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/babylon.engine.js
this._bindedRenderFunction = this._renderLoop.bind(this); BABYLON.Tools.QueueNewFrame(this._bindedRenderFunction);
<mask> } <mask> this._activeRenderLoops.push(renderFunction); <mask> if (!this._renderingQueueLaunched) { <mask> this._renderingQueueLaunched = true; <mask> BABYLON.Tools.QueueNewFrame(function () { <mask> _this._renderLoop();...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/babylon.engine.js
private _bindedRenderFunction: any;
<mask> <mask> private _workingCanvas: HTMLCanvasElement; <mask> private _workingContext: CanvasRenderingContext2D; <mask> <mask> /** <mask> * @constructor <mask> * @param {HTMLCanvasElement} canvas - the canvas to be used for rendering <mask> * @param {boolea...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/babylon.engine.ts
Tools.QueueNewFrame(this._bindedRenderFunction);
<mask> } <mask> <mask> if (this._activeRenderLoops.length > 0) { <mask> // Register new frame <mask> Tools.QueueNewFrame(this._renderLoop.bind(this)); <mask> } else { <mask> this._renderingQueueLaunched = false; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/babylon.engine.ts
this._bindedRenderFunction = this._renderLoop.bind(this); Tools.QueueNewFrame(this._bindedRenderFunction);
<mask> this._activeRenderLoops.push(renderFunction); <mask> <mask> if (!this._renderingQueueLaunched) { <mask> this._renderingQueueLaunched = true; <mask> Tools.QueueNewFrame(() => { <mask> this._renderLoop(); <mask> });...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2c12c9185b05a262655c6a2eb755a1013c4828f2
src/babylon.engine.ts
import { Color3, Color4 } from "../Maths/math";
<mask> import { Nullable } from "../types"; <mask> import { Scene } from "../scene"; <mask> import { Color3 } from "../Maths/math"; <mask> import { Node } from "../node"; <mask> import { VertexBuffer } from "../Meshes/buffer"; <mask> import { SubMesh } from "../Meshes/subMesh"; <mask> import { Mesh } from "../Me...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
import { MaterialHelper } from '../Materials/materialHelper';
<mask> import { Effect } from "../Materials/effect"; <mask> import { Material } from "../Materials/material"; <mask> import { ShaderMaterial } from "../Materials/shaderMaterial"; <mask> <mask> import "../Shaders/color.fragment"; <mask> import "../Shaders/color.vertex"; <mask> </s> prevent allocation in Frame ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
<mask> import { ShaderMaterial } from "../Materials/shaderMaterial"; <mask> <mask> import "../Shaders/color.fragment"; <mask> import "../Shaders/color.vertex"; <mask> import { MaterialHelper } from '../Materials/materialHelper'; <mask> <mask> /** <mask> * Line mesh <mask> * @see https://doc.babylonjs.com/b...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
private color4 : Color4;
<mask> public intersectionThreshold: number; <mask> <mask> private _colorShader: ShaderMaterial; <mask> <mask> /** <mask> * Creates a new LinesMesh <mask> * @param name defines the name <mask> * @param scene defines the hosting scene <mask> * @param parent defines the parent m...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
public readonly useVertexColor?: boolean,
<mask> doNotCloneChildren?: boolean, <mask> /** <mask> * If vertex color should be applied to the mesh <mask> */ <mask> public useVertexColor?: boolean, <mask> /** <mask> * If vertex alpha should be applied to the mesh <mask> */ <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
public readonly useVertexAlpha?: boolean
<mask> public useVertexColor?: boolean, <mask> /** <mask> * If vertex alpha should be applied to the mesh <mask> */ <mask> public useVertexAlpha?: boolean <mask> ) { <mask> super(name, scene, parent, source, doNotCloneChildren); <mask> <mask> if (s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
this.color4 = new Color4();
<mask> if (!useVertexColor) { <mask> options.uniforms.push("color"); <mask> } <mask> else { <mask> options.defines.push("#define VERTEXCOLOR"); <mask> options.attributes.push(VertexBuffer.ColorKind); <mask> } </s> prevent allocation in Frame ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
const { r, g, b } = this.color; this.color4.set(r, g, b, this.alpha); this._colorShader.setColor4("color", this.color4);
<mask> this._geometry._bind(colorEffect, indexToBind); <mask> <mask> // Color <mask> if (!this.useVertexColor) { <mask> this._colorShader.setColor4("color", this.color.toColor4(this.alpha)); <mask> } <mask> <mask> // Clip planes <mask> MaterialHelpe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Meshes/linesMesh.ts
import { Nullable, DeepImmutable } from "../types";
<mask> import { SmartArray } from "../Misc/smartArray"; <mask> import { SubMesh } from "../Meshes/subMesh"; <mask> import { AbstractMesh } from "../Meshes/abstractMesh"; <mask> import { Nullable } from "../types"; <mask> import { Vector3 } from "../Maths/math"; <mask> import { IParticleSystem } from "../Particles...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Rendering/renderingGroup.ts
private static _zeroVector : DeepImmutable<Vector3> = Vector3.Zero();
<mask> */ <mask> export class RenderingGroup { <mask> private _scene: Scene; <mask> private _opaqueSubMeshes = new SmartArray<SubMesh>(256); <mask> private _transparentSubMeshes = new SmartArray<SubMesh>(256); <mask> private _alphaTestSubMeshes = new SmartArray<SubMesh>(256); <mask> private ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Rendering/renderingGroup.ts
let cameraPosition = camera ? camera.globalPosition : RenderingGroup._zeroVector;
<mask> */ <mask> private static renderSorted(subMeshes: SmartArray<SubMesh>, sortCompareFn: Nullable<(a: SubMesh, b: SubMesh) => number>, camera: Nullable<Camera>, transparent: boolean): void { <mask> let subIndex = 0; <mask> let subMesh: SubMesh; <mask> let cameraPosition = camera...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Rendering/renderingGroup.ts
subMesh._distanceToCamera = Vector3.Distance(subMesh.getBoundingInfo().boundingSphere.centerWorld, cameraPosition);
<mask> let cameraPosition = camera ? camera.globalPosition : Vector3.Zero(); <mask> for (; subIndex < subMeshes.length; subIndex++) { <mask> subMesh = subMeshes.data[subIndex]; <mask> subMesh._alphaIndex = subMesh.getMesh().alphaIndex; <mask> subMesh._distanceToC...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dc64cad65da4a9d0453b6d1d6319fe8068cbcbc
src/Rendering/renderingGroup.ts
Sqrt = 8, /** Log */ Log = 9, /** Tangent */ Tan = 10, /** Arc tangent */ ATan = 11, /** Arc cosinus */ ACos = 12, /** Arc sinus */ ASin = 13, /** Fraction */ Fract = 14, /** Sign */ Sig...
<mask> /** <mask> * Gets a boolean indicating that the current connection point is a system value <mask> */ <mask> readonly isSystemValue: boolean; <mask> /** <mask> * Gets or sets the current well known value or null if not defined as a system value <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dcc2961b2bfbdace569fa2c3f695367fd467822
Playground/babylon.d.txt
{label: "Floor", value: TrigonometryBlockOperations.Floor}, {label: "ACos", value: TrigonometryBlockOperations.ACos}, {label: "ASin", value: TrigonometryBlockOperations.ASin}, {label: "ATan", value: TrigonometryBlockOperations.ATan}, {label: "Tan", value: ...
<mask> {label: "Exp", value: TrigonometryBlockOperations.Exp}, <mask> {label: "Exp2", value: TrigonometryBlockOperations.Exp2}, <mask> {label: "Round", value: TrigonometryBlockOperations.Round}, <mask> {label: "Ceiling", value: TrigonometryBlockOperations.Ceiling}, <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dcc2961b2bfbdace569fa2c3f695367fd467822
nodeEditor/src/components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx
operationOptions.sort((a, b) => { return a.label.localeCompare(b.label); })
<mask> {label: "Sign", value: TrigonometryBlockOperations.Sign} <mask> ]; <mask> <mask> return ( <mask> <div> <mask> <LineContainerComponent title="GENERAL"> <mask> <TextInputLineComponent globalState={this.props.globalState} la...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dcc2961b2bfbdace569fa2c3f695367fd467822
nodeEditor/src/components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx
Trigonometry: ["CosBlock", "SinBlock", "AbsBlock", "ExpBlock", "Exp2Block", "SqrtBlock", "PowBlock", "LogBlock", "ACosBlock", "ASinBlock", "TanBlock", "ATanBlock", "FractBlock", "SignBlock"],
<mask> Output_Blocks: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock"], <mask> Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"], <mask> Round: ["StepBlock", "RoundBlock", "CeilingBlock", "FloorBlock"], <mask> Scene_Attributes: ["FogBlock", "CameraPosi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dcc2961b2bfbdace569fa2c3f695367fd467822
nodeEditor/src/components/nodeList/nodeListComponent.tsx
state.compilationString += `float glossiness = pow(${this.glossiness.isConnected ? this.glossiness.associatedVariableName : "1.0"}, 4.0) * 1024.0;\r\n`;
<mask> state.compilationString += `vec3 viewDirectionW = normalize(${this.cameraPosition.associatedVariableName} - ${"v_" + worldPos.associatedVariableName}.xyz);\r\n`; <mask> } <mask> state.compilationString += `lightingInfo info;\r\n`; <mask> state.compilationSt...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dcc2961b2bfbdace569fa2c3f695367fd467822
src/Materials/Node/Blocks/Dual/lightBlock.ts
/** Log */ Log, /** Tangent */ Tan, /** Arc tangent */ ATan, /** Arc cosinus */ ACos, /** Arc sinus */ ASin, /** Fraction */ Fract, /** Sign */ Sign
<mask> Ceiling, <mask> /** Square root */ <mask> Sqrt, <mask> } <mask> <mask> /** <mask> * Block used to apply trigonometry operation to floats <mask> */ <mask> export class TrigonometryBlock extends NodeMaterialBlock { </s> New trigonometry blocks Former-commit-id: b359cfafa47a86f822cc504b14...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2dcc2961b2bfbdace569fa2c3f695367fd467822
src/Materials/Node/Blocks/trigonometryBlock.ts
this.prepareSprites();
<mask> this._transparentSubMeshes.reset(); <mask> this._alphaTestSubMeshes.reset(); <mask> this._depthOnlySubMeshes.reset(); <mask> this._particleSystems.reset(); <mask> this._spriteManagers.reset(); <mask> this._edgesRenderers.reset(); <mask> this._empty =...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e2a615aa6103e147c7b653a8dde547c852f3a4c
packages/dev/core/src/Rendering/renderingGroup.ts
/** * Resets the different lists of sprites to prepare a new frame. */ public prepareSprites(): void { this._spriteManagers.reset(); }
<mask> this._empty = true; <mask> } <mask> <mask> public dispose(): void { <mask> this._opaqueSubMeshes.dispose(); <mask> this._transparentSubMeshes.dispose(); <mask> this._alphaTestSubMeshes.dispose(); </s> Fix infinite sprites draw in frozen scenes Former-commit-id: ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e2a615aa6103e147c7b653a8dde547c852f3a4c
packages/dev/core/src/Rendering/renderingGroup.ts
this._renderingManager.resetSprites();
<mask> this._activeParticleSystems.data[i].animate(); <mask> } <mask> } <mask> <mask> return; <mask> } <mask> <mask> if (!this.activeCamera) { <mask> return; </s> Fix infinite sprites draw in frozen scenes Former-commi...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e2a615aa6103e147c7b653a8dde547c852f3a4c
packages/dev/core/src/scene.ts
private _spacing = 0;
<mask> private _isVertical = true; <mask> private _manualWidth = false; <mask> private _manualHeight = false; <mask> private _doNotTrackManualChanges = false; <mask> private _childSpacing = 0; <mask> <mask> /** <mask> * Gets or sets a boolean indicating that layout warnings should ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts
public get spacing(): number { return this._spacing;
<mask> /** <mask> * Gets or sets the margin (in pixel) between each child. <mask> */ <mask> @serialize() <mask> public get childSpacing(): number { <mask> return this._childSpacing; <mask> } <mask> <mask> public set childSpacing(value: number) { <mask> if ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts
public set spacing(value: number) { if (this._spacing === value) {
<mask> public get childSpacing(): number { <mask> return this._childSpacing; <mask> } <mask> <mask> public set childSpacing(value: number) { <mask> if (this._childSpacing === value) { <mask> return; <mask> } <mask> <mask> this._childSpacing =...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts
this._spacing = value;
<mask> if (this._childSpacing === value) { <mask> return; <mask> } <mask> <mask> this._childSpacing = value; <mask> this._markAsDirty(); <mask> } <mask> <mask> /** <mask> * Gets or sets panel width. </s> yeah let's change names!! Former-comm...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts
stackHeight += child._currentMeasure.height + child.paddingTopInPixels + child.paddingBottomInPixels + this._spacing;
<mask> if (!this.ignoreLayoutWarnings) { <mask> Tools.Warn(`Control (Name:${child.name}, UniqueId:${child.uniqueId}) is using height in percentage mode inside a vertical StackPanel`); <mask> } <mask> } else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts
stackWidth += child._currentMeasure.width + child.paddingLeftInPixels + child.paddingRightInPixels + this._spacing;
<mask> if (!this.ignoreLayoutWarnings) { <mask> Tools.Warn(`Control (Name:${child.name}, UniqueId:${child.uniqueId}) is using width in percentage mode inside a horizontal StackPanel`); <mask> } <mask> } else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts
stackHeight -= this._spacing;
<mask> } <mask> } <mask> <mask> if (this._isVertical) { <mask> stackHeight -= this._childSpacing; <mask> } else { <mask> stackWidth -= this._childSpacing; <mask> } <mask> <mask> stackWidth += this.paddingLeftInPixels + this.paddingR...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts
stackWidth -= this._spacing;
<mask> <mask> if (this._isVertical) { <mask> stackHeight -= this._childSpacing; <mask> } else { <mask> stackWidth -= this._childSpacing; <mask> } <mask> <mask> stackWidth += this.paddingLeftInPixels + this.paddingRightInPixels; <mask> stackHeigh...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/2e4ecd31fc166696b52adde109e9113c7379a488
gui/src/2D/controls/stackPanel.ts