@windborne/grapher 1.0.21 → 1.0.24
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/dist/26b23c7580ea3345d644.wasm +0 -0
- package/dist/744.bundle.cjs +2 -1
- package/dist/744.bundle.cjs.map +1 -0
- package/dist/744.bundle.esm.js +2 -1
- package/dist/744.bundle.esm.js.map +1 -0
- package/dist/bundle.cjs +1 -1
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.esm.js +1 -1
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/components/graph_body.jsx +41 -1
- package/src/components/range_graph.jsx +70 -22
- package/src/components/x_axis.jsx +139 -21
- package/src/components/y_axis.jsx +0 -5
- package/src/grapher.jsx +4 -3
- package/src/grapher.scss +84 -43
- package/src/helpers/color_to_vector.js +6 -1
- package/src/helpers/colors.js +82 -16
- package/src/helpers/custom_prop_types.js +2 -1
- package/src/helpers/place_grid.js +219 -0
- package/src/index.d.ts +150 -24
- package/src/renderer/create_gl_program.js +11 -3
- package/src/renderer/draw_area.js +1161 -102
- package/src/renderer/draw_background.js +5 -0
- package/src/renderer/draw_bars.js +100 -11
- package/src/renderer/draw_line.js +338 -38
- package/src/renderer/draw_zero_line.js +5 -0
- package/src/renderer/extract_vertices.js +1 -1
- package/src/renderer/graph_body_renderer.js +278 -17
- package/src/renderer/line.frag +16 -1
- package/src/renderer/line_program.js +200 -10
- package/src/renderer/shadow.frag +98 -0
- package/src/renderer/shadow.vert +20 -0
- package/src/renderer/shadow_program.js +479 -0
- package/src/rust/Cargo.lock +22 -31
- package/src/rust/pkg/grapher_rs.d.ts +6 -0
- package/src/rust/pkg/grapher_rs.js +5 -0
- package/src/rust/pkg/grapher_rs_bg.js +305 -0
- package/src/rust/pkg/grapher_rs_bg.wasm +0 -0
- package/src/rust/pkg/grapher_rs_bg.wasm.d.ts +11 -0
- package/src/rust/pkg/index.js +397 -0
- package/src/state/calculate_tooltip_state.js +6 -6
- package/src/state/state_controller.js +20 -6
|
Binary file
|
package/dist/744.bundle.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkGrapher=globalThis.webpackChunkGrapher||[]).push([[744],{
|
|
1
|
+
"use strict";(globalThis.webpackChunkGrapher=globalThis.webpackChunkGrapher||[]).push([[744],{512:(e,n,t)=>{e.exports=t.p+"26b23c7580ea3345d644.wasm"},363:(e,n,t)=>{let o;t.r(n),t.d(n,{default:()=>O,extract_vertices:()=>h,get_point_number:()=>p,initSync:()=>W,main_js:()=>v,selected_space_to_render_space:()=>g});let r=null;function i(){return null!==r&&0!==r.byteLength||(r=new Uint8Array(o.memory.buffer)),r}let a=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},l="function"==typeof c.encodeInto?function(e,n){return c.encodeInto(e,n)}:function(e,n){const t=c.encode(e);return n.set(t),{read:e.length,written:t.length}};let s=null;function _(){return(null===s||!0===s.buffer.detached||void 0===s.buffer.detached&&s.buffer!==o.memory.buffer)&&(s=new DataView(o.memory.buffer)),s}const u="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&u.decode();let b=null;function d(e,n){const t=n(8*e.length,8)>>>0;return(null!==b&&0!==b.byteLength||(b=new Float64Array(o.memory.buffer)),b).set(e,t/8),a=e.length,t}function f(e,n){const t=n(1*e.length,1)>>>0;return i().set(e,t/1),a=e.length,t}function g(e,n,t,r,i,c,l,s){const _=d(n,o.__wbindgen_malloc),u=a,b=f(t,o.__wbindgen_malloc),g=a;var w=f(i,o.__wbindgen_malloc),m=a,y=d(c,o.__wbindgen_malloc),h=a,p=d(l,o.__wbindgen_malloc),v=a,x=d(s,o.__wbindgen_malloc),A=a;o.selected_space_to_render_space(e,_,u,b,g,r,w,m,i,y,h,c,p,v,l,x,A,s)}let w=null;function m(e,n){const t=n(4*e.length,4)>>>0;return(null!==w&&0!==w.byteLength||(w=new Float32Array(o.memory.buffer)),w).set(e,t/4),a=e.length,t}let y=null;function h(e,n,t,r,i,c,l,s,_,u,b,g){const w=f(n,o.__wbindgen_malloc),h=a,p=d(t,o.__wbindgen_malloc),v=a,x=d(r,o.__wbindgen_malloc),A=a,W=d(i,o.__wbindgen_malloc),T=a;var O=m(c,o.__wbindgen_malloc),j=a,L=m(l,o.__wbindgen_malloc),E=a,I=m(s,o.__wbindgen_malloc),R=a,k=function(e,n){const t=n(4*e.length,4)>>>0;return(null!==y&&0!==y.byteLength||(y=new Uint32Array(o.memory.buffer)),y).set(e,t/4),a=e.length,t}(_,o.__wbindgen_malloc),U=a;o.extract_vertices(e,w,h,p,v,x,A,W,T,O,j,c,L,E,l,I,R,s,k,U,_,u,b,g)}function p(e,n,t,r,i,c,l){const s=f(e,o.__wbindgen_malloc),_=a,u=d(n,o.__wbindgen_malloc),b=a,g=d(t,o.__wbindgen_malloc),w=a,m=d(r,o.__wbindgen_malloc),y=a;return o.get_point_number(s,_,u,b,g,w,m,y,i,c,l)}function v(){o.main_js()}function x(){const e={wbg:{}};return e.wbg.__wbg_maxx_a3b1e1c3299e47bf=function(e){return e.maxX},e.wbg.__wbg_maxy_007b81ea99058122=function(e){return e.maxY},e.wbg.__wbg_minx_e03d57649d81fc8f=function(e){return e.minX},e.wbg.__wbg_miny_46aab5af597882a7=function(e){return e.minY},e.wbg.__wbg_renderheight_d030fe5a23b4c32b=function(e){return e.renderHeight},e.wbg.__wbg_renderwidth_8685762ee304f2a7=function(e){return e.renderWidth},e.wbg.__wbg_scale_d705e0de44ed2361=function(e){return e.scale},e.wbg.__wbindgen_copy_to_typed_array=function(e,n,t){var o,r;new Uint8Array(t.buffer,t.byteOffset,t.byteLength).set((o=e,r=n,o>>>=0,i().subarray(o/1,o/1+r)))},e.wbg.__wbindgen_init_externref_table=function(){const e=o.__wbindgen_export_0,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e.wbg.__wbindgen_string_get=function(e,n){const t="string"==typeof n?n:void 0;var r=null==t?0:function(e,n,t){if(void 0===t){const t=c.encode(e),o=n(t.length,1)>>>0;return i().subarray(o,o+t.length).set(t),a=t.length,o}let o=e.length,r=n(o,1)>>>0;const s=i();let _=0;for(;_<o;_++){const n=e.charCodeAt(_);if(n>127)break;s[r+_]=n}if(_!==o){0!==_&&(e=e.slice(_)),r=t(r,o,o=_+3*e.length,1)>>>0;const n=i().subarray(r+_,r+o);_+=l(e,n).written,r=t(r,o,_,1)>>>0}return a=_,r}(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a;_().setInt32(e+4,s,!0),_().setInt32(e+0,r,!0)},e.wbg.__wbindgen_throw=function(e,n){throw new Error((t=e,o=n,t>>>=0,u.decode(i().subarray(t,t+o))));var t,o},e}function A(e,n){return o=e.exports,T.__wbindgen_wasm_module=n,s=null,w=null,b=null,y=null,r=null,o.__wbindgen_start(),o}function W(e){if(void 0!==o)return o;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=x();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),A(new WebAssembly.Instance(e,n),e)}async function T(e){if(void 0!==o)return o;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(t(512),t.b));const n=x();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:i}=await async function(e,n){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,n)}catch(n){if("application/wasm"==e.headers.get("Content-Type"))throw n;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n)}const t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}{const t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}(await e,n);return A(r,i)}const O=T}}]);
|
|
2
|
+
//# sourceMappingURL=744.bundle.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"744.bundle.cjs","mappings":"qKAAA,IAAIA,E,8IAEJ,IAAIC,EAA0B,KAE9B,SAASC,IAIL,OAHgC,OAA5BD,GAA2E,IAAvCA,EAAwBE,aAC5DF,EAA0B,IAAIG,WAAWJ,EAAKK,OAAOC,SAElDL,CACX,CAOA,IAAIM,EAAkB,EAEtB,MAAMC,EAA4C,oBAAhBC,YAA8B,IAAIA,YAAY,SAAW,CAAEC,OAAQA,KAAQ,MAAMC,MAAM,4BAA4B,GAE/IC,EAAwD,mBAAjCJ,EAAkBK,WACzC,SAAUC,EAAKC,GACjB,OAAOP,EAAkBK,WAAWC,EAAKC,EAC7C,EACM,SAAUD,EAAKC,GACjB,MAAMC,EAAMR,EAAkBE,OAAOI,GAErC,OADAC,EAAKE,IAAID,GACF,CACHE,KAAMJ,EAAIK,OACVC,QAASJ,EAAIG,OAErB,EA6CA,IAAIE,EAAwB,KAE5B,SAASC,IAIL,OAH8B,OAA1BD,IAA4E,IAA1CA,EAAsBf,OAAOiB,eAAgEC,IAA1CH,EAAsBf,OAAOiB,UAA0BF,EAAsBf,SAAWN,EAAKK,OAAOC,UACzLe,EAAwB,IAAII,SAASzB,EAAKK,OAAOC,SAE9Ce,CACX,CAEA,MAAMK,EAA4C,oBAAhBC,YAA8B,IAAIA,YAAY,QAAS,CAAEC,WAAW,EAAMC,OAAO,IAAU,CAAEC,OAAQA,KAAQ,MAAMnB,MAAM,4BAA4B,GAE5J,oBAAhBgB,aAA+BD,EAAkBI,SAO5D,IAAIC,EAA4B,KAShC,SAASC,EAAoBl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,EAAQ1C,EAE1D,CAAE,MAAO+D,GACL,GAA0C,oBAAtCrB,EAAOsB,QAAQC,IAAI,gBAInB,MAAMF,EAHNZ,QAAQC,KAAK,oMAAqMW,EAK1N,CAGJ,MAAMG,QAAcxB,EAAOyB,cAC3B,aAAad,YAAYe,YAAYF,EAAOlE,EAEhD,CAAO,CACH,MAAMyC,QAAiBY,YAAYe,YAAY1B,EAAQ1C,GAEvD,OAAIyC,aAAoBY,YAAYE,SACzB,CAAEd,WAAUC,UAGZD,CAEf,CACJ,CA+HuC4B,OAAiBZ,EAAgBzD,GAEpE,OAAOwC,EAAoBC,EAAUC,EACzC,CAGA,S","sources":["webpack://Grapher/./src/rust/pkg/index.js"],"sourcesContent":["let wasm;\n\nlet cachedUint8ArrayMemory0 = null;\n\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nconst cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );\n\nconst encodeString = (typeof cachedTextEncoder.encodeInto === 'function'\n ? function (arg, view) {\n return cachedTextEncoder.encodeInto(arg, view);\n}\n : function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n});\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = encodeString(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction isLikeNone(x) {\n return x === undefined || x === null;\n}\n\nlet cachedDataViewMemory0 = null;\n\nfunction getDataViewMemory0() {\n if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {\n cachedDataViewMemory0 = new DataView(wasm.memory.buffer);\n }\n return cachedDataViewMemory0;\n}\n\nconst cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );\n\nif (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };\n\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nlet cachedFloat64ArrayMemory0 = null;\n\nfunction getFloat64ArrayMemory0() {\n if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {\n cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);\n }\n return cachedFloat64ArrayMemory0;\n}\n\nfunction passArrayF64ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 8, 8) >>> 0;\n getFloat64ArrayMemory0().set(arg, ptr / 8);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction passArray8ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 1, 1) >>> 0;\n getUint8ArrayMemory0().set(arg, ptr / 1);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n/**\n * @param {number} length\n * @param {Float64Array} data\n * @param {Uint8Array} data_null_mask\n * @param {any} params\n * @param {Uint8Array} null_mask\n * @param {Float64Array} y_values\n * @param {Float64Array} min_y_values\n * @param {Float64Array} max_y_values\n */\nexport function selected_space_to_render_space(length, data, data_null_mask, params, null_mask, y_values, min_y_values, max_y_values) {\n const ptr0 = passArrayF64ToWasm0(data, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArray8ToWasm0(data_null_mask, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n var ptr2 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);\n var len2 = WASM_VECTOR_LEN;\n var ptr3 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);\n var len3 = WASM_VECTOR_LEN;\n var ptr4 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);\n var len4 = WASM_VECTOR_LEN;\n var ptr5 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);\n var len5 = WASM_VECTOR_LEN;\n wasm.selected_space_to_render_space(length, ptr0, len0, ptr1, len1, params, ptr2, len2, null_mask, ptr3, len3, y_values, ptr4, len4, min_y_values, ptr5, len5, max_y_values);\n}\n\nlet cachedFloat32ArrayMemory0 = null;\n\nfunction getFloat32ArrayMemory0() {\n if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {\n cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);\n }\n return cachedFloat32ArrayMemory0;\n}\n\nfunction passArrayF32ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 4, 4) >>> 0;\n getFloat32ArrayMemory0().set(arg, ptr / 4);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nlet cachedUint32ArrayMemory0 = null;\n\nfunction getUint32ArrayMemory0() {\n if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {\n cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);\n }\n return cachedUint32ArrayMemory0;\n}\n\nfunction passArray32ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 4, 4) >>> 0;\n getUint32ArrayMemory0().set(arg, ptr / 4);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n/**\n * @param {number} dpi_increase\n * @param {Uint8Array} null_mask\n * @param {Float64Array} y_values\n * @param {Float64Array} min_y_values\n * @param {Float64Array} max_y_values\n * @param {Float32Array} positions\n * @param {Float32Array} prev_positions\n * @param {Float32Array} vertices\n * @param {Uint32Array} indices\n * @param {boolean} dashed\n * @param {number} dash0\n * @param {number} dash1\n */\nexport function extract_vertices(dpi_increase, null_mask, y_values, min_y_values, max_y_values, positions, prev_positions, vertices, indices, dashed, dash0, dash1) {\n const ptr0 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n var ptr4 = passArrayF32ToWasm0(positions, wasm.__wbindgen_malloc);\n var len4 = WASM_VECTOR_LEN;\n var ptr5 = passArrayF32ToWasm0(prev_positions, wasm.__wbindgen_malloc);\n var len5 = WASM_VECTOR_LEN;\n var ptr6 = passArrayF32ToWasm0(vertices, wasm.__wbindgen_malloc);\n var len6 = WASM_VECTOR_LEN;\n var ptr7 = passArray32ToWasm0(indices, wasm.__wbindgen_malloc);\n var len7 = WASM_VECTOR_LEN;\n wasm.extract_vertices(dpi_increase, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, positions, ptr5, len5, prev_positions, ptr6, len6, vertices, ptr7, len7, indices, dashed, dash0, dash1);\n}\n\n/**\n * @param {Uint8Array} null_mask\n * @param {Float64Array} y_values\n * @param {Float64Array} min_y_values\n * @param {Float64Array} max_y_values\n * @param {boolean} dashed\n * @param {number} dash0\n * @param {number} dash1\n * @returns {number}\n */\nexport function get_point_number(null_mask, y_values, min_y_values, max_y_values, dashed, dash0, dash1) {\n const ptr0 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n const ret = wasm.get_point_number(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, dashed, dash0, dash1);\n return ret;\n}\n\nexport function main_js() {\n wasm.main_js();\n}\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n\n } catch (e) {\n if (module.headers.get('Content-Type') != 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n\n } else {\n return instance;\n }\n }\n}\n\nfunction __wbg_get_imports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbg_maxx_a3b1e1c3299e47bf = function(arg0) {\n const ret = arg0.maxX;\n return ret;\n };\n imports.wbg.__wbg_maxy_007b81ea99058122 = function(arg0) {\n const ret = arg0.maxY;\n return ret;\n };\n imports.wbg.__wbg_minx_e03d57649d81fc8f = function(arg0) {\n const ret = arg0.minX;\n return ret;\n };\n imports.wbg.__wbg_miny_46aab5af597882a7 = function(arg0) {\n const ret = arg0.minY;\n return ret;\n };\n imports.wbg.__wbg_renderheight_d030fe5a23b4c32b = function(arg0) {\n const ret = arg0.renderHeight;\n return ret;\n };\n imports.wbg.__wbg_renderwidth_8685762ee304f2a7 = function(arg0) {\n const ret = arg0.renderWidth;\n return ret;\n };\n imports.wbg.__wbg_scale_d705e0de44ed2361 = function(arg0) {\n const ret = arg0.scale;\n return ret;\n };\n imports.wbg.__wbindgen_copy_to_typed_array = function(arg0, arg1, arg2) {\n new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));\n };\n imports.wbg.__wbindgen_init_externref_table = function() {\n const table = wasm.__wbindgen_export_0;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n ;\n };\n imports.wbg.__wbindgen_string_get = function(arg0, arg1) {\n const obj = arg1;\n const ret = typeof(obj) === 'string' ? obj : undefined;\n var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n var len1 = WASM_VECTOR_LEN;\n getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n };\n imports.wbg.__wbindgen_throw = function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n };\n\n return imports;\n}\n\nfunction __wbg_init_memory(imports, memory) {\n\n}\n\nfunction __wbg_finalize_init(instance, module) {\n wasm = instance.exports;\n __wbg_init.__wbindgen_wasm_module = module;\n cachedDataViewMemory0 = null;\n cachedFloat32ArrayMemory0 = null;\n cachedFloat64ArrayMemory0 = null;\n cachedUint32ArrayMemory0 = null;\n cachedUint8ArrayMemory0 = null;\n\n\n wasm.__wbindgen_start();\n return wasm;\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module !== 'undefined') {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n\n __wbg_init_memory(imports);\n\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n\n const instance = new WebAssembly.Instance(module, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module_or_path !== 'undefined') {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (typeof module_or_path === 'undefined') {\n module_or_path = new URL('index_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n __wbg_init_memory(imports);\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync };\nexport default __wbg_init;\n"],"names":["wasm","cachedUint8ArrayMemory0","getUint8ArrayMemory0","byteLength","Uint8Array","memory","buffer","WASM_VECTOR_LEN","cachedTextEncoder","TextEncoder","encode","Error","encodeString","encodeInto","arg","view","buf","set","read","length","written","cachedDataViewMemory0","getDataViewMemory0","detached","undefined","DataView","cachedTextDecoder","TextDecoder","ignoreBOM","fatal","decode","cachedFloat64ArrayMemory0","passArrayF64ToWasm0","malloc","ptr","Float64Array","passArray8ToWasm0","selected_space_to_render_space","data","data_null_mask","params","null_mask","y_values","min_y_values","max_y_values","ptr0","__wbindgen_malloc","len0","ptr1","len1","ptr2","len2","ptr3","len3","ptr4","len4","ptr5","len5","cachedFloat32ArrayMemory0","passArrayF32ToWasm0","Float32Array","cachedUint32ArrayMemory0","extract_vertices","dpi_increase","positions","prev_positions","vertices","indices","dashed","dash0","dash1","ptr6","len6","ptr7","Uint32Array","passArray32ToWasm0","len7","get_point_number","main_js","__wbg_get_imports","imports","wbg","__wbg_maxx_a3b1e1c3299e47bf","arg0","maxX","__wbg_maxy_007b81ea99058122","maxY","__wbg_minx_e03d57649d81fc8f","minX","__wbg_miny_46aab5af597882a7","minY","__wbg_renderheight_d030fe5a23b4c32b","renderHeight","__wbg_renderwidth_8685762ee304f2a7","renderWidth","__wbg_scale_d705e0de44ed2361","scale","__wbindgen_copy_to_typed_array","arg1","arg2","len","byteOffset","subarray","__wbindgen_init_externref_table","table","__wbindgen_export_0","offset","grow","__wbindgen_string_get","ret","x","realloc","mem","code","charCodeAt","slice","passStringToWasm0","__wbindgen_realloc","setInt32","__wbindgen_throw","__wbg_finalize_init","instance","module","exports","__wbg_init","__wbindgen_wasm_module","__wbindgen_start","initSync","Object","getPrototypeOf","prototype","console","warn","WebAssembly","Module","Instance","async","module_or_path","URL","Request","fetch","Response","instantiateStreaming","e","headers","get","bytes","arrayBuffer","instantiate","__wbg_load"],"sourceRoot":""}
|
package/dist/744.bundle.esm.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export const id=744;export const ids=[744];export const modules={
|
|
1
|
+
export const id=744;export const ids=[744];export const modules={512:(e,n,t)=>{e.exports=t.p+"26b23c7580ea3345d644.wasm"},363:(e,n,t)=>{let o;t.r(n),t.d(n,{default:()=>j,extract_vertices:()=>p,get_point_number:()=>h,initSync:()=>W,main_js:()=>x,selected_space_to_render_space:()=>g});let r=null;function i(){return null!==r&&0!==r.byteLength||(r=new Uint8Array(o.memory.buffer)),r}let a=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},l="function"==typeof c.encodeInto?function(e,n){return c.encodeInto(e,n)}:function(e,n){const t=c.encode(e);return n.set(t),{read:e.length,written:t.length}};let s=null;function _(){return(null===s||!0===s.buffer.detached||void 0===s.buffer.detached&&s.buffer!==o.memory.buffer)&&(s=new DataView(o.memory.buffer)),s}const u="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&u.decode();let b=null;function d(e,n){const t=n(8*e.length,8)>>>0;return(null!==b&&0!==b.byteLength||(b=new Float64Array(o.memory.buffer)),b).set(e,t/8),a=e.length,t}function f(e,n){const t=n(1*e.length,1)>>>0;return i().set(e,t/1),a=e.length,t}function g(e,n,t,r,i,c,l,s){const _=d(n,o.__wbindgen_malloc),u=a,b=f(t,o.__wbindgen_malloc),g=a;var w=f(i,o.__wbindgen_malloc),m=a,y=d(c,o.__wbindgen_malloc),p=a,h=d(l,o.__wbindgen_malloc),x=a,v=d(s,o.__wbindgen_malloc),A=a;o.selected_space_to_render_space(e,_,u,b,g,r,w,m,i,y,p,c,h,x,l,v,A,s)}let w=null;function m(e,n){const t=n(4*e.length,4)>>>0;return(null!==w&&0!==w.byteLength||(w=new Float32Array(o.memory.buffer)),w).set(e,t/4),a=e.length,t}let y=null;function p(e,n,t,r,i,c,l,s,_,u,b,g){const w=f(n,o.__wbindgen_malloc),p=a,h=d(t,o.__wbindgen_malloc),x=a,v=d(r,o.__wbindgen_malloc),A=a,W=d(i,o.__wbindgen_malloc),O=a;var j=m(c,o.__wbindgen_malloc),L=a,T=m(l,o.__wbindgen_malloc),E=a,I=m(s,o.__wbindgen_malloc),R=a,U=function(e,n){const t=n(4*e.length,4)>>>0;return(null!==y&&0!==y.byteLength||(y=new Uint32Array(o.memory.buffer)),y).set(e,t/4),a=e.length,t}(_,o.__wbindgen_malloc),D=a;o.extract_vertices(e,w,p,h,x,v,A,W,O,j,L,c,T,E,l,I,R,s,U,D,_,u,b,g)}function h(e,n,t,r,i,c,l){const s=f(e,o.__wbindgen_malloc),_=a,u=d(n,o.__wbindgen_malloc),b=a,g=d(t,o.__wbindgen_malloc),w=a,m=d(r,o.__wbindgen_malloc),y=a;return o.get_point_number(s,_,u,b,g,w,m,y,i,c,l)}function x(){o.main_js()}function v(){const e={wbg:{}};return e.wbg.__wbg_maxx_a3b1e1c3299e47bf=function(e){return e.maxX},e.wbg.__wbg_maxy_007b81ea99058122=function(e){return e.maxY},e.wbg.__wbg_minx_e03d57649d81fc8f=function(e){return e.minX},e.wbg.__wbg_miny_46aab5af597882a7=function(e){return e.minY},e.wbg.__wbg_renderheight_d030fe5a23b4c32b=function(e){return e.renderHeight},e.wbg.__wbg_renderwidth_8685762ee304f2a7=function(e){return e.renderWidth},e.wbg.__wbg_scale_d705e0de44ed2361=function(e){return e.scale},e.wbg.__wbindgen_copy_to_typed_array=function(e,n,t){var o,r;new Uint8Array(t.buffer,t.byteOffset,t.byteLength).set((o=e,r=n,o>>>=0,i().subarray(o/1,o/1+r)))},e.wbg.__wbindgen_init_externref_table=function(){const e=o.__wbindgen_export_0,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e.wbg.__wbindgen_string_get=function(e,n){const t="string"==typeof n?n:void 0;var r=null==t?0:function(e,n,t){if(void 0===t){const t=c.encode(e),o=n(t.length,1)>>>0;return i().subarray(o,o+t.length).set(t),a=t.length,o}let o=e.length,r=n(o,1)>>>0;const s=i();let _=0;for(;_<o;_++){const n=e.charCodeAt(_);if(n>127)break;s[r+_]=n}if(_!==o){0!==_&&(e=e.slice(_)),r=t(r,o,o=_+3*e.length,1)>>>0;const n=i().subarray(r+_,r+o);_+=l(e,n).written,r=t(r,o,_,1)>>>0}return a=_,r}(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a;_().setInt32(e+4,s,!0),_().setInt32(e+0,r,!0)},e.wbg.__wbindgen_throw=function(e,n){throw new Error((t=e,o=n,t>>>=0,u.decode(i().subarray(t,t+o))));var t,o},e}function A(e,n){return o=e.exports,O.__wbindgen_wasm_module=n,s=null,w=null,b=null,y=null,r=null,o.__wbindgen_start(),o}function W(e){if(void 0!==o)return o;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=v();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),A(new WebAssembly.Instance(e,n),e)}async function O(e){if(void 0!==o)return o;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(t(512),t.b));const n=v();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:i}=await async function(e,n){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,n)}catch(n){if("application/wasm"==e.headers.get("Content-Type"))throw n;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n)}const t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}{const t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}(await e,n);return A(r,i)}const j=O}};
|
|
2
|
+
//# sourceMappingURL=744.bundle.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"744.bundle.esm.js","mappings":"wIAAA,IAAIA,E,8IAEJ,IAAIC,EAA0B,KAE9B,SAASC,IAIL,OAHgC,OAA5BD,GAA2E,IAAvCA,EAAwBE,aAC5DF,EAA0B,IAAI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@windborne/grapher/./src/rust/pkg/index.js"],"sourcesContent":["let wasm;\n\nlet cachedUint8ArrayMemory0 = null;\n\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nconst cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );\n\nconst encodeString = (typeof cachedTextEncoder.encodeInto === 'function'\n ? function (arg, view) {\n return cachedTextEncoder.encodeInto(arg, view);\n}\n : function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n});\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = encodeString(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction isLikeNone(x) {\n return x === undefined || x === null;\n}\n\nlet cachedDataViewMemory0 = null;\n\nfunction getDataViewMemory0() {\n if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {\n cachedDataViewMemory0 = new DataView(wasm.memory.buffer);\n }\n return cachedDataViewMemory0;\n}\n\nconst cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );\n\nif (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };\n\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nlet cachedFloat64ArrayMemory0 = null;\n\nfunction getFloat64ArrayMemory0() {\n if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {\n cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);\n }\n return cachedFloat64ArrayMemory0;\n}\n\nfunction passArrayF64ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 8, 8) >>> 0;\n getFloat64ArrayMemory0().set(arg, ptr / 8);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction passArray8ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 1, 1) >>> 0;\n getUint8ArrayMemory0().set(arg, ptr / 1);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n/**\n * @param {number} length\n * @param {Float64Array} data\n * @param {Uint8Array} data_null_mask\n * @param {any} params\n * @param {Uint8Array} null_mask\n * @param {Float64Array} y_values\n * @param {Float64Array} min_y_values\n * @param {Float64Array} max_y_values\n */\nexport function selected_space_to_render_space(length, data, data_null_mask, params, null_mask, y_values, min_y_values, max_y_values) {\n const ptr0 = passArrayF64ToWasm0(data, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArray8ToWasm0(data_null_mask, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n var ptr2 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);\n var len2 = WASM_VECTOR_LEN;\n var ptr3 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);\n var len3 = WASM_VECTOR_LEN;\n var ptr4 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);\n var len4 = WASM_VECTOR_LEN;\n var ptr5 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);\n var len5 = WASM_VECTOR_LEN;\n wasm.selected_space_to_render_space(length, ptr0, len0, ptr1, len1, params, ptr2, len2, null_mask, ptr3, len3, y_values, ptr4, len4, min_y_values, ptr5, len5, max_y_values);\n}\n\nlet cachedFloat32ArrayMemory0 = null;\n\nfunction getFloat32ArrayMemory0() {\n if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {\n cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);\n }\n return cachedFloat32ArrayMemory0;\n}\n\nfunction passArrayF32ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 4, 4) >>> 0;\n getFloat32ArrayMemory0().set(arg, ptr / 4);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nlet cachedUint32ArrayMemory0 = null;\n\nfunction getUint32ArrayMemory0() {\n if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {\n cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);\n }\n return cachedUint32ArrayMemory0;\n}\n\nfunction passArray32ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 4, 4) >>> 0;\n getUint32ArrayMemory0().set(arg, ptr / 4);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n/**\n * @param {number} dpi_increase\n * @param {Uint8Array} null_mask\n * @param {Float64Array} y_values\n * @param {Float64Array} min_y_values\n * @param {Float64Array} max_y_values\n * @param {Float32Array} positions\n * @param {Float32Array} prev_positions\n * @param {Float32Array} vertices\n * @param {Uint32Array} indices\n * @param {boolean} dashed\n * @param {number} dash0\n * @param {number} dash1\n */\nexport function extract_vertices(dpi_increase, null_mask, y_values, min_y_values, max_y_values, positions, prev_positions, vertices, indices, dashed, dash0, dash1) {\n const ptr0 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n var ptr4 = passArrayF32ToWasm0(positions, wasm.__wbindgen_malloc);\n var len4 = WASM_VECTOR_LEN;\n var ptr5 = passArrayF32ToWasm0(prev_positions, wasm.__wbindgen_malloc);\n var len5 = WASM_VECTOR_LEN;\n var ptr6 = passArrayF32ToWasm0(vertices, wasm.__wbindgen_malloc);\n var len6 = WASM_VECTOR_LEN;\n var ptr7 = passArray32ToWasm0(indices, wasm.__wbindgen_malloc);\n var len7 = WASM_VECTOR_LEN;\n wasm.extract_vertices(dpi_increase, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, positions, ptr5, len5, prev_positions, ptr6, len6, vertices, ptr7, len7, indices, dashed, dash0, dash1);\n}\n\n/**\n * @param {Uint8Array} null_mask\n * @param {Float64Array} y_values\n * @param {Float64Array} min_y_values\n * @param {Float64Array} max_y_values\n * @param {boolean} dashed\n * @param {number} dash0\n * @param {number} dash1\n * @returns {number}\n */\nexport function get_point_number(null_mask, y_values, min_y_values, max_y_values, dashed, dash0, dash1) {\n const ptr0 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);\n const len1 = WASM_VECTOR_LEN;\n const ptr2 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);\n const len2 = WASM_VECTOR_LEN;\n const ptr3 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);\n const len3 = WASM_VECTOR_LEN;\n const ret = wasm.get_point_number(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, dashed, dash0, dash1);\n return ret;\n}\n\nexport function main_js() {\n wasm.main_js();\n}\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n\n } catch (e) {\n if (module.headers.get('Content-Type') != 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n\n } else {\n return instance;\n }\n }\n}\n\nfunction __wbg_get_imports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbg_maxx_a3b1e1c3299e47bf = function(arg0) {\n const ret = arg0.maxX;\n return ret;\n };\n imports.wbg.__wbg_maxy_007b81ea99058122 = function(arg0) {\n const ret = arg0.maxY;\n return ret;\n };\n imports.wbg.__wbg_minx_e03d57649d81fc8f = function(arg0) {\n const ret = arg0.minX;\n return ret;\n };\n imports.wbg.__wbg_miny_46aab5af597882a7 = function(arg0) {\n const ret = arg0.minY;\n return ret;\n };\n imports.wbg.__wbg_renderheight_d030fe5a23b4c32b = function(arg0) {\n const ret = arg0.renderHeight;\n return ret;\n };\n imports.wbg.__wbg_renderwidth_8685762ee304f2a7 = function(arg0) {\n const ret = arg0.renderWidth;\n return ret;\n };\n imports.wbg.__wbg_scale_d705e0de44ed2361 = function(arg0) {\n const ret = arg0.scale;\n return ret;\n };\n imports.wbg.__wbindgen_copy_to_typed_array = function(arg0, arg1, arg2) {\n new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));\n };\n imports.wbg.__wbindgen_init_externref_table = function() {\n const table = wasm.__wbindgen_export_0;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n ;\n };\n imports.wbg.__wbindgen_string_get = function(arg0, arg1) {\n const obj = arg1;\n const ret = typeof(obj) === 'string' ? obj : undefined;\n var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n var len1 = WASM_VECTOR_LEN;\n getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n };\n imports.wbg.__wbindgen_throw = function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n };\n\n return imports;\n}\n\nfunction __wbg_init_memory(imports, memory) {\n\n}\n\nfunction __wbg_finalize_init(instance, module) {\n wasm = instance.exports;\n __wbg_init.__wbindgen_wasm_module = module;\n cachedDataViewMemory0 = null;\n cachedFloat32ArrayMemory0 = null;\n cachedFloat64ArrayMemory0 = null;\n cachedUint32ArrayMemory0 = null;\n cachedUint8ArrayMemory0 = null;\n\n\n wasm.__wbindgen_start();\n return wasm;\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module !== 'undefined') {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n\n __wbg_init_memory(imports);\n\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n\n const instance = new WebAssembly.Instance(module, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module_or_path !== 'undefined') {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (typeof module_or_path === 'undefined') {\n module_or_path = new URL('index_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n __wbg_init_memory(imports);\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync };\nexport default __wbg_init;\n"],"names":["wasm","cachedUint8ArrayMemory0","getUint8ArrayMemory0","byteLength","Uint8Array","memory","buffer","WASM_VECTOR_LEN","cachedTextEncoder","TextEncoder","encode","Error","encodeString","encodeInto","arg","view","buf","set","read","length","written","cachedDataViewMemory0","getDataViewMemory0","detached","undefined","DataView","cachedTextDecoder","TextDecoder","ignoreBOM","fatal","decode","cachedFloat64ArrayMemory0","passArrayF64ToWasm0","malloc","ptr","Float64Array","passArray8ToWasm0","selected_space_to_render_space","data","data_null_mask","params","null_mask","y_values","min_y_values","max_y_values","ptr0","__wbindgen_malloc","len0","ptr1","len1","ptr2","len2","ptr3","len3","ptr4","len4","ptr5","len5","cachedFloat32ArrayMemory0","passArrayF32ToWasm0","Float32Array","cachedUint32ArrayMemory0","extract_vertices","dpi_increase","positions","prev_positions","vertices","indices","dashed","dash0","dash1","ptr6","len6","ptr7","Uint32Array","passArray32ToWasm0","len7","get_point_number","main_js","__wbg_get_imports","imports","wbg","__wbg_maxx_a3b1e1c3299e47bf","arg0","maxX","__wbg_maxy_007b81ea99058122","maxY","__wbg_minx_e03d57649d81fc8f","minX","__wbg_miny_46aab5af597882a7","minY","__wbg_renderheight_d030fe5a23b4c32b","renderHeight","__wbg_renderwidth_8685762ee304f2a7","renderWidth","__wbg_scale_d705e0de44ed2361","scale","__wbindgen_copy_to_typed_array","arg1","arg2","len","byteOffset","subarray","__wbindgen_init_externref_table","table","__wbindgen_export_0","offset","grow","__wbindgen_string_get","ret","x","realloc","mem","code","charCodeAt","slice","passStringToWasm0","__wbindgen_realloc","setInt32","__wbindgen_throw","__wbg_finalize_init","instance","module","exports","__wbg_init","__wbindgen_wasm_module","__wbindgen_start","initSync","Object","getPrototypeOf","prototype","console","warn","WebAssembly","Module","Instance","async","module_or_path","URL","Request","fetch","Response","instantiateStreaming","e","headers","get","bytes","arrayBuffer","instantiate","__wbg_load"],"sourceRoot":""}
|