@opendata-ai/openchart-engine 6.20.0 → 6.22.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
@@ -428,6 +428,12 @@ declare function registerChartRenderer(type: string, renderer: ChartRenderer): v
428
428
  declare function getChartRenderer(type: string): ChartRenderer | undefined;
429
429
  /**
430
430
  * Clear all registered renderers. Useful for testing.
431
+ *
432
+ * Note: the built-in renderers (line, bar, column, ...) register as a
433
+ * side-effect of importing `./builtin`. Once cleared, they do not come
434
+ * back on their own — subsequent `compileChart(...)` calls will return
435
+ * empty marks. Tests that call `clearRenderers()` should follow up with
436
+ * `registerBuiltinRenderers()` from `./builtin` to restore the defaults.
431
437
  */
432
438
  declare function clearRenderers(): void;
433
439