fragmentcolor 0.10.7 → 0.10.8

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.
@@ -296,38 +296,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
296
296
  export interface InitOutput {
297
297
  readonly memory: WebAssembly.Memory;
298
298
  readonly __wbg_renderer_free: (a: number, b: number) => void;
299
- readonly shader_new_js: (a: number, b: number) => number;
300
- readonly shader_fetch: (a: number, b: number) => any;
301
- readonly shader_fromVertex: (a: number) => number;
302
- readonly shader_fromMesh: (a: number) => number;
303
- readonly shader_set: (a: number, b: number, c: number, d: any) => [number, number];
304
- readonly shader_get: (a: number, b: number, c: number) => [number, number, number];
305
- readonly shader_listUniforms: (a: number) => [number, number];
306
- readonly shader_listKeys: (a: number) => [number, number];
307
- readonly shader_addMesh: (a: number, b: number) => [number, number];
308
- readonly shader_removeMesh: (a: number, b: number) => void;
309
- readonly shader_removeMeshes: (a: number, b: any) => [number, number];
310
- readonly shader_clearMeshes: (a: number) => void;
311
- readonly shader_validateMesh: (a: number, b: number) => [number, number];
312
- readonly shader_isCompute: (a: number) => number;
313
- readonly shader_unwrap: (a: number) => number;
314
- readonly shader_default: () => number;
315
- readonly pass_new_js: (a: number, b: number) => number;
316
- readonly pass_compute: (a: number, b: number) => number;
317
- readonly pass_fromShader: (a: number, b: number, c: number) => number;
318
- readonly pass_require: (a: number, b: any) => [number, number];
319
- readonly pass_loadPrevious: (a: number) => void;
320
- readonly pass_getInput: (a: number) => number;
321
- readonly pass_addShader: (a: number, b: number) => void;
322
- readonly pass_addMesh: (a: number, b: number) => [number, number];
323
- readonly pass_addMeshToShader: (a: number, b: number, c: number) => [number, number];
324
- readonly pass_setClearColor: (a: number, b: any) => [number, number];
325
- readonly pass_setComputeDispatch: (a: number, b: number, c: number, d: number) => void;
326
- readonly pass_setViewport: (a: number, b: any) => [number, number];
327
- readonly pass_addTarget: (a: number, b: any) => [number, number];
328
- readonly pass_addDepthTarget: (a: number, b: any) => [number, number];
329
- readonly pass_isCompute: (a: number) => number;
330
- readonly __wbg_mesh_free: (a: number, b: number) => void;
331
299
  readonly __wbg_texturetarget_free: (a: number, b: number) => void;
332
300
  readonly texture_size: (a: number) => number;
333
301
  readonly texture_aspect: (a: number) => number;
@@ -336,18 +304,10 @@ export interface InitOutput {
336
304
  readonly __wbg_get_textureid_0: (a: number) => bigint;
337
305
  readonly __wbg_set_textureid_0: (a: number, b: bigint) => void;
338
306
  readonly __wbg_texture_free: (a: number, b: number) => void;
339
- readonly __wbg_sampleroptions_free: (a: number, b: number) => void;
340
- readonly __wbg_get_sampleroptions_repeat_x: (a: number) => number;
341
- readonly __wbg_set_sampleroptions_repeat_x: (a: number, b: number) => void;
342
- readonly __wbg_get_sampleroptions_repeat_y: (a: number) => number;
343
- readonly __wbg_set_sampleroptions_repeat_y: (a: number, b: number) => void;
344
- readonly __wbg_get_sampleroptions_smooth: (a: number) => number;
345
- readonly __wbg_set_sampleroptions_smooth: (a: number, b: number) => void;
346
- readonly __wbg_get_sampleroptions_compare: (a: number) => number;
347
- readonly __wbg_set_sampleroptions_compare: (a: number, b: number) => void;
348
- readonly __wbg_color_free: (a: number, b: number) => void;
349
- readonly __wbg_get_color_0: (a: number) => number;
350
- readonly __wbg_set_color_0: (a: number, b: number) => void;
307
+ readonly __wbg_passinput_free: (a: number, b: number) => void;
308
+ readonly __wbg_pass_free: (a: number, b: number) => void;
309
+ readonly __wbg_frame_free: (a: number, b: number) => void;
310
+ readonly __wbg_shader_free: (a: number, b: number) => void;
351
311
  readonly __wbg_canvastarget_free: (a: number, b: number) => void;
352
312
  readonly canvastarget_resize: (a: number, b: any) => [number, number];
353
313
  readonly canvastarget_size: (a: number) => number;
@@ -401,7 +361,15 @@ export interface InitOutput {
401
361
  readonly __wbg_set_region_max_y: (a: number, b: number) => void;
402
362
  readonly wasm_start: () => void;
403
363
  readonly set_log_level: (a: number, b: number) => void;
404
- readonly __wbg_shader_free: (a: number, b: number) => void;
364
+ readonly __wbg_sampleroptions_free: (a: number, b: number) => void;
365
+ readonly __wbg_get_sampleroptions_repeat_x: (a: number) => number;
366
+ readonly __wbg_set_sampleroptions_repeat_x: (a: number, b: number) => void;
367
+ readonly __wbg_get_sampleroptions_repeat_y: (a: number) => number;
368
+ readonly __wbg_set_sampleroptions_repeat_y: (a: number, b: number) => void;
369
+ readonly __wbg_get_sampleroptions_smooth: (a: number) => number;
370
+ readonly __wbg_set_sampleroptions_smooth: (a: number, b: number) => void;
371
+ readonly __wbg_get_sampleroptions_compare: (a: number) => number;
372
+ readonly __wbg_set_sampleroptions_compare: (a: number, b: number) => void;
405
373
  readonly __wbg_size_free: (a: number, b: number) => void;
406
374
  readonly __wbg_get_size_width: (a: number) => number;
407
375
  readonly __wbg_set_size_width: (a: number, b: number) => void;
@@ -409,11 +377,43 @@ export interface InitOutput {
409
377
  readonly __wbg_set_size_height: (a: number, b: number) => void;
410
378
  readonly __wbg_get_size_depth: (a: number) => number;
411
379
  readonly __wbg_set_size_depth: (a: number, b: number) => void;
412
- readonly __wbg_passinput_free: (a: number, b: number) => void;
413
- readonly __wbg_pass_free: (a: number, b: number) => void;
380
+ readonly __wbg_color_free: (a: number, b: number) => void;
381
+ readonly __wbg_get_color_0: (a: number) => number;
382
+ readonly __wbg_set_color_0: (a: number, b: number) => void;
383
+ readonly shader_new_js: (a: number, b: number) => number;
384
+ readonly shader_fetch: (a: number, b: number) => any;
385
+ readonly shader_fromVertex: (a: number) => number;
386
+ readonly shader_fromMesh: (a: number) => number;
387
+ readonly shader_set: (a: number, b: number, c: number, d: any) => [number, number];
388
+ readonly shader_get: (a: number, b: number, c: number) => [number, number, number];
389
+ readonly shader_listUniforms: (a: number) => [number, number];
390
+ readonly shader_listKeys: (a: number) => [number, number];
391
+ readonly shader_addMesh: (a: number, b: number) => [number, number];
392
+ readonly shader_removeMesh: (a: number, b: number) => void;
393
+ readonly shader_removeMeshes: (a: number, b: any) => [number, number];
394
+ readonly shader_clearMeshes: (a: number) => void;
395
+ readonly shader_validateMesh: (a: number, b: number) => [number, number];
396
+ readonly shader_isCompute: (a: number) => number;
397
+ readonly shader_unwrap: (a: number) => number;
398
+ readonly shader_default: () => number;
399
+ readonly pass_new_js: (a: number, b: number) => number;
400
+ readonly pass_compute: (a: number, b: number) => number;
401
+ readonly pass_fromShader: (a: number, b: number, c: number) => number;
402
+ readonly pass_require: (a: number, b: any) => [number, number];
403
+ readonly pass_loadPrevious: (a: number) => void;
404
+ readonly pass_getInput: (a: number) => number;
405
+ readonly pass_addShader: (a: number, b: number) => void;
406
+ readonly pass_addMesh: (a: number, b: number) => [number, number];
407
+ readonly pass_addMeshToShader: (a: number, b: number, c: number) => [number, number];
408
+ readonly pass_setClearColor: (a: number, b: any) => [number, number];
409
+ readonly pass_setComputeDispatch: (a: number, b: number, c: number, d: number) => void;
410
+ readonly pass_setViewport: (a: number, b: any) => [number, number];
411
+ readonly pass_addTarget: (a: number, b: any) => [number, number];
412
+ readonly pass_addDepthTarget: (a: number, b: any) => [number, number];
413
+ readonly pass_isCompute: (a: number) => number;
414
+ readonly __wbg_mesh_free: (a: number, b: number) => void;
414
415
  readonly frame_new_js: () => number;
415
416
  readonly frame_addPass: (a: number, b: number) => void;
416
- readonly __wbg_frame_free: (a: number, b: number) => void;
417
417
  readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
418
418
  readonly wasmbindgentestcontext_new: () => number;
419
419
  readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
@@ -434,10 +434,10 @@ export interface InitOutput {
434
434
  readonly __wbindgen_export_6: WebAssembly.Table;
435
435
  readonly __externref_table_dealloc: (a: number) => void;
436
436
  readonly __externref_drop_slice: (a: number, b: number) => void;
437
- readonly closure1146_externref_shim: (a: number, b: number, c: any) => void;
438
- readonly closure1295_externref_shim: (a: number, b: number, c: any) => void;
439
- readonly closure3394_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
440
- readonly closure3398_externref_shim: (a: number, b: number, c: any, d: any) => void;
437
+ readonly closure1148_externref_shim: (a: number, b: number, c: any) => void;
438
+ readonly closure1297_externref_shim: (a: number, b: number, c: any) => void;
439
+ readonly closure3396_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
440
+ readonly closure3400_externref_shim: (a: number, b: number, c: any, d: any) => void;
441
441
  readonly __wbindgen_start: () => void;
442
442
  }
443
443
 
package/fragmentcolor.js CHANGED
@@ -247,27 +247,16 @@ function debugString(val) {
247
247
  return className;
248
248
  }
249
249
 
250
- function _assertClass(instance, klass) {
251
- if (!(instance instanceof klass)) {
252
- throw new Error(`expected instance of ${klass.name}`);
253
- }
254
- }
255
-
256
250
  function takeFromExternrefTable0(idx) {
257
251
  const value = wasm.__wbindgen_export_1.get(idx);
258
252
  wasm.__externref_table_dealloc(idx);
259
253
  return value;
260
254
  }
261
255
 
262
- function getArrayJsValueFromWasm0(ptr, len) {
263
- ptr = ptr >>> 0;
264
- const mem = getDataViewMemory0();
265
- const result = [];
266
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
267
- result.push(wasm.__wbindgen_export_1.get(mem.getUint32(i, true)));
256
+ function _assertClass(instance, klass) {
257
+ if (!(instance instanceof klass)) {
258
+ throw new Error(`expected instance of ${klass.name}`);
268
259
  }
269
- wasm.__externref_drop_slice(ptr, len);
270
- return result;
271
260
  }
272
261
  /**
273
262
  * Install a panic hook and console logger when running in WASM so browser console shows
@@ -287,6 +276,17 @@ export function set_log_level(level) {
287
276
  wasm.set_log_level(ptr0, len0);
288
277
  }
289
278
 
279
+ function getArrayJsValueFromWasm0(ptr, len) {
280
+ ptr = ptr >>> 0;
281
+ const mem = getDataViewMemory0();
282
+ const result = [];
283
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
284
+ result.push(wasm.__wbindgen_export_1.get(mem.getUint32(i, true)));
285
+ }
286
+ wasm.__externref_drop_slice(ptr, len);
287
+ return result;
288
+ }
289
+
290
290
  function getArrayU8FromWasm0(ptr, len) {
291
291
  ptr = ptr >>> 0;
292
292
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -359,19 +359,19 @@ export function __wbgtest_console_error(args) {
359
359
  }
360
360
 
361
361
  function __wbg_adapter_36(arg0, arg1, arg2) {
362
- wasm.closure1146_externref_shim(arg0, arg1, arg2);
362
+ wasm.closure1148_externref_shim(arg0, arg1, arg2);
363
363
  }
364
364
 
365
365
  function __wbg_adapter_39(arg0, arg1, arg2) {
366
- wasm.closure1295_externref_shim(arg0, arg1, arg2);
366
+ wasm.closure1297_externref_shim(arg0, arg1, arg2);
367
367
  }
368
368
 
369
369
  function __wbg_adapter_1267(arg0, arg1, arg2, arg3, arg4) {
370
- wasm.closure3394_externref_shim(arg0, arg1, arg2, arg3, arg4);
370
+ wasm.closure3396_externref_shim(arg0, arg1, arg2, arg3, arg4);
371
371
  }
372
372
 
373
373
  function __wbg_adapter_1298(arg0, arg1, arg2, arg3) {
374
- wasm.closure3398_externref_shim(arg0, arg1, arg2, arg3);
374
+ wasm.closure3400_externref_shim(arg0, arg1, arg2, arg3);
375
375
  }
376
376
 
377
377
  /**
@@ -4156,12 +4156,12 @@ function __wbg_get_imports() {
4156
4156
  const ret = false;
4157
4157
  return ret;
4158
4158
  };
4159
- imports.wbg.__wbindgen_closure_wrapper3137 = function(arg0, arg1, arg2) {
4160
- const ret = makeMutClosure(arg0, arg1, 1147, __wbg_adapter_36);
4159
+ imports.wbg.__wbindgen_closure_wrapper3128 = function(arg0, arg1, arg2) {
4160
+ const ret = makeMutClosure(arg0, arg1, 1149, __wbg_adapter_36);
4161
4161
  return ret;
4162
4162
  };
4163
- imports.wbg.__wbindgen_closure_wrapper3630 = function(arg0, arg1, arg2) {
4164
- const ret = makeMutClosure(arg0, arg1, 1296, __wbg_adapter_39);
4163
+ imports.wbg.__wbindgen_closure_wrapper3621 = function(arg0, arg1, arg2) {
4164
+ const ret = makeMutClosure(arg0, arg1, 1298, __wbg_adapter_39);
4165
4165
  return ret;
4166
4166
  };
4167
4167
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -4308,3 +4308,26 @@ async function __wbg_init(module_or_path) {
4308
4308
 
4309
4309
  export { initSync };
4310
4310
  export default __wbg_init;
4311
+ (function(){
4312
+ function brand(ctor, name){
4313
+ try{
4314
+ if (typeof ctor === 'function' && ctor.prototype) {
4315
+ Object.defineProperty(ctor.prototype, "__fc_kind", { value: name, configurable: false, enumerable: false, writable: false });
4316
+ }
4317
+ } catch {}
4318
+ }
4319
+ try{ brand(Color, "Color"); }catch{}
4320
+ try{ brand(Frame, "Frame"); }catch{}
4321
+ try{ brand(Instance, "Instance"); }catch{}
4322
+ try{ brand(Mesh, "Mesh"); }catch{}
4323
+ try{ brand(Pass, "Pass"); }catch{}
4324
+ try{ brand(PassInput, "PassInput"); }catch{}
4325
+ try{ brand(Quad, "Quad"); }catch{}
4326
+ try{ brand(Region, "Region"); }catch{}
4327
+ try{ brand(Renderer, "Renderer"); }catch{}
4328
+ try{ brand(Shader, "Shader"); }catch{}
4329
+ try{ brand(Size, "Size"); }catch{}
4330
+ try{ brand(Texture, "Texture"); }catch{}
4331
+ try{ brand(TextureId, "TextureId"); }catch{}
4332
+ try{ brand(Vertex, "Vertex"); }catch{}
4333
+ })();
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Vista Tech & Art GmbH"
6
6
  ],
7
7
  "description": "Easy GPU Rendering for Javascript, Python, Swift and Kotlin",
8
- "version": "0.10.7",
8
+ "version": "0.10.8",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",