float-pigment-css 0.10.0 → 0.10.4
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/float_pigment_css.d.ts +4 -4
- package/float_pigment_css.js +18 -18
- package/float_pigment_css_bg.wasm +0 -0
- package/package.json +1 -1
package/float_pigment_css.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Deserialize bincode from the binary format.
|
|
5
|
+
*/
|
|
6
|
+
export function styleSheetFromBincode(bincode: Uint8Array): StyleSheetGroup;
|
|
3
7
|
/**
|
|
4
8
|
* Serialize CSS to the binary format.
|
|
5
9
|
*/
|
|
6
10
|
export function compileStyleSheetToBincode(filename: string, style_text: string): Uint8Array;
|
|
7
11
|
export function wasm_main(): void;
|
|
8
|
-
/**
|
|
9
|
-
* Deserialize bincode from the binary format.
|
|
10
|
-
*/
|
|
11
|
-
export function styleSheetFromBincode(bincode: Uint8Array): StyleSheetGroup;
|
|
12
12
|
/**
|
|
13
13
|
* A group of ordered style sheets.
|
|
14
14
|
*/
|
package/float_pigment_css.js
CHANGED
|
@@ -167,6 +167,24 @@ function debugString(val) {
|
|
|
167
167
|
return className;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
171
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
172
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
173
|
+
WASM_VECTOR_LEN = arg.length;
|
|
174
|
+
return ptr;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Deserialize bincode from the binary format.
|
|
178
|
+
* @param {Uint8Array} bincode
|
|
179
|
+
* @returns {StyleSheetGroup}
|
|
180
|
+
*/
|
|
181
|
+
module.exports.styleSheetFromBincode = function(bincode) {
|
|
182
|
+
const ptr0 = passArray8ToWasm0(bincode, wasm.__wbindgen_malloc);
|
|
183
|
+
const len0 = WASM_VECTOR_LEN;
|
|
184
|
+
const ret = wasm.styleSheetFromBincode(ptr0, len0);
|
|
185
|
+
return StyleSheetGroup.__wrap(ret);
|
|
186
|
+
};
|
|
187
|
+
|
|
170
188
|
function getArrayU8FromWasm0(ptr, len) {
|
|
171
189
|
ptr = ptr >>> 0;
|
|
172
190
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -192,24 +210,6 @@ module.exports.wasm_main = function() {
|
|
|
192
210
|
wasm.wasm_main();
|
|
193
211
|
};
|
|
194
212
|
|
|
195
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
196
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
197
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
198
|
-
WASM_VECTOR_LEN = arg.length;
|
|
199
|
-
return ptr;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Deserialize bincode from the binary format.
|
|
203
|
-
* @param {Uint8Array} bincode
|
|
204
|
-
* @returns {StyleSheetGroup}
|
|
205
|
-
*/
|
|
206
|
-
module.exports.styleSheetFromBincode = function(bincode) {
|
|
207
|
-
const ptr0 = passArray8ToWasm0(bincode, wasm.__wbindgen_malloc);
|
|
208
|
-
const len0 = WASM_VECTOR_LEN;
|
|
209
|
-
const ret = wasm.styleSheetFromBincode(ptr0, len0);
|
|
210
|
-
return StyleSheetGroup.__wrap(ret);
|
|
211
|
-
};
|
|
212
|
-
|
|
213
213
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
214
214
|
ptr = ptr >>> 0;
|
|
215
215
|
const mem = getDataViewMemory0();
|
|
Binary file
|