@opendata-ai/openchart-vanilla 6.19.0 → 6.19.2

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-vanilla",
3
- "version": "6.19.0",
3
+ "version": "6.19.2",
4
4
  "description": "Vanilla JS renderer for openchart: SVG charts, HTML tables, force-directed graphs",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@floating-ui/dom": "^1.7.6",
53
- "@opendata-ai/openchart-core": "6.19.0",
54
- "@opendata-ai/openchart-engine": "6.19.0",
53
+ "@opendata-ai/openchart-core": "6.19.2",
54
+ "@opendata-ai/openchart-engine": "6.19.2",
55
55
  "d3-force": "^3.0.0",
56
56
  "d3-quadtree": "^3.0.1"
57
57
  },
@@ -85,7 +85,7 @@ function stampAnimationAttrs(
85
85
  function wrapText(text: string, fontSize: number, fontWeight: number, maxWidth: number): string[] {
86
86
  if (maxWidth <= 0) return [text];
87
87
 
88
- const AVG_CHAR_WIDTH = 0.55;
88
+ const AVG_CHAR_WIDTH = 0.57;
89
89
  const WEIGHT_FACTORS: Record<number, number> = {
90
90
  100: 0.9,
91
91
  200: 0.92,
@@ -178,7 +178,7 @@ function wrapText(
178
178
  }
179
179
 
180
180
  // Heuristic character width matching text-measure.ts
181
- const AVG_CHAR_WIDTH = 0.55;
181
+ const AVG_CHAR_WIDTH = 0.57;
182
182
  const WEIGHT_FACTORS: Record<number, number> = {
183
183
  100: 0.9,
184
184
  200: 0.92,