@opendata-ai/openchart-vanilla 7.1.1 → 7.1.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": "7.1.1",
3
+ "version": "7.1.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": "7.1.1",
54
- "@opendata-ai/openchart-engine": "7.1.1",
53
+ "@opendata-ai/openchart-core": "7.1.2",
54
+ "@opendata-ai/openchart-engine": "7.1.2",
55
55
  "d3-force": "^3.0.0",
56
56
  "d3-quadtree": "^3.0.1"
57
57
  },
@@ -46,13 +46,13 @@ export function renderBrand(parent: SVGElement, layout: ChartLayout): void {
46
46
 
47
47
  // "try" in normal weight, "OpenData" in semibold, ".ai" in normal weight,
48
48
  // rendered as a single right-aligned text element with three tspans.
49
- // Use alphabetic baseline so mixed-size tspans share a common bottom line.
49
+ // Use hanging baseline to align top-edge with source/byline chrome text.
50
50
  const BRAND_LARGE = 16;
51
51
  const text = createSVGElement('text');
52
52
  setAttrs(text, {
53
53
  x: rightEdge,
54
- y: chromeY + BRAND_LARGE,
55
- 'dominant-baseline': 'alphabetic',
54
+ y: chromeY,
55
+ 'dominant-baseline': 'hanging',
56
56
  'font-family': layout.theme.fonts.family,
57
57
  'font-size': BRAND_FONT_SIZE,
58
58
  'text-anchor': 'end',