Skip to main content
Module

x/billboardjs/config/Store/Store.ts

πŸ“Š Re-usable, easy interface JavaScript chart library based on D3.js
Go to Latest
File
/** * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license */import Element from "./Element";import State from "./State";
// mappingconst classes = { element: Element, state: State};
/** * Internal store class. * @class Store * @ignore * @private */export default class Store { constructor() { Object.keys(classes).forEach(v => { this[v] = new classes[v](); }); }
getStore(name: string): Element | State { return this[name]; }}