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 |
|---|---|---|---|---|
reader.readEntries((entries: any) => {
| <mask>
<mask> private _traverseFolder(folder: any, files: Array<any>, remaining: { count: number }, callback: () => void) {
<mask> var reader = folder.createReader();
<mask> var relativePath = folder.fullPath.replace(/^\//, "").replace(/(.+?)\/?$/, "$1/");
<mask> reader... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.filesInput.ts |
entry.file((file:any) => {
| <mask> reader.readEntries(entries => {
<mask> remaining.count += entries.length;
<mask> for (let entry of entries) {
<mask> if (entry.isFile) {
<mask> entry.file(file => {
<mask> file.correctName = ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.filesInput.ts |
public loadFiles(event: any): void {
| <mask> this.reload();
<mask> }
<mask> }
<mask>
<mask> public loadFiles(event): void {
<mask> if (this._startingProcessingFilesCallback) this._startingProcessingFilesCallback();
<mask>
<mask> // Handling data transfer via drag'n'drop
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.filesInput.ts |
let files = new Array<File>();
| <mask> this._filesToLoad = event.target.files;
<mask> }
<mask>
<mask> if (this._filesToLoad && this._filesToLoad.length > 0) {
<mask> let files = [];
<mask> let folders = [];
<mask> var items = event.dataTransfer ? event.dat... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.filesInput.ts |
private get isRecursiveFree(): boolean {
| <mask> this._rightNode = null;
<mask> this._bottomNode = null;
<mask> }
<mask>
<mask> private get isRecursiveFree() {
<mask> return !this.contentSize && (!this._leftNode || this._leftNode.isRecursiveFree) && (!this._rightNode || this._rightNode.isRecursiveFree)... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.rectPackingMap.ts |
(<any>serializedGeometries)[geometry.id] = true;
| <mask> else {
<mask> serializationGeometries.vertexData.push(geometry.serializeVerticeData());
<mask> }
<mask>
<mask> serializedGeometries[geometry.id] = true;
<mask> };
<mask>
<mask> var serializeMesh = (mesh: Mesh, serializationScene: any): any => {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.sceneSerializer.ts |
if (!serializationObject.materials.some((mat: Material) => (mat.id === mesh.material.id))) {
| <mask> //serialize material
<mask> if (mesh.material) {
<mask> if (mesh.material instanceof StandardMaterial) {
<mask> serializationObject.materials = serializationObject.materials || [];
<mask> if (!serializationObject.materials.some(... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.sceneSerializer.ts |
if (!serializationObject.multiMaterials.some((mat: Material) => (mat.id === mesh.material.id))) {
| <mask> serializationObject.materials.push(mesh.material.serialize());
<mask> }
<mask> } else if (mesh.material instanceof MultiMaterial) {
<mask> serializationObject.multiMaterials = serializationObject.multiMaterials || [];
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.sceneSerializer.ts |
toSerialize[i].getDescendants().forEach((node: Node) => {
| <mask> if (withParents || withChildren) {
<mask> //deliberate for loop! not for each, appended should be processed as well.
<mask> for (var i = 0; i < toSerialize.length; ++i) {
<mask> if (withChildren) {
<mask> toSerialize[i].... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.sceneSerializer.ts |
[index: number]: T;
| <mask> private _duplicateId = 0;
<mask>
<mask> constructor(capacity: number) {
<mask> this.data = new Array(capacity);
<mask> this._id = SmartArray._GlobalId++;
<mask> }
<mask>
<mask> public push(value: T): void {
</s> Monstro refactor: Enabling noImpli... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.smartArray.ts |
public push(value: T): void {
| <mask> this.data = new Array(capacity);
<mask> this._id = SmartArray._GlobalId++;
<mask> }
<mask>
<mask> public push(value): void {
<mask> this.data[this.length++] = value;
<mask>
<mask> if (this.length > this.data.length) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.smartArray.ts |
if (!(<any>value).__smartArrayFlags) {
(<any>value).__smartArrayFlags = {};
| <mask> if (this.length > this.data.length) {
<mask> this.data.length *= 2;
<mask> }
<mask>
<mask> if (!value.__smartArrayFlags) {
<mask> value.__smartArrayFlags = {};
<mask> }
<mask>
<mask> value.__smartArrayFlags[thi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.smartArray.ts |
(<any>value).__smartArrayFlags[this._id] = this._duplicateId;
| <mask> if (!value.__smartArrayFlags) {
<mask> value.__smartArrayFlags = {};
<mask> }
<mask>
<mask> value.__smartArrayFlags[this._id] = this._duplicateId;
<mask> }
<mask>
<mask> public forEach(func: (content: T) => void): void {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.smartArray.ts |
public pushNoDuplicate(value: T): boolean {
if ((<any>value).__smartArrayFlags && (<any>value).__smartArrayFlags[this._id] === this._duplicateId) {
| <mask> func(this.data[index]);
<mask> }
<mask> }
<mask>
<mask> public pushNoDuplicate(value): boolean {
<mask> if (value.__smartArrayFlags && value.__smartArrayFlags[this._id] === this._duplicateId) {
<mask> return false;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.smartArray.ts |
public sort(compareFn: (a: T, b: T) => number): void {
| <mask> this.push(value);
<mask> return true;
<mask> }
<mask>
<mask> public sort(compareFn): void {
<mask> this.data.sort(compareFn);
<mask> }
<mask>
<mask> public reset(): void {
<mask> this.length = 0;
</s> Monstro refactor: E... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.smartArray.ts |
public contains(key: string): boolean {
| <mask> * Check if there's a given key in the dictionary
<mask> * @param key the key to check for
<mask> * @return true if the key is present, false otherwise
<mask> */
<mask> public contains(key): boolean {
<mask> return this._data[key] !== undefined;
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.stringDictionary.ts |
private _data: {[key: string]: T} = {};
| <mask> return null;
<mask> }
<mask>
<mask> private _count = 0;
<mask> private _data = {};
<mask> }
<mask> } </s> Monstro refactor: Enabling noImplicitAny on all repo
Former-commit-id: 6bcd88e2e2b0d5353a25b10225d4ee25264ddc5c </s> remove private _meshes: { [n: nu... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.stringDictionary.ts |
obj.addTags = (tagsString: string) => {
| <mask> obj.hasTags = () => {
<mask> return Tags.HasTags(obj);
<mask> };
<mask>
<mask> obj.addTags = (tagsString) => {
<mask> return Tags.AddTagsTo(obj, tagsString);
<mask> };
<mask>
<mask> obj.removeTags = (tagsString... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tags.ts |
obj.removeTags = (tagsString: string) => {
| <mask> obj.addTags = (tagsString) => {
<mask> return Tags.AddTagsTo(obj, tagsString);
<mask> };
<mask>
<mask> obj.removeTags = (tagsString) => {
<mask> return Tags.RemoveTagsFrom(obj, tagsString);
<mask> };
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tags.ts |
obj.matchesTagsQuery = (tagsQuery: string) => {
| <mask> obj.removeTags = (tagsString) => {
<mask> return Tags.RemoveTagsFrom(obj, tagsString);
<mask> };
<mask>
<mask> obj.matchesTagsQuery = (tagsQuery) => {
<mask> return Tags.MatchesQuery(obj, tagsQuery);
<mask> };
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tags.ts |
var imageData = (<any>TGATools)[func](header, palettes, pixel_data, y_start, y_step, y_end, x_start, x_step, x_end);
| <mask> }
<mask>
<mask> // Load the specify method
<mask> var func = '_getImageData' + (use_grey ? 'Grey' : '') + (header.pixel_size) + 'bits';
<mask> var imageData = TGATools[func](header, palettes, pixel_data, y_start, y_step, y_end, x_start, x_step, x_end);
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tga.ts |
var cloneValue = (source: any, destinationObject: any) => {
| <mask>
<mask> // Screenshots
<mask> var screenshotCanvas: HTMLCanvasElement;
<mask>
<mask> var cloneValue = (source, destinationObject) => {
<mask> if (!source)
<mask> return null;
<mask>
<mask> if (source instanceof Mesh) {
<mask> return null;
</s> Mons... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
var fn: any = (window || this);
| <mask> }
<mask>
<mask> var arr = className.split(".");
<mask>
<mask> var fn = (window || this);
<mask> for (var i = 0, len = arr.length; i < len; i++) {
<mask> fn = fn[arr[i]];
<mask> }
<mask>
<mask> if (typeof fn !== "... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static MakeArray(obj: any, allowsNullUndefined?: boolean): Array<any> {
| <mask> maximum: maximum
<mask> };
<mask> }
<mask>
<mask> public static MakeArray(obj, allowsNullUndefined?: boolean): Array<any> {
<mask> if (allowsNullUndefined !== true && (obj === undefined || obj == null))
<mask> return undefined;
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static QueueNewFrame(func: () => void, requester?: any): number {
| <mask> /**
<mask> * @param func - the function to be called
<mask> * @param requester - the object that will request the next frame. Falls back to window.
<mask> */
<mask> public static QueueNewFrame(func, requester?): number {
<mask> if (!Tools.IsWindowObjec... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static RequestFullscreen(element: HTMLElement): void {
var requestFunction = element.requestFullscreen || (<any>element).msRequestFullscreen || element.webkitRequestFullscreen || (<any>element).mozRequestFullScreen;
| <mask> return window.setTimeout(func, 16);
<mask> }
<mask> }
<mask>
<mask> public static RequestFullscreen(element): void {
<mask> var requestFunction = element.requestFullscreen || element.msRequestFullscreen || element.webkitRequestFullscreen || element.m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static LoadImage(url: any, onLoad: (img: HTMLImageElement) => void, onError: (message?: string, exception?: any) => void, database: any): HTMLImageElement {
| <mask> public static PreprocessUrl = (url: string) => {
<mask> return url;
<mask> }
<mask>
<mask> public static LoadImage(url: any, onLoad, onError: (message?: string, exception?: any) => void, database): HTMLImageElement {
<mask> if (url instanceof ArrayBuffer) {
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static LoadFile(url: string, callback: (data: any) => void, progressCallBack?: (data: any) => void, database?: any, useArrayBuffer?: boolean, onError?: (request: XMLHttpRequest, exception?: any) => void): void {
| <mask> return img;
<mask> }
<mask>
<mask> //ANY
<mask> public static LoadFile(url: string, callback: (data: any) => void, progressCallBack?: (data: any) => void, database?, useArrayBuffer?: boolean, onError?: (request: XMLHttpRequest, exception?: any) => void): void {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static ReadFileAsDataURL(fileToLoad: Blob, callback: (data: any) => void, progressCallback: (this: MSBaseReader, ev: ProgressEvent) => any): void {
| <mask>
<mask> head.appendChild(script);
<mask> }
<mask>
<mask> public static ReadFileAsDataURL(fileToLoad: Blob, callback, progressCallback): void {
<mask> var reader = new FileReader();
<mask> reader.onload = e => {
<mask> //target doesn't h... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
callback((<any>e.target)['result']);
| <mask> public static ReadFileAsDataURL(fileToLoad: Blob, callback, progressCallback): void {
<mask> var reader = new FileReader();
<mask> reader.onload = e => {
<mask> //target doesn't have result from ts 1.3
<mask> callback(e.target['result']);
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static ReadFile(fileToLoad: File, callback: (data: any) => void, progressCallBack: (this: MSBaseReader, ev: ProgressEvent) => any, useArrayBuffer?: boolean): void {
| <mask> reader.onprogress = progressCallback;
<mask> reader.readAsDataURL(fileToLoad);
<mask> }
<mask>
<mask> public static ReadFile(fileToLoad: File, callback, progressCallBack, useArrayBuffer?: boolean): void {
<mask> var reader = new FileReader();
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
callback((<any>e.target)['result']);
| <mask> callback(JSON.stringify({ autoClear: true, clearColor: [1, 0, 0], ambientColor: [0, 0, 0], gravity: [0, -9.807, 0], meshes: [], cameras: [], lights: [] }));
<mask> };
<mask> reader.onload = e => {
<mask> //target doesn't have result from ts 1.3
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static DeepCopy(source: any, destination: any, doNotCopyList?: string[], mustCopyList?: string[]): void {
| <mask> if (v.z > max.z)
<mask> max.z = v.z;
<mask> }
<mask>
<mask> public static DeepCopy(source, destination, doNotCopyList?: string[], mustCopyList?: string[]): void {
<mask> for (var prop in source) {
<mask>
<mask> if (prop[0] === "_" ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static IsEmpty(obj: any): boolean {
| <mask> }
<mask> }
<mask> }
<mask>
<mask> public static IsEmpty(obj): boolean {
<mask> for (var i in obj) {
<mask> return false;
<mask> }
<mask> return true;
<mask> }
</s> Monstro refactor: Enabling noImpl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
var padStr = (i: number) => (i < 10) ? "0" + i : "" + i;
| <mask> }
<mask> }
<mask>
<mask> private static _FormatMessage(message: string): string {
<mask> var padStr = i => (i < 10) ? "0" + i : "" + i;
<mask>
<mask> var date = new Date();
<mask> return "[" + padStr(date.getHours()) + ":" + padStr(date.ge... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static GetClassName(object: any, isType: boolean = false): string {
| <mask> * It will works only on Javascript basic data types (number, string, ...) and instance of class declared with the @className decorator.
<mask> * @param object the object to get the class name from
<mask> * @return the name of the class, will be "object" for a custom data type not us... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
public static getFullClassName(object: any, isType: boolean = false): string {
| <mask> * It will works only on Javascript basic data types (number, string, ...) and instance of class declared with the @className decorator or implementing a method getClassName():string (in which case the module won't be specified).
<mask> * @param object the object to get the class name from
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
(<any>target)["__bjsclassName__"] = name;
(<any>target)["__bjsmoduleName__"] = (module != null) ? module : null;
| <mask> * @param module The name of the Module hosting the class, optional, but strongly recommended to specify if possible. Case should be preserved.
<mask> */
<mask> export function className(name: string, module?: string): (target: Object) => void {
<mask> return (target: Object) => {
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/Tools/babylon.tools.ts |
deleteQuery(query: WebGLQuery): void;
beginQuery(target: number, query: WebGLQuery): void;
| <mask> uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: number, uniformBlockBinding: number): void;
<mask>
<mask> // Occlusion Query
<mask> createQuery(): WebGLQuery;
<mask> deleteQuery(query: WebGLQuery);
<mask> beginQuery(target: number, query: WebGLQuery);
<mask> endQuery... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.mixins.ts |
createObjectURL(param1: any, param2?: any): string;
| <mask> QUERY_RESULT: number;
<mask> }
<mask>
<mask> interface HTMLURL {
<mask> createObjectURL(param1: any, param2?: any);
<mask> }
<mask>
<mask> interface Document {
<mask> exitFullscreen(): void;
<mask> webkitCancelFullScreen(): void;
</s> Monstro refactor: Enabling noImplicitAny on all r... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.mixins.ts |
public _cache: any;
| <mask>
<mask> public _waitingParentId: string;
<mask>
<mask> private _scene: Scene;
<mask> public _cache;
<mask>
<mask> private _parentNode: Node;
<mask> private _children: Node[];
<mask>
<mask> public set parent(parent: Node) {
</s> Monstro refactor: Enabl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.node.ts |
var results = new Array<Node>();
| <mask> * @param predicate: an optional predicate that will be called on every evaluated children, the predicate must return true for a given child to be part of the result, otherwise it will be ignored.
<mask> * @return {BABYLON.Node[]} all children nodes of all types.
<mask> */
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.node.ts |
private _initClickEvent: (obs1: Observable<PointerInfoPre>, obs2: Observable<PointerInfo>, evt: PointerEvent, cb: (clickInfo: ClickInfo, pickResult: PickingInfo) => void) => void;
| <mask> public static DoubleClickDelay = 300; // in milliseconds
<mask> /** If you need to check double click without raising a single click at first click, enable this flag */
<mask> public static ExclusiveDoubleClickMode = false;
<mask>
<mask> private _initClickEvent: (obs1: Obser... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
private _delayedSimpleClick: (btn: number, clickInfo: ClickInfo, cb: (clickInfo: ClickInfo, pickResult: PickingInfo) => void) => void;
private _delayedSimpleClickTimeout: number;
private _previousDelayedSimpleClickTimeout: number;
| <mask> public static ExclusiveDoubleClickMode = false;
<mask>
<mask> private _initClickEvent: (obs1: Observable<PointerInfoPre>, obs2: Observable<PointerInfo>, evt: PointerEvent, cb: (clickInfo: ClickInfo, pickResult: PointerInfo) => void) => void;
<mask> private _initActionManager: (act: A... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
private _previousButtonPressed: number;
| <mask> private _delayedSimpleClickTimeout;
<mask> private _previousDelayedSimpleClickTimeout;
<mask> private _meshPickProceed = false;
<mask>
<mask> private _previousButtonPressed;
<mask> private _previousHasSwiped = false;
<mask> private _currentPickResult = null... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
private _currentPickResult: PickingInfo = null;
private _previousPickResult: PickingInfo = null;
| <mask> private _meshPickProceed = false;
<mask>
<mask> private _previousButtonPressed;
<mask> private _previousHasSwiped = false;
<mask> private _currentPickResult = null;
<mask> private _previousPickResult = null;
<mask> private _totalPointersPressed = 0;
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
private _workerCollisions: boolean;
| <mask> public lensFlareSystems = new Array<LensFlareSystem>();
<mask>
<mask> // Collisions
<mask> public collisionsEnabled = true;
<mask> private _workerCollisions;
<mask> public collisionCoordinator: ICollisionCoordinator;
<mask> /** Defines the gravity applied t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
public database: any;
| <mask> public probesEnabled = true;
<mask> public reflectionProbes = new Array<ReflectionProbe>();
<mask>
<mask> // Database
<mask> public database; //ANY
<mask>
<mask> /**
<mask> * This scene's action manager
<mask> * @type {BABYLON.ActionManager}
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
private _pendingData = new Array();
| <mask> private _alternateViewUpdateFlag = -1;
<mask> private _alternateProjectionUpdateFlag = -1;
<mask>
<mask> public _toBeDisposed = new SmartArray<IDisposable>(256);
<mask> private _pendingData = [];//ANY
<mask>
<mask> private _activeMeshes = new SmartArray<Mesh>(256)... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
private _activeMeshes = new SmartArray<AbstractMesh>(256);
| <mask>
<mask> public _toBeDisposed = new SmartArray<IDisposable>(256);
<mask> private _pendingData = [];//ANY
<mask>
<mask> private _activeMeshes = new SmartArray<Mesh>(256);
<mask> private _processedMaterials = new SmartArray<Material>(256);
<mask> private _renderTarget... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
public getActiveMeshes(): SmartArray<AbstractMesh> {
| <mask> public get evaluateActiveMeshesDurationPerfCounter(): PerfCounter {
<mask> return this._evaluateActiveMeshesDuration;
<mask> }
<mask>
<mask> public getActiveMeshes(): SmartArray<Mesh> {
<mask> return this._activeMeshes;
<mask> }
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
this._delayedSimpleClick = (btn: number, clickInfo: ClickInfo, cb: (clickInfo: ClickInfo, pickResult: PickingInfo) => void) => {
| <mask> }
<mask> return act;
<mask> };
<mask>
<mask> this._delayedSimpleClick = (btn: number, clickInfo: ClickInfo, cb: (clickInfo: ClickInfo, pickResult: PointerInfo) => void) => {
<mask> // double click delay is over and that no double clic... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
this._initClickEvent = (obs1: Observable<PointerInfoPre>, obs2: Observable<PointerInfo>, evt: PointerEvent, cb: (clickInfo: ClickInfo, pickResult: PickingInfo) => void): void => {
| <mask> cb(clickInfo, this._currentPickResult);
<mask> }
<mask> }
<mask>
<mask> this._initClickEvent = (obs1: Observable<PointerInfoPre>, obs2: Observable<PointerInfo>, evt: PointerEvent, cb: (clickInfo: ClickInfo, pickResult: PointerInfo) => void): void ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
if (Scene.ExclusiveDoubleClickMode && this._previousDelayedSimpleClickTimeout) {
clearTimeout(this._previousDelayedSimpleClickTimeout);
}
| <mask> this._previousStartingPointerTime = 0;
<mask> this._doubleClickOccured = true;
<mask> clickInfo.doubleClick = true;
<mask> clickInfo.ignore = false;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
if (this._previousDelayedSimpleClickTimeout) {
clearTimeout(this._previousDelayedSimpleClickTimeout);
| <mask> this._previousStartingPointerPosition.y = this._startingPointerPosition.y;
<mask> this._previousButtonPressed = btn;
<mask> this._previousHasSwiped = clickInfo.hasSwiped;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
this._initClickEvent(this.onPrePointerObservable, this.onPointerObservable, evt, (function (clickInfo: ClickInfo, pickResult: PickingInfo) {
| <mask> this._meshPickProceed = false;
<mask>
<mask> this._updatePointerPosition(evt);
<mask>
<mask> this._initClickEvent(this.onPrePointerObservable, this.onPointerObservable, evt, (function (clickInfo, pickResult) {
<mask> // PreObservable sup... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
public _addPendingData(data: any): void {
| <mask> public unregisterAfterRender(func: () => void): void {
<mask> this.onAfterRenderObservable.removeCallback(func);
<mask> }
<mask>
<mask> public _addPendingData(data): void {
<mask> this._pendingData.push(data);
<mask> }
<mask>
<mask> publi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
public _removePendingData(data: any): void {
| <mask> public _addPendingData(data): void {
<mask> this._pendingData.push(data);
<mask> }
<mask>
<mask> public _removePendingData(data): void {
<mask> var index = this._pendingData.indexOf(data);
<mask>
<mask> if (index !== -1) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
public removeExternalData(key: string): boolean {
| <mask> * Remove an externaly attached data from the Engine instance
<mask> * @param key the unique key that identifies the data
<mask> * @return true if the data was successfully removed, false if it doesn't exist
<mask> */
<mask> public removeExternalData(key): boolean ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
this._softwareSkinnedMeshes.pushNoDuplicate(<Mesh>mesh);
| <mask> mesh.skeleton.prepare();
<mask> }
<mask>
<mask> if (!mesh.computeBonesUsingShaders) {
<mask> this._softwareSkinnedMeshes.pushNoDuplicate(mesh);
<mask> }
<mask> }
<mask>
<mask> if (sourceMesh... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/babylon.scene.ts |
"noImplicitAny": true,
| <mask> "experimentalDecorators": true,
<mask> "module": "commonjs",
<mask> "target": "es5",
<mask> "sourceMap": true,
<mask> "lib": ["dom", "es2015.promise", "es5"]
<mask> }
<mask> } </s> Monstro refactor: Enabling noImplicitAny on all repo
Former-commit-id: 6bcd88e2e2b0d5353a25b10225d4ee... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/735fdc36143d807b733848117c8ea92ee02d6c7e | src/tsconfig.json |
public lightmapMode = 0;
| <mask> @serialize()
<mask> public excludeWithLayerMask = 0;
<mask>
<mask> @serialize()
<mask> public lightmapExcluded = false;
<mask>
<mask> @serialize()
<mask> public lightmapNoSpecular = false;
<mask>
<mask> // PBR Properties.
<mask> @seria... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/745dddb55e19771daa8d44f4b5262b46b295fd5e | src/Lights/babylon.light.ts |
var lightmapMode = false;
| <mask> var lightIndex = 0;
<mask> var needNormals = false;
<mask> var needRebuild = false;
<mask> var needShadows = false;
<mask> var lightmapExcluded = false;
<mask>
<mask> for (var index = 0; index < scene.lights.length; index++) {
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/745dddb55e19771daa8d44f4b5262b46b295fd5e | src/Materials/babylon.materialHelper.ts |
if (light.lightmapMode != 0 ) {
lightmapMode = true;
if (defines["LIGHTMAPEXCLUDED" + lightIndex] === undefined) {
needRebuild = true;
}
if (defines["LIGHTMAPNOSPECULAR" + lightIndex] === undefin... | <mask> needShadows = true;
<mask> }
<mask> }
<mask>
<mask> //lightmapExcluded
<mask> if (defines["LIGHTMAPEXCLUDED" + lightIndex] === undefined) {
<mask> needRebuild = true;
<mask> }
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/745dddb55e19771daa8d44f4b5262b46b295fd5e | src/Materials/babylon.materialHelper.ts |
<mask> //lightmapNoSpecular
<mask> if (defines["LIGHTMAPNOSPECULAR" + lightIndex] === undefined) {
<mask> needRebuild = true;
<mask> }
<mask> defines["LIGHTMAPNOSPECULAR" + lightIndex] = light.lightmapNoSpecular;
<mask>
<mask>
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/745dddb55e19771daa8d44f4b5262b46b295fd5e | src/Materials/babylon.materialHelper.ts | |
if (lightmapMode) {
| <mask>
<mask> if (defines["LIGHTMAPEXCLUDED"] === undefined) {
<mask> needRebuild = true;
<mask> }
<mask> if (lightmapExcluded) {
<mask> defines["LIGHTMAPEXCLUDED"] = true;
<mask> }
<mask>
<mask> if (needRebuild) {
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/745dddb55e19771daa8d44f4b5262b46b295fd5e | src/Materials/babylon.materialHelper.ts |
case Engine.TEXTUREFORMAT_ALPHA:
return this._gl.ALPHA;
| <mask> public _getRGBABufferInternalSizedFormat(type: number, format?: number): number {
<mask> if (this._webGLVersion === 1) {
<mask> if (format !== undefined) {
<mask> switch(format) {
<mask> case Engine.TEXTUREFORMAT_LUMINANCE:
<ma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/74d00987ecf8e92d603503314e26c0fd66f30b0d | src/Engine/babylon.engine.ts |
case Engine.TEXTUREFORMAT_LUMINANCE_ALPHA:
return this._gl.LUMINANCE_ALPHA;
| <mask> if (format !== undefined) {
<mask> switch(format) {
<mask> case Engine.TEXTUREFORMAT_LUMINANCE:
<mask> return this._gl.LUMINANCE;
<mask> case Engine.TEXTUREFORMAT_ALPHA:
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/74d00987ecf8e92d603503314e26c0fd66f30b0d | src/Engine/babylon.engine.ts |
switch (format) {
case Engine.TEXTUREFORMAT_ALPHA:
return this._gl.ALPHA;
case Engine.TEXTUREFORMAT_LUMINANCE:
return this._gl.LUMINANCE;
case Engine.TEXTUREFORMAT_LUMINANCE_ALPHA:
return this.... | <mask> }
<mask> return this._gl.RGBA;
<mask> }
<mask>
<mask> if (type === Engine.TEXTURETYPE_FLOAT) {
<mask> if (format !== undefined) {
<mask> switch(format) {
<mask> case Engine.TEXTUREFORMAT_R... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"k... | https://github.com/BabylonJS/Babylon.js/commit/74d00987ecf8e92d603503314e26c0fd66f30b0d | src/Engine/babylon.engine.ts |
}
break;
case Engine.TEXTUREFORMAT_RG:
switch (type) {
case Engine.TEXTURETYPE_BYTE:
return this._gl.RG8_SNORM;
case Engine.TEXTURETYPE_UNSIGNED_BYTE:
... | <mask> if (format) {
<mask> switch(format) {
<mask> case Engine.TEXTUREFORMAT_R:
<mask> return this._gl.R16F;
<mask> case Engine.TEXTUREFORMAT_RG:
<mask> return this._gl.RG16... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/74d00987ecf8e92d603503314e26c0fd66f30b0d | src/Engine/babylon.engine.ts |
}
break;
case Engine.TEXTUREFORMAT_RGB:
switch (type) {
case Engine.TEXTURETYPE_BYTE:
return this._gl.RGB8_SNORM;
case Engine.TEXTURETYPE_UNSIGNED_BYTE:
... | <mask> case Engine.TEXTUREFORMAT_R:
<mask> return this._gl.R16F;
<mask> case Engine.TEXTUREFORMAT_RG:
<mask> return this._gl.RG16F;
<mask> case Engine.TEXTUREFORMAT_RGB:
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/74d00987ecf8e92d603503314e26c0fd66f30b0d | src/Engine/babylon.engine.ts |
<mask> }
<mask> return this._gl.RGBA16F;
<mask> }
<mask>
<mask> if (format !== undefined) {
<mask> switch(format) {
<mask> case Engine.TEXTUREFORMAT_LUMINANCE:
<mask> return this._gl.LUMINANCE;
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/74d00987ecf8e92d603503314e26c0fd66f30b0d | src/Engine/babylon.engine.ts | |
public _collisionRetryCount: number = 3; | <mask> public _currentLOD: Nullable<AbstractMesh> = null;
<mask> public _currentLODIsUpToDate: boolean = false;
<mask> }
<mask>
<mask> /**
<mask> * Class used to store all common mesh properties
</s> move member outside of abstract mesh because of limit to 128
Former-commit-id: 4df9fc81e26ebe2deb3d8e... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/75ea25da46001df48299b07d76d853a2694925d9 | src/Meshes/abstractMesh.ts |
/** number of collision detection tries. Change this value if not all colisions are detected and handled properly. */
public get collisionRetryCount(): number {
return this._internalAbstractMeshDataInfo._collisionRetryCount;
}
public set collisionRetryCount(retryCount: number) {
this._in... | <mask> }
<mask>
<mask> /**
<mask> * gets a boolean indicating if facetData is enabled
<mask> * @see https://doc.babylonjs.com/how_to/how_to_use_facetdata#what-is-a-mesh-facet
<mask> */
<mask> public get isFacetDataEnabled(): boolean {
</s> move member outside of abstract mesh because... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/75ea25da46001df48299b07d76d853a2694925d9 | src/Meshes/abstractMesh.ts |
<mask> /** Gets or sets a boolean indicating that internal octree (if available) can be used to boost submeshes picking (true by default) */
<mask> public useOctreeForPicking = true;
<mask> /** Gets or sets a boolean indicating that internal octree (if available) can be used to boost submeshes collision ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/75ea25da46001df48299b07d76d853a2694925d9 | src/Meshes/abstractMesh.ts | |
return this.sessionManager.isSessionSupportedAsync(sessionMode).then((supported) => {
if (!supported) {
throw new Error(`Session mode "${sessionMode}" not supported in browser`);
}
| <mask> let sessionCreationOptions: XRSessionInit = {
<mask> optionalFeatures: (referenceSpaceType !== "viewer" && referenceSpaceType !== "local") ? [referenceSpaceType] : []
<mask> };
<mask> // make sure that the session mode is supported
<mask> return this.sessionManage... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/778b7351d7396d47b9e619fca91a3f3d5fed7db1 | src/Cameras/XR/webXRExperienceHelper.ts |
* @returns A Promise that resolves to true if supported and false if not
| <mask>
<mask> /**
<mask> * Checks if a session would be supported for the creation options specified
<mask> * @param sessionMode session mode to check if supported eg. immersive-vr
<mask> * @returns true if supported
<mask> */
<mask> public isSessionSupportedAsync(sessionMode: XRSess... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/778b7351d7396d47b9e619fca91a3f3d5fed7db1 | src/Cameras/XR/webXRSessionManager.ts |
public isSessionSupportedAsync(sessionMode: XRSessionMode): Promise<boolean> {
| <mask> * Checks if a session would be supported for the creation options specified
<mask> * @param sessionMode session mode to check if supported eg. immersive-vr
<mask> * @returns true if supported
<mask> */
<mask> public isSessionSupportedAsync(sessionMode: XRSessionMode) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/778b7351d7396d47b9e619fca91a3f3d5fed7db1 | src/Cameras/XR/webXRSessionManager.ts |
return functionToUse.call((navigator as any).xr, sessionMode).then((result: boolean) => {
const returnValue = (typeof result === "undefined") ? true : result;
return Promise.resolve(returnValue);
| <mask> const functionToUse = (navigator as any).xr.isSessionSupported || (navigator as any).xr.supportsSession;
<mask> if (!functionToUse) {
<mask> return Promise.resolve(false);
<mask> } else {
<mask> return functionToUse.call((navigator as any).xr, sessionMode).the... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/778b7351d7396d47b9e619fca91a3f3d5fed7db1 | src/Cameras/XR/webXRSessionManager.ts |
<mask> private _axisY: Vector3 = Axis.Y;
<mask> private _axisZ: Vector3 = Axis.Z;
<mask> private _camera: Camera;
<mask> private _particle: SolidParticle;
<mask> private _previousParticle: SolidParticle;
<mask> private _fakeCamPos: Vector3 = Vector3.Zero();
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77956ba7931b78cf510520baf7d13d4ae7efb3f4 | src/Particles/babylon.solidParticleSystem.ts | |
public buildMesh(updatable: boolean = true): Mesh { | <mask> this._camera = scene.activeCamera;
<mask> }
<mask>
<mask> // build the SPS mesh : returns the mesh
<mask> public buildMesh(upgradable: boolean = true): Mesh {
<mask> if (this.nbParticles === 0) {
<mask> var triangle = MeshBuilder.CreateDisc(... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77956ba7931b78cf510520baf7d13d4ae7efb3f4 | src/Particles/babylon.solidParticleSystem.ts |
vertexData.applyToMesh(mesh, updatable); | <mask> if (this._colors32) {
<mask> vertexData.set(this._colors32, VertexBuffer.ColorKind);
<mask> }
<mask> var mesh = new Mesh(name, this._scene);
<mask> vertexData.applyToMesh(mesh, upgradable);
<mask> this.mesh = mesh;
<mask>
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77956ba7931b78cf510520baf7d13d4ae7efb3f4 | src/Particles/babylon.solidParticleSystem.ts |
if (!updatable) {
this.particles.length = 0;
}
| <mask> this._normals = null;
<mask> this._uvs = null;
<mask> this._colors = null;
<mask>
<mask> return mesh;
<mask> }
<mask>
<mask> //reset copy
</s> free particles array if mesh not updatable + make sure the end parameter of SPS.setParticles() ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77956ba7931b78cf510520baf7d13d4ae7efb3f4 | src/Particles/babylon.solidParticleSystem.ts |
end = (end > this.nbParticles - 1) ? this.nbParticles - 1 : end; | <mask>
<mask> // particle loop
<mask> for (var p = start; p <= end; p++) {
<mask> this._particle = this.particles[p];
<mask> this._shape = this._particle._model._shape;
<mask> this._shapeUV = this._particle._model._shapeUV;
<mask>
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77956ba7931b78cf510520baf7d13d4ae7efb3f4 | src/Particles/babylon.solidParticleSystem.ts |
* @param markAsUpdated if set to true, the cached value _isIdentityDirty and _isIdentity will be updated
| <mask>
<mask> /**
<mask> * Creates a new identity matrix
<mask> * @returns a new identity matrix
<mask> */
<mask> public static Identity(markAsUpdated = false): Matrix {
<mask> const identity = Matrix.FromValues(1.0, 0.0, 0.0, 0.0,
<mask> 0... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77b07cc9f022fd6b8231b33128189c7f4d7ca25b | src/Math/babylon.math.ts |
public static Identity(markAsUpdated = false): Matrix {
| <mask> /**
<mask> * Creates a new identity matrix
<mask> * @returns a new identity matrix
<mask> */
<mask> public static Identity(markAsUpdated = false, considerAsTextureMatrix = false): Matrix {
<mask> const identity = Matrix.FromValues(1.0, 0.0, 0.0, 0.0,
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77b07cc9f022fd6b8231b33128189c7f4d7ca25b | src/Math/babylon.math.ts |
identity._isIdentity = true;
| <mask> 0.0, 0.0, 1.0, 0.0,
<mask> 0.0, 0.0, 0.0, 1.0);
<mask> if (markAsUpdated) {
<mask> identity._isIdentityDirty = false;
<mask> identity._isIdentity = !considerAsTextureMatrix;
<mask> }
<mask> return identity;... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77b07cc9f022fd6b8231b33128189c7f4d7ca25b | src/Math/babylon.math.ts |
* @param markAsUpdated if set to true, the cached value _isIdentityDirty and _isIdentity will be updated
| <mask> /**
<mask> * Creates a new identity matrix and stores the result in a given matrix
<mask> * @param result defines the target matrix
<mask> */
<mask> public static IdentityToRef(result: Matrix, markAsUpdated = false): void {
<mask> Matrix.FromValuesToRe... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77b07cc9f022fd6b8231b33128189c7f4d7ca25b | src/Math/babylon.math.ts |
public static IdentityToRef(result: Matrix, markAsUpdated = false): void {
| <mask> /**
<mask> * Creates a new identity matrix and stores the result in a given matrix
<mask> * @param result defines the target matrix
<mask> */
<mask> public static IdentityToRef(result: Matrix, markAsUpdated = false, considerAsTextureMatrix = false): void {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77b07cc9f022fd6b8231b33128189c7f4d7ca25b | src/Math/babylon.math.ts |
result._isIdentity = true;
| <mask> 0.0, 0.0, 1.0, 0.0,
<mask> 0.0, 0.0, 0.0, 1.0, result);
<mask> if (markAsUpdated) {
<mask> result._isIdentityDirty = false;
<mask> result._isIdentity = !considerAsTextureMatrix;
<mask> }
<mask> }
<mask>
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/77b07cc9f022fd6b8231b33128189c7f4d7ca25b | src/Math/babylon.math.ts |
value={this.state.value} onBlur={() => {
this.unlock();
if(this.props.onEnter) {
this.props.onEnter(this._store);
}
}} onFocus=... | <mask> if(this.props.onEnter) {
<mask> this.props.onEnter(this._store);
<mask> }
<mask> }}
<mask> value={this.state.value} onBlur={() => this.unlock()} onFocus... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7857675896d7fa7631f9bbfe755ca172146cc821 | inspector/src/components/actionTabs/lines/floatLineComponent.tsx |
import { LockObject } from '../tabs/propertyGrids/lockObject';
| <mask> import { PropertyChangedEvent } from "../../propertyChangedEvent";
<mask> import { Tools } from 'babylonjs/Misc/tools';
<mask> import { FloatLineComponent } from './floatLineComponent';
<mask>
<mask> interface ISliderLineComponentProps {
<mask> label: string;
<mask> target?: any;
<mask> prop... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7857675896d7fa7631f9bbfe755ca172146cc821 | inspector/src/components/actionTabs/lines/sliderLineComponent.tsx |
//private _lockObject = new LockObject();
| <mask> }
<mask>
<mask> export class SliderLineComponent extends React.Component<ISliderLineComponentProps, { value: number }> {
<mask> private _localChange = false;
<mask> constructor(props: ISliderLineComponentProps) {
<mask> super(props);
<mask>
<mask> if (this.props.directValue !== ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7857675896d7fa7631f9bbfe755ca172146cc821 | inspector/src/components/actionTabs/lines/sliderLineComponent.tsx |
<FloatLineComponent smallUI={true} label="" target={this.state} propertyName="value" min={this.props.minimum} max={this.props.maximum}
| <mask> <div className="sliderLine">
<mask> <div className={this.props.margin ? "label withMargins" : "label"}>
<mask> {this.props.label}
<mask> </div>
<mask> <FloatLineComponent smallUI={true} label="" target={this.state} propertyName=... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7857675896d7fa7631f9bbfe755ca172146cc821 | inspector/src/components/actionTabs/lines/sliderLineComponent.tsx |
var changed = this.prepareDataToRead(this.state.value); this.onChange(changed);
| <mask> {this.props.label}
<mask> </div>
<mask> <FloatLineComponent smallUI={true} label="" target={this.state} propertyName="value" min={this.prepareDataToRead(this.props.minimum)} max={this.prepareDataToRead(this.props.maximum)}
<mask> onEnter... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7857675896d7fa7631f9bbfe755ca172146cc821 | inspector/src/components/actionTabs/lines/sliderLineComponent.tsx |
}
onChange={evt => {var changed = this.prepareDataToRead(this.state.value); this.onChange(changed)}} >
| <mask> <FloatLineComponent smallUI={true} label="" target={this.state} propertyName="value" min={this.prepareDataToRead(this.props.minimum)} max={this.prepareDataToRead(this.props.maximum)}
<mask> onEnter={ () => {
<mask> this.onChange(this.state.value)
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7857675896d7fa7631f9bbfe755ca172146cc821 | inspector/src/components/actionTabs/lines/sliderLineComponent.tsx |
controlPoint0Value = prevValue + outTangent / 3;
| <mask> let controlPoint1Value: number;
<mask>
<mask> if (outTangent) {
<mask> controlPoint0Frame = prevFrame + frameDist / 3;
<mask> controlPoint0Value = prevValue + outTangent * frameDist / 3;
<mask> } else {
<mask> const animE... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7886ccc94d2cffddb41b893e921981e96af8162e | inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts |
controlPoint1Value = currentValue - inTangent / 3;
| <mask> }
<mask>
<mask> if (inTangent) {
<mask> controlPoint1Frame = currentFrame - frameDist / 3;
<mask> controlPoint1Value = currentValue - inTangent * frameDist / 3;
<mask> } else {
<mask> const animEval = this.animation.evalu... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7886ccc94d2cffddb41b893e921981e96af8162e | inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts |
outTangent = (evaluatedValue - keys[keyIndex].value) / (currentFrame - midFrame);
| <mask> if (this.property) {
<mask> evaluatedValue = evaluatedValueEntry[this.property];
<mask> }
<mask>
<mask> outTangent = (evaluatedValue - keys[keyIndex].value) / (midFrame - currentFrame);
<mask> }
<mask>
<mask> return length * outTangent... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7886ccc94d2cffddb41b893e921981e96af8162e | inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts |
<mask> this.onDataUpdatedObservable.notifyObservers();
<mask> }
<mask>
<mask> public updateOutTangentFromControlPoint(keyId: number, slope: number) {
<mask> console.log(slope)
<mask> this.keys[keyId].outTangent = slope;
<mask>
<mask> if (this.property) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/7886ccc94d2cffddb41b893e921981e96af8162e | inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.