@windborne/grapher 1.0.17 → 1.0.20

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.
Files changed (52) hide show
  1. package/dist/26b23c7580ea3345d644.wasm +0 -0
  2. package/dist/744.bundle.cjs +2 -0
  3. package/dist/744.bundle.cjs.map +1 -0
  4. package/dist/744.bundle.esm.js +2 -0
  5. package/dist/744.bundle.esm.js.map +1 -0
  6. package/dist/bundle.cjs +2 -0
  7. package/dist/bundle.cjs.map +1 -0
  8. package/dist/bundle.esm.js +2 -0
  9. package/dist/bundle.esm.js.map +1 -0
  10. package/package.json +29 -7
  11. package/src/components/{graph_body.js → graph_body.jsx} +5 -5
  12. package/src/components/{options.js → options.jsx} +2 -2
  13. package/src/components/{percentile_button.js → percentile_button.jsx} +1 -1
  14. package/src/components/{range_graph.js → range_graph.jsx} +1 -1
  15. package/src/components/{range_selection.js → range_selection.jsx} +3 -3
  16. package/src/components/{range_selection_button.js → range_selection_button.jsx} +1 -1
  17. package/src/components/{series_key.js → series_key.jsx} +2 -2
  18. package/src/components/{series_key_item.js → series_key_item.jsx} +1 -1
  19. package/src/{grapher.js → grapher.jsx} +8 -8
  20. package/src/index.d.ts +66 -0
  21. package/src/index.js +6 -0
  22. package/src/index.mjs +5 -0
  23. package/src/{multigrapher.js → multigrapher.jsx} +1 -1
  24. package/src/rust/Cargo.lock +1 -1
  25. package/src/rust/pkg/index.js +33 -67
  26. package/src/rust/pkg/index_bg.js +305 -0
  27. package/src/rust/pkg/index_bg.wasm +0 -0
  28. package/src/state/state_controller.js +1 -1
  29. package/.eslintrc.js +0 -85
  30. package/0b7f5873de77fe339ee0.wasm +0 -0
  31. package/744.bundle.js +0 -2
  32. package/744.bundle.js.map +0 -1
  33. package/816.bundle.js +0 -2
  34. package/816.bundle.js.map +0 -1
  35. package/bundle.js +0 -2
  36. package/bundle.js.map +0 -1
  37. package/test/setup.js +0 -15
  38. package/test/space_conversions/data_space_to_selected_space.test.js +0 -434
  39. package/webpack.dev.config.js +0 -110
  40. package/webpack.prod.config.js +0 -61
  41. package/webpack.test.config.js +0 -59
  42. /package/src/components/{annotations.js → annotations.jsx} +0 -0
  43. /package/src/components/{context_menu.js → context_menu.jsx} +0 -0
  44. /package/src/components/{draggable_points.js → draggable_points.jsx} +0 -0
  45. /package/src/components/{graph_title.js → graph_title.jsx} +0 -0
  46. /package/src/components/{range_selection_button_base.js → range_selection_button_base.jsx} +0 -0
  47. /package/src/components/{series_key_axis_container.js → series_key_axis_container.jsx} +0 -0
  48. /package/src/components/{sidebar.js → sidebar.jsx} +0 -0
  49. /package/src/components/{tooltip.js → tooltip.jsx} +0 -0
  50. /package/src/components/{vertical_lines.js → vertical_lines.jsx} +0 -0
  51. /package/src/components/{x_axis.js → x_axis.jsx} +0 -0
  52. /package/src/components/{y_axis.js → y_axis.jsx} +0 -0
package/package.json CHANGED
@@ -1,16 +1,37 @@
1
1
  {
2
2
  "name": "@windborne/grapher",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "Graphing library",
5
- "main": "bundle.js",
5
+ "main": "src/index.js",
6
+ "module": "dist/bundle.esm.js",
7
+ "types": "src/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/bundle.esm.js",
11
+ "require": "./dist/bundle.cjs",
12
+ "types": "./src/index.d.ts",
13
+ "default": "./src/index.js"
14
+ },
15
+ "./src": {
16
+ "import": "./src/index.mjs",
17
+ "default": "./src/index.js"
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
21
+ "files": [
22
+ "src/",
23
+ "dist/",
24
+ "*.md",
25
+ "package.json"
26
+ ],
6
27
  "publishConfig": {},
7
28
  "scripts": {
8
29
  "lint-base": "eslint ./src ./examples ./test",
9
30
  "lint": "npm run lint-base -- --fix",
10
- "dev": "webpack-dev-server --config webpack.dev.config.js",
11
- "build": "rm -f *.wasm && webpack --config webpack.prod.config.js && touch src/rust/pkg/.npmignore",
12
- "analyze-size": "webpack --config webpack.prod.config.js --json | webpack-bundle-size-analyzer",
13
- "test": "mocha-webpack --webpack-config webpack.test.config.js --require test/setup.js --recursive --glob \"*.test.js\" test",
31
+ "dev": "webpack-dev-server --config webpack.dev.config.cjs",
32
+ "build": "rm -rf dist && mkdir -p dist && rm -f *.wasm && webpack --config webpack.prod.config.cjs && touch src/rust/pkg/.npmignore",
33
+ "analyze-size": "webpack --config webpack.prod.config.cjs --json | webpack-bundle-size-analyzer",
34
+ "test": "mocha-webpack --webpack-config webpack.test.config.cjs --require test/setup.js --recursive --glob \"*.test.js\" test",
14
35
  "coverage": "NODE_ENV=coverage nyc --reporter=lcov --reporter=text npm run test"
15
36
  },
16
37
  "repository": {
@@ -24,7 +45,8 @@
24
45
  },
25
46
  "nyc": {
26
47
  "include": [
27
- "src/**/*.js"
48
+ "src/**/*.js",
49
+ "src/**/*.jsx"
28
50
  ],
29
51
  "instrument": false,
30
52
  "sourceMap": false
@@ -2,8 +2,8 @@ import React, { useCallback, useState, useEffect } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import CustomPropTypes from '../helpers/custom_prop_types';
4
4
  import GraphBodyRenderer from '../renderer/graph_body_renderer';
5
- import Tooltip from './tooltip';
6
- import ContextMenu from './context_menu';
5
+ import Tooltip from './tooltip.jsx';
6
+ import ContextMenu from './context_menu.jsx';
7
7
  import StateController from '../state/state_controller';
8
8
  import {
9
9
  useAnnotationState,
@@ -14,9 +14,9 @@ import {
14
14
  useTooltipState,
15
15
  useContextMenu
16
16
  } from '../state/hooks';
17
- import Annotations from './annotations.js';
18
- import DraggablePoints from './draggable_points.js';
19
- import VerticalLines from './vertical_lines.js';
17
+ import Annotations from './annotations.jsx';
18
+ import DraggablePoints from './draggable_points.jsx';
19
+ import VerticalLines from './vertical_lines.jsx';
20
20
  import binarySearch from '../helpers/binary_search';
21
21
 
22
22
  export default React.memo(GraphBody);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import PercentileButton from './percentile_button';
3
- import RangeSelectionButtonBase from './range_selection_button_base';
2
+ import PercentileButton from './percentile_button.jsx';
3
+ import RangeSelectionButtonBase from './range_selection_button_base.jsx';
4
4
  import {
5
5
  useAutoscaleY,
6
6
  useMaxPrecision,
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import RangeSelectionButtonBase from './range_selection_button_base';
3
+ import RangeSelectionButtonBase from './range_selection_button_base.jsx';
4
4
  import StateController from '../state/state_controller';
5
5
  import {usePercentile, usePercentileAsymmetry} from '../state/hooks';
6
6
 
@@ -4,7 +4,7 @@ import GraphBodyRenderer from '../renderer/graph_body_renderer';
4
4
  import StateController from '../state/state_controller';
5
5
  import placeGrid from '../helpers/place_grid';
6
6
  import {formatX} from '../helpers/format';
7
- import VerticalLines from './vertical_lines';
7
+ import VerticalLines from './vertical_lines.jsx';
8
8
  import CustomPropTypes from '../helpers/custom_prop_types';
9
9
 
10
10
  export default class RangeGraph extends React.PureComponent {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import RangeSelectionButton from './range_selection_button';
4
- import RangeSelectionButtonBase from './range_selection_button_base';
3
+ import RangeSelectionButton from './range_selection_button.jsx';
4
+ import RangeSelectionButtonBase from './range_selection_button_base.jsx';
5
5
  import {Y_AXIS_WIDTH} from '../helpers/axis_sizes';
6
6
  import CustomPropTypes from '../helpers/custom_prop_types';
7
7
  import StateController from '../state/state_controller';
@@ -13,7 +13,7 @@ import {
13
13
  useShowingOptions
14
14
  } from '../state/hooks';
15
15
  import BOUND_CALCULATORS from '../state/bound_calculators';
16
- import Options from './options';
16
+ import Options from './options.jsx';
17
17
 
18
18
  export default React.memo(RangeSelection);
19
19
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import RangeSelectionButtonBase from './range_selection_button_base';
3
+ import RangeSelectionButtonBase from './range_selection_button_base.jsx';
4
4
  import StateController from '../state/state_controller';
5
5
 
6
6
  export default React.memo(RangeSelectionButton);
@@ -11,8 +11,8 @@ import {
11
11
  useRightAxisCount,
12
12
  useSeries, useShowingOptions
13
13
  } from '../state/hooks';
14
- import SeriesKeyItem from './series_key_item';
15
- import SeriesKeyAxisContainer from './series_key_axis_container';
14
+ import SeriesKeyItem from './series_key_item.jsx';
15
+ import SeriesKeyAxisContainer from './series_key_axis_container.jsx';
16
16
 
17
17
  function calculateStyles({stateController, keyWidth}) {
18
18
  const rightAxisCount = useRightAxisCount(stateController);
@@ -3,7 +3,7 @@ import getColor from '../helpers/colors';
3
3
  import CustomPropTypes from '../helpers/custom_prop_types';
4
4
  import PropTypes from 'prop-types';
5
5
  import StateController from '../state/state_controller';
6
- import nameForSeries from '../helpers/name_for_series.js';
6
+ import nameForSeries from '../helpers/name_for_series';
7
7
 
8
8
  export default React.memo(SeriesKeyItem);
9
9
 
@@ -1,19 +1,19 @@
1
1
  import React, { useEffect, useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import CustomPropTypes from './helpers/custom_prop_types';
4
- import GraphBody from './components/graph_body';
4
+ import GraphBody from './components/graph_body.jsx';
5
5
  import './grapher.scss';
6
- import XAxis from './components/x_axis';
7
- import YAxis from './components/y_axis';
8
- import RangeSelection from './components/range_selection';
9
- import RangeGraph from './components/range_graph';
10
- import SeriesKey from './components/series_key';
6
+ import XAxis from './components/x_axis.jsx';
7
+ import YAxis from './components/y_axis.jsx';
8
+ import RangeSelection from './components/range_selection.jsx';
9
+ import RangeGraph from './components/range_graph.jsx';
10
+ import SeriesKey from './components/series_key.jsx';
11
11
  import {Y_AXIS_WIDTH} from './helpers/axis_sizes';
12
- import GraphTitle from './components/graph_title';
12
+ import GraphTitle from './components/graph_title.jsx';
13
13
  import {LINE_COLORS} from './helpers/colors';
14
14
  import StateController from './state/state_controller';
15
15
  import {useDraggingY, useLeftAxes, useRightAxes, useShowingSidebar, useTheme} from './state/hooks';
16
- import Sidebar from './components/sidebar';
16
+ import Sidebar from './components/sidebar.jsx';
17
17
  import SyncPool from './state/sync_pool.js';
18
18
  import BOUND_CALCULATORS from './state/bound_calculators.js';
19
19
 
package/src/index.d.ts ADDED
@@ -0,0 +1,66 @@
1
+ import React from 'react';
2
+
3
+ export interface GrapherProps {
4
+ id: string;
5
+ series: any[];
6
+ theme?: string;
7
+ showAxes?: boolean;
8
+ showRangeGraph?: boolean;
9
+ showRangeSelectors?: boolean;
10
+ showSeriesKey?: boolean;
11
+ showTooltips?: boolean;
12
+ boundsSelectionEnabled?: boolean;
13
+ customBoundsSelectors?: any[];
14
+ sidebarEnabled?: boolean;
15
+ defaultShowAnnotations?: boolean;
16
+ defaultShowOptions?: boolean;
17
+ fullscreen?: boolean;
18
+ height?: number | string;
19
+ width?: number | string;
20
+ title?: string;
21
+ annotations?: any[];
22
+ onAxisChange?: (axes: any) => void;
23
+ onRenderTime?: (time: number) => void;
24
+ exportStateController?: (controller: any) => void;
25
+ stateControllerInitialization?: any;
26
+ timingFrameCount?: number;
27
+ percentile?: number;
28
+ showAxisColors?: boolean;
29
+ showGrid?: boolean;
30
+ bigLabels?: boolean;
31
+ defaultLineWidth?: number;
32
+ bodyHeight?: number;
33
+ dragPositionYOffset?: number;
34
+ syncPool?: any;
35
+ }
36
+
37
+ export interface MultiGrapherProps extends GrapherProps {
38
+ syncBounds?: boolean;
39
+ syncTooltips?: boolean;
40
+ newUpperEnabled?: boolean;
41
+ onMultiseriesChange?: (series: any[]) => void;
42
+ }
43
+
44
+ export interface RangeSelectionProps {
45
+ stateController: any;
46
+ customBoundsSelectors?: any[];
47
+ customBoundsSelectorsOnly?: boolean;
48
+ sidebarEnabled?: boolean;
49
+ }
50
+
51
+ export interface SyncPoolOptions {
52
+ syncBounds?: boolean;
53
+ syncTooltips?: boolean;
54
+ syncDragState?: boolean;
55
+ }
56
+
57
+ declare const Grapher: React.ComponentType<GrapherProps>;
58
+ declare const MultiGrapher: React.ComponentType<MultiGrapherProps>;
59
+ declare const RangeSelection: React.ComponentType<RangeSelectionProps>;
60
+ declare const SyncPool: any;
61
+
62
+ export const AVAILABLE_COLORS: string[];
63
+ export const BUILT_IN_BOUND_CALCULATORS: Record<string, (globalBounds?: any) => any>;
64
+
65
+ export { Grapher, MultiGrapher, RangeSelection, SyncPool };
66
+ export default Grapher;
package/src/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export { default as Grapher, AVAILABLE_COLORS, BUILT_IN_BOUND_CALCULATORS } from './grapher.jsx';
2
+ export { default as MultiGrapher } from './multigrapher.jsx';
3
+ export { default as RangeSelection } from './components/range_selection.jsx';
4
+ export { default as SyncPool } from './state/sync_pool.js';
5
+
6
+ export { default } from './grapher.jsx';
package/src/index.mjs ADDED
@@ -0,0 +1,5 @@
1
+ export { default as Grapher } from './grapher.js';
2
+ export { default as MultiGrapher } from './multigrapher.js';
3
+
4
+ // Default export is the main Grapher component
5
+ export { default } from './grapher.js';
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Grapher from './grapher.js';
3
+ import Grapher from './grapher.jsx';
4
4
  import MultigraphStateController from './state/multigraph_state_controller.js';
5
5
  import {useDraggingY, useMultiSeries} from './state/hooks.js';
6
6
  import SyncPool from './state/sync_pool.js';
@@ -145,7 +145,7 @@ dependencies = [
145
145
 
146
146
  [[package]]
147
147
  name = "unicode-ident"
148
- version = "1.0.18"
148
+ version = "1.0.20"
149
149
  source = "registry+https://github.com/rust-lang/crates.io-index"
150
150
  checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
151
151
 
@@ -1,22 +1,5 @@
1
1
  let wasm;
2
2
 
3
- const heap = new Array(128).fill(undefined);
4
-
5
- heap.push(undefined, null, true, false);
6
-
7
- function getObject(idx) { return heap[idx]; }
8
-
9
- let heap_next = heap.length;
10
-
11
- function addHeapObject(obj) {
12
- if (heap_next === heap.length) heap.push(heap.length + 1);
13
- const idx = heap_next;
14
- heap_next = heap[idx];
15
-
16
- heap[idx] = obj;
17
- return idx;
18
- }
19
-
20
3
  let cachedUint8ArrayMemory0 = null;
21
4
 
22
5
  function getUint8ArrayMemory0() {
@@ -31,18 +14,6 @@ function getArrayU8FromWasm0(ptr, len) {
31
14
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
32
15
  }
33
16
 
34
- function dropObject(idx) {
35
- if (idx < 132) return;
36
- heap[idx] = heap_next;
37
- heap_next = idx;
38
- }
39
-
40
- function takeObject(idx) {
41
- const ret = getObject(idx);
42
- dropObject(idx);
43
- return ret;
44
- }
45
-
46
17
  let WASM_VECTOR_LEN = 0;
47
18
 
48
19
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -143,14 +114,6 @@ function passArray8ToWasm0(arg, malloc) {
143
114
  WASM_VECTOR_LEN = arg.length;
144
115
  return ptr;
145
116
  }
146
-
147
- let stack_pointer = 128;
148
-
149
- function addBorrowedObject(obj) {
150
- if (stack_pointer == 1) throw new Error('out of js stack');
151
- heap[--stack_pointer] = obj;
152
- return stack_pointer;
153
- }
154
117
  /**
155
118
  * @param {number} length
156
119
  * @param {Float64Array} data
@@ -162,23 +125,19 @@ function addBorrowedObject(obj) {
162
125
  * @param {Float64Array} max_y_values
163
126
  */
164
127
  export function selected_space_to_render_space(length, data, data_null_mask, params, null_mask, y_values, min_y_values, max_y_values) {
165
- try {
166
- const ptr0 = passArrayF64ToWasm0(data, wasm.__wbindgen_malloc);
167
- const len0 = WASM_VECTOR_LEN;
168
- const ptr1 = passArray8ToWasm0(data_null_mask, wasm.__wbindgen_malloc);
169
- const len1 = WASM_VECTOR_LEN;
170
- var ptr2 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);
171
- var len2 = WASM_VECTOR_LEN;
172
- var ptr3 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);
173
- var len3 = WASM_VECTOR_LEN;
174
- var ptr4 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);
175
- var len4 = WASM_VECTOR_LEN;
176
- var ptr5 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);
177
- var len5 = WASM_VECTOR_LEN;
178
- wasm.selected_space_to_render_space(length, ptr0, len0, ptr1, len1, addBorrowedObject(params), ptr2, len2, addHeapObject(null_mask), ptr3, len3, addHeapObject(y_values), ptr4, len4, addHeapObject(min_y_values), ptr5, len5, addHeapObject(max_y_values));
179
- } finally {
180
- heap[stack_pointer++] = undefined;
181
- }
128
+ const ptr0 = passArrayF64ToWasm0(data, wasm.__wbindgen_malloc);
129
+ const len0 = WASM_VECTOR_LEN;
130
+ const ptr1 = passArray8ToWasm0(data_null_mask, wasm.__wbindgen_malloc);
131
+ const len1 = WASM_VECTOR_LEN;
132
+ var ptr2 = passArray8ToWasm0(null_mask, wasm.__wbindgen_malloc);
133
+ var len2 = WASM_VECTOR_LEN;
134
+ var ptr3 = passArrayF64ToWasm0(y_values, wasm.__wbindgen_malloc);
135
+ var len3 = WASM_VECTOR_LEN;
136
+ var ptr4 = passArrayF64ToWasm0(min_y_values, wasm.__wbindgen_malloc);
137
+ var len4 = WASM_VECTOR_LEN;
138
+ var ptr5 = passArrayF64ToWasm0(max_y_values, wasm.__wbindgen_malloc);
139
+ var len5 = WASM_VECTOR_LEN;
140
+ 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);
182
141
  }
183
142
 
184
143
  let cachedFloat32ArrayMemory0 = null;
@@ -243,7 +202,7 @@ export function extract_vertices(dpi_increase, null_mask, y_values, min_y_values
243
202
  var len6 = WASM_VECTOR_LEN;
244
203
  var ptr7 = passArray32ToWasm0(indices, wasm.__wbindgen_malloc);
245
204
  var len7 = WASM_VECTOR_LEN;
246
- wasm.extract_vertices(dpi_increase, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, addHeapObject(positions), ptr5, len5, addHeapObject(prev_positions), ptr6, len6, addHeapObject(vertices), ptr7, len7, addHeapObject(indices), dashed, dash0, dash1);
205
+ 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);
247
206
  }
248
207
 
249
208
  /**
@@ -308,41 +267,48 @@ function __wbg_get_imports() {
308
267
  const imports = {};
309
268
  imports.wbg = {};
310
269
  imports.wbg.__wbg_maxx_a3b1e1c3299e47bf = function(arg0) {
311
- const ret = getObject(arg0).maxX;
270
+ const ret = arg0.maxX;
312
271
  return ret;
313
272
  };
314
273
  imports.wbg.__wbg_maxy_007b81ea99058122 = function(arg0) {
315
- const ret = getObject(arg0).maxY;
274
+ const ret = arg0.maxY;
316
275
  return ret;
317
276
  };
318
277
  imports.wbg.__wbg_minx_e03d57649d81fc8f = function(arg0) {
319
- const ret = getObject(arg0).minX;
278
+ const ret = arg0.minX;
320
279
  return ret;
321
280
  };
322
281
  imports.wbg.__wbg_miny_46aab5af597882a7 = function(arg0) {
323
- const ret = getObject(arg0).minY;
282
+ const ret = arg0.minY;
324
283
  return ret;
325
284
  };
326
285
  imports.wbg.__wbg_renderheight_d030fe5a23b4c32b = function(arg0) {
327
- const ret = getObject(arg0).renderHeight;
286
+ const ret = arg0.renderHeight;
328
287
  return ret;
329
288
  };
330
289
  imports.wbg.__wbg_renderwidth_8685762ee304f2a7 = function(arg0) {
331
- const ret = getObject(arg0).renderWidth;
290
+ const ret = arg0.renderWidth;
332
291
  return ret;
333
292
  };
334
293
  imports.wbg.__wbg_scale_d705e0de44ed2361 = function(arg0) {
335
- const ret = getObject(arg0).scale;
336
- return addHeapObject(ret);
294
+ const ret = arg0.scale;
295
+ return ret;
337
296
  };
338
297
  imports.wbg.__wbindgen_copy_to_typed_array = function(arg0, arg1, arg2) {
339
- new Uint8Array(getObject(arg2).buffer, getObject(arg2).byteOffset, getObject(arg2).byteLength).set(getArrayU8FromWasm0(arg0, arg1));
298
+ new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));
340
299
  };
341
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
342
- takeObject(arg0);
300
+ imports.wbg.__wbindgen_init_externref_table = function() {
301
+ const table = wasm.__wbindgen_export_0;
302
+ const offset = table.grow(4);
303
+ table.set(0, undefined);
304
+ table.set(offset + 0, undefined);
305
+ table.set(offset + 1, null);
306
+ table.set(offset + 2, true);
307
+ table.set(offset + 3, false);
308
+ ;
343
309
  };
344
310
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
345
- const obj = getObject(arg1);
311
+ const obj = arg1;
346
312
  const ret = typeof(obj) === 'string' ? obj : undefined;
347
313
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
348
314
  var len1 = WASM_VECTOR_LEN;