(data)
| 6 | |
| 7 | export class TimeGroup { |
| 8 | constructor(data) { |
| 9 | |
| 10 | // DOM ELEMENTS |
| 11 | this._el = { |
| 12 | parent: {}, |
| 13 | container: {}, |
| 14 | message: {} |
| 15 | }; |
| 16 | |
| 17 | //Options |
| 18 | this.options = { |
| 19 | width: 600, |
| 20 | height: 600 |
| 21 | }; |
| 22 | |
| 23 | // Data |
| 24 | this.data = { |
| 25 | label: "", |
| 26 | rows: 1 |
| 27 | }; |
| 28 | |
| 29 | |
| 30 | this._el.container = DOM.create("div", "tl-timegroup"); |
| 31 | |
| 32 | // Merge Data |
| 33 | mergeData(this.data, data); |
| 34 | |
| 35 | // Animation |
| 36 | this.animator = {}; |
| 37 | |
| 38 | |
| 39 | this._initLayout(); |
| 40 | this._initEvents(); |
| 41 | } |
| 42 | |
| 43 | /* Public |
| 44 | ================================================== */ |
nothing calls this directly
no test coverage detected