@windborne/grapher 1.0.49 → 1.0.50
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/599.bundle.cjs +1 -0
- package/dist/599.bundle.esm.js +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 +5 -0
- package/src/components/wind_arrows.jsx +114 -0
- package/src/grapher.jsx +3 -0
- package/src/grapher.scss +5 -0
- package/src/helpers/custom_prop_types.js +4 -0
- package/src/index.d.ts +4 -0
- package/src/rust/pkg/index.js +0 -397
- package/src/state/calculate_tooltip_state.js +3 -1
- package/src/state/space_conversions/simple_series_to_data_space.js +46 -19
- package/src/state/state_controller.js +7 -1
- package/dist/26b23c7580ea3345d644.wasm +0 -0
- package/dist/744.bundle.cjs +0 -2
- package/dist/744.bundle.cjs.map +0 -1
- package/dist/744.bundle.esm.js +0 -2
- package/dist/744.bundle.esm.js.map +0 -1
- package/src/rust/pkg/grapher_rs.d.ts +0 -6
- package/src/rust/pkg/grapher_rs.js +0 -5
- package/src/rust/pkg/grapher_rs_bg.js +0 -305
- package/src/rust/pkg/grapher_rs_bg.wasm +0 -0
- package/src/rust/pkg/grapher_rs_bg.wasm.d.ts +0 -11
- package/src/rust/pkg/index_bg.js +0 -305
- package/src/rust/pkg/index_bg.wasm +0 -0
- package/src/rust/pkg/package.json +0 -16
|
@@ -22,12 +22,16 @@ export default function simpleSeriesToDataSpace(singleSeries, options={}) {
|
|
|
22
22
|
|
|
23
23
|
let inDataSpace;
|
|
24
24
|
let rangeValues = [];
|
|
25
|
+
let windDirections = null;
|
|
26
|
+
let windData = null;
|
|
25
27
|
|
|
26
28
|
if (Array.isArray(result)) {
|
|
27
29
|
inDataSpace = result;
|
|
28
30
|
} else {
|
|
29
31
|
inDataSpace = result.data;
|
|
30
32
|
rangeValues = result.rangeValues || [];
|
|
33
|
+
windDirections = result.windDirections || null;
|
|
34
|
+
windData = result.windData || null;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
if (singleSeries.square) {
|
|
@@ -68,10 +72,12 @@ export default function simpleSeriesToDataSpace(singleSeries, options={}) {
|
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
if (rangeValues.length > 0) {
|
|
75
|
+
if (rangeValues.length > 0 || windDirections) {
|
|
72
76
|
return {
|
|
73
77
|
data: inDataSpace,
|
|
74
|
-
rangeValues: rangeValues
|
|
78
|
+
rangeValues: rangeValues,
|
|
79
|
+
windDirections: windDirections,
|
|
80
|
+
windData: windData
|
|
75
81
|
};
|
|
76
82
|
}
|
|
77
83
|
|
|
@@ -174,16 +180,20 @@ function readBinaryFormatValue(view, offset, index) {
|
|
|
174
180
|
* @return {Array<Array<Number|Date|null>>}
|
|
175
181
|
*/
|
|
176
182
|
function objectsToDataSpace(data, series, options) {
|
|
183
|
+
const hasWindKeys = series.windXKey && series.windYKey;
|
|
184
|
+
|
|
177
185
|
if (!series.xKey || typeof series.xKey !== 'string') {
|
|
178
186
|
throw new Error('xKey must be provided in the series');
|
|
179
187
|
}
|
|
180
188
|
|
|
181
|
-
if (!series.yKey || typeof series.yKey !== 'string') {
|
|
182
|
-
throw new Error('yKey must be provided in the series');
|
|
189
|
+
if (!hasWindKeys && (!series.yKey || typeof series.yKey !== 'string')) {
|
|
190
|
+
throw new Error('yKey must be provided in the series (or both windXKey and windYKey)');
|
|
183
191
|
}
|
|
184
192
|
|
|
185
193
|
const inDataSpace = [];
|
|
186
|
-
const rangeValues = [];
|
|
194
|
+
const rangeValues = [];
|
|
195
|
+
const windDirections = hasWindKeys ? [] : null;
|
|
196
|
+
const windData = hasWindKeys ? [] : null;
|
|
187
197
|
|
|
188
198
|
for (let point of data) {
|
|
189
199
|
if (point.buffer instanceof ArrayBuffer) {
|
|
@@ -194,7 +204,7 @@ function objectsToDataSpace(data, series, options) {
|
|
|
194
204
|
for (let offset of point.offsets) {
|
|
195
205
|
inDataSpace.push([readBinaryFormatValue(view, offset, xIndex), readBinaryFormatValue(view, offset, yIndex)]);
|
|
196
206
|
}
|
|
197
|
-
} else if (Array.isArray(point[series.yKey])) {
|
|
207
|
+
} else if (!hasWindKeys && Array.isArray(point[series.yKey])) {
|
|
198
208
|
if (point[series.yKey].length && !Array.isArray(point[series.yKey][0]) && typeof point[series.yKey][0] === 'object') {
|
|
199
209
|
for (let subpoint of point[series.yKey]) {
|
|
200
210
|
let yValue = subpoint[series.yKey];
|
|
@@ -221,9 +231,32 @@ function objectsToDataSpace(data, series, options) {
|
|
|
221
231
|
inDataSpace.push(...point[series.yKey]);
|
|
222
232
|
}
|
|
223
233
|
} else {
|
|
224
|
-
let yValue
|
|
225
|
-
if (
|
|
226
|
-
|
|
234
|
+
let yValue;
|
|
235
|
+
if (hasWindKeys) {
|
|
236
|
+
const windX = point[series.windXKey];
|
|
237
|
+
const windY = point[series.windYKey];
|
|
238
|
+
if (windX != null && windY != null) {
|
|
239
|
+
yValue = Math.sqrt(windX * windX + windY * windY);
|
|
240
|
+
windDirections.push(Math.atan2(windY, windX));
|
|
241
|
+
windData.push({ x: windX, y: windY });
|
|
242
|
+
} else {
|
|
243
|
+
yValue = null;
|
|
244
|
+
windDirections.push(null);
|
|
245
|
+
windData.push(null);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
yValue = point[series.yKey];
|
|
249
|
+
if (yValue === undefined) {
|
|
250
|
+
yValue = null;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (typeof yValue === 'string') {
|
|
254
|
+
yValue = options.stateController.enumToNumber(yValue, series);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
if (typeof yValue === 'boolean') {
|
|
258
|
+
yValue = +yValue;
|
|
259
|
+
}
|
|
227
260
|
}
|
|
228
261
|
|
|
229
262
|
let xValue = point[series.xKey];
|
|
@@ -231,14 +264,6 @@ function objectsToDataSpace(data, series, options) {
|
|
|
231
264
|
xValue = new Date(xValue);
|
|
232
265
|
}
|
|
233
266
|
|
|
234
|
-
if (typeof yValue === 'string') {
|
|
235
|
-
yValue = options.stateController.enumToNumber(yValue, series);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if (typeof yValue === 'boolean') {
|
|
239
|
-
yValue = +yValue;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
267
|
inDataSpace.push([xValue, yValue]);
|
|
243
268
|
|
|
244
269
|
if (series.rangeKey && point[series.rangeKey]) {
|
|
@@ -255,10 +280,12 @@ function objectsToDataSpace(data, series, options) {
|
|
|
255
280
|
}
|
|
256
281
|
}
|
|
257
282
|
|
|
258
|
-
if (rangeValues.length > 0) {
|
|
283
|
+
if (rangeValues.length > 0 || windDirections) {
|
|
259
284
|
return {
|
|
260
285
|
data: inDataSpace,
|
|
261
|
-
rangeValues: rangeValues
|
|
286
|
+
rangeValues: rangeValues,
|
|
287
|
+
windDirections: windDirections,
|
|
288
|
+
windData: windData
|
|
262
289
|
};
|
|
263
290
|
}
|
|
264
291
|
|
|
@@ -620,16 +620,22 @@ export default class StateController extends Eventable {
|
|
|
620
620
|
stateController: this
|
|
621
621
|
});
|
|
622
622
|
|
|
623
|
-
let inDataSpace, rangeValues;
|
|
623
|
+
let inDataSpace, rangeValues, windDirections, windData;
|
|
624
624
|
if (Array.isArray(dataSpaceResult)) {
|
|
625
625
|
inDataSpace = dataSpaceResult;
|
|
626
626
|
rangeValues = [];
|
|
627
|
+
windDirections = null;
|
|
628
|
+
windData = null;
|
|
627
629
|
} else {
|
|
628
630
|
inDataSpace = dataSpaceResult.data;
|
|
629
631
|
rangeValues = dataSpaceResult.rangeValues || [];
|
|
632
|
+
windDirections = dataSpaceResult.windDirections || null;
|
|
633
|
+
windData = dataSpaceResult.windData || null;
|
|
630
634
|
}
|
|
631
635
|
|
|
632
636
|
singleSeries.inDataSpace = inDataSpace;
|
|
637
|
+
singleSeries.windDirections = windDirections;
|
|
638
|
+
singleSeries.windData = windData;
|
|
633
639
|
singleSeries.simpleDataSliceStart = simpleData.length;
|
|
634
640
|
singleSeries._rangeValues = rangeValues;
|
|
635
641
|
const allYValues = [...inDataSpace.map(([x, y]) => y).filter(y => typeof y === 'number'), ...rangeValues];
|
|
Binary file
|
package/dist/744.bundle.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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
|
package/dist/744.bundle.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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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nB,aAAkBmB,SAAU,CAC9D,GAAgD,mBAArCR,YAAYS,qBACnB,IACI,aAAaT,YAAYS,qBAAqBpB,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
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"744.bundle.esm.js","mappings":"wIAAA,IAAIA,E,8IAEJ,IAAIC,EAA0B,KAE9B,SAASC,IAIL,OAHgC,OA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E,OAAOwC,EAAoBC,EAAUC,EACzC,CAGA,S","sources":["webpack://@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":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export function selected_space_to_render_space(length: number, data: Float64Array, data_null_mask: Uint8Array, params: any, null_mask: Uint8Array, y_values: Float64Array, min_y_values: Float64Array, max_y_values: Float64Array): void;
|
|
4
|
-
export function extract_vertices(dpi_increase: number, null_mask: Uint8Array, y_values: Float64Array, min_y_values: Float64Array, max_y_values: Float64Array, positions: Float32Array, prev_positions: Float32Array, vertices: Float32Array, indices: Uint32Array, dashed: boolean, dash0: number, dash1: number): void;
|
|
5
|
-
export function get_point_number(null_mask: Uint8Array, y_values: Float64Array, min_y_values: Float64Array, max_y_values: Float64Array, dashed: boolean, dash0: number, dash1: number): number;
|
|
6
|
-
export function main_js(): void;
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
let wasm;
|
|
2
|
-
export function __wbg_set_wasm(val) {
|
|
3
|
-
wasm = val;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let cachedUint8ArrayMemory0 = null;
|
|
8
|
-
|
|
9
|
-
function getUint8ArrayMemory0() {
|
|
10
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
11
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
12
|
-
}
|
|
13
|
-
return cachedUint8ArrayMemory0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
17
|
-
ptr = ptr >>> 0;
|
|
18
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
let WASM_VECTOR_LEN = 0;
|
|
22
|
-
|
|
23
|
-
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
24
|
-
|
|
25
|
-
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
26
|
-
|
|
27
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
28
|
-
? function (arg, view) {
|
|
29
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
30
|
-
}
|
|
31
|
-
: function (arg, view) {
|
|
32
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
33
|
-
view.set(buf);
|
|
34
|
-
return {
|
|
35
|
-
read: arg.length,
|
|
36
|
-
written: buf.length
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
41
|
-
|
|
42
|
-
if (realloc === undefined) {
|
|
43
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
44
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
45
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
46
|
-
WASM_VECTOR_LEN = buf.length;
|
|
47
|
-
return ptr;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
let len = arg.length;
|
|
51
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
52
|
-
|
|
53
|
-
const mem = getUint8ArrayMemory0();
|
|
54
|
-
|
|
55
|
-
let offset = 0;
|
|
56
|
-
|
|
57
|
-
for (; offset < len; offset++) {
|
|
58
|
-
const code = arg.charCodeAt(offset);
|
|
59
|
-
if (code > 0x7F) break;
|
|
60
|
-
mem[ptr + offset] = code;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (offset !== len) {
|
|
64
|
-
if (offset !== 0) {
|
|
65
|
-
arg = arg.slice(offset);
|
|
66
|
-
}
|
|
67
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
68
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
69
|
-
const ret = encodeString(arg, view);
|
|
70
|
-
|
|
71
|
-
offset += ret.written;
|
|
72
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
WASM_VECTOR_LEN = offset;
|
|
76
|
-
return ptr;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function isLikeNone(x) {
|
|
80
|
-
return x === undefined || x === null;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
let cachedDataViewMemory0 = null;
|
|
84
|
-
|
|
85
|
-
function getDataViewMemory0() {
|
|
86
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
87
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
88
|
-
}
|
|
89
|
-
return cachedDataViewMemory0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
93
|
-
|
|
94
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
95
|
-
|
|
96
|
-
cachedTextDecoder.decode();
|
|
97
|
-
|
|
98
|
-
function getStringFromWasm0(ptr, len) {
|
|
99
|
-
ptr = ptr >>> 0;
|
|
100
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
let cachedFloat64ArrayMemory0 = null;
|
|
104
|
-
|
|
105
|
-
function getFloat64ArrayMemory0() {
|
|
106
|
-
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
|
107
|
-
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
|
|
108
|
-
}
|
|
109
|
-
return cachedFloat64ArrayMemory0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function passArrayF64ToWasm0(arg, malloc) {
|
|
113
|
-
const ptr = malloc(arg.length * 8, 8) >>> 0;
|
|
114
|
-
getFloat64ArrayMemory0().set(arg, ptr / 8);
|
|
115
|
-
WASM_VECTOR_LEN = arg.length;
|
|
116
|
-
return ptr;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
120
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
121
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
122
|
-
WASM_VECTOR_LEN = arg.length;
|
|
123
|
-
return ptr;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @param {number} length
|
|
127
|
-
* @param {Float64Array} data
|
|
128
|
-
* @param {Uint8Array} data_null_mask
|
|
129
|
-
* @param {any} params
|
|
130
|
-
* @param {Uint8Array} null_mask
|
|
131
|
-
* @param {Float64Array} y_values
|
|
132
|
-
* @param {Float64Array} min_y_values
|
|
133
|
-
* @param {Float64Array} max_y_values
|
|
134
|
-
*/
|
|
135
|
-
export function selected_space_to_render_space(length, data, data_null_mask, params, null_mask, y_values, min_y_values, max_y_values) {
|
|
136
|
-
const ptr0 = passArrayF64ToWasm0(data, wasm.__wbindgen_malloc);
|
|
137
|
-
const len0 = WASM_VECTOR_LEN;
|
|
138
|
-
const ptr1 = passArray8ToWasm0(data_null_mask, wasm.__wbindgen_malloc);
|
|
139
|
-
const len1 = WASM_VECTOR_LEN;
|
|
140
|
-
var ptr2 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);
|
|
141
|
-
var len2 = WASM_VECTOR_LEN;
|
|
142
|
-
var ptr3 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);
|
|
143
|
-
var len3 = WASM_VECTOR_LEN;
|
|
144
|
-
var ptr4 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);
|
|
145
|
-
var len4 = WASM_VECTOR_LEN;
|
|
146
|
-
var ptr5 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);
|
|
147
|
-
var len5 = WASM_VECTOR_LEN;
|
|
148
|
-
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);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
let cachedFloat32ArrayMemory0 = null;
|
|
152
|
-
|
|
153
|
-
function getFloat32ArrayMemory0() {
|
|
154
|
-
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
155
|
-
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
156
|
-
}
|
|
157
|
-
return cachedFloat32ArrayMemory0;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function passArrayF32ToWasm0(arg, malloc) {
|
|
161
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
162
|
-
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
163
|
-
WASM_VECTOR_LEN = arg.length;
|
|
164
|
-
return ptr;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
let cachedUint32ArrayMemory0 = null;
|
|
168
|
-
|
|
169
|
-
function getUint32ArrayMemory0() {
|
|
170
|
-
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
171
|
-
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
172
|
-
}
|
|
173
|
-
return cachedUint32ArrayMemory0;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
177
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
178
|
-
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
179
|
-
WASM_VECTOR_LEN = arg.length;
|
|
180
|
-
return ptr;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @param {number} dpi_increase
|
|
184
|
-
* @param {Uint8Array} null_mask
|
|
185
|
-
* @param {Float64Array} y_values
|
|
186
|
-
* @param {Float64Array} min_y_values
|
|
187
|
-
* @param {Float64Array} max_y_values
|
|
188
|
-
* @param {Float32Array} positions
|
|
189
|
-
* @param {Float32Array} prev_positions
|
|
190
|
-
* @param {Float32Array} vertices
|
|
191
|
-
* @param {Uint32Array} indices
|
|
192
|
-
* @param {boolean} dashed
|
|
193
|
-
* @param {number} dash0
|
|
194
|
-
* @param {number} dash1
|
|
195
|
-
*/
|
|
196
|
-
export function extract_vertices(dpi_increase, null_mask, y_values, min_y_values, max_y_values, positions, prev_positions, vertices, indices, dashed, dash0, dash1) {
|
|
197
|
-
const ptr0 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);
|
|
198
|
-
const len0 = WASM_VECTOR_LEN;
|
|
199
|
-
const ptr1 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);
|
|
200
|
-
const len1 = WASM_VECTOR_LEN;
|
|
201
|
-
const ptr2 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);
|
|
202
|
-
const len2 = WASM_VECTOR_LEN;
|
|
203
|
-
const ptr3 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);
|
|
204
|
-
const len3 = WASM_VECTOR_LEN;
|
|
205
|
-
var ptr4 = passArrayF32ToWasm0(positions, wasm.__wbindgen_malloc);
|
|
206
|
-
var len4 = WASM_VECTOR_LEN;
|
|
207
|
-
var ptr5 = passArrayF32ToWasm0(prev_positions, wasm.__wbindgen_malloc);
|
|
208
|
-
var len5 = WASM_VECTOR_LEN;
|
|
209
|
-
var ptr6 = passArrayF32ToWasm0(vertices, wasm.__wbindgen_malloc);
|
|
210
|
-
var len6 = WASM_VECTOR_LEN;
|
|
211
|
-
var ptr7 = passArray32ToWasm0(indices, wasm.__wbindgen_malloc);
|
|
212
|
-
var len7 = WASM_VECTOR_LEN;
|
|
213
|
-
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);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @param {Uint8Array} null_mask
|
|
218
|
-
* @param {Float64Array} y_values
|
|
219
|
-
* @param {Float64Array} min_y_values
|
|
220
|
-
* @param {Float64Array} max_y_values
|
|
221
|
-
* @param {boolean} dashed
|
|
222
|
-
* @param {number} dash0
|
|
223
|
-
* @param {number} dash1
|
|
224
|
-
* @returns {number}
|
|
225
|
-
*/
|
|
226
|
-
export function get_point_number(null_mask, y_values, min_y_values, max_y_values, dashed, dash0, dash1) {
|
|
227
|
-
const ptr0 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);
|
|
228
|
-
const len0 = WASM_VECTOR_LEN;
|
|
229
|
-
const ptr1 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);
|
|
230
|
-
const len1 = WASM_VECTOR_LEN;
|
|
231
|
-
const ptr2 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);
|
|
232
|
-
const len2 = WASM_VECTOR_LEN;
|
|
233
|
-
const ptr3 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);
|
|
234
|
-
const len3 = WASM_VECTOR_LEN;
|
|
235
|
-
const ret = wasm.get_point_number(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, dashed, dash0, dash1);
|
|
236
|
-
return ret;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export function main_js() {
|
|
240
|
-
wasm.main_js();
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export function __wbg_maxx_a3b1e1c3299e47bf(arg0) {
|
|
244
|
-
const ret = arg0.maxX;
|
|
245
|
-
return ret;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
export function __wbg_maxy_007b81ea99058122(arg0) {
|
|
249
|
-
const ret = arg0.maxY;
|
|
250
|
-
return ret;
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
export function __wbg_minx_e03d57649d81fc8f(arg0) {
|
|
254
|
-
const ret = arg0.minX;
|
|
255
|
-
return ret;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
export function __wbg_miny_46aab5af597882a7(arg0) {
|
|
259
|
-
const ret = arg0.minY;
|
|
260
|
-
return ret;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
export function __wbg_renderheight_d030fe5a23b4c32b(arg0) {
|
|
264
|
-
const ret = arg0.renderHeight;
|
|
265
|
-
return ret;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
export function __wbg_renderwidth_8685762ee304f2a7(arg0) {
|
|
269
|
-
const ret = arg0.renderWidth;
|
|
270
|
-
return ret;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
export function __wbg_scale_d705e0de44ed2361(arg0) {
|
|
274
|
-
const ret = arg0.scale;
|
|
275
|
-
return ret;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
export function __wbindgen_copy_to_typed_array(arg0, arg1, arg2) {
|
|
279
|
-
new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
export function __wbindgen_init_externref_table() {
|
|
283
|
-
const table = wasm.__wbindgen_export_0;
|
|
284
|
-
const offset = table.grow(4);
|
|
285
|
-
table.set(0, undefined);
|
|
286
|
-
table.set(offset + 0, undefined);
|
|
287
|
-
table.set(offset + 1, null);
|
|
288
|
-
table.set(offset + 2, true);
|
|
289
|
-
table.set(offset + 3, false);
|
|
290
|
-
;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
export function __wbindgen_string_get(arg0, arg1) {
|
|
294
|
-
const obj = arg1;
|
|
295
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
296
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
297
|
-
var len1 = WASM_VECTOR_LEN;
|
|
298
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
299
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
export function __wbindgen_throw(arg0, arg1) {
|
|
303
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
304
|
-
};
|
|
305
|
-
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const selected_space_to_render_space: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number, i: any, j: number, k: number, l: any, m: number, n: number, o: any, p: number, q: number, r: any) => void;
|
|
5
|
-
export const extract_vertices: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: any, m: number, n: number, o: any, p: number, q: number, r: any, s: number, t: number, u: any, v: number, w: number, x: number) => void;
|
|
6
|
-
export const get_point_number: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
7
|
-
export const main_js: () => void;
|
|
8
|
-
export const __wbindgen_export_0: WebAssembly.Table;
|
|
9
|
-
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
10
|
-
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
11
|
-
export const __wbindgen_start: () => void;
|