@opendata-ai/openchart-vanilla 6.7.0 → 6.7.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/dist/index.js CHANGED
@@ -4139,11 +4139,12 @@ function renderBrand(parent, layout) {
4139
4139
  a2.setAttribute("target", "_blank");
4140
4140
  a2.setAttribute("rel", "noopener");
4141
4141
  a2.setAttribute("class", "oc-chrome-ref");
4142
+ const BRAND_LARGE = 16;
4142
4143
  const text = createSVGElement("text");
4143
4144
  setAttrs(text, {
4144
4145
  x: rightEdge,
4145
- y: chromeY,
4146
- "dominant-baseline": "hanging",
4146
+ y: chromeY + BRAND_LARGE,
4147
+ "dominant-baseline": "alphabetic",
4147
4148
  "font-family": layout.theme.fonts.family,
4148
4149
  "font-size": BRAND_FONT_SIZE2,
4149
4150
  "text-anchor": "end",
@@ -4156,6 +4157,7 @@ function renderBrand(parent, layout) {
4156
4157
  text.appendChild(trySpan);
4157
4158
  const openDataSpan = createSVGElement("tspan");
4158
4159
  openDataSpan.setAttribute("font-weight", "600");
4160
+ openDataSpan.setAttribute("font-size", String(BRAND_LARGE));
4159
4161
  openDataSpan.textContent = "OpenData";
4160
4162
  text.appendChild(openDataSpan);
4161
4163
  const aiSpan = createSVGElement("tspan");
@@ -6391,11 +6393,11 @@ function renderCell(cell) {
6391
6393
  import { compileSankey } from "@opendata-ai/openchart-engine";
6392
6394
 
6393
6395
  // src/sankey-renderer.ts
6394
- import { BRAND_MIN_WIDTH as BRAND_MIN_WIDTH3, estimateTextWidth as estimateTextWidth2 } from "@opendata-ai/openchart-core";
6396
+ import { BRAND_FONT_SIZE as BRAND_FONT_SIZE3, BRAND_MIN_WIDTH as BRAND_MIN_WIDTH3, estimateTextWidth as estimateTextWidth2 } from "@opendata-ai/openchart-core";
6395
6397
  import { clampStaggerDelay as clampStaggerDelay2 } from "@opendata-ai/openchart-engine";
6396
6398
  var SVG_NS2 = "http://www.w3.org/2000/svg";
6397
6399
  var XLINK_NS2 = "http://www.w3.org/1999/xlink";
6398
- var BRAND_URL2 = "https://opendata.ai";
6400
+ var BRAND_URL2 = "https://tryopendata.ai";
6399
6401
  var EASE_VAR_MAP2 = {
6400
6402
  smooth: "var(--oc-ease-smooth)",
6401
6403
  snappy: "var(--oc-ease-snappy)"
@@ -6542,25 +6544,30 @@ function renderBrand2(parent, layout) {
6542
6544
  a2.setAttribute("target", "_blank");
6543
6545
  a2.setAttribute("rel", "noopener");
6544
6546
  a2.setAttribute("class", "oc-chrome-ref");
6547
+ const BRAND_LARGE = 16;
6545
6548
  const text = createSVGElement2("text");
6546
6549
  setAttrs2(text, {
6547
6550
  x: rightEdge,
6548
- y: chromeY,
6549
- "dominant-baseline": "hanging",
6551
+ y: chromeY + BRAND_LARGE,
6552
+ "dominant-baseline": "alphabetic",
6550
6553
  "text-anchor": "end",
6551
6554
  "font-family": layout.theme.fonts.family,
6552
- "font-size": 20,
6555
+ "font-size": BRAND_FONT_SIZE3,
6553
6556
  "fill-opacity": 0.55
6554
6557
  });
6555
6558
  text.style.setProperty("fill", fill);
6556
- const openSpan = createSVGElement2("tspan");
6557
- setAttrs2(openSpan, { "font-weight": 500 });
6558
- openSpan.textContent = "Open";
6559
- const dataSpan = createSVGElement2("tspan");
6560
- setAttrs2(dataSpan, { "font-weight": 600 });
6561
- dataSpan.textContent = "Data";
6562
- text.appendChild(openSpan);
6563
- text.appendChild(dataSpan);
6559
+ const trySpan = createSVGElement2("tspan");
6560
+ setAttrs2(trySpan, { "font-weight": 500 });
6561
+ trySpan.textContent = "try";
6562
+ const openDataSpan = createSVGElement2("tspan");
6563
+ setAttrs2(openDataSpan, { "font-weight": 600, "font-size": BRAND_LARGE });
6564
+ openDataSpan.textContent = "OpenData";
6565
+ const aiSpan = createSVGElement2("tspan");
6566
+ setAttrs2(aiSpan, { "font-weight": 500 });
6567
+ aiSpan.textContent = ".ai";
6568
+ text.appendChild(trySpan);
6569
+ text.appendChild(openDataSpan);
6570
+ text.appendChild(aiSpan);
6564
6571
  a2.appendChild(text);
6565
6572
  parent.appendChild(a2);
6566
6573
  }
@@ -7301,7 +7308,7 @@ import { getBreakpoint } from "@opendata-ai/openchart-core";
7301
7308
  import { compileTable } from "@opendata-ai/openchart-engine";
7302
7309
 
7303
7310
  // src/table-renderer.ts
7304
- import { BRAND_FONT_SIZE as BRAND_FONT_SIZE3 } from "@opendata-ai/openchart-core";
7311
+ import { BRAND_FONT_SIZE as BRAND_FONT_SIZE4 } from "@opendata-ai/openchart-core";
7305
7312
  import { clampStaggerDelay as clampStaggerDelay3 } from "@opendata-ai/openchart-engine";
7306
7313
  var EASE_VAR_MAP3 = {
7307
7314
  smooth: "var(--oc-ease-smooth)",
@@ -7555,7 +7562,7 @@ function renderTable(layout, container, opts) {
7555
7562
  brandLink.href = BRAND_URL3;
7556
7563
  brandLink.target = "_blank";
7557
7564
  brandLink.rel = "noopener";
7558
- brandLink.style.cssText = `font-size: ${BRAND_FONT_SIZE3}px; font-weight: 600; color: ${brandColor}; opacity: 0.55; text-decoration: none; font-family: ${theme ? theme.fonts.family : "sans-serif"};`;
7565
+ brandLink.style.cssText = `font-size: ${BRAND_FONT_SIZE4}px; font-weight: 600; color: ${brandColor}; opacity: 0.55; text-decoration: none; font-family: ${theme ? theme.fonts.family : "sans-serif"};`;
7559
7566
  brandLink.textContent = "tryOpenData.ai";
7560
7567
  brand.appendChild(brandLink);
7561
7568
  wrapper.appendChild(brand);