@opendata-ai/openchart-vanilla 8.2.2 → 8.3.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.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ChartLayout, ChartSpec, CompileOptions, TableLayout, TableSpec, VizSpec } from '@opendata-ai/openchart-engine';
2
2
  import { BarListSpec, BarListLayout, ThemeConfig, DarkMode, ChartLayout, ChartSpec, LayerSpec, AnimationEase, GraphSpec, TooltipContent, GeoMapSpec, GeoMapLayout, RectMark, Mark, BarTableCell, CategoryTableCell, TableCell, FlagTableCell, HeatmapTableCell, ImageTableCell, SparklineTableCell, TextTableCell, SankeySpec, SankeyLayout, TableSpec, SortState, TableLayout, TileMapSpec, TileMapLayout, ResolvedYouDrawIt } from '@opendata-ai/openchart-core';
3
- import { J as JPGExportOptions, S as SVGExportOptions, C as Camera } from './mount-Djb1VvKO.js';
4
- export { a as ChartInstance, E as ExportOptions, M as MountOptions, P as PNGExportOptions, U as UpdateOptions, c as createChart, e as exportCSV, b as exportJPG, d as exportPNG, f as exportSVG, g as exportSVGWithFonts } from './mount-Djb1VvKO.js';
3
+ import { J as JPGExportOptions, S as SVGExportOptions, C as Camera } from './mount-Bs8nFSf1.js';
4
+ export { a as ChartInstance, E as ExportOptions, M as MountOptions, P as PNGExportOptions, U as UpdateOptions, c as createChart, e as exportCSV, b as exportJPG, d as exportPNG, f as exportSVG, g as exportSVGWithFonts } from './mount-Bs8nFSf1.js';
5
5
  import { Placement } from '@floating-ui/dom';
6
6
  import './export-gif.js';
7
7
 
@@ -253,7 +253,7 @@ interface GraphMountOptions {
253
253
  */
254
254
  onWarn?: (message: string) => void;
255
255
  responsive?: boolean;
256
- /** Show the tryOpenData.ai watermark. Defaults to true. */
256
+ /** Show the OpenData watermark. Defaults to true. */
257
257
  watermark?: boolean;
258
258
  /** Show the built-in tooltip; pass an object for a custom formatter. Defaults to true. */
259
259
  tooltip?: boolean | {
@@ -402,7 +402,7 @@ interface GeoMapMountOptions {
402
402
  darkMode?: DarkMode;
403
403
  /** Enable responsive resizing. Defaults to true. */
404
404
  responsive?: boolean;
405
- /** Show the tryOpenData.ai watermark. Defaults to true. */
405
+ /** Show the OpenData watermark. Defaults to true. */
406
406
  watermark?: boolean;
407
407
  /** Show tooltips on hover. Defaults to true. */
408
408
  tooltip?: boolean;
@@ -541,7 +541,7 @@ interface SankeyMountOptions {
541
541
  darkMode?: DarkMode;
542
542
  /** Enable responsive resizing. Defaults to true. */
543
543
  responsive?: boolean;
544
- /** Show the tryOpenData.ai watermark. Defaults to true. */
544
+ /** Show the OpenData watermark. Defaults to true. */
545
545
  watermark?: boolean;
546
546
  /** Show tooltips on hover. Defaults to true. */
547
547
  tooltip?: boolean;
@@ -640,7 +640,7 @@ interface TableMountOptions {
640
640
  theme?: ThemeConfig;
641
641
  darkMode?: DarkMode;
642
642
  responsive?: boolean;
643
- /** Show the tryOpenData.ai watermark. Defaults to true. */
643
+ /** Show the OpenData watermark. Defaults to true. */
644
644
  watermark?: boolean;
645
645
  onRowClick?: (row: Record<string, unknown>) => void;
646
646
  onStateChange?: (state: TableState) => void;
@@ -732,7 +732,7 @@ interface TileMapMountOptions {
732
732
  darkMode?: DarkMode;
733
733
  /** Enable responsive resizing. Defaults to true. */
734
734
  responsive?: boolean;
735
- /** Show the tryOpenData.ai watermark. Defaults to true. */
735
+ /** Show the OpenData watermark. Defaults to true. */
736
736
  watermark?: boolean;
737
737
  /** Show tooltips on hover. Defaults to true. */
738
738
  tooltip?: boolean;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-DCODCLWI.js";
7
7
  import {
8
8
  renderTileMapSVG
9
- } from "./chunk-ZKASH7AX.js";
9
+ } from "./chunk-737VNBU6.js";
10
10
  import {
11
11
  AnimationScheduler,
12
12
  CANVAS_DEFAULT_UPDATE_MAX_MARKS,
@@ -31,7 +31,7 @@ import {
31
31
  scheduleFontReload,
32
32
  setupAnimationCleanup,
33
33
  setupTableAnimationCleanup
34
- } from "./chunk-BKN4R3J6.js";
34
+ } from "./chunk-PEIX32S3.js";
35
35
  import {
36
36
  embedFonts,
37
37
  ensureSVGDimensions,
@@ -49,7 +49,7 @@ import {
49
49
  registerMarkRenderer,
50
50
  renderChartSVG,
51
51
  stampAnimationVars
52
- } from "./chunk-2CEKMIJH.js";
52
+ } from "./chunk-P32LUJFK.js";
53
53
  import {
54
54
  injectThemeStyleBlock
55
55
  } from "./chunk-RM5XS6NR.js";
@@ -118,18 +118,8 @@ function renderWatermark(parent, layout) {
118
118
  "fill-opacity": 0.55
119
119
  });
120
120
  text.style.setProperty("fill", fill);
121
- const trySpan = createSVGElement("tspan");
122
- setAttrs(trySpan, { "font-weight": 500 });
123
- trySpan.textContent = "try";
124
- const openDataSpan = createSVGElement("tspan");
125
- setAttrs(openDataSpan, { "font-weight": 600, "font-size": 16 });
126
- openDataSpan.textContent = "OpenData";
127
- const aiSpan = createSVGElement("tspan");
128
- setAttrs(aiSpan, { "font-weight": 500 });
129
- aiSpan.textContent = ".ai";
130
- text.appendChild(trySpan);
131
- text.appendChild(openDataSpan);
132
- text.appendChild(aiSpan);
121
+ setAttrs(text, { "font-weight": 600, "font-size": 16 });
122
+ text.textContent = "OpenData";
133
123
  a.appendChild(text);
134
124
  parent.appendChild(a);
135
125
  }
@@ -1136,7 +1126,7 @@ var GraphCanvasRenderer = class {
1136
1126
  ctx.globalAlpha = 0.55;
1137
1127
  ctx.textAlign = "right";
1138
1128
  ctx.textBaseline = "alphabetic";
1139
- ctx.fillText("tryOpenData.ai", x, y);
1129
+ ctx.fillText("OpenData", x, y);
1140
1130
  ctx.restore();
1141
1131
  }
1142
1132
  // -------------------------------------------------------------------------
@@ -5538,7 +5528,7 @@ function renderTable(layout, container, opts) {
5538
5528
  brandLink.target = "_blank";
5539
5529
  brandLink.rel = "noopener";
5540
5530
  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"};`;
5541
- brandLink.textContent = "tryOpenData.ai";
5531
+ brandLink.textContent = "OpenData";
5542
5532
  brand.appendChild(brandLink);
5543
5533
  footerRow.appendChild(brand);
5544
5534
  }