@uwdata/mosaic-plot 0.21.1 → 0.23.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.
|
@@ -40,7 +40,7 @@ export class Grid2DMark extends Mark {
|
|
|
40
40
|
} | {
|
|
41
41
|
numRows: number;
|
|
42
42
|
columns: {
|
|
43
|
-
[x: string]: import("./util/grid.js").Arrayish |
|
|
43
|
+
[x: string]: import("./util/grid.js").Arrayish | Int32Array<ArrayBuffer> | Uint8Array<ArrayBuffer> | Int8Array<ArrayBuffer> | Uint8ClampedArray<ArrayBuffer> | Int16Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Float32Array<ArrayBuffer> | Float64Array<ArrayBuffer>;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extent.d.ts","sourceRoot":"","sources":["../../../../src/marks/util/extent.js"],"names":[],"mappings":"AAQA,sGAgBC;AAED,qDAEC;AAED,qDAEC;AAED,
|
|
1
|
+
{"version":3,"file":"extent.d.ts","sourceRoot":"","sources":["../../../../src/marks/util/extent.js"],"names":[],"mappings":"AAQA,sGAgBC;AAED,qDAEC;AAED,qDAEC;AAED,sEAiBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uwdata/mosaic-plot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "A Mosaic-powered plotting framework based on Observable Plot.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data",
|
|
@@ -27,16 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"clean": "rimraf dist && mkdir dist",
|
|
30
|
-
"prebuild": "
|
|
30
|
+
"prebuild": "pnpm run clean",
|
|
31
31
|
"lint": "eslint src test",
|
|
32
32
|
"test": "vitest run",
|
|
33
|
-
"prepublishOnly": "
|
|
33
|
+
"prepublishOnly": "pnpm run test && pnpm run lint && tsc --build"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@observablehq/plot": "^0.6.17",
|
|
37
|
-
"@uwdata/
|
|
38
|
-
"@uwdata/mosaic-
|
|
37
|
+
"@uwdata/flechette": "^2.3.0",
|
|
38
|
+
"@uwdata/mosaic-core": "^0.23.0",
|
|
39
|
+
"@uwdata/mosaic-sql": "^0.23.0",
|
|
39
40
|
"d3": "^7.9.0"
|
|
40
41
|
},
|
|
41
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8d153a15b9b1c69130d5384ecd59aa634e3f90b3"
|
|
42
43
|
}
|
package/src/marks/util/extent.js
CHANGED
|
@@ -37,9 +37,10 @@ export function filteredExtent(filter, column) {
|
|
|
37
37
|
|
|
38
38
|
let lo;
|
|
39
39
|
let hi;
|
|
40
|
+
const field = `${column}`;
|
|
40
41
|
|
|
41
42
|
[filter].flat().forEach(p => walk(p, (node) => {
|
|
42
|
-
if (node instanceof BetweenOpNode && `${node.expr}` ===
|
|
43
|
+
if (node instanceof BetweenOpNode && `${node.expr}` === field) {
|
|
43
44
|
// @ts-ignore
|
|
44
45
|
const extent = (node.extent ?? []).map(v => v?.value ?? v);
|
|
45
46
|
if (lo == null || extent[0] < lo) lo = extent[0];
|