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.
@@ -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
  */
@@ -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
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.10.4",
8
+ "version": "0.10.5",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",