float-pigment-css 0.9.9 → 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.
@@ -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
  */
@@ -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
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "TtTRz <romc1224@gmail.com>"
6
6
  ],
7
7
  "description": "The CSS parser for the float-pigment project.",
8
- "version": "0.9.9",
8
+ "version": "0.10.4",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",