@opendata-ai/openchart-vanilla 2.3.4 → 2.3.5
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 +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/table-renderer.ts +9 -2
package/dist/index.js
CHANGED
|
@@ -4448,6 +4448,8 @@ import { getBreakpoint } from "@opendata-ai/openchart-core";
|
|
|
4448
4448
|
import { compileTable } from "@opendata-ai/openchart-engine";
|
|
4449
4449
|
|
|
4450
4450
|
// src/table-renderer.ts
|
|
4451
|
+
var BRAND_URL2 = "https://tryopendata.ai";
|
|
4452
|
+
var BRAND_FONT_SIZE2 = 20;
|
|
4451
4453
|
function renderChromeBlock(layout, position) {
|
|
4452
4454
|
const chrome = layout.chrome;
|
|
4453
4455
|
if (position === "header") {
|
|
@@ -4673,10 +4675,10 @@ function renderTable(layout, container) {
|
|
|
4673
4675
|
brand.className = "viz-table-ref";
|
|
4674
4676
|
brand.style.cssText = "text-align: right; padding: 4px 8px;";
|
|
4675
4677
|
const brandLink = document.createElement("a");
|
|
4676
|
-
brandLink.href =
|
|
4678
|
+
brandLink.href = BRAND_URL2;
|
|
4677
4679
|
brandLink.target = "_blank";
|
|
4678
4680
|
brandLink.rel = "noopener";
|
|
4679
|
-
brandLink.style.cssText = `font-size:
|
|
4681
|
+
brandLink.style.cssText = `font-size: ${BRAND_FONT_SIZE2}px; font-weight: 600; color: ${brandColor}; opacity: 0.55; text-decoration: none; font-family: ${theme ? theme.fonts.family : "sans-serif"};`;
|
|
4680
4682
|
brandLink.textContent = "OpenData";
|
|
4681
4683
|
brand.appendChild(brandLink);
|
|
4682
4684
|
wrapper.appendChild(brand);
|