deno.land / x / billboardjs@3.6.0 / config / Store / Store.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** * 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]; }}
billboardjs

Version Info

Tagged at
a year ago