@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.
Files changed (138) hide show
  1. package/README.md +1 -1
  2. package/dist/_dev.cjs.map +1 -1
  3. package/dist/_dev.js.map +1 -1
  4. package/dist/_tappers.cjs +2 -0
  5. package/dist/_tappers.cjs.map +1 -0
  6. package/dist/_tappers.d.ts +10 -0
  7. package/dist/_tappers.d.ts.map +1 -0
  8. package/dist/_tappers.js +2 -0
  9. package/dist/_tappers.js.map +1 -0
  10. package/dist/animation/easing.cjs +1 -1
  11. package/dist/animation/easing.cjs.map +1 -1
  12. package/dist/animation/easing.d.ts +15 -1
  13. package/dist/animation/easing.d.ts.map +1 -1
  14. package/dist/animation/easing.js +1 -1
  15. package/dist/animation/easing.js.map +1 -1
  16. package/dist/animation/motion.cjs +1 -1
  17. package/dist/animation/motion.cjs.map +1 -1
  18. package/dist/animation/motion.d.ts +17 -2
  19. package/dist/animation/motion.d.ts.map +1 -1
  20. package/dist/animation/motion.js +1 -1
  21. package/dist/animation/motion.js.map +1 -1
  22. package/dist/animation/transition.cjs +1 -1
  23. package/dist/animation/transition.cjs.map +1 -1
  24. package/dist/animation/transition.d.ts +32 -3
  25. package/dist/animation/transition.d.ts.map +1 -1
  26. package/dist/animation/transition.js +1 -1
  27. package/dist/animation/transition.js.map +1 -1
  28. package/dist/charts/area/area-chart.cjs +1 -1
  29. package/dist/charts/area/area-chart.cjs.map +1 -1
  30. package/dist/charts/area/area-chart.d.ts.map +1 -1
  31. package/dist/charts/area/area-chart.js +1 -1
  32. package/dist/charts/area/area-chart.js.map +1 -1
  33. package/dist/charts/area/area-renderer.cjs +1 -1
  34. package/dist/charts/area/area-renderer.cjs.map +1 -1
  35. package/dist/charts/area/area-renderer.d.ts +2 -2
  36. package/dist/charts/area/area-renderer.d.ts.map +1 -1
  37. package/dist/charts/area/area-renderer.js +1 -1
  38. package/dist/charts/area/area-renderer.js.map +1 -1
  39. package/dist/charts/bar/bar-chart.cjs +1 -1
  40. package/dist/charts/bar/bar-chart.cjs.map +1 -1
  41. package/dist/charts/bar/bar-chart.d.ts.map +1 -1
  42. package/dist/charts/bar/bar-chart.js +1 -1
  43. package/dist/charts/bar/bar-chart.js.map +1 -1
  44. package/dist/charts/bar/bar-renderer.cjs +1 -1
  45. package/dist/charts/bar/bar-renderer.cjs.map +1 -1
  46. package/dist/charts/bar/bar-renderer.d.ts +2 -2
  47. package/dist/charts/bar/bar-renderer.d.ts.map +1 -1
  48. package/dist/charts/bar/bar-renderer.js +1 -1
  49. package/dist/charts/bar/bar-renderer.js.map +1 -1
  50. package/dist/charts/line/line-chart.cjs +1 -1
  51. package/dist/charts/line/line-chart.cjs.map +1 -1
  52. package/dist/charts/line/line-chart.d.ts.map +1 -1
  53. package/dist/charts/line/line-chart.js +1 -1
  54. package/dist/charts/line/line-chart.js.map +1 -1
  55. package/dist/charts/line/line-renderer.cjs +1 -1
  56. package/dist/charts/line/line-renderer.cjs.map +1 -1
  57. package/dist/charts/line/line-renderer.d.ts +4 -2
  58. package/dist/charts/line/line-renderer.d.ts.map +1 -1
  59. package/dist/charts/line/line-renderer.js +1 -1
  60. package/dist/charts/line/line-renderer.js.map +1 -1
  61. package/dist/charts/pie/pie-chart.cjs +1 -1
  62. package/dist/charts/pie/pie-chart.cjs.map +1 -1
  63. package/dist/charts/pie/pie-chart.d.ts.map +1 -1
  64. package/dist/charts/pie/pie-chart.js +1 -1
  65. package/dist/charts/pie/pie-chart.js.map +1 -1
  66. package/dist/charts/radar/radar-chart.cjs +1 -1
  67. package/dist/charts/radar/radar-chart.cjs.map +1 -1
  68. package/dist/charts/radar/radar-chart.d.ts.map +1 -1
  69. package/dist/charts/radar/radar-chart.js +1 -1
  70. package/dist/charts/radar/radar-chart.js.map +1 -1
  71. package/dist/charts/sparkline/sparkline.cjs +1 -1
  72. package/dist/charts/sparkline/sparkline.cjs.map +1 -1
  73. package/dist/charts/sparkline/sparkline.d.ts.map +1 -1
  74. package/dist/charts/sparkline/sparkline.js +1 -1
  75. package/dist/charts/sparkline/sparkline.js.map +1 -1
  76. package/dist/core/chart-scaffold.cjs +1 -1
  77. package/dist/core/chart-scaffold.cjs.map +1 -1
  78. package/dist/core/chart-scaffold.d.ts.map +1 -1
  79. package/dist/core/chart-scaffold.js +1 -1
  80. package/dist/core/chart-scaffold.js.map +1 -1
  81. package/dist/core/responsive.cjs +1 -1
  82. package/dist/core/responsive.cjs.map +1 -1
  83. package/dist/core/responsive.d.ts.map +1 -1
  84. package/dist/core/responsive.js +1 -1
  85. package/dist/core/responsive.js.map +1 -1
  86. package/dist/index.d.ts +2 -2
  87. package/dist/index.d.ts.map +1 -1
  88. package/dist/interaction/crosshair.cjs +1 -1
  89. package/dist/interaction/crosshair.cjs.map +1 -1
  90. package/dist/interaction/crosshair.d.ts +7 -0
  91. package/dist/interaction/crosshair.d.ts.map +1 -1
  92. package/dist/interaction/crosshair.js +1 -1
  93. package/dist/interaction/crosshair.js.map +1 -1
  94. package/dist/interaction/series-interaction.cjs +1 -1
  95. package/dist/interaction/series-interaction.cjs.map +1 -1
  96. package/dist/interaction/series-interaction.d.ts +3 -1
  97. package/dist/interaction/series-interaction.d.ts.map +1 -1
  98. package/dist/interaction/series-interaction.js +1 -1
  99. package/dist/interaction/series-interaction.js.map +1 -1
  100. package/dist/interaction/tooltip.cjs +1 -1
  101. package/dist/interaction/tooltip.cjs.map +1 -1
  102. package/dist/interaction/tooltip.d.ts.map +1 -1
  103. package/dist/interaction/tooltip.js +1 -1
  104. package/dist/interaction/tooltip.js.map +1 -1
  105. package/dist/prism.cjs +1 -1
  106. package/dist/prism.cjs.map +1 -1
  107. package/dist/prism.iife.js +1 -1
  108. package/dist/prism.iife.js.map +1 -1
  109. package/dist/prism.js +1 -1
  110. package/dist/prism.js.map +1 -1
  111. package/dist/theme/index.cjs +1 -1
  112. package/dist/theme/index.cjs.map +1 -1
  113. package/dist/theme/index.d.ts +9 -4
  114. package/dist/theme/index.d.ts.map +1 -1
  115. package/dist/theme/index.js +1 -1
  116. package/dist/theme/index.js.map +1 -1
  117. package/dist/theme/prism.css +18 -4
  118. package/dist/types.d.ts +76 -9
  119. package/dist/types.d.ts.map +1 -1
  120. package/package.json +3 -18
  121. package/dist/animation/index.d.ts +0 -6
  122. package/dist/animation/index.d.ts.map +0 -1
  123. package/dist/axes/index.d.ts +0 -3
  124. package/dist/axes/index.d.ts.map +0 -1
  125. package/dist/core/index.d.ts +0 -7
  126. package/dist/core/index.d.ts.map +0 -1
  127. package/dist/devtools/index.d.ts +0 -52
  128. package/dist/devtools/index.d.ts.map +0 -1
  129. package/dist/devtools.cjs +0 -2
  130. package/dist/devtools.cjs.map +0 -1
  131. package/dist/devtools.js +0 -2
  132. package/dist/devtools.js.map +0 -1
  133. package/dist/interaction/index.d.ts +0 -8
  134. package/dist/interaction/index.d.ts.map +0 -1
  135. package/dist/scales/index.d.ts +0 -4
  136. package/dist/scales/index.d.ts.map +0 -1
  137. package/dist/svg/index.d.ts +0 -5
  138. package/dist/svg/index.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- function setTheme(e){let t=document.documentElement;if(e.colors)for(let n=0;n<8;n++){let r=e.colors[n];r?t.style.setProperty(`--prism-color-${n+1}`,r):t.style.removeProperty(`--prism-color-${n+1}`)}e.fontFamily&&t.style.setProperty(`--prism-font-family`,e.fontFamily),e.gridColor&&t.style.setProperty(`--prism-grid-color`,e.gridColor),e.gridOpacity!==void 0&&t.style.setProperty(`--prism-grid-opacity`,String(e.gridOpacity))}function resetTheme(){let e=document.documentElement;for(let t=1;t<=8;t++)e.style.removeProperty(`--prism-color-${t}`);e.style.removeProperty(`--prism-font-family`),e.style.removeProperty(`--prism-grid-color`),e.style.removeProperty(`--prism-grid-opacity`)}function seriesColor(e,t){return t??`var(--prism-color-${e%8+1})`}exports.resetTheme=resetTheme,exports.seriesColor=seriesColor,exports.setTheme=setTheme;
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
@@ -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 = document.documentElement;\n\n if (theme.colors) {\n // Clear (not just overwrite) every color slot the previous setTheme() call may have\n // used, otherwise a theme with fewer colors than the last one leaves stale values\n // on the untouched higher-index custom properties.\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 if (theme.fontFamily) root.style.setProperty('--prism-font-family', theme.fontFamily);\n\n if (theme.gridColor) root.style.setProperty('--prism-grid-color', theme.gridColor);\n\n if (theme.gridOpacity !== undefined) root.style.setProperty('--prism-grid-opacity', String(theme.gridOpacity));\n}\n\n/** Clears every CSS custom property `setTheme()` can set, restoring prism's default theme (from `prism.css`). */\nexport function resetTheme(): void {\n const root = document.documentElement;\n\n for (let i = 1; i <= MAX_THEME_COLORS; i++) root.style.removeProperty(`--prism-color-${i}`);\n\n root.style.removeProperty('--prism-font-family');\n root.style.removeProperty('--prism-grid-color');\n root.style.removeProperty('--prism-grid-opacity');\n}\n\nexport function seriesColor(index: number, override?: string): string {\n return override ?? `var(--prism-color-${(index % MAX_THEME_COLORS) + 1})`;\n}\n"],"mappings":"AAIA,SAAgB,SAAS,EAAyB,CAChD,IAAM,EAAO,SAAS,gBAEtB,GAAI,EAAM,OAIR,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,CAGE,EAAM,YAAY,EAAK,MAAM,YAAY,sBAAuB,EAAM,UAAU,EAEhF,EAAM,WAAW,EAAK,MAAM,YAAY,qBAAsB,EAAM,SAAS,EAE7E,EAAM,cAAgB,IAAA,IAAW,EAAK,MAAM,YAAY,uBAAwB,OAAO,EAAM,WAAW,CAAC,CAC/G,CAGA,SAAgB,YAAmB,CACjC,IAAM,EAAO,SAAS,gBAEtB,IAAK,IAAI,EAAI,EAAG,GAAK,EAAkB,IAAK,EAAK,MAAM,eAAe,iBAAiB,GAAG,EAE1F,EAAK,MAAM,eAAe,qBAAqB,EAC/C,EAAK,MAAM,eAAe,oBAAoB,EAC9C,EAAK,MAAM,eAAe,sBAAsB,CAClD,CAEA,SAAgB,YAAY,EAAe,EAA2B,CACpE,OAAO,GAAY,qBAAsB,EAAQ,EAAoB,EAAE,EACzE"}
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"}
@@ -1,6 +1,11 @@
1
- import type { PrismTheme } from '../types';
2
- export declare function setTheme(theme: PrismTheme): void;
3
- /** Clears every CSS custom property `setTheme()` can set, restoring prism's default theme (from `prism.css`). */
4
- export declare function resetTheme(): void;
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;AAI3C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAuBhD;AAED,iHAAiH;AACjH,wBAAgB,UAAU,IAAI,IAAI,CAQjC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAEpE"}
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"}
@@ -1,2 +1,2 @@
1
- function setTheme(e){let t=document.documentElement;if(e.colors)for(let n=0;n<8;n++){let r=e.colors[n];r?t.style.setProperty(`--prism-color-${n+1}`,r):t.style.removeProperty(`--prism-color-${n+1}`)}e.fontFamily&&t.style.setProperty(`--prism-font-family`,e.fontFamily),e.gridColor&&t.style.setProperty(`--prism-grid-color`,e.gridColor),e.gridOpacity!==void 0&&t.style.setProperty(`--prism-grid-opacity`,String(e.gridOpacity))}function resetTheme(){let e=document.documentElement;for(let t=1;t<=8;t++)e.style.removeProperty(`--prism-color-${t}`);e.style.removeProperty(`--prism-font-family`),e.style.removeProperty(`--prism-grid-color`),e.style.removeProperty(`--prism-grid-opacity`)}function seriesColor(e,t){return t??`var(--prism-color-${e%8+1})`}export{resetTheme,seriesColor,setTheme};
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
@@ -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 = document.documentElement;\n\n if (theme.colors) {\n // Clear (not just overwrite) every color slot the previous setTheme() call may have\n // used, otherwise a theme with fewer colors than the last one leaves stale values\n // on the untouched higher-index custom properties.\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 if (theme.fontFamily) root.style.setProperty('--prism-font-family', theme.fontFamily);\n\n if (theme.gridColor) root.style.setProperty('--prism-grid-color', theme.gridColor);\n\n if (theme.gridOpacity !== undefined) root.style.setProperty('--prism-grid-opacity', String(theme.gridOpacity));\n}\n\n/** Clears every CSS custom property `setTheme()` can set, restoring prism's default theme (from `prism.css`). */\nexport function resetTheme(): void {\n const root = document.documentElement;\n\n for (let i = 1; i <= MAX_THEME_COLORS; i++) root.style.removeProperty(`--prism-color-${i}`);\n\n root.style.removeProperty('--prism-font-family');\n root.style.removeProperty('--prism-grid-color');\n root.style.removeProperty('--prism-grid-opacity');\n}\n\nexport function seriesColor(index: number, override?: string): string {\n return override ?? `var(--prism-color-${(index % MAX_THEME_COLORS) + 1})`;\n}\n"],"mappings":"AAIA,SAAgB,SAAS,EAAyB,CAChD,IAAM,EAAO,SAAS,gBAEtB,GAAI,EAAM,OAIR,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,CAGE,EAAM,YAAY,EAAK,MAAM,YAAY,sBAAuB,EAAM,UAAU,EAEhF,EAAM,WAAW,EAAK,MAAM,YAAY,qBAAsB,EAAM,SAAS,EAE7E,EAAM,cAAgB,IAAA,IAAW,EAAK,MAAM,YAAY,uBAAwB,OAAO,EAAM,WAAW,CAAC,CAC/G,CAGA,SAAgB,YAAmB,CACjC,IAAM,EAAO,SAAS,gBAEtB,IAAK,IAAI,EAAI,EAAG,GAAK,EAAkB,IAAK,EAAK,MAAM,eAAe,iBAAiB,GAAG,EAE1F,EAAK,MAAM,eAAe,qBAAqB,EAC/C,EAAK,MAAM,eAAe,oBAAoB,EAC9C,EAAK,MAAM,eAAe,sBAAsB,CAClD,CAEA,SAAgB,YAAY,EAAe,EAA2B,CACpE,OAAO,GAAY,qBAAsB,EAAQ,EAAoB,EAAE,EACzE"}
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"}
@@ -161,7 +161,9 @@
161
161
 
162
162
  /* ========================================
163
163
  Dark Mode
164
- Triggered by OS preference or html.dark class
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
- transition: opacity var(--prism-transition-fast);
523
- will-change: opacity;
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?: 'ease-in' | 'ease-in-out' | 'ease-out' | 'linear' | ((t: number) => number);
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
- transition?: TransitionConfig;
163
- xAxis?: XAxisConfig;
164
- yAxis?: YAxisConfig;
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?: (slice: PieSliceConfig, index: number) => void;
217
- onHover?: (slice: PieSliceConfig | null, index: number | null) => void;
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?: (index: number, value: number) => void;
280
- onHover?: (index: number | null, value: number | null) => void;
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
- transition?: TransitionConfig;
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
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC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f,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.2",
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
- "./devtools": {
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.2"
60
+ "@vielzeug/orbit": "26.10.4"
76
61
  },
77
62
  "devDependencies": {
78
63
  "axe-core": "^4.13.0",
@@ -1,6 +0,0 @@
1
- export type { EasingFn } from './easing';
2
- export { resolveEasing } from './easing';
3
- export type { AnimationTarget } from './transition';
4
- export { animate } from './transition';
5
- export { tweenNumber } from './tween';
6
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,3 +0,0 @@
1
- export { renderAxis } from './axis';
2
- export { renderGrid } from './grid';
3
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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
@@ -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"}
@@ -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
@@ -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
@@ -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"}
@@ -1,4 +0,0 @@
1
- export { bandScale } from './band';
2
- export { linearScale } from './linear';
3
- export { timeScale } from './time';
4
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,5 +0,0 @@
1
- export { createSvgElement, removeChildren, setAttributes } from './element';
2
- export type { Point } from './path';
3
- export { areaPath, linePath, monotonePath, stepPath } from './path';
4
- export { createTextElement } from './text';
5
- //# sourceMappingURL=index.d.ts.map
@@ -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"}