Skip to content

Commit

Permalink
version 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Brakebein committed Nov 29, 2023
1 parent aa97658 commit 0b29426
Show file tree
Hide file tree
Showing 13 changed files with 5,436 additions and 5,747 deletions.
5,317 changes: 2,580 additions & 2,737 deletions build/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.cjs.map

Large diffs are not rendered by default.

5,319 changes: 2,581 additions & 2,738 deletions build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-three-gltf",
"version": "1.4.0",
"version": "1.5.0",
"description": "Use three.js GLTFLoader in a Node.js environment",
"exports": {
"import": "./build/index.js",
Expand Down
74 changes: 37 additions & 37 deletions types/DRACOLoader.d.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import { BufferGeometry, Loader, LoadingManager } from 'three';
export declare class DRACOLoader extends Loader {
decoderPath: string;
decoderConfig: {
[key: string]: any;
};
decoderPending: any;
workerLimit: number;
workerPool: any[];
workerNextTaskID: number;
workerSourceURL: string;
defaultAttributeIDs: {
position: string;
normal: string;
color: string;
uv: string;
};
defaultAttributeTypes: {
position: string;
normal: string;
color: string;
uv: string;
};
constructor(manager?: LoadingManager);
setDecoderConfig(config: object): this;
setWorkerLimit(workerLimit: number): this;
load(url: string, onLoad: (geometry: BufferGeometry) => void, onProgress?: () => void, onError?: (err: Error) => void): void;
decodeDracoFile(buffer: ArrayBuffer, callback: (geometry: BufferGeometry) => void, attributeIDs?: any, attributeTypes?: any): void;
decodeGeometry(buffer: ArrayBuffer, taskConfig: any): Promise<BufferGeometry>;
_createGeometry(geometryData: any): BufferGeometry;
preload(): this;
_loadLibrary(url: string, responseType: string): Promise<unknown>;
_initDecoder(): any;
_getWorker(taskID: any, taskCost: any): any;
_releaseTask(worker: any, taskID: any): void;
dispose(): this;
}
import { BufferGeometry, Loader, LoadingManager } from 'three';
export declare class DRACOLoader extends Loader {
decoderPath: string;
decoderConfig: {
[key: string]: any;
};
decoderPending: any;
workerLimit: number;
workerPool: any[];
workerNextTaskID: number;
workerSourceURL: string;
defaultAttributeIDs: {
position: string;
normal: string;
color: string;
uv: string;
};
defaultAttributeTypes: {
position: string;
normal: string;
color: string;
uv: string;
};
constructor(manager?: LoadingManager);
setDecoderConfig(config: object): this;
setWorkerLimit(workerLimit: number): this;
load(url: string, onLoad: (geometry: BufferGeometry) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: Error) => void): void;
decodeDracoFile(buffer: ArrayBuffer, callback: (geometry: BufferGeometry) => void, attributeIDs?: any, attributeTypes?: any): void;
decodeGeometry(buffer: ArrayBuffer, taskConfig: any): Promise<BufferGeometry>;
_createGeometry(geometryData: any): BufferGeometry;
preload(): this;
_loadLibrary(url: string, responseType: string): Promise<unknown>;
_initDecoder(): any;
_getWorker(taskID: any, taskCost: any): any;
_releaseTask(worker: any, taskID: any): void;
dispose(): this;
}
18 changes: 9 additions & 9 deletions types/FileLoader.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Loader, LoadingManager } from 'three';
export declare class FileLoader extends Loader {
mimeType: string;
responseType: string;
constructor(manager?: LoadingManager);
load(url: string, onLoad?: (response: string | ArrayBuffer) => void, onProgress?: () => void, onError?: (err: Error) => void): void;
setResponseType(value: string): FileLoader;
setMimeType(value: string): FileLoader;
}
import { Loader, LoadingManager } from 'three';
export declare class FileLoader extends Loader {
mimeType: string;
responseType: string;
constructor(manager?: LoadingManager);
load(url: string, onLoad?: (response: string | ArrayBuffer) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: Error) => void): void;
setResponseType(value: string): FileLoader;
setMimeType(value: string): FileLoader;
}
Loading

0 comments on commit 0b29426

Please sign in to comment.