@opendata-ai/openchart-engine 2.2.0 → 2.2.1
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": "@opendata-ai/openchart-engine",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Headless compiler for openchart: spec validation, data compilation, scales, and layout",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Riley Hilliard",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typecheck": "tsc --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@opendata-ai/openchart-core": "2.2.
|
|
48
|
+
"@opendata-ai/openchart-core": "2.2.1",
|
|
49
49
|
"d3-array": "^3.2.0",
|
|
50
50
|
"d3-format": "^3.1.2",
|
|
51
51
|
"d3-interpolate": "^3.0.0",
|
|
@@ -55,8 +55,8 @@ describe('resolveNodeVisuals', () => {
|
|
|
55
55
|
|
|
56
56
|
// Min value should get min radius (3px)
|
|
57
57
|
expect(minNode.radius).toBeCloseTo(3, 0);
|
|
58
|
-
// Max value should get max radius (
|
|
59
|
-
expect(maxNode.radius).toBeCloseTo(
|
|
58
|
+
// Max value should get max radius (12px)
|
|
59
|
+
expect(maxNode.radius).toBeCloseTo(12, 0);
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
it('uses default radius when no nodeSize encoding', () => {
|
package/src/graphs/encoding.ts
CHANGED
|
@@ -25,7 +25,7 @@ import type { CompiledGraphEdge, CompiledGraphNode } from './types';
|
|
|
25
25
|
|
|
26
26
|
const DEFAULT_NODE_RADIUS = 5;
|
|
27
27
|
const MIN_NODE_RADIUS = 3;
|
|
28
|
-
const MAX_NODE_RADIUS =
|
|
28
|
+
const MAX_NODE_RADIUS = 12;
|
|
29
29
|
|
|
30
30
|
const DEFAULT_EDGE_WIDTH = 1;
|
|
31
31
|
const MIN_EDGE_WIDTH = 0.5;
|