@opendata-ai/openchart-vanilla 6.6.0 → 6.7.0
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 +14 -10
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/__tests__/svg-renderer.test.ts +6 -5
- package/src/graph/canvas-renderer.ts +1 -1
- package/src/svg-renderer.ts +15 -10
- package/src/table-renderer.ts +1 -1
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("
|
|
393
|
+
ctx.fillText("tryOpenData.ai", x3, y3);
|
|
394
394
|
ctx.restore();
|
|
395
395
|
}
|
|
396
396
|
// -------------------------------------------------------------------------
|
|
@@ -4150,14 +4150,18 @@ function renderBrand(parent, layout) {
|
|
|
4150
4150
|
"fill-opacity": 0.55
|
|
4151
4151
|
});
|
|
4152
4152
|
text.style.setProperty("fill", fill);
|
|
4153
|
-
const
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
text.appendChild(
|
|
4157
|
-
const
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
text.appendChild(
|
|
4153
|
+
const trySpan = createSVGElement("tspan");
|
|
4154
|
+
trySpan.setAttribute("font-weight", "500");
|
|
4155
|
+
trySpan.textContent = "try";
|
|
4156
|
+
text.appendChild(trySpan);
|
|
4157
|
+
const openDataSpan = createSVGElement("tspan");
|
|
4158
|
+
openDataSpan.setAttribute("font-weight", "600");
|
|
4159
|
+
openDataSpan.textContent = "OpenData";
|
|
4160
|
+
text.appendChild(openDataSpan);
|
|
4161
|
+
const aiSpan = createSVGElement("tspan");
|
|
4162
|
+
aiSpan.setAttribute("font-weight", "500");
|
|
4163
|
+
aiSpan.textContent = ".ai";
|
|
4164
|
+
text.appendChild(aiSpan);
|
|
4161
4165
|
a2.appendChild(text);
|
|
4162
4166
|
parent.appendChild(a2);
|
|
4163
4167
|
}
|
|
@@ -7552,7 +7556,7 @@ function renderTable(layout, container, opts) {
|
|
|
7552
7556
|
brandLink.target = "_blank";
|
|
7553
7557
|
brandLink.rel = "noopener";
|
|
7554
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"};`;
|
|
7555
|
-
brandLink.textContent = "
|
|
7559
|
+
brandLink.textContent = "tryOpenData.ai";
|
|
7556
7560
|
brand.appendChild(brandLink);
|
|
7557
7561
|
wrapper.appendChild(brand);
|
|
7558
7562
|
if (opts?.animate && layout.animation?.enabled) {
|