@opendata-ai/openchart-vanilla 6.6.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
@@ -390,7 +390,7 @@ var GraphCanvasRenderer = class {
390
390
  ctx.globalAlpha = 0.55;
391
391
  ctx.textAlign = "right";
392
392
  ctx.textBaseline = "alphabetic";
393
- ctx.fillText("OpenData", x3, y3);
393
+ ctx.fillText("tryOpenData.ai", x3, y3);
394
394
  ctx.restore();
395
395
  }
396
396
  // -------------------------------------------------------------------------
@@ -4139,25 +4139,31 @@ 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",
4150
4151
  "fill-opacity": 0.55
4151
4152
  });
4152
4153
  text.style.setProperty("fill", fill);
4153
- const openSpan = createSVGElement("tspan");
4154
- openSpan.setAttribute("font-weight", "500");
4155
- openSpan.textContent = "Open";
4156
- text.appendChild(openSpan);
4157
- const dataSpan = createSVGElement("tspan");
4158
- dataSpan.setAttribute("font-weight", "600");
4159
- dataSpan.textContent = "Data";
4160
- text.appendChild(dataSpan);
4154
+ const trySpan = createSVGElement("tspan");
4155
+ trySpan.setAttribute("font-weight", "500");
4156
+ trySpan.textContent = "try";
4157
+ text.appendChild(trySpan);
4158
+ const openDataSpan = createSVGElement("tspan");
4159
+ openDataSpan.setAttribute("font-weight", "600");
4160
+ openDataSpan.setAttribute("font-size", String(BRAND_LARGE));
4161
+ openDataSpan.textContent = "OpenData";
4162
+ text.appendChild(openDataSpan);
4163
+ const aiSpan = createSVGElement("tspan");
4164
+ aiSpan.setAttribute("font-weight", "500");
4165
+ aiSpan.textContent = ".ai";
4166
+ text.appendChild(aiSpan);
4161
4167
  a2.appendChild(text);
4162
4168
  parent.appendChild(a2);
4163
4169
  }
@@ -6387,11 +6393,11 @@ function renderCell(cell) {
6387
6393
  import { compileSankey } from "@opendata-ai/openchart-engine";
6388
6394
 
6389
6395
  // src/sankey-renderer.ts
6390
- 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";
6391
6397
  import { clampStaggerDelay as clampStaggerDelay2 } from "@opendata-ai/openchart-engine";
6392
6398
  var SVG_NS2 = "http://www.w3.org/2000/svg";
6393
6399
  var XLINK_NS2 = "http://www.w3.org/1999/xlink";
6394
- var BRAND_URL2 = "https://opendata.ai";
6400
+ var BRAND_URL2 = "https://tryopendata.ai";
6395
6401
  var EASE_VAR_MAP2 = {
6396
6402
  smooth: "var(--oc-ease-smooth)",
6397
6403
  snappy: "var(--oc-ease-snappy)"
@@ -6538,25 +6544,30 @@ function renderBrand2(parent, layout) {
6538
6544
  a2.setAttribute("target", "_blank");
6539
6545
  a2.setAttribute("rel", "noopener");
6540
6546
  a2.setAttribute("class", "oc-chrome-ref");
6547
+ const BRAND_LARGE = 16;
6541
6548
  const text = createSVGElement2("text");
6542
6549
  setAttrs2(text, {
6543
6550
  x: rightEdge,
6544
- y: chromeY,
6545
- "dominant-baseline": "hanging",
6551
+ y: chromeY + BRAND_LARGE,
6552
+ "dominant-baseline": "alphabetic",
6546
6553
  "text-anchor": "end",
6547
6554
  "font-family": layout.theme.fonts.family,
6548
- "font-size": 20,
6555
+ "font-size": BRAND_FONT_SIZE3,
6549
6556
  "fill-opacity": 0.55
6550
6557
  });
6551
6558
  text.style.setProperty("fill", fill);
6552
- const openSpan = createSVGElement2("tspan");
6553
- setAttrs2(openSpan, { "font-weight": 500 });
6554
- openSpan.textContent = "Open";
6555
- const dataSpan = createSVGElement2("tspan");
6556
- setAttrs2(dataSpan, { "font-weight": 600 });
6557
- dataSpan.textContent = "Data";
6558
- text.appendChild(openSpan);
6559
- 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);
6560
6571
  a2.appendChild(text);
6561
6572
  parent.appendChild(a2);
6562
6573
  }
@@ -7297,7 +7308,7 @@ import { getBreakpoint } from "@opendata-ai/openchart-core";
7297
7308
  import { compileTable } from "@opendata-ai/openchart-engine";
7298
7309
 
7299
7310
  // src/table-renderer.ts
7300
- 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";
7301
7312
  import { clampStaggerDelay as clampStaggerDelay3 } from "@opendata-ai/openchart-engine";
7302
7313
  var EASE_VAR_MAP3 = {
7303
7314
  smooth: "var(--oc-ease-smooth)",
@@ -7551,8 +7562,8 @@ function renderTable(layout, container, opts) {
7551
7562
  brandLink.href = BRAND_URL3;
7552
7563
  brandLink.target = "_blank";
7553
7564
  brandLink.rel = "noopener";
7554
- 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"};`;
7555
- brandLink.textContent = "OpenData";
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"};`;
7566
+ brandLink.textContent = "tryOpenData.ai";
7556
7567
  brand.appendChild(brandLink);
7557
7568
  wrapper.appendChild(brand);
7558
7569
  if (opts?.animate && layout.animation?.enabled) {