deno.land / x / billboardjs@3.6.0 / config / Store / Store.ts
12345678910111213141516171819202122232425262728293031/** * 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]; }}
Version Info