@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.
- package/dist/26b23c7580ea3345d644.wasm +0 -0
- package/dist/744.bundle.cjs +2 -0
- package/dist/744.bundle.cjs.map +1 -0
- package/dist/744.bundle.esm.js +2 -0
- package/dist/744.bundle.esm.js.map +1 -0
- package/dist/bundle.cjs +2 -0
- package/dist/bundle.cjs.map +1 -0
- package/dist/bundle.esm.js +2 -0
- package/dist/bundle.esm.js.map +1 -0
- package/package.json +29 -7
- package/src/components/{graph_body.js → graph_body.jsx} +5 -5
- package/src/components/{options.js → options.jsx} +2 -2
- package/src/components/{percentile_button.js → percentile_button.jsx} +1 -1
- package/src/components/{range_graph.js → range_graph.jsx} +1 -1
- package/src/components/{range_selection.js → range_selection.jsx} +3 -3
- package/src/components/{range_selection_button.js → range_selection_button.jsx} +1 -1
- package/src/components/{series_key.js → series_key.jsx} +2 -2
- package/src/components/{series_key_item.js → series_key_item.jsx} +1 -1
- package/src/{grapher.js → grapher.jsx} +8 -8
- package/src/index.d.ts +66 -0
- package/src/index.js +6 -0
- package/src/index.mjs +5 -0
- package/src/{multigrapher.js → multigrapher.jsx} +1 -1
- package/src/rust/Cargo.lock +1 -1
- package/src/rust/pkg/index.js +33 -67
- package/src/rust/pkg/index_bg.js +305 -0
- package/src/rust/pkg/index_bg.wasm +0 -0
- package/src/state/state_controller.js +1 -1
- package/.eslintrc.js +0 -85
- package/0b7f5873de77fe339ee0.wasm +0 -0
- package/744.bundle.js +0 -2
- package/744.bundle.js.map +0 -1
- package/816.bundle.js +0 -2
- package/816.bundle.js.map +0 -1
- package/bundle.js +0 -2
- package/bundle.js.map +0 -1
- package/test/setup.js +0 -15
- package/test/space_conversions/data_space_to_selected_space.test.js +0 -434
- package/webpack.dev.config.js +0 -110
- package/webpack.prod.config.js +0 -61
- package/webpack.test.config.js +0 -59
- /package/src/components/{annotations.js → annotations.jsx} +0 -0
- /package/src/components/{context_menu.js → context_menu.jsx} +0 -0
- /package/src/components/{draggable_points.js → draggable_points.jsx} +0 -0
- /package/src/components/{graph_title.js → graph_title.jsx} +0 -0
- /package/src/components/{range_selection_button_base.js → range_selection_button_base.jsx} +0 -0
- /package/src/components/{series_key_axis_container.js → series_key_axis_container.jsx} +0 -0
- /package/src/components/{sidebar.js → sidebar.jsx} +0 -0
- /package/src/components/{tooltip.js → tooltip.jsx} +0 -0
- /package/src/components/{vertical_lines.js → vertical_lines.jsx} +0 -0
- /package/src/components/{x_axis.js → x_axis.jsx} +0 -0
- /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.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "Graphing library",
|
|
5
|
-
"main": "
|
|
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.
|
|
11
|
-
"build": "rm -f *.wasm && webpack --config webpack.prod.config.
|
|
12
|
-
"analyze-size": "webpack --config webpack.prod.config.
|
|
13
|
-
"test": "mocha-webpack --webpack-config webpack.test.config.
|
|
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.
|
|
18
|
-
import DraggablePoints from './draggable_points.
|
|
19
|
-
import VerticalLines from './vertical_lines.
|
|
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
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Grapher from './grapher.
|
|
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';
|
package/src/rust/Cargo.lock
CHANGED
|
@@ -145,7 +145,7 @@ dependencies = [
|
|
|
145
145
|
|
|
146
146
|
[[package]]
|
|
147
147
|
name = "unicode-ident"
|
|
148
|
-
version = "1.0.
|
|
148
|
+
version = "1.0.20"
|
|
149
149
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
150
|
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
|
151
151
|
|
package/src/rust/pkg/index.js
CHANGED
|
@@ -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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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,
|
|
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 =
|
|
270
|
+
const ret = arg0.maxX;
|
|
312
271
|
return ret;
|
|
313
272
|
};
|
|
314
273
|
imports.wbg.__wbg_maxy_007b81ea99058122 = function(arg0) {
|
|
315
|
-
const ret =
|
|
274
|
+
const ret = arg0.maxY;
|
|
316
275
|
return ret;
|
|
317
276
|
};
|
|
318
277
|
imports.wbg.__wbg_minx_e03d57649d81fc8f = function(arg0) {
|
|
319
|
-
const ret =
|
|
278
|
+
const ret = arg0.minX;
|
|
320
279
|
return ret;
|
|
321
280
|
};
|
|
322
281
|
imports.wbg.__wbg_miny_46aab5af597882a7 = function(arg0) {
|
|
323
|
-
const ret =
|
|
282
|
+
const ret = arg0.minY;
|
|
324
283
|
return ret;
|
|
325
284
|
};
|
|
326
285
|
imports.wbg.__wbg_renderheight_d030fe5a23b4c32b = function(arg0) {
|
|
327
|
-
const ret =
|
|
286
|
+
const ret = arg0.renderHeight;
|
|
328
287
|
return ret;
|
|
329
288
|
};
|
|
330
289
|
imports.wbg.__wbg_renderwidth_8685762ee304f2a7 = function(arg0) {
|
|
331
|
-
const ret =
|
|
290
|
+
const ret = arg0.renderWidth;
|
|
332
291
|
return ret;
|
|
333
292
|
};
|
|
334
293
|
imports.wbg.__wbg_scale_d705e0de44ed2361 = function(arg0) {
|
|
335
|
-
const ret =
|
|
336
|
-
return
|
|
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(
|
|
298
|
+
new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));
|
|
340
299
|
};
|
|
341
|
-
imports.wbg.
|
|
342
|
-
|
|
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 =
|
|
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;
|