@splinetool/loader 0.9.93 → 0.9.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Parser.d.ts +19 -0
- package/build/SplineLoader.cjs +60 -60
- package/build/SplineLoader.js +55 -55
- package/build/convertCloners.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DocumentData } from 'spline-data';
|
|
2
|
+
export default class Parser {
|
|
3
|
+
private dracoLoader?;
|
|
4
|
+
/**
|
|
5
|
+
* Only get the draco decoders if this function is called
|
|
6
|
+
*/
|
|
7
|
+
private _preloadDraco;
|
|
8
|
+
parseDraco(encodedData: number[]): Promise<{
|
|
9
|
+
index: {
|
|
10
|
+
array: ArrayLike<number>;
|
|
11
|
+
} | undefined;
|
|
12
|
+
attributes: {
|
|
13
|
+
name: string;
|
|
14
|
+
itemSize: number;
|
|
15
|
+
array: ArrayLike<number>;
|
|
16
|
+
}[];
|
|
17
|
+
} | null>;
|
|
18
|
+
parse(buffer: ArrayBuffer): Promise<DocumentData>;
|
|
19
|
+
}
|