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
for (index = 0; index < this.getScene().particleSystems.length; index++) {
<mask> // Remove from scene <mask> this.getScene().removeMesh(this); <mask> <mask> if (!doNotRecurse) { <mask> for (var index = 0; index < this.getScene().particleSystems.length; index++) { <mask> if (this.getScene().particleSystems[index].e...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/Mesh/babylon.abstractMesh.js
scene.meshes.push(this);
<mask> <mask> constructor(name: string, scene: Scene) { <mask> super(name, scene); <mask> <mask> scene.addMesh(this); <mask> } <mask> <mask> // Methods <mask> public get isBlocked(): boolean { <mask> return false; </s> Revert "Async Nativ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/Mesh/babylon.abstractMesh.ts
var index = this.getScene().meshes.indexOf(this); if (index != -1) { // Remove from the scene if mesh found this.getScene().meshes.splice(index, 1); }
<mask> // SubMeshes <mask> this.releaseSubMeshes(); <mask> <mask> // Remove from scene <mask> this.getScene().removeMesh(this); <mask> <mask> if (!doNotRecurse) { <mask> // Particles <mask> for (var index = 0; index <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/Mesh/babylon.abstractMesh.ts
for (index = 0; index < this.getScene().particleSystems.length; index++) {
<mask> this.getScene().removeMesh(this); <mask> <mask> if (!doNotRecurse) { <mask> // Particles <mask> for (var index = 0; index < this.getScene().particleSystems.length; index++) { <mask> if (this.getScene().particleSystems[index].emitt...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/Mesh/babylon.abstractMesh.ts
<mask> export class Node { <mask> public parent: Node; <mask> public name: string; <mask> public id: string; <mask> public htmlId: string; <mask> public state = ""; <mask> <mask> public animations = new Array<Animation>(); <mask> <mask> public onRe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.node.ts
<mask> // Imported meshes <mask> this.importedMeshesFiles = new Array(); <mask> this._actionManagers = new Array(); <mask> this._meshesForIntersections = new BABYLON.SmartArray(256); <mask> this.asyncEventTriggers = true; <mask> // Procedural...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
return mesh.isPickable && mesh.isVisible && mesh.isReady() && mesh.actionManager && mesh.actionManager.hasPointerTriggers; }, false, _this.cameraToUseForPointers);
<mask> <mask> _this._updatePointerPosition(evt); <mask> <mask> var pickResult = _this.pick(_this._pointerX, _this._pointerY, function (mesh) { <mask> return mesh.isPickable && mesh.isVisible && mesh.isReady(); <mask> } /* && mesh.actionManager ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
return mesh.isPickable && mesh.isVisible && mesh.isReady() && mesh.actionManager && mesh.actionManager.hasPickTriggers;
<mask> var predicate = null; <mask> <mask> if (!_this.onPointerDown) { <mask> predicate = function (mesh) { <mask> return mesh.isPickable && mesh.isVisible && mesh.isReady(); <mask> }; <mask> } <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
if (pickResult.pickedMesh.actionManager) {
<mask> <mask> var pickResult = _this.pick(_this._pointerX, _this._pointerY, predicate, false, _this.cameraToUseForPointers); <mask> <mask> if (pickResult.hit) { <mask> var actionEvent = BABYLON.ActionEvent.CreateNew(pickResult.pickedMesh, evt); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnLeftPickTrigger, BABYLON.ActionEvent.CreateNew(pickResult.pickedMesh));
<mask> _this._triggerJsEvent("pick", actionEvent, pickResult.pickedMesh.htmlId); <mask> if (pickResult.pickedMesh.actionManager && pickResult.pickedMesh.actionManager.hasPickTriggers) { <mask> switch (evt.button) { <mask> ca...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnCenterPickTrigger, BABYLON.ActionEvent.CreateNew(pickResult.pickedMesh));
<mask> case 0: <mask> pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnLeftPickTrigger, actionEvent); <mask> break; <mask> case 1: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnRightPickTrigger, BABYLON.ActionEvent.CreateNew(pickResult.pickedMesh));
<mask> case 1: <mask> pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnCenterPickTrigger, actionEvent); <mask> break; <mask> case 2: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnPickTrigger, BABYLON.ActionEvent.CreateNew(pickResult.pickedMesh));
<mask> case 2: <mask> pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnRightPickTrigger, actionEvent); <mask> break; <mask> } <mask> pickResult.picke...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
<mask> } <mask> }; <mask> <mask> this._onKeyDown = function (evt) { <mask> var actionEvent = BABYLON.ActionEvent.CreateNewFromScene(_this, evt); <mask> _this._triggerJsEvent("keyDown", actionEvent); <mask> if (_this.actionMa...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
_this.actionManager.processTrigger(BABYLON.ActionManager.OnKeyDownTrigger, BABYLON.ActionEvent.CreateNewFromScene(_this, evt));
<mask> this._onKeyDown = function (evt) { <mask> var actionEvent = BABYLON.ActionEvent.CreateNewFromScene(_this, evt); <mask> _this._triggerJsEvent("keyDown", actionEvent); <mask> if (_this.actionManager) { <mask> _this.actionManager.p...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
<mask> } <mask> }; <mask> <mask> this._onKeyUp = function (evt) { <mask> var actionEvent = BABYLON.ActionEvent.CreateNewFromScene(_this, evt); <mask> _this._triggerJsEvent("keyUp", actionEvent); <mask> if (_this.actionManage...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
_this.actionManager.processTrigger(BABYLON.ActionManager.OnKeyUpTrigger, BABYLON.ActionEvent.CreateNewFromScene(_this, evt));
<mask> this._onKeyUp = function (evt) { <mask> var actionEvent = BABYLON.ActionEvent.CreateNewFromScene(_this, evt); <mask> _this._triggerJsEvent("keyUp", actionEvent); <mask> if (_this.actionManager) { <mask> _this.actionManager.proce...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
<mask> window.addEventListener("keydown", this._onKeyDown, false); <mask> window.addEventListener("keyup", this._onKeyUp, false); <mask> }; <mask> <mask> Scene.prototype._triggerJsEvent = function (evt, eventData, htmlId) { <mask> if (!this.asyncEventTriggers) ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
<mask> <mask> this._viewMatrix.multiplyToRef(this._projectionMatrix, this._transformMatrix); <mask> }; <mask> <mask> //Node adding <mask> Scene.prototype.addMesh = function (mesh) { <mask> this.meshes.push(mesh); <mask> this._generateHtmlElement("mes...
[ "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/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
sourceMesh.actionManager.processTrigger(BABYLON.ActionManager.OnIntersectionEnterTrigger, BABYLON.ActionEvent.CreateNew(sourceMesh));
<mask> var areIntersecting = otherMesh.intersectsMesh(sourceMesh, false); <mask> var currentIntersectionInProgress = sourceMesh._intersectionsInProgress.indexOf(otherMesh); <mask> <mask> if (areIntersecting && currentIntersectionInProgress ===...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
sourceMesh.actionManager.processTrigger(BABYLON.ActionManager.OnIntersectionExitTrigger, BABYLON.ActionEvent.CreateNew(sourceMesh));
<mask> this._triggerJsEvent("intersectionEnter", actionEvent, sourceMesh.htmlId); <mask> sourceMesh.actionManager.processTrigger(BABYLON.ActionManager.OnIntersectionEnterTrigger, actionEvent); <mask> sourceMesh._intersectionsInProgre...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
if (this._pointerOverMesh && this._pointerOverMesh.actionManager) { this._pointerOverMesh.actionManager.processTrigger(BABYLON.ActionManager.OnPointerOutTrigger, BABYLON.ActionEvent.CreateNew(this._pointerOverMesh));
<mask> if (this._pointerOverMesh === mesh) { <mask> return; <mask> } <mask> <mask> if (this._pointerOverMesh) { <mask> var actionEvent = BABYLON.ActionEvent.CreateNew(this._pointerOverMesh); <mask> this._triggerJsEvent("pointerO...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
if (this._pointerOverMesh && this._pointerOverMesh.actionManager) { this._pointerOverMesh.actionManager.processTrigger(BABYLON.ActionManager.OnPointerOverTrigger, BABYLON.ActionEvent.CreateNew(this._pointerOverMesh));
<mask> } <mask> } <mask> <mask> this._pointerOverMesh = mesh; <mask> if (this._pointerOverMesh) { <mask> actionEvent = BABYLON.ActionEvent.CreateNew(this._pointerOverMesh); <mask> this._triggerJsEvent("pointerOver", actionEvent,...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.js
<mask> // Actions <mask> public actionManager: ActionManager; <mask> public _actionManagers = new Array<ActionManager>(); <mask> private _meshesForIntersections = new SmartArray<AbstractMesh>(256); <mask> public asyncEventTriggers = true; <mask> <mask> // Procedur...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
(mesh: AbstractMesh): boolean => mesh.isPickable && mesh.isVisible && mesh.isReady() && mesh.actionManager && mesh.actionManager.hasPointerTriggers,
<mask> <mask> this._updatePointerPosition(evt); <mask> <mask> var pickResult = this.pick(this._pointerX, this._pointerY, <mask> (mesh: AbstractMesh): boolean => mesh.isPickable && mesh.isVisible && mesh.isReady()/* && mesh.actionManager && mesh.actionManager.ha...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
return mesh.isPickable && mesh.isVisible && mesh.isReady() && mesh.actionManager && mesh.actionManager.hasPickTriggers;
<mask> var predicate = null; <mask> <mask> if (!this.onPointerDown) { <mask> predicate = (mesh: AbstractMesh): boolean => { <mask> return mesh.isPickable && mesh.isVisible && mesh.isReady()/* && mesh.actionManager && mesh.actionManager.ha...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
if (pickResult.pickedMesh.actionManager) {
<mask> <mask> var pickResult = this.pick(this._pointerX, this._pointerY, predicate, false, this.cameraToUseForPointers); <mask> <mask> if (pickResult.hit) { <mask> var actionEvent = ActionEvent.CreateNew(pickResult.pickedMesh, evt); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnLeftPickTrigger, ActionEvent.CreateNew(pickResult.pickedMesh));
<mask> this._triggerJsEvent("pick", actionEvent, pickResult.pickedMesh.htmlId); <mask> if (pickResult.pickedMesh.actionManager && pickResult.pickedMesh.actionManager.hasPickTriggers) { <mask> switch (evt.button) { <mask> cas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnCenterPickTrigger, ActionEvent.CreateNew(pickResult.pickedMesh));
<mask> case 0: <mask> pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnLeftPickTrigger, actionEvent); <mask> break; <mask> case 1: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnRightPickTrigger, ActionEvent.CreateNew(pickResult.pickedMesh));
<mask> case 1: <mask> pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnCenterPickTrigger, actionEvent); <mask> break; <mask> case 2: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnPickTrigger, ActionEvent.CreateNew(pickResult.pickedMesh)); }
<mask> case 2: <mask> pickResult.pickedMesh.actionManager.processTrigger(BABYLON.ActionManager.OnRightPickTrigger, actionEvent); <mask> break; <mask> } <mask> pickResult.picke...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
<mask> } <mask> }; <mask> <mask> this._onKeyDown = (evt: Event) => { <mask> var actionEvent = ActionEvent.CreateNewFromScene(this, evt); <mask> this._triggerJsEvent("keyDown", actionEvent); <mask> if (this.actionManager) { ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
this.actionManager.processTrigger(BABYLON.ActionManager.OnKeyDownTrigger, ActionEvent.CreateNewFromScene(this, evt));
<mask> this._onKeyDown = (evt: Event) => { <mask> var actionEvent = ActionEvent.CreateNewFromScene(this, evt); <mask> this._triggerJsEvent("keyDown", actionEvent); <mask> if (this.actionManager) { <mask> this.actionManager.processTrigg...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
<mask> } <mask> }; <mask> <mask> this._onKeyUp = (evt: Event) => { <mask> var actionEvent = ActionEvent.CreateNewFromScene(this, evt); <mask> this._triggerJsEvent("keyUp", actionEvent); <mask> if (this.actionManager) { <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
this.actionManager.processTrigger(BABYLON.ActionManager.OnKeyUpTrigger, ActionEvent.CreateNewFromScene(this, evt));
<mask> this._onKeyUp = (evt: Event) => { <mask> var actionEvent = ActionEvent.CreateNewFromScene(this, evt); <mask> this._triggerJsEvent("keyUp", actionEvent); <mask> if (this.actionManager) { <mask> this.actionManager.processTrigger(B...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
<mask> window.addEventListener("keydown", this._onKeyDown, false); <mask> window.addEventListener("keyup", this._onKeyUp, false); <mask> } <mask> <mask> private _triggerJsEvent(evt: string, eventData: any, htmlId?: string) { <mask> if (!this.asyncEventTriggers)...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
<mask> <mask> this._viewMatrix.multiplyToRef(this._projectionMatrix, this._transformMatrix); <mask> } <mask> <mask> //Node adding <mask> public addMesh(mesh: AbstractMesh) { <mask> this.meshes.push(mesh); <mask> this._generateHtmlElement("mesh", mesh...
[ "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/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
sourceMesh.actionManager.processTrigger(ActionManager.OnIntersectionEnterTrigger, ActionEvent.CreateNew(sourceMesh));
<mask> var areIntersecting = otherMesh.intersectsMesh(sourceMesh, false); <mask> var currentIntersectionInProgress = sourceMesh._intersectionsInProgress.indexOf(otherMesh); <mask> <mask> if (areIntersecting && currentIntersectionInProgress ===...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
sourceMesh.actionManager.processTrigger(ActionManager.OnIntersectionExitTrigger, ActionEvent.CreateNew(sourceMesh));
<mask> sourceMesh.actionManager.processTrigger(ActionManager.OnIntersectionEnterTrigger, actionEvent); <mask> sourceMesh._intersectionsInProgress.push(otherMesh); <mask> <mask> } else if (!areIntersecting && currentIntersectionInProgre...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
if (this._pointerOverMesh && this._pointerOverMesh.actionManager) { this._pointerOverMesh.actionManager.processTrigger(ActionManager.OnPointerOutTrigger, ActionEvent.CreateNew(this._pointerOverMesh));
<mask> if (this._pointerOverMesh === mesh) { <mask> return; <mask> } <mask> <mask> if (this._pointerOverMesh) { <mask> var actionEvent = ActionEvent.CreateNew(this._pointerOverMesh); <mask> this._triggerJsEvent("pointerOut", act...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
if (this._pointerOverMesh && this._pointerOverMesh.actionManager) { this._pointerOverMesh.actionManager.processTrigger(ActionManager.OnPointerOverTrigger, ActionEvent.CreateNew(this._pointerOverMesh));
<mask> <mask> <mask> <mask> this._pointerOverMesh = mesh; <mask> if (this._pointerOverMesh) { <mask> actionEvent = ActionEvent.CreateNew(this._pointerOverMesh); <mask> this._triggerJsEvent("pointerOver", actionEvent, this._pointerOverMesh.htm...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9f8710b6e07e8cdcf23f0b331429293025585bac
Babylon/babylon.scene.ts
import { PreviewType } from './previewType';
<mask> import { Mesh } from 'babylonjs/Meshes/mesh'; <mask> import { Vector3 } from 'babylonjs/Maths/math.vector'; <mask> import { HemisphericLight } from 'babylonjs/Lights/hemisphericLight'; <mask> import { ArcRotateCamera } from 'babylonjs/Cameras/arcRotateCamera'; <mask> import { PreviewMeshType } from './previ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
this._camera.radius = this._globalState.previewType === PreviewType.Explosion ? 50 : 20;
<mask> this._camera.upperRadiusLimit = 10; <mask> break; <mask> } <mask> case NodeMaterialModes.Particle: { <mask> this._camera.radius = this._globalState.previewMeshType === PreviewMeshType.Explosion ? 50 : 20; <mask> this._c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
if (this._currentType !== this._globalState.previewType || this._currentType === PreviewType.Custom) { this._currentType = this._globalState.previewType;
<mask> this._updatePreview(serializationObject); <mask> } <mask> <mask> private _refreshPreviewMesh() { <mask> if (this._currentType !== this._globalState.previewMeshType || this._currentType === PreviewMeshType.Custom) { <mask> this._currentType = this._globalState.previewMes...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
switch (this._globalState.previewType) { case PreviewType.Box:
<mask> <mask> this._globalState.onIsLoadingChanged.notifyObservers(true); <mask> <mask> if (this._globalState.mode === NodeMaterialModes.Material) { <mask> switch (this._globalState.previewMeshType) { <mask> case PreviewMeshType.Box: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Sphere:
<mask> this._meshes.push(...this._scene.meshes); <mask> this._prepareScene(); <mask> }); <mask> return; <mask> case PreviewMeshType.Sphere: <mask> this._meshes.push(M...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Torus:
<mask> return; <mask> case PreviewMeshType.Sphere: <mask> this._meshes.push(Mesh.CreateSphere("dummy-sphere", 32, 2, this._scene)); <mask> break; <mask> case PreviewMeshType.Torus: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Cylinder:
<mask> break; <mask> case PreviewMeshType.Torus: <mask> this._meshes.push(Mesh.CreateTorus("dummy-torus", 2, 0.5, 32, this._scene)); <mask> break; <mask> case PreviewMeshType.Cylinder: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Plane:
<mask> this._meshes.push(...this._scene.meshes); <mask> this._prepareScene(); <mask> }); <mask> return; <mask> case PreviewMeshType.Plane: <mask> let plane = Mesh.Cre...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.ShaderBall:
<mask> plane.scaling.y = -1; <mask> plane.rotation.x = Math.PI; <mask> this._meshes.push(plane); <mask> break; <mask> case PreviewMeshType.ShaderBall: <mask> SceneLoader.Appe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Custom: SceneLoader.AppendAsync("file:", this._globalState.previewFile, this._scene).then(() => {
<mask> this._meshes.push(...this._scene.meshes); <mask> this._prepareScene(); <mask> }); <mask> return; <mask> case PreviewMeshType.Custom: <mask> SceneLoader.AppendA...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
switch (this._globalState.previewType) { case PreviewType.Bubbles:
<mask> }); <mask> return; <mask> } <mask> } else if (this._globalState.mode === NodeMaterialModes.Particle) { <mask> switch (this._globalState.previewMeshType) { <mask> case PreviewMeshType.Bubbles: <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Explosion: this._loadParticleSystem(this._globalState.previewType, 1);
<mask> this._particleSystem.color2 = new Color4(1, 0.5, 0, 1); <mask> this._particleSystem.gravity = new Vector3(0, -1.0, 0); <mask> this._particleSystem.start(); <mask> break; <mask> case PreviewMes...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Fire: case PreviewType.Rain: case PreviewType.Smoke: this._loadParticleSystem(this._globalState.previewType);
<mask> break; <mask> case PreviewMeshType.Explosion: <mask> this._loadParticleSystem(this._globalState.previewMeshType, 1); <mask> return; <mask> case PreviewMeshType.Fire: <mask> ca...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Custom: FileTools.ReadFile(this._globalState.previewFile, (json) => {
<mask> case PreviewMeshType.Rain: <mask> case PreviewMeshType.Smoke: <mask> this._loadParticleSystem(this._globalState.previewMeshType); <mask> return; <mask> case PreviewMeshType.Custom: <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Explosion:
<mask> private _loadParticleSystem(particleNumber: number, systemIndex = 0, prepareScene = true) { <mask> let name = ""; <mask> <mask> switch (particleNumber) { <mask> case PreviewMeshType.Explosion: <mask> name = "explosion"; <mask> break; <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Fire:
<mask> switch (particleNumber) { <mask> case PreviewMeshType.Explosion: <mask> name = "explosion"; <mask> break; <mask> case PreviewMeshType.Fire: <mask> name = "fire"; <mask> break; <mask> case PreviewMe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Rain:
<mask> break; <mask> case PreviewMeshType.Fire: <mask> name = "fire"; <mask> break; <mask> case PreviewMeshType.Rain: <mask> name = "rain"; <mask> break; <mask> case PreviewMeshType.Smoke: <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
case PreviewType.Smoke:
<mask> break; <mask> case PreviewMeshType.Rain: <mask> name = "rain"; <mask> break; <mask> case PreviewMeshType.Smoke: <mask> name = "smoke"; <mask> break; <mask> } <mask> <mask> ParticleHe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
if (this._globalState.mode === NodeMaterialModes.Particle && this._globalState.previewType === particleNumber) {
<mask> if (i == systemIndex) { <mask> this._particleSystem = set.systems[i] as ParticleSystem; <mask> this._particleSystem.disposeOnStop = true; <mask> this._particleSystem.onDisposeObservable.add(() => { <mask> if ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewManager.ts
import { PreviewType } from './previewType';
<mask> <mask> import * as React from "react"; <mask> import { GlobalState } from '../../globalState'; <mask> import { Color3, Color4 } from 'babylonjs/Maths/math.color'; <mask> import { PreviewMeshType } from './previewMeshType'; <mask> import { DataStorage } from 'babylonjs/Misc/dataStorage'; <mask> import { O...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
changeMeshType(newOne: PreviewType) { if (this.props.globalState.previewType === newOne) {
<mask> componentWillUnmount() { <mask> this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver); <mask> } <mask> <mask> changeMeshType(newOne: PreviewMeshType) { <mask> if (this.props.globalState.previewMeshType === newOne) { <mask> return; ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
this.props.globalState.previewType = newOne;
<mask> if (this.props.globalState.previewMeshType === newOne) { <mask> return; <mask> } <mask> <mask> this.props.globalState.previewMeshType = newOne; <mask> this.props.globalState.onPreviewCommandActivated.notifyObservers(false); <mask> <mask> DataStorage.W...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
DataStorage.WriteNumber("PreviewType", newOne);
<mask> <mask> this.props.globalState.previewMeshType = newOne; <mask> this.props.globalState.onPreviewCommandActivated.notifyObservers(false); <mask> <mask> DataStorage.WriteNumber("PreviewMeshType", newOne); <mask> <mask> this.forceUpdate(); <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
this.props.globalState.previewFile = file; this.props.globalState.previewType = PreviewType.Custom;
<mask> var files: File[] = evt.target.files; <mask> if (files && files.length) { <mask> let file = files[0]; <mask> <mask> this.props.globalState.previewMeshFile = file; <mask> this.props.globalState.previewMeshType = PreviewMeshType.Custom; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
this.props.globalState.listOfCustomPreviewFiles = [file];
<mask> <mask> this.props.globalState.previewMeshFile = file; <mask> this.props.globalState.previewMeshType = PreviewMeshType.Custom; <mask> this.props.globalState.onPreviewCommandActivated.notifyObservers(false); <mask> this.props.globalState.listOfCustomPreviewMesh...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
{ label: "Cube", value: PreviewType.Box }, { label: "Cylinder", value: PreviewType.Cylinder }, { label: "Plane", value: PreviewType.Plane }, { label: "Shader ball", value: PreviewType.ShaderBall }, { label: "Sphere", value: PreviewType.Sphere }, ...
<mask> <mask> render() { <mask> <mask> var meshTypeOptions = [ <mask> { label: "Cube", value: PreviewMeshType.Box }, <mask> { label: "Cylinder", value: PreviewMeshType.Cylinder }, <mask> { label: "Plane", value: PreviewMeshType.Plane }, <mask> { labe...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
{ label: "Bubbles", value: PreviewType.Bubbles }, { label: "Explosion", value: PreviewType.Explosion }, { label: "Fire", value: PreviewType.Fire }, { label: "Rain", value: PreviewType.Rain }, { label: "Smoke", value: PreviewType.Smoke }, { lab...
<mask> { label: "Load...", value: PreviewMeshType.Custom + 1 } <mask> ]; <mask> <mask> var particleTypeOptions = [ <mask> { label: "Bubbles", value: PreviewMeshType.Bubbles }, <mask> { label: "Explosion", value: PreviewMeshType.Explosion }, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
if (this.props.globalState.listOfCustomPreviewFiles.length > 0) {
<mask> { label: "Smoke", value: PreviewMeshType.Smoke }, <mask> { label: "Load...", value: PreviewMeshType.Custom + 1 } <mask> ]; <mask> <mask> if (this.props.globalState.listOfCustomPreviewMeshFiles.length > 0) { <mask> meshTypeOptions.splice(0, 0, { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
label: "Custom", value: PreviewType.Custom
<mask> ]; <mask> <mask> if (this.props.globalState.listOfCustomPreviewMeshFiles.length > 0) { <mask> meshTypeOptions.splice(0, 0, { <mask> label: "Custom", value: PreviewMeshType.Custom <mask> }); <mask> <mask> particleTypeOptions.splice(0, 0...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
label: "Custom", value: PreviewType.Custom
<mask> label: "Custom", value: PreviewMeshType.Custom <mask> }); <mask> <mask> particleTypeOptions.splice(0, 0, { <mask> label: "Custom", value: PreviewMeshType.Custom <mask> }); <mask> } <mask> <mask> var options = this.prop...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
propertyName="previewType"
<mask> return ( <mask> <div id="preview-mesh-bar"> <mask> { (this.props.globalState.mode === NodeMaterialModes.Material || this.props.globalState.mode === NodeMaterialModes.Particle) && <> <mask> <OptionsLineComponent label="" options={options} target={this.pr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
if (value !== PreviewType.Custom + 1) {
<mask> <OptionsLineComponent label="" options={options} target={this.props.globalState} <mask> propertyName="previewMeshType" <mask> noDirectUpdate={true} <mask> onSelect={(value: any) => { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/preview/previewMeshControlComponent.tsx
import { PreviewType } from '../preview/previewType';
<mask> import { NodePort } from '../../diagram/nodePort'; <mask> import { isFramePortData } from '../../diagram/graphCanvas'; <mask> import { OptionsLineComponent } from '../../sharedComponents/optionsLineComponent'; <mask> import { NodeMaterialModes } from 'babylonjs/Materials/Node/Enums/nodeMaterialModes'; <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx
this.props.globalState.previewType = PreviewType.Sphere;
<mask> <mask> if (loadDefault) { <mask> switch (value) { <mask> case NodeMaterialModes.Material: <mask> this.props.globalState.previewMeshType = PreviewMeshType.Sphere; <mask> this.props.globalState.nodeMaterial!.setToDefault(); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx
this.props.globalState.previewType = PreviewType.Bubbles;
<mask> case NodeMaterialModes.PostProcess: <mask> this.props.globalState.nodeMaterial!.setToDefaultPostProcess(); <mask> break; <mask> case NodeMaterialModes.Particle: <mask> this.props.globalState.previewMeshType = Preview...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx
this.props.globalState.listOfCustomPreviewFiles = []; (this.props.globalState.previewFile as any) = undefined;
<mask> this.props.globalState.nodeMaterial!.setToDefaultParticle(); <mask> break; <mask> } <mask> <mask> this.props.globalState.listOfCustomPreviewMeshFiles = []; <mask> (this.props.globalState.previewMeshFile as any) = undefined; <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx
DataStorage.WriteNumber("PreviewType", this.props.globalState.previewType);
<mask> <mask> this.props.globalState.listOfCustomPreviewMeshFiles = []; <mask> (this.props.globalState.previewMeshFile as any) = undefined; <mask> <mask> DataStorage.WriteNumber("PreviewMeshType", this.props.globalState.previewMeshType); <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx
import { PreviewType } from './components/preview/previewType';
<mask> import { Nullable } from "babylonjs/types"; <mask> import { Observable } from 'babylonjs/Misc/observable'; <mask> import { LogEntry } from './components/log/logComponent'; <mask> import { NodeMaterialBlock } from 'babylonjs/Materials/Node/nodeMaterialBlock'; <mask> import { PreviewMeshType } from './compone...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/globalState.ts
previewType: PreviewType; previewFile: File; listOfCustomPreviewFiles: File[] = [];
<mask> onGraphNodeRemovalObservable = new Observable<GraphNode>(); <mask> onGetNodeFromBlock: (block: NodeMaterialBlock) => GraphNode; <mask> onGridSizeChanged = new Observable<void>(); <mask> onExposePortOnFrameObservable = new Observable<GraphNode>(); <mask> previewMeshType: PreviewMeshType; ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/globalState.ts
this.previewType = DataStorage.ReadNumber("PreviewType", PreviewType.Box);
<mask> <mask> customSave?: {label: string, action: (data: string) => Promise<void>}; <mask> <mask> public constructor() { <mask> this.previewMeshType = DataStorage.ReadNumber("PreviewMeshType", PreviewMeshType.Box); <mask> this.backFaceCulling = DataStorage.ReadBoolean("BackFaceCulling",...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/globalState.ts
import { PreviewType } from './components/preview/previewType';
<mask> import { NodeMaterial } from "babylonjs/Materials/Node/nodeMaterial" <mask> import { Popup } from "../src/sharedComponents/popup" <mask> import { SerializationTools } from './serializationTools'; <mask> import { Observable } from 'babylonjs/Misc/observable'; <mask> import { PreviewMeshType } from './compone...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/nodeEditor.ts
if(DataStorage.ReadNumber("PreviewType", PreviewType.Box) === PreviewType.Custom){ DataStorage.WriteNumber("PreviewType", globalState.mode === NodeMaterialModes.Material ? PreviewType.Box : PreviewType.Bubbles);
<mask> <mask> }; <mask> } <mask> window.addEventListener('beforeunload', () => { <mask> if(DataStorage.ReadNumber("PreviewMeshType", PreviewMeshType.Box) === PreviewMeshType.Custom){ <mask> DataStorage.WriteNumber("PreviewMeshType", globalState.mode === Nod...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fb1736f81f88ef184125932702d74181780f48c
nodeEditor/src/nodeEditor.ts
reflectionFormatSRGBA8?: boolean;
<mask> export interface IWebXRLightEstimationOptions { <mask> /** <mask> * Instead of using preferred reflection format use srgba8 to initialize the light probe <mask> */ <mask> reflectionFormatSRGBA8?: boolean; <mask> } <mask> <mask> /** <mask> * Light Estimation Feature <mask> * </s> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
private _reflectionCubeMap: Nullable<WebGLTexture> = null;
<mask> * @since 5.0.0 <mask> */ <mask> export class WebXRLightEstimation extends WebXRAbstractFeature { <mask> <mask> private _xrLightProbe: Nullable<XRLightProbe> = null; <mask> private _xrLightEstimate: Nullable<XRLightEstimate> = null; <mask> private _xrWebGLBinding: Nullable<XRWebGLBinding> = ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
private _xrLightProbe: Nullable<XRLightProbe> = null;
<mask> private _reflectionCubeMap: Nullable<WebGLTexture> = null; <mask> private _xrLightEstimate: Nullable<XRLightEstimate> = null; <mask> private _xrWebGLBinding: Nullable<XRWebGLBinding> = null; <mask> <mask> /** <mask> * The module's name <mask> */ <mask> public static readonl...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
<mask> <mask> private _xrLightProbe: Nullable<XRLightProbe> = null; <mask> private _xrLightEstimate: Nullable<XRLightEstimate> = null; <mask> private _xrWebGLBinding: Nullable<XRWebGLBinding> = null; <mask> private _reflectionCubeMap: Nullable<WebGLTexture> = null; <mask> <mask> /** <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
/** * This observable will notify when the reflection cube map is updated. */ public onReflectionCubeMapUpdatedObservable: Observable<WebGLTexture> = new Observable();
<mask> public static readonly Version = 1; <mask> <mask> /** <mask> * Creates a new instance of the light estimation feature <mask> * @param _xrSessionManager an instance of WebXRSessionManager <mask> * @param options options to use when constructing this feature </s> add Reflection Cube Map...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
* While the estimated cube map is expected to update over time to better reflect the user's environment as they move around those changes are unlikely to happen with every XRFrame. * Since creating and processing the cube map is potentially expensive, especially if mip maps are needed, you can listen to the ...
<mask> Tools.Warn("light-estimation is an experimental and unstable feature."); <mask> } <mask> <mask> /** <mask> * attach this feature <mask> * Will usually be called by the features manager <mask> * <mask> * @returns true if successful. <mask> */ <mask> public a...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
* The XRLightProbe itself contains no lighting values, but is used to retrieve the current lighting state with each XRFrame.
<mask> /** <mask> * attach this feature <mask> * Will usually be called by the features manager <mask> * <mask> * @returns true if successful. <mask> */ <mask> public attach(): boolean { <mask> if (!super.attach()) { <mask> return false; <mask> } <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
public get xrLightProbe(): Nullable<XRLightProbe> { return this._xrLightProbe; }
<mask> * Will usually be called by the features manager <mask> * <mask> * @returns true if successful. <mask> */ <mask> public attach(): boolean { <mask> if (!super.attach()) { <mask> return false; <mask> } <mask> <mask> this._xrSessionManager.sessi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
/** * The most recent light estimate. Available starting on the first frame where the device provides a light probe. */ public get xrLightingEstimate(): Nullable<XRLightEstimate> { return this._xrLightEstimate;
<mask> if (!super.attach()) { <mask> return false; <mask> } <mask> <mask> this._xrSessionManager.session.requestLightProbe({ <mask> reflectionFormat: this.options.reflectionFormatSRGBA8 ? "srgba8" : this._xrSessionManager.session.preferredReflectionFormat ?? "srgba...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
private _getXRGLBinding(): XRWebGLBinding {
<mask> }); <mask> return true; <mask> } <mask> <mask> private _getXRGLBinding() : XRWebGLBinding { <mask> if (this._xrWebGLBinding === null) { <mask> // TODO: find a way that looks less hacky to get webgl context. try webgl2 and fallback to webgl. <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
let context: Nullable<WebGLRenderingContext | WebGL2RenderingContext> = canvas.getContext("webgl2");
<mask> private _getXRGLBinding() : XRWebGLBinding { <mask> if (this._xrWebGLBinding === null) { <mask> // TODO: find a way that looks less hacky to get webgl context. try webgl2 and fallback to webgl. <mask> const canvas: HTMLCanvasElement = this._xrSessionManager.scene.getEngin...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
context = canvas.getContext("webgl")!;
<mask> // TODO: find a way that looks less hacky to get webgl context. try webgl2 and fallback to webgl. <mask> const canvas: HTMLCanvasElement = this._xrSessionManager.scene.getEngine().getRenderingCanvas()!; <mask> let context: WebGLRenderingContext | WebGL2RenderingContext = <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
<mask> return this._xrWebGLBinding; <mask> } <mask> <mask> /** <mask> * While the estimated cube map is expected to update over time to better reflect the user's environment as they move around those changes are unlikely to happen with every XRFrame. <mask> * Since creating and processi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
private _updateReflectionCubeMap(): void {
<mask> * determine when an updated cube map needs to be retrieved. <mask> * <mask> * Event Listener to for "reflectionchange" events. <mask> */ <mask> private _updateReflectionCubeMap() : void { <mask> this._reflectionCubeMap = this._getXRGLBinding().getReflectionCubeMap(this._xrLi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
this.onReflectionCubeMapUpdatedObservable.notifyObservers(this._reflectionCubeMap);
<mask> private _updateReflectionCubeMap(): void { <mask> this._reflectionCubeMap = this._getXRGLBinding().getReflectionCubeMap(this._xrLightProbe!); <mask> } <mask> <mask> /** <mask> * attach this feature </s> add Reflection Cube Map update observable. Former-commit-id: dd82dd338b5a87...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
* attach this feature * Will usually be called by the features manager * * @returns true if successful.
<mask> this._reflectionCubeMap = this._getXRGLBinding().getReflectionCubeMap(this._xrLightProbe!); <mask> } <mask> <mask> /** <mask> * An estimated cube map representing the users environment. <mask> */ <mask> public get reflectionCubeMap(): Nullable<WebGLTexture> { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts
public attach(): boolean { if (!super.attach()) { return false;
<mask> <mask> /** <mask> * An estimated cube map representing the users environment. <mask> */ <mask> public get reflectionCubeMap(): Nullable<WebGLTexture> { <mask> if (this._xrLightProbe === null) { <mask> return null; <mask> } <mask> <mask> if (this._...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/BabylonJS/Babylon.js/commit/9fe874fd1f91ff0c5ff5c5b0b18a0fd94cab01e4
src/XR/features/WebXRLightEstimation.ts