@uwdata/vgplot 0.8.0 → 0.10.0
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/vgplot.js +3422 -1783
- package/dist/vgplot.min.js +14 -14
- package/package.json +7 -7
- package/src/api.js +5 -0
- package/src/plot/attributes.js +1 -0
- package/src/plot/interactors.js +10 -2
- package/src/plot/marks.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uwdata/vgplot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "An API for interactive Mosaic-powered visualizations and dashboards.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"mosaic"
|
|
13
13
|
],
|
|
14
14
|
"license": "BSD-3-Clause",
|
|
15
|
-
"author": "Jeffrey Heer (
|
|
15
|
+
"author": "Jeffrey Heer (https://idl.uw.edu)",
|
|
16
16
|
"type": "module",
|
|
17
17
|
"main": "src/index.js",
|
|
18
18
|
"module": "src/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"prepublishOnly": "npm run test && npm run lint && npm run build"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@uwdata/mosaic-core": "^0.
|
|
34
|
-
"@uwdata/mosaic-inputs": "^0.
|
|
35
|
-
"@uwdata/mosaic-plot": "^0.
|
|
36
|
-
"@uwdata/mosaic-sql": "^0.
|
|
33
|
+
"@uwdata/mosaic-core": "^0.10.0",
|
|
34
|
+
"@uwdata/mosaic-inputs": "^0.10.0",
|
|
35
|
+
"@uwdata/mosaic-plot": "^0.10.0",
|
|
36
|
+
"@uwdata/mosaic-sql": "^0.10.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "94fc4f0d4efc622001f6afd6714d1e9dda745be2"
|
|
39
39
|
}
|
package/src/api.js
CHANGED
|
@@ -24,6 +24,7 @@ export {
|
|
|
24
24
|
avg,
|
|
25
25
|
count,
|
|
26
26
|
corr,
|
|
27
|
+
covariance,
|
|
27
28
|
covarPop,
|
|
28
29
|
entropy,
|
|
29
30
|
first,
|
|
@@ -268,6 +269,7 @@ export {
|
|
|
268
269
|
rRange,
|
|
269
270
|
rClamp,
|
|
270
271
|
rNice,
|
|
272
|
+
rLabel,
|
|
271
273
|
rPercent,
|
|
272
274
|
rZero,
|
|
273
275
|
rBase,
|
|
@@ -307,6 +309,7 @@ export {
|
|
|
307
309
|
cell, cellX, cellY,
|
|
308
310
|
rect, rectX, rectY,
|
|
309
311
|
dot, dotX, dotY, circle, hexagon,
|
|
312
|
+
errorbarX, errorbarY,
|
|
310
313
|
text, textX, textY,
|
|
311
314
|
image,
|
|
312
315
|
tickX, tickY,
|
|
@@ -330,11 +333,13 @@ export {
|
|
|
330
333
|
intervalX,
|
|
331
334
|
intervalY,
|
|
332
335
|
intervalXY,
|
|
336
|
+
nearest,
|
|
333
337
|
nearestX,
|
|
334
338
|
nearestY,
|
|
335
339
|
toggle,
|
|
336
340
|
toggleX,
|
|
337
341
|
toggleY,
|
|
342
|
+
toggleZ,
|
|
338
343
|
toggleColor,
|
|
339
344
|
pan,
|
|
340
345
|
panX,
|
package/src/plot/attributes.js
CHANGED
|
@@ -257,6 +257,7 @@ export const rDomain = attrf('rDomain');
|
|
|
257
257
|
export const rRange = attrf('rRange');
|
|
258
258
|
export const rClamp = attrf('rClamp');
|
|
259
259
|
export const rNice = attrf('rNice');
|
|
260
|
+
export const rLabel = attrf('rLabel');
|
|
260
261
|
export const rPercent = attrf('rPercent');
|
|
261
262
|
export const rZero = attrf('rZero');
|
|
262
263
|
export const rBase = attrf('rBase');
|
package/src/plot/interactors.js
CHANGED
|
@@ -30,16 +30,24 @@ export function toggleY(options) {
|
|
|
30
30
|
return toggle({ ...options, channels: ['y'] });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
export function toggleZ(options) {
|
|
34
|
+
return toggle({ ...options, channels: ['z'] });
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
export function toggleColor(options) {
|
|
34
38
|
return toggle({ ...options, channels: ['color'] });
|
|
35
39
|
}
|
|
36
40
|
|
|
41
|
+
export function nearest({ as, ...rest }) {
|
|
42
|
+
return interactor(Nearest, { ...rest, selection: as, pointer: 'xy' });
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
export function nearestX({ as, ...rest }) {
|
|
38
|
-
return interactor(Nearest, { ...rest, selection: as,
|
|
46
|
+
return interactor(Nearest, { ...rest, selection: as, pointer: 'x' });
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
export function nearestY({ as, ...rest }) {
|
|
42
|
-
return interactor(Nearest, { ...rest, selection: as,
|
|
50
|
+
return interactor(Nearest, { ...rest, selection: as, pointer: 'y' });
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
export function intervalX({ as, ...rest }) {
|
package/src/plot/marks.js
CHANGED
|
@@ -5,12 +5,13 @@ import {
|
|
|
5
5
|
Density1DMark,
|
|
6
6
|
Density2DMark,
|
|
7
7
|
DenseLineMark,
|
|
8
|
+
ErrorBarMark,
|
|
8
9
|
GeoMark,
|
|
9
10
|
HeatmapMark,
|
|
10
11
|
HexbinMark,
|
|
11
12
|
RasterMark,
|
|
12
13
|
RasterTileMark,
|
|
13
|
-
RegressionMark
|
|
14
|
+
RegressionMark,
|
|
14
15
|
} from '@uwdata/mosaic-plot';
|
|
15
16
|
|
|
16
17
|
const decorators = new Set([
|
|
@@ -102,6 +103,9 @@ export const hexgrid = (...args) => mark('hexgrid', ...args);
|
|
|
102
103
|
|
|
103
104
|
export const regressionY = (...args) => implicitType(RegressionMark, ...args);
|
|
104
105
|
|
|
106
|
+
export const errorbarX = (...args) => explicitType(ErrorBarMark, 'ruleY', ...args);
|
|
107
|
+
export const errorbarY = (...args) => implicitType(ErrorBarMark, 'ruleX', ...args);
|
|
108
|
+
|
|
105
109
|
export const voronoi = (...args) => mark('voronoi', ...args);
|
|
106
110
|
export const voronoiMesh = (...args) => mark('voronoiMesh', ...args);
|
|
107
111
|
export const delaunayLink = (...args) => mark('delaunayLink', ...args);
|