@uwdata/mosaic-plot 0.16.2 → 0.18.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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/src/index.d.ts +25 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/interactors/Highlight.d.ts +15 -0
- package/dist/src/interactors/Highlight.d.ts.map +1 -0
- package/dist/src/interactors/Interval1D.d.ts +32 -0
- package/dist/src/interactors/Interval1D.d.ts.map +1 -0
- package/dist/src/interactors/Interval2D.d.ts +33 -0
- package/dist/src/interactors/Interval2D.d.ts.map +1 -0
- package/dist/src/interactors/Nearest.d.ts +26 -0
- package/dist/src/interactors/Nearest.d.ts.map +1 -0
- package/dist/src/interactors/PanZoom.d.ts +34 -0
- package/dist/src/interactors/PanZoom.d.ts.map +1 -0
- package/dist/src/interactors/Region.d.ts +36 -0
- package/dist/src/interactors/Region.d.ts.map +1 -0
- package/dist/src/interactors/Toggle.d.ts +22 -0
- package/dist/src/interactors/Toggle.d.ts.map +1 -0
- package/dist/src/interactors/util/brush.d.ts +5 -0
- package/dist/src/interactors/util/brush.d.ts.map +1 -0
- package/dist/src/interactors/util/close-to.d.ts +2 -0
- package/dist/src/interactors/util/close-to.d.ts.map +1 -0
- package/dist/src/interactors/util/get-datum.d.ts +9 -0
- package/dist/src/interactors/util/get-datum.d.ts.map +1 -0
- package/dist/src/interactors/util/get-field.d.ts +6 -0
- package/dist/src/interactors/util/get-field.d.ts.map +1 -0
- package/dist/src/interactors/util/intersect.d.ts +12 -0
- package/dist/src/interactors/util/intersect.d.ts.map +1 -0
- package/dist/src/interactors/util/invert.d.ts +2 -0
- package/dist/src/interactors/util/invert.d.ts.map +1 -0
- package/dist/src/interactors/util/neq.d.ts +3 -0
- package/dist/src/interactors/util/neq.d.ts.map +1 -0
- package/dist/src/interactors/util/parse-path.d.ts +9 -0
- package/dist/src/interactors/util/parse-path.d.ts.map +1 -0
- package/dist/src/interactors/util/patchScreenCTM.d.ts +10 -0
- package/dist/src/interactors/util/patchScreenCTM.d.ts.map +1 -0
- package/dist/src/interactors/util/sanitize-styles.d.ts +2 -0
- package/dist/src/interactors/util/sanitize-styles.d.ts.map +1 -0
- package/dist/src/interactors/util/to-kebab-case.d.ts +2 -0
- package/dist/src/interactors/util/to-kebab-case.d.ts.map +1 -0
- package/dist/src/legend.d.ts +16 -0
- package/dist/src/legend.d.ts.map +1 -0
- package/dist/src/marks/ConnectedMark.d.ts +6 -0
- package/dist/src/marks/ConnectedMark.d.ts.map +1 -0
- package/dist/src/marks/ContourMark.d.ts +15 -0
- package/dist/src/marks/ContourMark.d.ts.map +1 -0
- package/dist/src/marks/DenseLineMark.d.ts +6 -0
- package/dist/src/marks/DenseLineMark.d.ts.map +1 -0
- package/dist/src/marks/Density1DMark.d.ts +34 -0
- package/dist/src/marks/Density1DMark.d.ts.map +1 -0
- package/dist/src/marks/Density2DMark.d.ts +13 -0
- package/dist/src/marks/Density2DMark.d.ts.map +1 -0
- package/dist/src/marks/ErrorBarMark.d.ts +11 -0
- package/dist/src/marks/ErrorBarMark.d.ts.map +1 -0
- package/dist/src/marks/GeoMark.d.ts +6 -0
- package/dist/src/marks/GeoMark.d.ts.map +1 -0
- package/dist/src/marks/Grid2DMark.d.ts +48 -0
- package/dist/src/marks/Grid2DMark.d.ts.map +1 -0
- package/dist/src/marks/HexbinMark.d.ts +8 -0
- package/dist/src/marks/HexbinMark.d.ts.map +1 -0
- package/dist/src/marks/Mark.d.ts +78 -0
- package/dist/src/marks/Mark.d.ts.map +1 -0
- package/dist/src/marks/RasterMark.d.ts +62 -0
- package/dist/src/marks/RasterMark.d.ts.map +1 -0
- package/dist/src/marks/RasterTileMark.d.ts +32 -0
- package/dist/src/marks/RasterTileMark.d.ts.map +1 -0
- package/dist/src/marks/RegressionMark.d.ts +52 -0
- package/dist/src/marks/RegressionMark.d.ts.map +1 -0
- package/dist/src/marks/util/bin-expr.d.ts +9 -0
- package/dist/src/marks/util/bin-expr.d.ts.map +1 -0
- package/dist/src/marks/util/channel-scale.d.ts +2 -0
- package/dist/src/marks/util/channel-scale.d.ts.map +1 -0
- package/dist/src/marks/util/density.d.ts +13 -0
- package/dist/src/marks/util/density.d.ts.map +1 -0
- package/dist/src/marks/util/extent.d.ts +12 -0
- package/dist/src/marks/util/extent.d.ts.map +1 -0
- package/dist/src/marks/util/grid.d.ts +62 -0
- package/dist/src/marks/util/grid.d.ts.map +1 -0
- package/dist/src/marks/util/handle-param.d.ts +8 -0
- package/dist/src/marks/util/handle-param.d.ts.map +1 -0
- package/dist/src/marks/util/is-color.d.ts +2 -0
- package/dist/src/marks/util/is-color.d.ts.map +1 -0
- package/dist/src/marks/util/is-constant-option.d.ts +2 -0
- package/dist/src/marks/util/is-constant-option.d.ts.map +1 -0
- package/dist/src/marks/util/is-symbol.d.ts +2 -0
- package/dist/src/marks/util/is-symbol.d.ts.map +1 -0
- package/dist/src/marks/util/permute.d.ts +3 -0
- package/dist/src/marks/util/permute.d.ts.map +1 -0
- package/dist/src/marks/util/raster.d.ts +7 -0
- package/dist/src/marks/util/raster.d.ts.map +1 -0
- package/dist/src/marks/util/stats.d.ts +44 -0
- package/dist/src/marks/util/stats.d.ts.map +1 -0
- package/dist/src/plot-attributes.d.ts +3 -0
- package/dist/src/plot-attributes.d.ts.map +1 -0
- package/dist/src/plot-renderer.d.ts +3 -0
- package/dist/src/plot-renderer.d.ts.map +1 -0
- package/dist/src/plot.d.ts +70 -0
- package/dist/src/plot.d.ts.map +1 -0
- package/dist/src/symbols.d.ts +4 -0
- package/dist/src/symbols.d.ts.map +1 -0
- package/dist/src/transforms/bin.d.ts +22 -0
- package/dist/src/transforms/bin.d.ts.map +1 -0
- package/package.json +13 -5
- package/src/interactors/Nearest.js +3 -1
- package/src/interactors/PanZoom.js +2 -1
- package/src/interactors/Toggle.js +2 -1
- package/src/marks/Density1DMark.js +2 -0
- package/src/marks/Density2DMark.js +1 -0
- package/src/marks/ErrorBarMark.js +1 -0
- package/src/marks/GeoMark.js +1 -0
- package/src/marks/Grid2DMark.js +1 -0
- package/src/marks/Mark.js +2 -1
- package/src/marks/RasterMark.js +1 -0
- package/src/marks/RasterTileMark.js +1 -0
- package/src/plot.js +3 -3
- package/dist/mosaic-plot.js +0 -34603
- package/dist/mosaic-plot.min.js +0 -60
- package/vitest.config.ts +0 -3
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
BSD 3-Clause License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2023, UW Interactive Data Lab
|
|
3
|
+
Copyright (c) 2023-2025, UW Interactive Data Lab
|
|
4
4
|
|
|
5
5
|
Redistribution and use in source and binary forms, with or without
|
|
6
6
|
modification, are permitted provided that the following conditions are met:
|
package/README.md
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
|
|
5
5
|
A Mosaic-powered grammar of graphics based on [Observable Plot](https://github.com/observablehq/plot). Mmarks (plot layers) serve as individual Mosaic clients. These marks can push data processing (binning, hex binning, regression) and optimizations (such as M4 for line/area charts) down to the database. This package also provides interactors for linked selection, filtering, and highlighting using Mosaic Params and Selections.
|
|
6
6
|
|
|
7
|
-
The `mosaic-plot` package is included as part of the [vgplot](https://github.com/uwdata/mosaic/tree/main/packages/vgplot) API.
|
|
7
|
+
The `mosaic-plot` package is included as part of the [vgplot](https://github.com/uwdata/mosaic/tree/main/packages/vgplot/vgplot) API.
|
|
8
8
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { Plot } from "./plot.js";
|
|
2
|
+
export { Mark } from "./marks/Mark.js";
|
|
3
|
+
export { ConnectedMark } from "./marks/ConnectedMark.js";
|
|
4
|
+
export { ContourMark } from "./marks/ContourMark.js";
|
|
5
|
+
export { DenseLineMark } from "./marks/DenseLineMark.js";
|
|
6
|
+
export { Density1DMark } from "./marks/Density1DMark.js";
|
|
7
|
+
export { Density2DMark } from "./marks/Density2DMark.js";
|
|
8
|
+
export { ErrorBarMark } from "./marks/ErrorBarMark.js";
|
|
9
|
+
export { GeoMark } from "./marks/GeoMark.js";
|
|
10
|
+
export { Grid2DMark } from "./marks/Grid2DMark.js";
|
|
11
|
+
export { HexbinMark } from "./marks/HexbinMark.js";
|
|
12
|
+
export { RasterTileMark } from "./marks/RasterTileMark.js";
|
|
13
|
+
export { RegressionMark } from "./marks/RegressionMark.js";
|
|
14
|
+
export { Highlight } from "./interactors/Highlight.js";
|
|
15
|
+
export { Interval1D } from "./interactors/Interval1D.js";
|
|
16
|
+
export { Interval2D } from "./interactors/Interval2D.js";
|
|
17
|
+
export { Nearest } from "./interactors/Nearest.js";
|
|
18
|
+
export { PanZoom } from "./interactors/PanZoom.js";
|
|
19
|
+
export { Region } from "./interactors/Region.js";
|
|
20
|
+
export { Toggle } from "./interactors/Toggle.js";
|
|
21
|
+
export { Legend } from "./legend.js";
|
|
22
|
+
export { bin } from "./transforms/bin.js";
|
|
23
|
+
export { Fixed, Transient, Transform } from "./symbols.js";
|
|
24
|
+
export { RasterMark, HeatmapMark } from "./marks/RasterMark.js";
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class Highlight {
|
|
2
|
+
constructor(mark: any, { selection, channels }: {
|
|
3
|
+
selection: any;
|
|
4
|
+
channels?: {};
|
|
5
|
+
});
|
|
6
|
+
mark: any;
|
|
7
|
+
selection: any;
|
|
8
|
+
channels: [string, any][] | (string | number)[][];
|
|
9
|
+
init(svg: any): Promise<void>;
|
|
10
|
+
svg: any;
|
|
11
|
+
values: any[];
|
|
12
|
+
nodes: any;
|
|
13
|
+
update(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Highlight.d.ts","sourceRoot":"","sources":["../../../src/interactors/Highlight.js"],"names":[],"mappings":"AAoCA;IACE;;;OASC;IALC,UAA+B;IAC/B,eAA0B;IAE1B,kDAAiD;IAInD,8BAeC;IAdC,SAAc;IACC,cAAgB;IAIjB,WAA2C;IAW3D,wBAgBC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Activatable} from '@uwdata/mosaic-core'
|
|
3
|
+
* @implements {Activatable}
|
|
4
|
+
*/
|
|
5
|
+
export class Interval1D implements Activatable {
|
|
6
|
+
constructor(mark: any, { channel, selection, field, pixelSize, peers, brush: style }: {
|
|
7
|
+
channel: any;
|
|
8
|
+
selection: any;
|
|
9
|
+
field?: any;
|
|
10
|
+
pixelSize?: number;
|
|
11
|
+
peers?: boolean;
|
|
12
|
+
brush: any;
|
|
13
|
+
});
|
|
14
|
+
mark: any;
|
|
15
|
+
channel: any;
|
|
16
|
+
pixelSize: number;
|
|
17
|
+
selection: any;
|
|
18
|
+
peers: boolean;
|
|
19
|
+
field: any;
|
|
20
|
+
style: {};
|
|
21
|
+
brush: any;
|
|
22
|
+
reset(): void;
|
|
23
|
+
value: any;
|
|
24
|
+
activate(): void;
|
|
25
|
+
publish(extent: any): void;
|
|
26
|
+
clause(value: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
27
|
+
init(svg: any, root: any): void;
|
|
28
|
+
scale: any;
|
|
29
|
+
g: any;
|
|
30
|
+
}
|
|
31
|
+
import type { Activatable } from '@uwdata/mosaic-core';
|
|
32
|
+
//# sourceMappingURL=Interval1D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Interval1D.d.ts","sourceRoot":"","sources":["../../../src/interactors/Interval1D.js"],"names":[],"mappings":"AAQA;;;GAGG;AACH;IACE;;;;;;;OAiBC;IATC,UAAgB;IAChB,aAAsB;IACtB,kBAA+B;IAC/B,eAA0B;IAC1B,eAAkB;IAClB,WAA6C;IAC7C,UAA2C;IAC3C,WAAkD;IAIpD,cAGC;IAFC,WAAsB;IAIxB,iBAEC;IAED,2BAYC;IAED,kEAQC;IAED,gCAsBC;IApBC,WAA+B;IAM/B,OAEgC;CAanC;iCA/E6B,qBAAqB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Activatable} from '@uwdata/mosaic-core'
|
|
3
|
+
* @implements {Activatable}
|
|
4
|
+
*/
|
|
5
|
+
export class Interval2D implements Activatable {
|
|
6
|
+
constructor(mark: any, { selection, xfield, yfield, pixelSize, peers, brush: style }: {
|
|
7
|
+
selection: any;
|
|
8
|
+
xfield: any;
|
|
9
|
+
yfield: any;
|
|
10
|
+
pixelSize?: number;
|
|
11
|
+
peers?: boolean;
|
|
12
|
+
brush: any;
|
|
13
|
+
});
|
|
14
|
+
mark: any;
|
|
15
|
+
pixelSize: number;
|
|
16
|
+
selection: any;
|
|
17
|
+
peers: boolean;
|
|
18
|
+
xfield: any;
|
|
19
|
+
yfield: any;
|
|
20
|
+
style: {};
|
|
21
|
+
brush: any;
|
|
22
|
+
reset(): void;
|
|
23
|
+
value: any[][];
|
|
24
|
+
activate(): void;
|
|
25
|
+
publish(extent: any): void;
|
|
26
|
+
clause(value: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
27
|
+
init(svg: any): void;
|
|
28
|
+
xscale: any;
|
|
29
|
+
yscale: any;
|
|
30
|
+
g: any;
|
|
31
|
+
}
|
|
32
|
+
import type { Activatable } from '@uwdata/mosaic-core';
|
|
33
|
+
//# sourceMappingURL=Interval2D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Interval2D.d.ts","sourceRoot":"","sources":["../../../src/interactors/Interval2D.js"],"names":[],"mappings":"AAQA;;;GAGG;AACH;IACE;;;;;;;OAiBC;IATC,UAAgB;IAChB,kBAA+B;IAC/B,eAA0B;IAC1B,eAAkB;IAClB,YAA2C;IAC3C,YAA2C;IAC3C,UAA2C;IAC3C,WAAoB;IAItB,cAGC;IAFC,eAAsB;IAIxB,iBAEC;IAED,2BAgBC;IAED,kEAQC;IAED,qBAyBC;IAvBgB,YAA4B;IAC5B,YAA4B;IAI3C,OAA4E;CAmB/E;iCAtF6B,qBAAqB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Activatable} from '@uwdata/mosaic-core'
|
|
3
|
+
* @implements {Activatable}
|
|
4
|
+
*/
|
|
5
|
+
export class Nearest implements Activatable {
|
|
6
|
+
constructor(mark: any, { selection, pointer, channels, fields, maxRadius }: {
|
|
7
|
+
selection: any;
|
|
8
|
+
pointer: any;
|
|
9
|
+
channels: any;
|
|
10
|
+
fields: any;
|
|
11
|
+
maxRadius?: number;
|
|
12
|
+
});
|
|
13
|
+
mark: any;
|
|
14
|
+
selection: any;
|
|
15
|
+
clients: Set<any>;
|
|
16
|
+
pointer: any;
|
|
17
|
+
channels: any;
|
|
18
|
+
fields: any;
|
|
19
|
+
maxRadius: number;
|
|
20
|
+
valueIndex: number;
|
|
21
|
+
clause(value: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
22
|
+
init(svg: any): void;
|
|
23
|
+
activate(): void;
|
|
24
|
+
}
|
|
25
|
+
import type { Activatable } from '@uwdata/mosaic-core';
|
|
26
|
+
//# sourceMappingURL=Nearest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Nearest.d.ts","sourceRoot":"","sources":["../../../src/interactors/Nearest.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH;IACE;;;;;;OAiBC;IAVC,UAAgB;IAChB,eAA0B;IAC1B,kBAAkC;IAClC,aAAsB;IACtB,cAEC;IACD,YAAmE;IACnE,kBAA0B;IAC1B,mBAAoB;IAGtB,kEAQC;IAED,qBA0CC;IAED,iBAGC;CACF;iCAjF6B,qBAAqB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Activatable} from '@uwdata/mosaic-core'
|
|
3
|
+
* @implements {Activatable}
|
|
4
|
+
*/
|
|
5
|
+
export class PanZoom implements Activatable {
|
|
6
|
+
constructor(mark: any, { x, y, xfield, yfield, zoom, panx, pany }: {
|
|
7
|
+
x?: Selection;
|
|
8
|
+
y?: Selection;
|
|
9
|
+
xfield: any;
|
|
10
|
+
yfield: any;
|
|
11
|
+
zoom?: boolean;
|
|
12
|
+
panx?: boolean;
|
|
13
|
+
pany?: boolean;
|
|
14
|
+
});
|
|
15
|
+
mark: any;
|
|
16
|
+
xsel: Selection;
|
|
17
|
+
ysel: Selection;
|
|
18
|
+
xfield: any;
|
|
19
|
+
yfield: any;
|
|
20
|
+
zoom: any;
|
|
21
|
+
panx: boolean;
|
|
22
|
+
pany: boolean;
|
|
23
|
+
publish(transform: any): void;
|
|
24
|
+
clause(value: any, field: any, scale: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
25
|
+
init(svg: any): void;
|
|
26
|
+
svg: any;
|
|
27
|
+
initialized: boolean;
|
|
28
|
+
xscale: any;
|
|
29
|
+
yscale: any;
|
|
30
|
+
activate(): void;
|
|
31
|
+
}
|
|
32
|
+
import type { Activatable } from '@uwdata/mosaic-core';
|
|
33
|
+
import { Selection } from '@uwdata/mosaic-core';
|
|
34
|
+
//# sourceMappingURL=PanZoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanZoom.d.ts","sourceRoot":"","sources":["../../../src/interactors/PanZoom.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH;IACE;;;;;;;;OA6BC;IApBC,UAAgB;IAChB,gBAAa;IACb,gBAAa;IACb,YAA2C;IAC3C,YAA2C;IAC3C,UAA+C;IAC/C,cAA6B;IAC7B,cAA6B;IAe/B,8BASC;IAED,0FAMC;IAED,qBAkCC;IAjCC,SAAc;IACqB,qBAAuB;IAI1D,YAA4B;IAC5B,YAA4B;IA6B9B,iBASC;CACF;iCApG6B,qBAAqB;0BAPT,qBAAqB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Activatable} from '@uwdata/mosaic-core'
|
|
3
|
+
* @implements {Activatable}
|
|
4
|
+
*/
|
|
5
|
+
export class Region implements Activatable {
|
|
6
|
+
constructor(mark: any, { channels, selection, peers, brush: style }: {
|
|
7
|
+
channels: any;
|
|
8
|
+
selection: any;
|
|
9
|
+
peers?: boolean;
|
|
10
|
+
brush?: {
|
|
11
|
+
fill: string;
|
|
12
|
+
stroke: string;
|
|
13
|
+
strokeDasharray: string;
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
mark: any;
|
|
17
|
+
selection: any;
|
|
18
|
+
peers: boolean;
|
|
19
|
+
style: {};
|
|
20
|
+
brush: any;
|
|
21
|
+
extent: any;
|
|
22
|
+
groups: any;
|
|
23
|
+
fields: any[];
|
|
24
|
+
as: any[];
|
|
25
|
+
reset(): void;
|
|
26
|
+
value: any[];
|
|
27
|
+
activate(): void;
|
|
28
|
+
clause(value: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
29
|
+
publish(extent: any): void;
|
|
30
|
+
init(svg: any): void;
|
|
31
|
+
svg: any;
|
|
32
|
+
group: any;
|
|
33
|
+
g: any;
|
|
34
|
+
}
|
|
35
|
+
import type { Activatable } from '@uwdata/mosaic-core';
|
|
36
|
+
//# sourceMappingURL=Region.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../src/interactors/Region.js"],"names":[],"mappings":"AAUA;;;GAGG;AACH;IACE;;;;;;;;;OAuBC;IAbC,UAAgB;IAChB,eAA0B;IAC1B,eAAkB;IAElB,UAA2C;IAC3C,WAAoB;IAEpB,YAAkB;IAClB,YAAkB;IAGlB,cAAoB;IACpB,UAAY;IAGd,cAIC;IAHC,aAAsB;IAKxB,iBAEC;IAED,kEAMC;IAED,2BAqBC;IAED,qBA6BC;IA3BC,SAAc;IAOd,WAA8D;IAG9D,OAKiC;CAapC;iCApG6B,qBAAqB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Activatable} from '@uwdata/mosaic-core'
|
|
3
|
+
* @implements {Activatable}
|
|
4
|
+
*/
|
|
5
|
+
export class Toggle implements Activatable {
|
|
6
|
+
/**
|
|
7
|
+
* @param {*} mark The mark to interact with.
|
|
8
|
+
* @param {*} options The interactor options.
|
|
9
|
+
*/
|
|
10
|
+
constructor(mark: any, { selection, channels, peers }: any);
|
|
11
|
+
mark: any;
|
|
12
|
+
value: any;
|
|
13
|
+
selection: any;
|
|
14
|
+
peers: any;
|
|
15
|
+
fields: any[];
|
|
16
|
+
as: any[];
|
|
17
|
+
clause(value: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
18
|
+
init(svg: any, selector: any, accessor: any): void;
|
|
19
|
+
activate(): void;
|
|
20
|
+
}
|
|
21
|
+
import type { Activatable } from '@uwdata/mosaic-core';
|
|
22
|
+
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/interactors/Toggle.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH;IACE;;;OAGG;IACH,kBAHW,GAAC,kCACD,GAAC,EA4BX;IArBC,UAAgB;IAChB,WAAiB;IACjB,eAA0B;IAC1B,WAAkB;IACH,cAAgB;IACpB,UAAY;IAkBzB,kEAMC;IAED,mDAkCC;IAED,iBAEC;CACF;iCAnF6B,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brush.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/brush.js"],"names":[],"mappings":"AAiCA,6BAEC;AAED,8BAEC;AAED,8BAEC;AAED,wFA+BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-to.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/close-to.js"],"names":[],"mappings":"AAEA,iDAMC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the bound datum value on a Plot-generated SVG element.
|
|
3
|
+
* Following D3, bound data is assigned to the `__data__` property.
|
|
4
|
+
* However, the target mark may be wrapped within a hyperlink `a` tag.
|
|
5
|
+
* @param {Element} el A DOM element.
|
|
6
|
+
* @returns {*} The bound datum.
|
|
7
|
+
*/
|
|
8
|
+
export function getDatum(el: Element): any;
|
|
9
|
+
//# sourceMappingURL=get-datum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-datum.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/get-datum.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,6BAHW,OAAO,GACL,GAAC,CASb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-field.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/get-field.js"],"names":[],"mappings":"AAeA,uDAEC;AAED;;;EAmBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return SVG elements that intersect the provided spatial extent.
|
|
3
|
+
* @param {SVGSVGElement} svg Parent SVG element to search within.
|
|
4
|
+
* @param {SVGElement} el SVG container element to search for points.
|
|
5
|
+
* @param {[[number, number], [number, number]]} extent Rectangular brush
|
|
6
|
+
* extent within which to select elements. The extent is represented as
|
|
7
|
+
* upper-left and bottom-right (x, y) coordinates.
|
|
8
|
+
* @returns {Element[]} A list of intersecting SVG elements.
|
|
9
|
+
*/
|
|
10
|
+
export function intersect(svg: SVGSVGElement, el: SVGElement, extent: [[number, number], [number, number]]): Element[];
|
|
11
|
+
export function intersectPath(l: any, t: any, r: any, b: any, el: any): boolean;
|
|
12
|
+
//# sourceMappingURL=intersect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intersect.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/intersect.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,+BAPW,aAAa,MACb,UAAU,UACV,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAGlC,OAAO,EAAE,CAuBrB;AAgGD,gFAwFC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invert.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/invert.js"],"names":[],"mappings":"AAAA,wEAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neq.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/neq.js"],"names":[],"mappings":"AAAA,6CAIC;AAED,6CAOC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse an SVG path into a list of drawing commands.
|
|
3
|
+
* @param {string} path The SVG path string to parse
|
|
4
|
+
* @returns {[string, ...number][]} A list of drawing commands.
|
|
5
|
+
* Each command has a single letter as the first entry. All subsequent
|
|
6
|
+
* entries are numeric parameter values.
|
|
7
|
+
*/
|
|
8
|
+
export function parsePath(path: string): [string, ...number][];
|
|
9
|
+
//# sourceMappingURL=parse-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-path.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/parse-path.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,gCALW,MAAM,GACJ,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CA0CjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Patch the getScreenCTM method to memoize the last non-null
|
|
3
|
+
* result seen. This will let the method continue to function
|
|
4
|
+
* even after the node is removed from the DOM.
|
|
5
|
+
*/
|
|
6
|
+
export function patchScreenCTM(): void;
|
|
7
|
+
export class patchScreenCTM {
|
|
8
|
+
getScreenCTM: () => any;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=patchScreenCTM.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchScreenCTM.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/patchScreenCTM.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,uCASC;;IAHC,wBAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize-styles.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/sanitize-styles.js"],"names":[],"mappings":"AAEA,gDAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-kebab-case.d.ts","sourceRoot":"","sources":["../../../../src/interactors/util/to-kebab-case.js"],"names":[],"mappings":"AAAA,6CAQC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class Legend {
|
|
2
|
+
constructor(channel: any, options: any);
|
|
3
|
+
channel: any;
|
|
4
|
+
options: any;
|
|
5
|
+
type: any;
|
|
6
|
+
handler: any;
|
|
7
|
+
selection: any;
|
|
8
|
+
field: any;
|
|
9
|
+
legend: any;
|
|
10
|
+
element: HTMLDivElement;
|
|
11
|
+
setPlot(plot: any): void;
|
|
12
|
+
plot: any;
|
|
13
|
+
init(svg: any): HTMLDivElement;
|
|
14
|
+
update(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=legend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../src/legend.js"],"names":[],"mappings":"AAQA;IACE,wCAaC;IAXC,aAAsB;IACtB,aAAmB;IACnB,UAAgB;IAChB,aAAmB;IACnB,eAAmB;IACnB,WAAkB;IAClB,YAAkB;IAElB,wBAA4C;IAK9C,yBAEC;IADC,UAAgB;IAGlB,+BAKC;IAED,eAcC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectedMark.d.ts","sourceRoot":"","sources":["../../../src/marks/ConnectedMark.js"],"names":[],"mappings":"AAKA;IACE,oDAKC;IADC,YAAc;CAkCjB;qBAzCoB,WAAW"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class ContourMark extends Grid2DMark {
|
|
2
|
+
constructor(source: any, options: any);
|
|
3
|
+
/** @type {number|number[]} */
|
|
4
|
+
thresholds: number | number[];
|
|
5
|
+
convolve(): this;
|
|
6
|
+
contours(): this;
|
|
7
|
+
contourData: any[];
|
|
8
|
+
plotSpecs(): {
|
|
9
|
+
type: any;
|
|
10
|
+
data: any[];
|
|
11
|
+
options: {};
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
import { Grid2DMark } from './Grid2DMark.js';
|
|
15
|
+
//# sourceMappingURL=ContourMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContourMark.d.ts","sourceRoot":"","sources":["../../../src/marks/ContourMark.js"],"names":[],"mappings":"AAMA;IACE,uCAcC;IALC,8BAA8B;IAC9B,YADW,MAAM,GAAC,MAAM,EAAE,CAIxB;IAGJ,iBAEC;IAED,iBAkDC;IAjBc,mBAA6C;IAmB5D;;;;QAgBC;CACF;2BA7F0B,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DenseLineMark.d.ts","sourceRoot":"","sources":["../../../src/marks/DenseLineMark.js"],"names":[],"mappings":"AAMA;IAKI,sBAAsB;IACtB,WADW,OAAO,CAGhB;CA+BL;2BAzC0B,iBAAiB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export class Density1DMark extends Mark {
|
|
2
|
+
constructor(type: any, source: any, options: any);
|
|
3
|
+
dim: string;
|
|
4
|
+
/** @type {number} */
|
|
5
|
+
bins: number;
|
|
6
|
+
/** @type {number} */
|
|
7
|
+
bandwidth: number;
|
|
8
|
+
/** @type {string | boolean} */
|
|
9
|
+
normalize: string | boolean;
|
|
10
|
+
/** @type {boolean} */
|
|
11
|
+
stack: boolean;
|
|
12
|
+
query(filter?: any[]): import("@uwdata/mosaic-sql").SelectQuery;
|
|
13
|
+
extent: any;
|
|
14
|
+
groupby: any[];
|
|
15
|
+
queryResult(data: any): this;
|
|
16
|
+
grids: {
|
|
17
|
+
numRows: number;
|
|
18
|
+
columns: {
|
|
19
|
+
[key: string]: Arrayish;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
convolve(): this;
|
|
23
|
+
plotSpecs(): {
|
|
24
|
+
type: any;
|
|
25
|
+
data: {
|
|
26
|
+
length: number;
|
|
27
|
+
};
|
|
28
|
+
options: {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
33
|
+
import { Mark } from './Mark.js';
|
|
34
|
+
//# sourceMappingURL=Density1DMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Density1DMark.d.ts","sourceRoot":"","sources":["../../../src/marks/Density1DMark.js"],"names":[],"mappings":"AAaA;IACE,kDAiCC;IAtBC,YAAc;IAEd,qBAAqB;IACrB,MADW,MAAM,CAGf;IAEF,qBAAqB;IACrB,WADW,MAAM,CAIf;IAEF,+BAA+B;IAC/B,WADW,MAAM,GAAG,OAAO,CAGzB;IAEF,sBAAsB;IACtB,OADW,OAAO,CAGhB;IASJ,gEAYC;IATgB,YAA6D;IAKlE,eAER;IAIJ,6BAKC;IAFC;;;;;MAAmE;IAIrE,iBAsCC;IAED;;;;;;;;QAaC;CACF;qBAzH8C,WAAW"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class Density2DMark extends Grid2DMark {
|
|
2
|
+
constructor(source: any, options: any);
|
|
3
|
+
convolve(): this;
|
|
4
|
+
plotSpecs(): {
|
|
5
|
+
type: any;
|
|
6
|
+
data: {
|
|
7
|
+
length: number;
|
|
8
|
+
};
|
|
9
|
+
options: {};
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
import { Grid2DMark } from './Grid2DMark.js';
|
|
13
|
+
//# sourceMappingURL=Density2DMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Density2DMark.d.ts","sourceRoot":"","sources":["../../../src/marks/Density2DMark.js"],"names":[],"mappings":"AAIA;IACE,uCASC;IAED,iBAgBC;IAED;;;;;;QAgBC;CACF;2BAlD0B,iBAAiB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class ErrorBarMark extends Mark {
|
|
2
|
+
constructor(type: any, source: any, options: any);
|
|
3
|
+
dim: string;
|
|
4
|
+
field: any;
|
|
5
|
+
/** @type {number} */
|
|
6
|
+
ci: number;
|
|
7
|
+
query(filter?: any[]): import("@uwdata/mosaic-sql").SelectQuery;
|
|
8
|
+
queryResult(data: any): this;
|
|
9
|
+
}
|
|
10
|
+
import { Mark } from './Mark.js';
|
|
11
|
+
//# sourceMappingURL=ErrorBarMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorBarMark.d.ts","sourceRoot":"","sources":["../../../src/marks/ErrorBarMark.js"],"names":[],"mappings":"AAMA;IACE,kDAYC;IARC,YAAc;IACd,WAAyC;IAGzC,qBAAqB;IACrB,IADW,MAAM,CAGf;IAGJ,gEAOC;IAED,6BAGC;CAgBF;qBA9C6C,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoMark.d.ts","sourceRoot":"","sources":["../../../src/marks/GeoMark.js"],"names":[],"mappings":"AAQA;IACE,mDAQC;IAED,6BAcC;CACF;qBAjCiC,WAAW"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const DENSITY: "density";
|
|
2
|
+
export class Grid2DMark extends Mark {
|
|
3
|
+
constructor(type: any, source: any, options: any);
|
|
4
|
+
densityMap: {};
|
|
5
|
+
/** @type {number} */
|
|
6
|
+
bandwidth: number;
|
|
7
|
+
/** @type {string} */
|
|
8
|
+
interpolate: string;
|
|
9
|
+
/** @type {number} */
|
|
10
|
+
pixelSize: number;
|
|
11
|
+
/** @type {number} */
|
|
12
|
+
pad: number;
|
|
13
|
+
/** @type {number|undefined} */
|
|
14
|
+
width: number | undefined;
|
|
15
|
+
/** @type {number|undefined} */
|
|
16
|
+
height: number | undefined;
|
|
17
|
+
query(filter?: any[]): import("@uwdata/mosaic-sql").SelectQuery;
|
|
18
|
+
extentX: any;
|
|
19
|
+
extentY: any;
|
|
20
|
+
bins: [number, number];
|
|
21
|
+
groupby: string[];
|
|
22
|
+
aggr: string[];
|
|
23
|
+
/**
|
|
24
|
+
* @returns {[number, number]} The bin dimensions.
|
|
25
|
+
*/
|
|
26
|
+
binDimensions(): [number, number];
|
|
27
|
+
queryResult(data: any): this;
|
|
28
|
+
grids0: {
|
|
29
|
+
numRows: number;
|
|
30
|
+
columns: {
|
|
31
|
+
[key: string]: Arrayish;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
convolve(): this;
|
|
35
|
+
grids: {
|
|
36
|
+
numRows: number;
|
|
37
|
+
columns: {
|
|
38
|
+
[key: string]: Arrayish;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
numRows: number;
|
|
42
|
+
columns: {
|
|
43
|
+
[x: string]: import("./util/grid.js").Arrayish | Uint8Array<ArrayBuffer> | Int8Array<ArrayBuffer> | Uint8ClampedArray<ArrayBuffer> | Int16Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Int32Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Float32Array<ArrayBuffer> | Float64Array<ArrayBuffer>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
import { Mark } from './Mark.js';
|
|
48
|
+
//# sourceMappingURL=Grid2DMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid2DMark.d.ts","sourceRoot":"","sources":["../../../src/marks/Grid2DMark.js"],"names":[],"mappings":"AAYA,sBAAuB,SAAS,CAAC;AAEjC;IACE,kDA6CC;IAhCC,eAA4B;IAE5B,qBAAqB;IACrB,WADW,MAAM,CAIf;IAEF,qBAAqB;IACrB,aADW,MAAM,CAGf;IAEF,qBAAqB;IACrB,WADW,MAAM,CAGf;IAEF,qBAAqB;IACrB,KADW,MAAM,CAGf;IAEF,+BAA+B;IAC/B,OADW,MAAM,GAAC,SAAS,CAGzB;IAEF,+BAA+B;IAC/B,QADW,MAAM,GAAC,SAAS,CAGzB;IAoBJ,gEAiEC;IA/DkB,aAAoC;IACpC,aAAoC;IACpC,uBAAgC;IAejC,SADL,MAAM,EAAE,CACc;IAoBpB,eAAgC;IA4B/C;;OAEG;IACH,iBAFa,CAAC,MAAM,EAAE,MAAM,CAAC,CAQ5B;IAED,6BAOC;IAFC;;;;;MAAmF;IAIrF,iBAqCC;IAjCC;;;;;;;;;;MAAmB;CAkCtB;qBAlMoB,WAAW"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class HexbinMark extends Mark {
|
|
2
|
+
constructor(source: any, options: any);
|
|
3
|
+
/** @type {number} */
|
|
4
|
+
binWidth: number;
|
|
5
|
+
query(filter?: any[]): import("@uwdata/mosaic-sql").SelectQuery;
|
|
6
|
+
}
|
|
7
|
+
import { Mark } from './Mark.js';
|
|
8
|
+
//# sourceMappingURL=HexbinMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HexbinMark.d.ts","sourceRoot":"","sources":["../../../src/marks/HexbinMark.js"],"names":[],"mappings":"AAMA;IACE,uCAQC;IAJC,qBAAqB;IACrB,UADW,MAAM,CAGf;IASJ,gEA8FC;CACF;qBAnHoB,WAAW"}
|