UNPKG

billboard.js

Version:

Re-usable easy interface JavaScript chart library, based on D3 v4+

39 lines (38 loc) • 759 B
/*! * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license * * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * * @version 4.1.1 */ import Element from "./Element.js"; import State from "./State.js"; //#region src/config/Store/Store.ts /** * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license */ const classes = { element: Element, state: State }; /** * Internal store class. * @class Store * @ignore * @private */ var Store = class { constructor() { Object.keys(classes).forEach((v) => { this[v] = new classes[v](); }); } getStore(name) { return this[name]; } }; //#endregion export { Store as default };