MCPcopy
hub / github.com/NUKnightLab/TimelineJS3 / constructor

Method constructor

src/js/timenav/TimeGroup.js:8–41  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

6
7export 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 ================================================== */

Callers

nothing calls this directly

Calls 3

_initLayoutMethod · 0.95
_initEventsMethod · 0.95
mergeDataFunction · 0.90

Tested by

no test coverage detected