@vielzeug/prism 26.10.2 → 26.10.4
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/README.md +1 -1
- package/dist/_dev.cjs.map +1 -1
- package/dist/_dev.js.map +1 -1
- package/dist/_tappers.cjs +2 -0
- package/dist/_tappers.cjs.map +1 -0
- package/dist/_tappers.d.ts +10 -0
- package/dist/_tappers.d.ts.map +1 -0
- package/dist/_tappers.js +2 -0
- package/dist/_tappers.js.map +1 -0
- package/dist/animation/easing.cjs +1 -1
- package/dist/animation/easing.cjs.map +1 -1
- package/dist/animation/easing.d.ts +15 -1
- package/dist/animation/easing.d.ts.map +1 -1
- package/dist/animation/easing.js +1 -1
- package/dist/animation/easing.js.map +1 -1
- package/dist/animation/motion.cjs +1 -1
- package/dist/animation/motion.cjs.map +1 -1
- package/dist/animation/motion.d.ts +17 -2
- package/dist/animation/motion.d.ts.map +1 -1
- package/dist/animation/motion.js +1 -1
- package/dist/animation/motion.js.map +1 -1
- package/dist/animation/transition.cjs +1 -1
- package/dist/animation/transition.cjs.map +1 -1
- package/dist/animation/transition.d.ts +32 -3
- package/dist/animation/transition.d.ts.map +1 -1
- package/dist/animation/transition.js +1 -1
- package/dist/animation/transition.js.map +1 -1
- package/dist/charts/area/area-chart.cjs +1 -1
- package/dist/charts/area/area-chart.cjs.map +1 -1
- package/dist/charts/area/area-chart.d.ts.map +1 -1
- package/dist/charts/area/area-chart.js +1 -1
- package/dist/charts/area/area-chart.js.map +1 -1
- package/dist/charts/area/area-renderer.cjs +1 -1
- package/dist/charts/area/area-renderer.cjs.map +1 -1
- package/dist/charts/area/area-renderer.d.ts +2 -2
- package/dist/charts/area/area-renderer.d.ts.map +1 -1
- package/dist/charts/area/area-renderer.js +1 -1
- package/dist/charts/area/area-renderer.js.map +1 -1
- package/dist/charts/bar/bar-chart.cjs +1 -1
- package/dist/charts/bar/bar-chart.cjs.map +1 -1
- package/dist/charts/bar/bar-chart.d.ts.map +1 -1
- package/dist/charts/bar/bar-chart.js +1 -1
- package/dist/charts/bar/bar-chart.js.map +1 -1
- package/dist/charts/bar/bar-renderer.cjs +1 -1
- package/dist/charts/bar/bar-renderer.cjs.map +1 -1
- package/dist/charts/bar/bar-renderer.d.ts +2 -2
- package/dist/charts/bar/bar-renderer.d.ts.map +1 -1
- package/dist/charts/bar/bar-renderer.js +1 -1
- package/dist/charts/bar/bar-renderer.js.map +1 -1
- package/dist/charts/line/line-chart.cjs +1 -1
- package/dist/charts/line/line-chart.cjs.map +1 -1
- package/dist/charts/line/line-chart.d.ts.map +1 -1
- package/dist/charts/line/line-chart.js +1 -1
- package/dist/charts/line/line-chart.js.map +1 -1
- package/dist/charts/line/line-renderer.cjs +1 -1
- package/dist/charts/line/line-renderer.cjs.map +1 -1
- package/dist/charts/line/line-renderer.d.ts +4 -2
- package/dist/charts/line/line-renderer.d.ts.map +1 -1
- package/dist/charts/line/line-renderer.js +1 -1
- package/dist/charts/line/line-renderer.js.map +1 -1
- package/dist/charts/pie/pie-chart.cjs +1 -1
- package/dist/charts/pie/pie-chart.cjs.map +1 -1
- package/dist/charts/pie/pie-chart.d.ts.map +1 -1
- package/dist/charts/pie/pie-chart.js +1 -1
- package/dist/charts/pie/pie-chart.js.map +1 -1
- package/dist/charts/radar/radar-chart.cjs +1 -1
- package/dist/charts/radar/radar-chart.cjs.map +1 -1
- package/dist/charts/radar/radar-chart.d.ts.map +1 -1
- package/dist/charts/radar/radar-chart.js +1 -1
- package/dist/charts/radar/radar-chart.js.map +1 -1
- package/dist/charts/sparkline/sparkline.cjs +1 -1
- package/dist/charts/sparkline/sparkline.cjs.map +1 -1
- package/dist/charts/sparkline/sparkline.d.ts.map +1 -1
- package/dist/charts/sparkline/sparkline.js +1 -1
- package/dist/charts/sparkline/sparkline.js.map +1 -1
- package/dist/core/chart-scaffold.cjs +1 -1
- package/dist/core/chart-scaffold.cjs.map +1 -1
- package/dist/core/chart-scaffold.d.ts.map +1 -1
- package/dist/core/chart-scaffold.js +1 -1
- package/dist/core/chart-scaffold.js.map +1 -1
- package/dist/core/responsive.cjs +1 -1
- package/dist/core/responsive.cjs.map +1 -1
- package/dist/core/responsive.d.ts.map +1 -1
- package/dist/core/responsive.js +1 -1
- package/dist/core/responsive.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/interaction/crosshair.cjs +1 -1
- package/dist/interaction/crosshair.cjs.map +1 -1
- package/dist/interaction/crosshair.d.ts +7 -0
- package/dist/interaction/crosshair.d.ts.map +1 -1
- package/dist/interaction/crosshair.js +1 -1
- package/dist/interaction/crosshair.js.map +1 -1
- package/dist/interaction/series-interaction.cjs +1 -1
- package/dist/interaction/series-interaction.cjs.map +1 -1
- package/dist/interaction/series-interaction.d.ts +3 -1
- package/dist/interaction/series-interaction.d.ts.map +1 -1
- package/dist/interaction/series-interaction.js +1 -1
- package/dist/interaction/series-interaction.js.map +1 -1
- package/dist/interaction/tooltip.cjs +1 -1
- package/dist/interaction/tooltip.cjs.map +1 -1
- package/dist/interaction/tooltip.d.ts.map +1 -1
- package/dist/interaction/tooltip.js +1 -1
- package/dist/interaction/tooltip.js.map +1 -1
- package/dist/prism.cjs +1 -1
- package/dist/prism.cjs.map +1 -1
- package/dist/prism.iife.js +1 -1
- package/dist/prism.iife.js.map +1 -1
- package/dist/prism.js +1 -1
- package/dist/prism.js.map +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.ts +9 -4
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/prism.css +18 -4
- package/dist/types.d.ts +76 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -18
- package/dist/animation/index.d.ts +0 -6
- package/dist/animation/index.d.ts.map +0 -1
- package/dist/axes/index.d.ts +0 -3
- package/dist/axes/index.d.ts.map +0 -1
- package/dist/core/index.d.ts +0 -7
- package/dist/core/index.d.ts.map +0 -1
- package/dist/devtools/index.d.ts +0 -52
- package/dist/devtools/index.d.ts.map +0 -1
- package/dist/devtools.cjs +0 -2
- package/dist/devtools.cjs.map +0 -1
- package/dist/devtools.js +0 -2
- package/dist/devtools.js.map +0 -1
- package/dist/interaction/index.d.ts +0 -8
- package/dist/interaction/index.d.ts.map +0 -1
- package/dist/scales/index.d.ts +0 -4
- package/dist/scales/index.d.ts.map +0 -1
- package/dist/svg/index.d.ts +0 -5
- package/dist/svg/index.d.ts.map +0 -1
package/dist/theme/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
1
|
+
var e={axisColor:`--prism-axis-color`,fontFamily:`--prism-font-family`,gridColor:`--prism-grid-color`,gridOpacity:`--prism-grid-opacity`,textColor:`--prism-text-color`,textColorSecondary:`--prism-text-color-secondary`,tooltipBg:`--prism-tooltip-bg`,tooltipBorder:`--prism-tooltip-border`,tooltipColor:`--prism-tooltip-color`};function target(e){return e?.scope??document.documentElement}function setTheme(t,n){let r=target(n);if(t.colors)for(let e=0;e<8;e++){let n=t.colors[e];n?r.style.setProperty(`--prism-color-${e+1}`,n):r.style.removeProperty(`--prism-color-${e+1}`)}for(let[n,i]of Object.entries(e)){let e=t[n];e!==void 0&&r.style.setProperty(i,String(e))}}function resetTheme(t){let n=target(t);for(let e=1;e<=8;e++)n.style.removeProperty(`--prism-color-${e}`);for(let t of Object.values(e))n.style.removeProperty(t)}function seriesColor(e,t){return t??`var(--prism-color-${e%8+1})`}exports.resetTheme=resetTheme,exports.seriesColor=seriesColor,exports.setTheme=setTheme;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/theme/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/theme/index.ts"],"sourcesContent":["import type { PrismTheme } from '../types';\n\nconst MAX_THEME_COLORS = 8;\n\nexport function setTheme(theme: PrismTheme): void {\n const root =
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/theme/index.ts"],"sourcesContent":["import type { PrismTheme, ThemeScope } from '../types';\n\nconst MAX_THEME_COLORS = 8;\n\n// Every scalar PrismTheme key mapped to the CSS custom property it drives. setTheme/resetTheme\n// iterate this single table, so expanding the theme surface is one row here plus one field on\n// PrismTheme — the two can never drift apart. `colors` is handled separately: it fans out to\n// indexed slots that must all be cleared, not just overwritten.\nconst THEME_TOKENS = {\n axisColor: '--prism-axis-color',\n fontFamily: '--prism-font-family',\n gridColor: '--prism-grid-color',\n gridOpacity: '--prism-grid-opacity',\n textColor: '--prism-text-color',\n textColorSecondary: '--prism-text-color-secondary',\n tooltipBg: '--prism-tooltip-bg',\n tooltipBorder: '--prism-tooltip-border',\n tooltipColor: '--prism-tooltip-color',\n} as const satisfies Record<keyof Omit<PrismTheme, 'colors'>, string>;\n\nfunction target(options?: ThemeScope): HTMLElement {\n return options?.scope ?? document.documentElement;\n}\n\n/**\n * Apply theme tokens as CSS custom properties. Writes to `options.scope` when given, otherwise\n * to `document.documentElement`. A scoped call themes one subtree (charts render inside it, so\n * their `var(--prism-*)` lookups resolve against it) without touching `:root`.\n */\nexport function setTheme(theme: PrismTheme, options?: ThemeScope): void {\n const root = target(options);\n\n if (theme.colors) {\n // Clear (not just overwrite) every color slot a previous setTheme() may have used, so a\n // theme with fewer colors than the last one leaves no stale values on higher-index slots.\n for (let i = 0; i < MAX_THEME_COLORS; i++) {\n const color = theme.colors[i];\n\n if (color) {\n root.style.setProperty(`--prism-color-${i + 1}`, color);\n } else {\n root.style.removeProperty(`--prism-color-${i + 1}`);\n }\n }\n }\n\n for (const [key, property] of Object.entries(THEME_TOKENS)) {\n const value = theme[key as keyof typeof THEME_TOKENS];\n\n if (value !== undefined) root.style.setProperty(property, String(value));\n }\n}\n\n/** Clear every custom property `setTheme()` can set on `options.scope` (default `documentElement`), restoring prism's default theme from `theme.css`. */\nexport function resetTheme(options?: ThemeScope): void {\n const root = target(options);\n\n for (let i = 1; i <= MAX_THEME_COLORS; i++) root.style.removeProperty(`--prism-color-${i}`);\n\n for (const property of Object.values(THEME_TOKENS)) root.style.removeProperty(property);\n}\n\nexport function seriesColor(index: number, override?: string): string {\n return override ?? `var(--prism-color-${(index % MAX_THEME_COLORS) + 1})`;\n}\n"],"mappings":"AAEA,IAMM,EAAe,CACnB,UAAW,qBACX,WAAY,sBACZ,UAAW,qBACX,YAAa,uBACb,UAAW,qBACX,mBAAoB,+BACpB,UAAW,qBACX,cAAe,yBACf,aAAc,uBAChB,EAEA,SAAS,OAAO,EAAmC,CACjD,OAAO,GAAS,OAAS,SAAS,eACpC,CAOA,SAAgB,SAAS,EAAmB,EAA4B,CACtE,IAAM,EAAO,OAAO,CAAO,EAE3B,GAAI,EAAM,OAGR,IAAK,IAAI,EAAI,EAAG,EAAI,EAAkB,IAAK,CACzC,IAAM,EAAQ,EAAM,OAAO,GAEvB,EACF,EAAK,MAAM,YAAY,iBAAiB,EAAI,IAAK,CAAK,EAEtD,EAAK,MAAM,eAAe,iBAAiB,EAAI,GAAG,CAEtD,CAGF,IAAK,GAAM,CAAC,EAAK,KAAa,OAAO,QAAQ,CAAY,EAAG,CAC1D,IAAM,EAAQ,EAAM,GAEhB,IAAU,IAAA,IAAW,EAAK,MAAM,YAAY,EAAU,OAAO,CAAK,CAAC,CACzE,CACF,CAGA,SAAgB,WAAW,EAA4B,CACrD,IAAM,EAAO,OAAO,CAAO,EAE3B,IAAK,IAAI,EAAI,EAAG,GAAK,EAAkB,IAAK,EAAK,MAAM,eAAe,iBAAiB,GAAG,EAE1F,IAAK,IAAM,KAAY,OAAO,OAAO,CAAY,EAAG,EAAK,MAAM,eAAe,CAAQ,CACxF,CAEA,SAAgB,YAAY,EAAe,EAA2B,CACpE,OAAO,GAAY,qBAAsB,EAAQ,EAAoB,EAAE,EACzE"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import type { PrismTheme } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { PrismTheme, ThemeScope } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Apply theme tokens as CSS custom properties. Writes to `options.scope` when given, otherwise
|
|
4
|
+
* to `document.documentElement`. A scoped call themes one subtree (charts render inside it, so
|
|
5
|
+
* their `var(--prism-*)` lookups resolve against it) without touching `:root`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function setTheme(theme: PrismTheme, options?: ThemeScope): void;
|
|
8
|
+
/** Clear every custom property `setTheme()` can set on `options.scope` (default `documentElement`), restoring prism's default theme from `theme.css`. */
|
|
9
|
+
export declare function resetTheme(options?: ThemeScope): void;
|
|
5
10
|
export declare function seriesColor(index: number, override?: string): string;
|
|
6
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAwBvD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAsBtE;AAED,yJAAyJ;AACzJ,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAMrD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAEpE"}
|
package/dist/theme/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
1
|
+
var e={axisColor:`--prism-axis-color`,fontFamily:`--prism-font-family`,gridColor:`--prism-grid-color`,gridOpacity:`--prism-grid-opacity`,textColor:`--prism-text-color`,textColorSecondary:`--prism-text-color-secondary`,tooltipBg:`--prism-tooltip-bg`,tooltipBorder:`--prism-tooltip-border`,tooltipColor:`--prism-tooltip-color`};function target(e){return e?.scope??document.documentElement}function setTheme(t,n){let r=target(n);if(t.colors)for(let e=0;e<8;e++){let n=t.colors[e];n?r.style.setProperty(`--prism-color-${e+1}`,n):r.style.removeProperty(`--prism-color-${e+1}`)}for(let[n,i]of Object.entries(e)){let e=t[n];e!==void 0&&r.style.setProperty(i,String(e))}}function resetTheme(t){let n=target(t);for(let e=1;e<=8;e++)n.style.removeProperty(`--prism-color-${e}`);for(let t of Object.values(e))n.style.removeProperty(t)}function seriesColor(e,t){return t??`var(--prism-color-${e%8+1})`}export{resetTheme,seriesColor,setTheme};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/theme/index.ts"],"sourcesContent":["import type { PrismTheme } from '../types';\n\nconst MAX_THEME_COLORS = 8;\n\nexport function setTheme(theme: PrismTheme): void {\n const root =
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/theme/index.ts"],"sourcesContent":["import type { PrismTheme, ThemeScope } from '../types';\n\nconst MAX_THEME_COLORS = 8;\n\n// Every scalar PrismTheme key mapped to the CSS custom property it drives. setTheme/resetTheme\n// iterate this single table, so expanding the theme surface is one row here plus one field on\n// PrismTheme — the two can never drift apart. `colors` is handled separately: it fans out to\n// indexed slots that must all be cleared, not just overwritten.\nconst THEME_TOKENS = {\n axisColor: '--prism-axis-color',\n fontFamily: '--prism-font-family',\n gridColor: '--prism-grid-color',\n gridOpacity: '--prism-grid-opacity',\n textColor: '--prism-text-color',\n textColorSecondary: '--prism-text-color-secondary',\n tooltipBg: '--prism-tooltip-bg',\n tooltipBorder: '--prism-tooltip-border',\n tooltipColor: '--prism-tooltip-color',\n} as const satisfies Record<keyof Omit<PrismTheme, 'colors'>, string>;\n\nfunction target(options?: ThemeScope): HTMLElement {\n return options?.scope ?? document.documentElement;\n}\n\n/**\n * Apply theme tokens as CSS custom properties. Writes to `options.scope` when given, otherwise\n * to `document.documentElement`. A scoped call themes one subtree (charts render inside it, so\n * their `var(--prism-*)` lookups resolve against it) without touching `:root`.\n */\nexport function setTheme(theme: PrismTheme, options?: ThemeScope): void {\n const root = target(options);\n\n if (theme.colors) {\n // Clear (not just overwrite) every color slot a previous setTheme() may have used, so a\n // theme with fewer colors than the last one leaves no stale values on higher-index slots.\n for (let i = 0; i < MAX_THEME_COLORS; i++) {\n const color = theme.colors[i];\n\n if (color) {\n root.style.setProperty(`--prism-color-${i + 1}`, color);\n } else {\n root.style.removeProperty(`--prism-color-${i + 1}`);\n }\n }\n }\n\n for (const [key, property] of Object.entries(THEME_TOKENS)) {\n const value = theme[key as keyof typeof THEME_TOKENS];\n\n if (value !== undefined) root.style.setProperty(property, String(value));\n }\n}\n\n/** Clear every custom property `setTheme()` can set on `options.scope` (default `documentElement`), restoring prism's default theme from `theme.css`. */\nexport function resetTheme(options?: ThemeScope): void {\n const root = target(options);\n\n for (let i = 1; i <= MAX_THEME_COLORS; i++) root.style.removeProperty(`--prism-color-${i}`);\n\n for (const property of Object.values(THEME_TOKENS)) root.style.removeProperty(property);\n}\n\nexport function seriesColor(index: number, override?: string): string {\n return override ?? `var(--prism-color-${(index % MAX_THEME_COLORS) + 1})`;\n}\n"],"mappings":"AAEA,IAMM,EAAe,CACnB,UAAW,qBACX,WAAY,sBACZ,UAAW,qBACX,YAAa,uBACb,UAAW,qBACX,mBAAoB,+BACpB,UAAW,qBACX,cAAe,yBACf,aAAc,uBAChB,EAEA,SAAS,OAAO,EAAmC,CACjD,OAAO,GAAS,OAAS,SAAS,eACpC,CAOA,SAAgB,SAAS,EAAmB,EAA4B,CACtE,IAAM,EAAO,OAAO,CAAO,EAE3B,GAAI,EAAM,OAGR,IAAK,IAAI,EAAI,EAAG,EAAI,EAAkB,IAAK,CACzC,IAAM,EAAQ,EAAM,OAAO,GAEvB,EACF,EAAK,MAAM,YAAY,iBAAiB,EAAI,IAAK,CAAK,EAEtD,EAAK,MAAM,eAAe,iBAAiB,EAAI,GAAG,CAEtD,CAGF,IAAK,GAAM,CAAC,EAAK,KAAa,OAAO,QAAQ,CAAY,EAAG,CAC1D,IAAM,EAAQ,EAAM,GAEhB,IAAU,IAAA,IAAW,EAAK,MAAM,YAAY,EAAU,OAAO,CAAK,CAAC,CACzE,CACF,CAGA,SAAgB,WAAW,EAA4B,CACrD,IAAM,EAAO,OAAO,CAAO,EAE3B,IAAK,IAAI,EAAI,EAAG,GAAK,EAAkB,IAAK,EAAK,MAAM,eAAe,iBAAiB,GAAG,EAE1F,IAAK,IAAM,KAAY,OAAO,OAAO,CAAY,EAAG,EAAK,MAAM,eAAe,CAAQ,CACxF,CAEA,SAAgB,YAAY,EAAe,EAA2B,CACpE,OAAO,GAAY,qBAAsB,EAAQ,EAAoB,EAAE,EACzE"}
|
package/dist/theme/prism.css
CHANGED
|
@@ -161,7 +161,9 @@
|
|
|
161
161
|
|
|
162
162
|
/* ========================================
|
|
163
163
|
Dark Mode
|
|
164
|
-
|
|
164
|
+
Triggers: OS preference, html.dark, or [data-prism-theme='dark'] on any
|
|
165
|
+
ancestor of the chart (the hook for apps that switch theme in JS without
|
|
166
|
+
touching <html>, e.g. MUI/Backstage palette toggles).
|
|
165
167
|
======================================== */
|
|
166
168
|
@media (prefers-color-scheme: dark) {
|
|
167
169
|
:root:not(.light) {
|
|
@@ -187,7 +189,8 @@
|
|
|
187
189
|
}
|
|
188
190
|
}
|
|
189
191
|
|
|
190
|
-
html.dark
|
|
192
|
+
html.dark,
|
|
193
|
+
[data-prism-theme='dark'] {
|
|
191
194
|
--prism-color-1: #56b4e9;
|
|
192
195
|
--prism-color-2: #e69f00;
|
|
193
196
|
--prism-color-3: #009e73;
|
|
@@ -270,6 +273,8 @@
|
|
|
270
273
|
stroke: var(--prism-crosshair-color);
|
|
271
274
|
stroke-width: var(--prism-crosshair-width);
|
|
272
275
|
stroke-dasharray: var(--prism-crosshair-dash);
|
|
276
|
+
/* Guides are positioned by transform, so a snapped guide glides to the next datum. */
|
|
277
|
+
transition: transform var(--prism-transition-fast);
|
|
273
278
|
}
|
|
274
279
|
|
|
275
280
|
/* Line chart */
|
|
@@ -519,8 +524,17 @@
|
|
|
519
524
|
border-radius: var(--prism-tooltip-radius);
|
|
520
525
|
box-shadow: var(--prism-tooltip-shadow);
|
|
521
526
|
opacity: 0;
|
|
522
|
-
|
|
523
|
-
|
|
527
|
+
/* The reveal rises 4px into place; positioning lives on left/top so the
|
|
528
|
+
transform never fights the flip/shift placement. */
|
|
529
|
+
transform: translateY(4px);
|
|
530
|
+
transition:
|
|
531
|
+
opacity var(--prism-transition-fast),
|
|
532
|
+
transform var(--prism-transition-fast);
|
|
533
|
+
will-change: opacity, transform;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.prism-tooltip--visible {
|
|
537
|
+
transform: translateY(0);
|
|
524
538
|
}
|
|
525
539
|
|
|
526
540
|
.prism-tooltip-title {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
+
import type { EasingName } from './animation/easing';
|
|
1
2
|
export interface PrismTheme {
|
|
3
|
+
/** Structural axis line/tick color (`--prism-axis-color`). */
|
|
4
|
+
axisColor?: string;
|
|
2
5
|
colors?: string[];
|
|
3
6
|
fontFamily?: string;
|
|
4
7
|
gridColor?: string;
|
|
5
8
|
gridOpacity?: number;
|
|
9
|
+
/** Primary label text color (`--prism-text-color`). */
|
|
10
|
+
textColor?: string;
|
|
11
|
+
/** Secondary label text color (`--prism-text-color-secondary`). */
|
|
12
|
+
textColorSecondary?: string;
|
|
13
|
+
/** Tooltip background (`--prism-tooltip-bg`). */
|
|
14
|
+
tooltipBg?: string;
|
|
15
|
+
/** Tooltip border (`--prism-tooltip-border`). */
|
|
16
|
+
tooltipBorder?: string;
|
|
17
|
+
/** Tooltip text color (`--prism-tooltip-color`). */
|
|
18
|
+
tooltipColor?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Where `setTheme()`/`resetTheme()` write custom properties: `scope` targets one subtree, omitted means `document.documentElement`. */
|
|
21
|
+
export interface ThemeScope {
|
|
22
|
+
readonly scope?: HTMLElement;
|
|
6
23
|
}
|
|
7
24
|
export interface ChartMargin {
|
|
8
25
|
bottom: number;
|
|
@@ -15,11 +32,32 @@ export interface ChartDimensions {
|
|
|
15
32
|
margin: ChartMargin;
|
|
16
33
|
width: number;
|
|
17
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Runtime observation event delivered to {@link ChartHandle.tap} handlers.
|
|
37
|
+
*
|
|
38
|
+
* - `resize`: the container's content box changed size and the chart re-laid-out.
|
|
39
|
+
* - `dispose`: the chart was disposed; emitted once, before teardown completes.
|
|
40
|
+
*/
|
|
41
|
+
export type PrismEvent = {
|
|
42
|
+
readonly height: number;
|
|
43
|
+
readonly type: 'resize';
|
|
44
|
+
readonly width: number;
|
|
45
|
+
} | {
|
|
46
|
+
readonly type: 'dispose';
|
|
47
|
+
};
|
|
18
48
|
export interface ChartHandle<TData = unknown> {
|
|
19
49
|
readonly disposalSignal: AbortSignal;
|
|
20
50
|
dispose(): void;
|
|
21
51
|
readonly disposed: boolean;
|
|
22
52
|
readonly el: SVGSVGElement;
|
|
53
|
+
/**
|
|
54
|
+
* Observes runtime behavior (resize, dispose) outside the render path.
|
|
55
|
+
* Returns an unsubscribe function; pass `signal` to detach automatically.
|
|
56
|
+
* Handler errors are swallowed: observation never affects chart behavior.
|
|
57
|
+
*/
|
|
58
|
+
tap(handler: (event: PrismEvent) => void, options?: {
|
|
59
|
+
readonly signal?: AbortSignal;
|
|
60
|
+
}): () => void;
|
|
23
61
|
update(data: TData): void;
|
|
24
62
|
[Symbol.dispose](): void;
|
|
25
63
|
}
|
|
@@ -140,11 +178,24 @@ export interface LegendConfig {
|
|
|
140
178
|
position?: LegendPosition;
|
|
141
179
|
}
|
|
142
180
|
export interface TransitionConfig {
|
|
181
|
+
/** Milliseconds per animated lane. Defaults to 300. */
|
|
143
182
|
duration?: number;
|
|
144
|
-
easing?:
|
|
183
|
+
easing?: EasingName | ((t: number) => number);
|
|
184
|
+
/** `system` (the default) skips animation when the user prefers reduced motion. */
|
|
145
185
|
preference?: 'always' | 'never' | 'system';
|
|
186
|
+
/**
|
|
187
|
+
* Per-lane delay in milliseconds: bars on a bar chart, series on a radar chart.
|
|
188
|
+
* Bar charts cap the effective value so a long category axis stays under ~400 ms
|
|
189
|
+
* of added delay; other chart types use it as given.
|
|
190
|
+
*/
|
|
146
191
|
stagger?: number;
|
|
147
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* Chart motion is on by default. Pass `false` to render every update synchronously,
|
|
195
|
+
* `true` for the defaults, or a {@link TransitionConfig} to tune duration, easing,
|
|
196
|
+
* stagger, or the reduced-motion behavior.
|
|
197
|
+
*/
|
|
198
|
+
export type TransitionOption = TransitionConfig | boolean;
|
|
148
199
|
export type ChartA11y = {
|
|
149
200
|
readonly decorative: true;
|
|
150
201
|
} | {
|
|
@@ -159,9 +210,12 @@ export interface BaseChartConfig {
|
|
|
159
210
|
onClick?: (event: ChartEvent) => void;
|
|
160
211
|
onHover?: (event: ChartEvent | null) => void;
|
|
161
212
|
tooltip?: TooltipConfig | boolean;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
213
|
+
/** Motion is on by default; `false` renders every update synchronously. */
|
|
214
|
+
transition?: TransitionOption;
|
|
215
|
+
/** Omitted renders the axis with defaults; `false` suppresses it. */
|
|
216
|
+
xAxis?: XAxisConfig | false;
|
|
217
|
+
/** Omitted renders the axis with defaults; `false` suppresses it. */
|
|
218
|
+
yAxis?: YAxisConfig | false;
|
|
165
219
|
}
|
|
166
220
|
export interface LineSeriesConfig extends Series<ContinuousDatum> {
|
|
167
221
|
curve?: 'linear' | 'monotone' | 'step';
|
|
@@ -209,12 +263,18 @@ export interface PieSliceConfig {
|
|
|
209
263
|
label?: string;
|
|
210
264
|
value: number;
|
|
211
265
|
}
|
|
266
|
+
/** Interaction event for one pie/donut/semi slice. */
|
|
267
|
+
export interface PieEvent {
|
|
268
|
+
index: number;
|
|
269
|
+
originalEvent: Event;
|
|
270
|
+
slice: PieSliceConfig;
|
|
271
|
+
}
|
|
212
272
|
export interface PieChartConfig extends Omit<BaseChartConfig, 'margin' | 'onClick' | 'onHover' | 'xAxis' | 'yAxis'> {
|
|
213
273
|
cornerRadius?: number;
|
|
214
274
|
data: PieSliceConfig[];
|
|
215
275
|
innerRadius?: number;
|
|
216
|
-
onClick?: (
|
|
217
|
-
onHover?: (
|
|
276
|
+
onClick?: (event: PieEvent) => void;
|
|
277
|
+
onHover?: (event: PieEvent | null) => void;
|
|
218
278
|
padPixels?: number;
|
|
219
279
|
variant?: PieVariant;
|
|
220
280
|
}
|
|
@@ -268,6 +328,12 @@ export interface StackSegment {
|
|
|
268
328
|
label?: string;
|
|
269
329
|
value: number;
|
|
270
330
|
}
|
|
331
|
+
/** Interaction event for one sparkline value. */
|
|
332
|
+
export interface SparklineEvent {
|
|
333
|
+
index: number;
|
|
334
|
+
originalEvent: Event;
|
|
335
|
+
value: number;
|
|
336
|
+
}
|
|
271
337
|
export interface SparklineConfig {
|
|
272
338
|
a11y?: ChartA11y;
|
|
273
339
|
color?: string;
|
|
@@ -276,13 +342,14 @@ export interface SparklineConfig {
|
|
|
276
342
|
data: number[] | StackSegment[];
|
|
277
343
|
/** Overrides the `--prism-spark-fill-opacity` theme token (area variant). */
|
|
278
344
|
fillOpacity?: number;
|
|
279
|
-
onClick?: (
|
|
280
|
-
onHover?: (
|
|
345
|
+
onClick?: (event: SparklineEvent) => void;
|
|
346
|
+
onHover?: (event: SparklineEvent | null) => void;
|
|
281
347
|
padPixels?: number;
|
|
282
348
|
/** Dot on the latest value (line and area variants). Defaults to `true`. */
|
|
283
349
|
showEndPoint?: boolean;
|
|
284
350
|
strokeWidth?: number;
|
|
285
|
-
|
|
351
|
+
/** Motion is on by default; `false` renders every update synchronously. */
|
|
352
|
+
transition?: TransitionOption;
|
|
286
353
|
variant?: SparklineVariant;
|
|
287
354
|
}
|
|
288
355
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD,MAAM,WAAW,UAAU;IACzB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wIAAwI;AACxI,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;CAC9B;AAID,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,C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CAAC;IACd,aAAa,EAAE,KAAK,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,EAAE,GAAG,YAAY,EAAE,CAAC;IAChC,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vielzeug/prism",
|
|
3
|
-
"version": "26.10.
|
|
3
|
+
"version": "26.10.4",
|
|
4
4
|
"description": "Responsive SVG charts with explicit updates: line, bar, area, pie, radar, sparkline",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chart",
|
|
@@ -38,22 +38,7 @@
|
|
|
38
38
|
"require": "./dist/index.cjs",
|
|
39
39
|
"types": "./dist/index.d.ts"
|
|
40
40
|
},
|
|
41
|
-
"./
|
|
42
|
-
"import": "./dist/devtools.js",
|
|
43
|
-
"require": "./dist/devtools.cjs",
|
|
44
|
-
"types": "./dist/devtools/index.d.ts"
|
|
45
|
-
},
|
|
46
|
-
"./theme": {
|
|
47
|
-
"default": "./dist/theme/prism.css",
|
|
48
|
-
"import": "./dist/theme/prism.css"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"typesVersions": {
|
|
52
|
-
"*": {
|
|
53
|
-
"devtools": [
|
|
54
|
-
"dist/devtools/index.d.ts"
|
|
55
|
-
]
|
|
56
|
-
}
|
|
41
|
+
"./theme.css": "./dist/theme/prism.css"
|
|
57
42
|
},
|
|
58
43
|
"sideEffects": [
|
|
59
44
|
"./dist/theme/**"
|
|
@@ -72,7 +57,7 @@
|
|
|
72
57
|
"test": "vitest"
|
|
73
58
|
},
|
|
74
59
|
"dependencies": {
|
|
75
|
-
"@vielzeug/orbit": "26.10.
|
|
60
|
+
"@vielzeug/orbit": "26.10.4"
|
|
76
61
|
},
|
|
77
62
|
"devDependencies": {
|
|
78
63
|
"axe-core": "^4.13.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/animation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/axes/index.d.ts
DELETED
package/dist/axes/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/axes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/core/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type { ChartBase } from './chart-base';
|
|
2
|
-
export { createChartBase } from './chart-base';
|
|
3
|
-
export type { ChartEventHandlers, RadialScaffoldContext, ScaffoldContext, ScaffoldGroups } from './chart-scaffold';
|
|
4
|
-
export { createChartScaffold, createRadialScaffold } from './chart-scaffold';
|
|
5
|
-
export { chartArea, resolveMargin } from './layout';
|
|
6
|
-
export { observeResize } from './responsive';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACnH,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/devtools/index.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @vielzeug/prism: debug utilities for chart visualisation.
|
|
3
|
-
*
|
|
4
|
-
* Import from the dedicated sub-path so debug code is tree-shaken from
|
|
5
|
-
* production bundles:
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { debugChart } from '@vielzeug/prism/devtools';
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* Internal validation warnings (misuse of the public API) are emitted
|
|
11
|
-
* automatically in development builds and live in the private `src/_dev.ts`
|
|
12
|
-
* module. They are not part of this sub-path.
|
|
13
|
-
*/
|
|
14
|
-
import type { ChartHandle } from '../types';
|
|
15
|
-
/** Options for {@link debugChart}. */
|
|
16
|
-
export interface DebugChartOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Label used in log prefixes. Defaults to `'chart'`, producing `[prism:chart]`.
|
|
19
|
-
* Useful when debugging multiple charts on the same page so their log output
|
|
20
|
-
* can be distinguished:
|
|
21
|
-
* ```ts
|
|
22
|
-
* debugChart(createLineChart(el, config), { label: 'revenue' });
|
|
23
|
-
* // [prism:revenue] mounted
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
label?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Wraps an already-created {@link ChartHandle} with lifecycle logging pre-wired to
|
|
30
|
-
* `console.debug`, imported from a dedicated sub-path so `console.debug` references
|
|
31
|
-
* and the `ResizeObserver` it uses are tree-shaken from production bundles when this
|
|
32
|
-
* sub-path is not imported.
|
|
33
|
-
*
|
|
34
|
-
* Logs the chart's mount, every resize (via its own `ResizeObserver` on `handle.el`,
|
|
35
|
-
* independent of the chart's internal one), and disposal, each with `[prism:<label>]`
|
|
36
|
-
* prefixes. Returns the same handle unchanged so it can wrap any `create*Chart()` call
|
|
37
|
-
* in place.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* import { createLineChart } from '@vielzeug/prism';
|
|
42
|
-
* import { debugChart } from '@vielzeug/prism/devtools';
|
|
43
|
-
*
|
|
44
|
-
* const chart = debugChart(createLineChart(container, config), { label: 'revenue' });
|
|
45
|
-
* // [prism:revenue] mounted
|
|
46
|
-
* // [prism:revenue] resized 600×300
|
|
47
|
-
* chart.dispose();
|
|
48
|
-
* // [prism:revenue] disposed
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare function debugChart<T extends ChartHandle>(handle: T, options?: DebugChartOptions): T;
|
|
52
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/devtools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,sCAAsC;AACtC,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,CAAC,CA2B3F"}
|
package/dist/devtools.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function debugChart(e,t){let n=`[prism:${t?.label??`chart`}]`;console.debug(`${n} mounted`);let r=new ResizeObserver(e=>{let t=e[0];if(t){let{height:e,width:r}=t.contentRect;console.debug(`${n} resized ${Math.round(r)}×${Math.round(e)}`)}});return r.observe(e.el),e.disposalSignal.addEventListener(`abort`,()=>{r.disconnect(),console.debug(`${n} disposed`)},{once:!0}),e}exports.debugChart=debugChart;
|
|
2
|
-
//# sourceMappingURL=devtools.cjs.map
|
package/dist/devtools.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.cjs","names":[],"sources":["../src/devtools/index.ts"],"sourcesContent":["/**\n * @vielzeug/prism: debug utilities for chart visualisation.\n *\n * Import from the dedicated sub-path so debug code is tree-shaken from\n * production bundles:\n * ```ts\n * import { debugChart } from '@vielzeug/prism/devtools';\n * ```\n *\n * Internal validation warnings (misuse of the public API) are emitted\n * automatically in development builds and live in the private `src/_dev.ts`\n * module. They are not part of this sub-path.\n */\n\nimport type { ChartHandle } from '../types';\n\n/** Options for {@link debugChart}. */\nexport interface DebugChartOptions {\n /**\n * Label used in log prefixes. Defaults to `'chart'`, producing `[prism:chart]`.\n * Useful when debugging multiple charts on the same page so their log output\n * can be distinguished:\n * ```ts\n * debugChart(createLineChart(el, config), { label: 'revenue' });\n * // [prism:revenue] mounted\n * ```\n */\n label?: string;\n}\n\n/**\n * Wraps an already-created {@link ChartHandle} with lifecycle logging pre-wired to\n * `console.debug`, imported from a dedicated sub-path so `console.debug` references\n * and the `ResizeObserver` it uses are tree-shaken from production bundles when this\n * sub-path is not imported.\n *\n * Logs the chart's mount, every resize (via its own `ResizeObserver` on `handle.el`,\n * independent of the chart's internal one), and disposal, each with `[prism:<label>]`\n * prefixes. Returns the same handle unchanged so it can wrap any `create*Chart()` call\n * in place.\n *\n * @example\n * ```ts\n * import { createLineChart } from '@vielzeug/prism';\n * import { debugChart } from '@vielzeug/prism/devtools';\n *\n * const chart = debugChart(createLineChart(container, config), { label: 'revenue' });\n * // [prism:revenue] mounted\n * // [prism:revenue] resized 600×300\n * chart.dispose();\n * // [prism:revenue] disposed\n * ```\n */\nexport function debugChart<T extends ChartHandle>(handle: T, options?: DebugChartOptions): T {\n const prefix = `[prism:${options?.label ?? 'chart'}]`;\n\n console.debug(`${prefix} mounted`);\n\n const resizeObserver = new ResizeObserver((entries) => {\n const entry = entries[0];\n\n if (entry) {\n const { height, width } = entry.contentRect;\n\n console.debug(`${prefix} resized ${Math.round(width)}×${Math.round(height)}`);\n }\n });\n\n resizeObserver.observe(handle.el);\n\n handle.disposalSignal.addEventListener(\n 'abort',\n () => {\n resizeObserver.disconnect();\n console.debug(`${prefix} disposed`);\n },\n { once: true },\n );\n\n return handle;\n}\n"],"mappings":"mEAqDA,SAAgB,WAAkC,EAAW,EAAgC,CAC3F,IAAM,EAAS,UAAU,GAAS,OAAS,QAAQ,GAEnD,QAAQ,MAAM,GAAG,EAAO,SAAS,EAEjC,IAAM,EAAiB,IAAI,eAAgB,GAAY,CACrD,IAAM,EAAQ,EAAQ,GAEtB,GAAI,EAAO,CACT,GAAM,CAAE,SAAQ,SAAU,EAAM,YAEhC,QAAQ,MAAM,GAAG,EAAO,YAAY,KAAK,MAAM,CAAK,EAAE,GAAG,KAAK,MAAM,CAAM,GAAG,CAC/E,CACF,CAAC,EAaD,OAXA,EAAe,QAAQ,EAAO,EAAE,EAEhC,EAAO,eAAe,iBACpB,YACM,CACJ,EAAe,WAAW,EAC1B,QAAQ,MAAM,GAAG,EAAO,UAAU,CACpC,EACA,CAAE,KAAM,EAAK,CACf,EAEO,CACT"}
|
package/dist/devtools.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function debugChart(e,t){let n=`[prism:${t?.label??`chart`}]`;console.debug(`${n} mounted`);let r=new ResizeObserver(e=>{let t=e[0];if(t){let{height:e,width:r}=t.contentRect;console.debug(`${n} resized ${Math.round(r)}×${Math.round(e)}`)}});return r.observe(e.el),e.disposalSignal.addEventListener(`abort`,()=>{r.disconnect(),console.debug(`${n} disposed`)},{once:!0}),e}export{debugChart};
|
|
2
|
-
//# sourceMappingURL=devtools.js.map
|
package/dist/devtools.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.js","names":[],"sources":["../src/devtools/index.ts"],"sourcesContent":["/**\n * @vielzeug/prism: debug utilities for chart visualisation.\n *\n * Import from the dedicated sub-path so debug code is tree-shaken from\n * production bundles:\n * ```ts\n * import { debugChart } from '@vielzeug/prism/devtools';\n * ```\n *\n * Internal validation warnings (misuse of the public API) are emitted\n * automatically in development builds and live in the private `src/_dev.ts`\n * module. They are not part of this sub-path.\n */\n\nimport type { ChartHandle } from '../types';\n\n/** Options for {@link debugChart}. */\nexport interface DebugChartOptions {\n /**\n * Label used in log prefixes. Defaults to `'chart'`, producing `[prism:chart]`.\n * Useful when debugging multiple charts on the same page so their log output\n * can be distinguished:\n * ```ts\n * debugChart(createLineChart(el, config), { label: 'revenue' });\n * // [prism:revenue] mounted\n * ```\n */\n label?: string;\n}\n\n/**\n * Wraps an already-created {@link ChartHandle} with lifecycle logging pre-wired to\n * `console.debug`, imported from a dedicated sub-path so `console.debug` references\n * and the `ResizeObserver` it uses are tree-shaken from production bundles when this\n * sub-path is not imported.\n *\n * Logs the chart's mount, every resize (via its own `ResizeObserver` on `handle.el`,\n * independent of the chart's internal one), and disposal, each with `[prism:<label>]`\n * prefixes. Returns the same handle unchanged so it can wrap any `create*Chart()` call\n * in place.\n *\n * @example\n * ```ts\n * import { createLineChart } from '@vielzeug/prism';\n * import { debugChart } from '@vielzeug/prism/devtools';\n *\n * const chart = debugChart(createLineChart(container, config), { label: 'revenue' });\n * // [prism:revenue] mounted\n * // [prism:revenue] resized 600×300\n * chart.dispose();\n * // [prism:revenue] disposed\n * ```\n */\nexport function debugChart<T extends ChartHandle>(handle: T, options?: DebugChartOptions): T {\n const prefix = `[prism:${options?.label ?? 'chart'}]`;\n\n console.debug(`${prefix} mounted`);\n\n const resizeObserver = new ResizeObserver((entries) => {\n const entry = entries[0];\n\n if (entry) {\n const { height, width } = entry.contentRect;\n\n console.debug(`${prefix} resized ${Math.round(width)}×${Math.round(height)}`);\n }\n });\n\n resizeObserver.observe(handle.el);\n\n handle.disposalSignal.addEventListener(\n 'abort',\n () => {\n resizeObserver.disconnect();\n console.debug(`${prefix} disposed`);\n },\n { once: true },\n );\n\n return handle;\n}\n"],"mappings":"AAqDA,SAAgB,WAAkC,EAAW,EAAgC,CAC3F,IAAM,EAAS,UAAU,GAAS,OAAS,QAAQ,GAEnD,QAAQ,MAAM,GAAG,EAAO,SAAS,EAEjC,IAAM,EAAiB,IAAI,eAAgB,GAAY,CACrD,IAAM,EAAQ,EAAQ,GAEtB,GAAI,EAAO,CACT,GAAM,CAAE,SAAQ,SAAU,EAAM,YAEhC,QAAQ,MAAM,GAAG,EAAO,YAAY,KAAK,MAAM,CAAK,EAAE,GAAG,KAAK,MAAM,CAAM,GAAG,CAC/E,CACF,CAAC,EAaD,OAXA,EAAe,QAAQ,EAAO,EAAE,EAEhC,EAAO,eAAe,iBACpB,YACM,CACJ,EAAe,WAAW,EAC1B,QAAQ,MAAM,GAAG,EAAO,UAAU,CACpC,EACA,CAAE,KAAM,EAAK,CACf,EAEO,CACT"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { CrosshairState } from './crosshair';
|
|
2
|
-
export { createCrosshair } from './crosshair';
|
|
3
|
-
export { getMousePosition } from './events';
|
|
4
|
-
export type { LegendState } from './legend';
|
|
5
|
-
export { createLegend } from './legend';
|
|
6
|
-
export type { TooltipState } from './tooltip';
|
|
7
|
-
export { createTooltip } from './tooltip';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interaction/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/scales/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scales/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/svg/index.d.ts
DELETED
package/dist/svg/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/svg/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC5E,YAAY,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC"}
|