@configura/internal 2.0.0-alpha.0 → 2.0.0-alpha.3
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/LICENSE +201 -201
- package/README.md +64 -64
- package/package.json +2 -2
- package/web_core_internal.d.ts +170 -170
- package/web_core_internal.js +2 -2
- package/web_core_internal_bg.js +353 -353
- package/web_core_internal_bg.wasm.d.ts +36 -36
package/web_core_internal.d.ts
CHANGED
|
@@ -1,170 +1,170 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @param {Uint8Array} data
|
|
5
|
-
* @returns {CTMFile}
|
|
6
|
-
*/
|
|
7
|
-
export function create_ctm_file(data: Uint8Array): CTMFile;
|
|
8
|
-
/**
|
|
9
|
-
* @param {Uint8Array} data
|
|
10
|
-
* @returns {Stream}
|
|
11
|
-
*/
|
|
12
|
-
export function create_stream(data: Uint8Array): Stream;
|
|
13
|
-
/**
|
|
14
|
-
*/
|
|
15
|
-
export enum DexMagic {
|
|
16
|
-
BeginHeader,
|
|
17
|
-
BeginInternalizedXRef,
|
|
18
|
-
BeginObj,
|
|
19
|
-
BeginObjs,
|
|
20
|
-
BeginPositions,
|
|
21
|
-
BeginStrs,
|
|
22
|
-
BeginThumbnail,
|
|
23
|
-
EndHeader,
|
|
24
|
-
EndInternalizedXRef,
|
|
25
|
-
EndObj,
|
|
26
|
-
EndObjs,
|
|
27
|
-
EndOdd,
|
|
28
|
-
EndPositions,
|
|
29
|
-
EndStrs,
|
|
30
|
-
EndThumbnail,
|
|
31
|
-
EndXRef,
|
|
32
|
-
OtherInternalizedXRefFile,
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
*/
|
|
36
|
-
export enum CompressMagic {
|
|
37
|
-
OldIncremental,
|
|
38
|
-
UncompressedMonolithic,
|
|
39
|
-
UncompressedIncremental,
|
|
40
|
-
LZFMonolithic,
|
|
41
|
-
LZFIncremental,
|
|
42
|
-
LZMA2Incremental,
|
|
43
|
-
LZMA2Monolithic,
|
|
44
|
-
LZMA3Incremental,
|
|
45
|
-
LZMA3Monolithic,
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
*/
|
|
49
|
-
export class CTMFile {
|
|
50
|
-
free(): void;
|
|
51
|
-
/**
|
|
52
|
-
* @returns {number}
|
|
53
|
-
*/
|
|
54
|
-
vertices_ptr(): number;
|
|
55
|
-
/**
|
|
56
|
-
* @returns {number}
|
|
57
|
-
*/
|
|
58
|
-
vertices_len(): number;
|
|
59
|
-
/**
|
|
60
|
-
* @returns {number}
|
|
61
|
-
*/
|
|
62
|
-
normals_ptr(): number;
|
|
63
|
-
/**
|
|
64
|
-
* If the CTMFile does not contain
|
|
65
|
-
* normals, this length is zero.
|
|
66
|
-
* @returns {number}
|
|
67
|
-
*/
|
|
68
|
-
normals_len(): number;
|
|
69
|
-
/**
|
|
70
|
-
* For performance reasons (to store temp values) this array is declared
|
|
71
|
-
* as i32 rather than the expected u32. It only contains positive integers
|
|
72
|
-
* though, so it is safe to use it as u32 on the JS side if needed.
|
|
73
|
-
* @returns {number}
|
|
74
|
-
*/
|
|
75
|
-
indices_ptr(): number;
|
|
76
|
-
/**
|
|
77
|
-
* @returns {number}
|
|
78
|
-
*/
|
|
79
|
-
indices_len(): number;
|
|
80
|
-
/**
|
|
81
|
-
* @returns {number}
|
|
82
|
-
*/
|
|
83
|
-
uvs_ptr(): number;
|
|
84
|
-
/**
|
|
85
|
-
* @returns {number}
|
|
86
|
-
*/
|
|
87
|
-
uvs_len(): number;
|
|
88
|
-
/**
|
|
89
|
-
* @returns {number}
|
|
90
|
-
*/
|
|
91
|
-
colors_ptr(): number;
|
|
92
|
-
/**
|
|
93
|
-
* @returns {number}
|
|
94
|
-
*/
|
|
95
|
-
colors_len(): number;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
*/
|
|
99
|
-
export class Stream {
|
|
100
|
-
free(): void;
|
|
101
|
-
/**
|
|
102
|
-
* @returns {number}
|
|
103
|
-
*/
|
|
104
|
-
get_position(): number;
|
|
105
|
-
/**
|
|
106
|
-
* @param {number} pos
|
|
107
|
-
*/
|
|
108
|
-
set_position(pos: number): void;
|
|
109
|
-
/**
|
|
110
|
-
* @returns {number}
|
|
111
|
-
*/
|
|
112
|
-
get_ptr(): number;
|
|
113
|
-
/**
|
|
114
|
-
* @returns {number}
|
|
115
|
-
*/
|
|
116
|
-
read_i8(): number;
|
|
117
|
-
/**
|
|
118
|
-
* @returns {number}
|
|
119
|
-
*/
|
|
120
|
-
read_i16(): number;
|
|
121
|
-
/**
|
|
122
|
-
* @returns {number}
|
|
123
|
-
*/
|
|
124
|
-
read_i32(): number;
|
|
125
|
-
/**
|
|
126
|
-
* @returns {number}
|
|
127
|
-
*/
|
|
128
|
-
read_u8(): number;
|
|
129
|
-
/**
|
|
130
|
-
* @returns {number}
|
|
131
|
-
*/
|
|
132
|
-
read_u16(): number;
|
|
133
|
-
/**
|
|
134
|
-
* @returns {number}
|
|
135
|
-
*/
|
|
136
|
-
read_u32(): number;
|
|
137
|
-
/**
|
|
138
|
-
* @returns {number}
|
|
139
|
-
*/
|
|
140
|
-
read_f32(): number;
|
|
141
|
-
/**
|
|
142
|
-
* @returns {number}
|
|
143
|
-
*/
|
|
144
|
-
read_f64(): number;
|
|
145
|
-
/**
|
|
146
|
-
* @returns {number}
|
|
147
|
-
*/
|
|
148
|
-
unpack30(): number;
|
|
149
|
-
/**
|
|
150
|
-
* @returns {boolean}
|
|
151
|
-
*/
|
|
152
|
-
read_bool(): boolean;
|
|
153
|
-
/**
|
|
154
|
-
* @returns {string}
|
|
155
|
-
*/
|
|
156
|
-
read_str(): string;
|
|
157
|
-
/**
|
|
158
|
-
* @returns {string}
|
|
159
|
-
*/
|
|
160
|
-
read_nano_str(): string;
|
|
161
|
-
/**
|
|
162
|
-
* @returns {string}
|
|
163
|
-
*/
|
|
164
|
-
read_cstr(): string;
|
|
165
|
-
/**
|
|
166
|
-
* @param {number} want
|
|
167
|
-
* @returns {boolean}
|
|
168
|
-
*/
|
|
169
|
-
match_dex_magic(want: number): boolean;
|
|
170
|
-
}
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* @param {Uint8Array} data
|
|
5
|
+
* @returns {CTMFile}
|
|
6
|
+
*/
|
|
7
|
+
export function create_ctm_file(data: Uint8Array): CTMFile;
|
|
8
|
+
/**
|
|
9
|
+
* @param {Uint8Array} data
|
|
10
|
+
* @returns {Stream}
|
|
11
|
+
*/
|
|
12
|
+
export function create_stream(data: Uint8Array): Stream;
|
|
13
|
+
/**
|
|
14
|
+
*/
|
|
15
|
+
export enum DexMagic {
|
|
16
|
+
BeginHeader,
|
|
17
|
+
BeginInternalizedXRef,
|
|
18
|
+
BeginObj,
|
|
19
|
+
BeginObjs,
|
|
20
|
+
BeginPositions,
|
|
21
|
+
BeginStrs,
|
|
22
|
+
BeginThumbnail,
|
|
23
|
+
EndHeader,
|
|
24
|
+
EndInternalizedXRef,
|
|
25
|
+
EndObj,
|
|
26
|
+
EndObjs,
|
|
27
|
+
EndOdd,
|
|
28
|
+
EndPositions,
|
|
29
|
+
EndStrs,
|
|
30
|
+
EndThumbnail,
|
|
31
|
+
EndXRef,
|
|
32
|
+
OtherInternalizedXRefFile,
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
36
|
+
export enum CompressMagic {
|
|
37
|
+
OldIncremental,
|
|
38
|
+
UncompressedMonolithic,
|
|
39
|
+
UncompressedIncremental,
|
|
40
|
+
LZFMonolithic,
|
|
41
|
+
LZFIncremental,
|
|
42
|
+
LZMA2Incremental,
|
|
43
|
+
LZMA2Monolithic,
|
|
44
|
+
LZMA3Incremental,
|
|
45
|
+
LZMA3Monolithic,
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
*/
|
|
49
|
+
export class CTMFile {
|
|
50
|
+
free(): void;
|
|
51
|
+
/**
|
|
52
|
+
* @returns {number}
|
|
53
|
+
*/
|
|
54
|
+
vertices_ptr(): number;
|
|
55
|
+
/**
|
|
56
|
+
* @returns {number}
|
|
57
|
+
*/
|
|
58
|
+
vertices_len(): number;
|
|
59
|
+
/**
|
|
60
|
+
* @returns {number}
|
|
61
|
+
*/
|
|
62
|
+
normals_ptr(): number;
|
|
63
|
+
/**
|
|
64
|
+
* If the CTMFile does not contain
|
|
65
|
+
* normals, this length is zero.
|
|
66
|
+
* @returns {number}
|
|
67
|
+
*/
|
|
68
|
+
normals_len(): number;
|
|
69
|
+
/**
|
|
70
|
+
* For performance reasons (to store temp values) this array is declared
|
|
71
|
+
* as i32 rather than the expected u32. It only contains positive integers
|
|
72
|
+
* though, so it is safe to use it as u32 on the JS side if needed.
|
|
73
|
+
* @returns {number}
|
|
74
|
+
*/
|
|
75
|
+
indices_ptr(): number;
|
|
76
|
+
/**
|
|
77
|
+
* @returns {number}
|
|
78
|
+
*/
|
|
79
|
+
indices_len(): number;
|
|
80
|
+
/**
|
|
81
|
+
* @returns {number}
|
|
82
|
+
*/
|
|
83
|
+
uvs_ptr(): number;
|
|
84
|
+
/**
|
|
85
|
+
* @returns {number}
|
|
86
|
+
*/
|
|
87
|
+
uvs_len(): number;
|
|
88
|
+
/**
|
|
89
|
+
* @returns {number}
|
|
90
|
+
*/
|
|
91
|
+
colors_ptr(): number;
|
|
92
|
+
/**
|
|
93
|
+
* @returns {number}
|
|
94
|
+
*/
|
|
95
|
+
colors_len(): number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
*/
|
|
99
|
+
export class Stream {
|
|
100
|
+
free(): void;
|
|
101
|
+
/**
|
|
102
|
+
* @returns {number}
|
|
103
|
+
*/
|
|
104
|
+
get_position(): number;
|
|
105
|
+
/**
|
|
106
|
+
* @param {number} pos
|
|
107
|
+
*/
|
|
108
|
+
set_position(pos: number): void;
|
|
109
|
+
/**
|
|
110
|
+
* @returns {number}
|
|
111
|
+
*/
|
|
112
|
+
get_ptr(): number;
|
|
113
|
+
/**
|
|
114
|
+
* @returns {number}
|
|
115
|
+
*/
|
|
116
|
+
read_i8(): number;
|
|
117
|
+
/**
|
|
118
|
+
* @returns {number}
|
|
119
|
+
*/
|
|
120
|
+
read_i16(): number;
|
|
121
|
+
/**
|
|
122
|
+
* @returns {number}
|
|
123
|
+
*/
|
|
124
|
+
read_i32(): number;
|
|
125
|
+
/**
|
|
126
|
+
* @returns {number}
|
|
127
|
+
*/
|
|
128
|
+
read_u8(): number;
|
|
129
|
+
/**
|
|
130
|
+
* @returns {number}
|
|
131
|
+
*/
|
|
132
|
+
read_u16(): number;
|
|
133
|
+
/**
|
|
134
|
+
* @returns {number}
|
|
135
|
+
*/
|
|
136
|
+
read_u32(): number;
|
|
137
|
+
/**
|
|
138
|
+
* @returns {number}
|
|
139
|
+
*/
|
|
140
|
+
read_f32(): number;
|
|
141
|
+
/**
|
|
142
|
+
* @returns {number}
|
|
143
|
+
*/
|
|
144
|
+
read_f64(): number;
|
|
145
|
+
/**
|
|
146
|
+
* @returns {number}
|
|
147
|
+
*/
|
|
148
|
+
unpack30(): number;
|
|
149
|
+
/**
|
|
150
|
+
* @returns {boolean}
|
|
151
|
+
*/
|
|
152
|
+
read_bool(): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* @returns {string}
|
|
155
|
+
*/
|
|
156
|
+
read_str(): string;
|
|
157
|
+
/**
|
|
158
|
+
* @returns {string}
|
|
159
|
+
*/
|
|
160
|
+
read_nano_str(): string;
|
|
161
|
+
/**
|
|
162
|
+
* @returns {string}
|
|
163
|
+
*/
|
|
164
|
+
read_cstr(): string;
|
|
165
|
+
/**
|
|
166
|
+
* @param {number} want
|
|
167
|
+
* @returns {boolean}
|
|
168
|
+
*/
|
|
169
|
+
match_dex_magic(want: number): boolean;
|
|
170
|
+
}
|
package/web_core_internal.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TextDecoder } from "text-encoding";
|
|
2
|
-
import * as wasm from "./web_core_internal_bg.wasm";
|
|
1
|
+
import { TextDecoder } from "text-encoding";
|
|
2
|
+
import * as wasm from "./web_core_internal_bg.wasm";
|
|
3
3
|
export * from "./web_core_internal_bg.js";
|