}
}
-Chart.version = version;
-
-/**
- * NOTE(SB) We actually don't use this container anymore but we need to keep it
- * for backward compatibility. Though, it can still be useful for plugins that
- * would need to work on multiple charts?!
- */
+// These are available to both, UMD and ESM packages
+Chart.defaults = defaults;
Chart.instances = {};
-
Chart.registry = registry;
+Chart.version = version;
// @ts-ignore
const invalidatePlugins = () => each(Chart.instances, (chart) => chart._plugins.invalidate());
import animationService from './core/core.animations';
import * as controllers from './controllers';
import DatasetController from './core/core.datasetController';
-import defaults from './core/core.defaults';
import Element from './core/core.element';
import * as elements from './elements/index';
import Interaction from './core/core.interaction';
Chart.animationService = animationService;
Chart.controllers = registry.controllers.items;
Chart.DatasetController = DatasetController;
-Chart.defaults = defaults;
Chart.Element = Element;
Chart.elements = elements;
Chart.Interaction = Interaction;