-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Loader updates * Add return types * Get tests passing * Fix
- Loading branch information
1 parent
b804bd9
commit f8e5198
Showing
57 changed files
with
101 additions
and
1,195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
import { Loader, LoadingManager, Group } from '../../../src/Three.js'; | ||
|
||
export class ThreeMFLoader extends Loader { | ||
export class ThreeMFLoader extends Loader<Group> { | ||
constructor(manager?: LoadingManager); | ||
availableExtensions: object[]; | ||
|
||
load( | ||
url: string, | ||
onLoad: (object: Group) => void, | ||
onProgress?: (event: ProgressEvent) => void, | ||
onError?: (event: ErrorEvent) => void, | ||
): void; | ||
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Group>; | ||
parse(data: ArrayBuffer): Group; | ||
addExtension(extension: object): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import { Loader, LoadingManager, Group } from '../../../src/Three.js'; | ||
|
||
export class AMFLoader extends Loader { | ||
export class AMFLoader extends Loader<Group> { | ||
constructor(manager?: LoadingManager); | ||
|
||
load( | ||
url: string, | ||
onLoad: (object: Group) => void, | ||
onProgress?: (event: ProgressEvent) => void, | ||
onError?: (event: ErrorEvent) => void, | ||
): void; | ||
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Group>; | ||
parse(data: ArrayBuffer): Group; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import { Group, Loader, LoadingManager } from '../../../src/Three.js'; | ||
|
||
export class FBXLoader extends Loader { | ||
export class FBXLoader extends Loader<Group> { | ||
constructor(manager?: LoadingManager); | ||
|
||
load( | ||
url: string, | ||
onLoad: (object: Group) => void, | ||
onProgress?: (event: ProgressEvent) => void, | ||
onError?: (event: ErrorEvent) => void, | ||
): void; | ||
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Group>; | ||
parse(FBXBuffer: ArrayBuffer | string, path: string): Group; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
import { Group, Loader, LoadingManager } from '../../../src/Three.js'; | ||
|
||
export class GCodeLoader extends Loader { | ||
export class GCodeLoader extends Loader<Group> { | ||
constructor(manager?: LoadingManager); | ||
splitLayer: boolean; | ||
|
||
load( | ||
url: string, | ||
onLoad: (object: Group) => void, | ||
onProgress?: (event: ProgressEvent) => void, | ||
onError?: (event: ErrorEvent) => void, | ||
): void; | ||
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Group>; | ||
parse(data: string): Group; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.