float-pigment-css 0.10.4 → 0.10.5
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;
|
|
7
3
|
/**
|
|
8
4
|
* Serialize CSS to the binary format.
|
|
9
5
|
*/
|
|
10
6
|
export function compileStyleSheetToBincode(filename: string, style_text: string): Uint8Array;
|
|
11
7
|
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,24 +167,6 @@ 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
|
-
|
|
188
170
|
function getArrayU8FromWasm0(ptr, len) {
|
|
189
171
|
ptr = ptr >>> 0;
|
|
190
172
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -210,6 +192,24 @@ module.exports.wasm_main = function() {
|
|
|
210
192
|
wasm.wasm_main();
|
|
211
193
|
};
|
|
212
194
|
|
|
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
|