@uwdata/vgplot 0.8.0 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uwdata/vgplot",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "An API for interactive Mosaic-powered visualizations and dashboards.",
5
5
  "keywords": [
6
6
  "data",
@@ -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.8.0",
34
- "@uwdata/mosaic-inputs": "^0.8.0",
35
- "@uwdata/mosaic-plot": "^0.8.0",
36
- "@uwdata/mosaic-sql": "^0.8.0"
33
+ "@uwdata/mosaic-core": "^0.9.0",
34
+ "@uwdata/mosaic-inputs": "^0.9.0",
35
+ "@uwdata/mosaic-plot": "^0.9.0",
36
+ "@uwdata/mosaic-sql": "^0.9.0"
37
37
  },
38
- "gitHead": "a24b4c9f7dfa1c38c6af96ec17e075326c1af9b0"
38
+ "gitHead": "89bb9b0dfa747aed691eaeba35379525a6764c61"
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,
@@ -307,6 +308,7 @@ export {
307
308
  cell, cellX, cellY,
308
309
  rect, rectX, rectY,
309
310
  dot, dotX, dotY, circle, hexagon,
311
+ errorbarX, errorbarY,
310
312
  text, textX, textY,
311
313
  image,
312
314
  tickX, tickY,
@@ -330,11 +332,13 @@ export {
330
332
  intervalX,
331
333
  intervalY,
332
334
  intervalXY,
335
+ nearest,
333
336
  nearestX,
334
337
  nearestY,
335
338
  toggle,
336
339
  toggleX,
337
340
  toggleY,
341
+ toggleZ,
338
342
  toggleColor,
339
343
  pan,
340
344
  panX,
@@ -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, channel: 'x' });
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, channel: 'y' });
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);