forked from visjs/vis-timeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
110 lines (90 loc) · 2.35 KB
/
index.js
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// utils
import util from 'vis-util';
import * as DOMutil from './lib/DOMutil';
// data
import { DataSet, DataView, Queue } from 'vis-data';
// Timeline
import Timeline from './lib/timeline/Timeline';
import Graph2d from './lib/timeline/Graph2d';
import Core from './lib/timeline/Core';
import * as DateUtil from './lib/timeline/DateUtil';
import Range from './lib/timeline/Range';
import * as stack from './lib/timeline/Stack';
import TimeStep from './lib/timeline/TimeStep';
import Item from './lib/timeline/component/item/Item';
import BackgroundItem from './lib/timeline/component/item/BackgroundItem';
import BoxItem from './lib/timeline/component/item/BoxItem';
import PointItem from './lib/timeline/component/item/PointItem';
import RangeItem from './lib/timeline/component/item/RangeItem';
import BackgroundGroup from './lib/timeline/component/BackgroundGroup';
import Component from './lib/timeline/component/Component';
import CurrentTime from './lib/timeline/component/CurrentTime';
import CustomTime from './lib/timeline/component/CustomTime';
import DataAxis from './lib/timeline/component/DataAxis';
import DataScale from './lib/timeline/component/DataScale';
import GraphGroup from './lib/timeline/component/GraphGroup';
import Group from './lib/timeline/component/Group';
import ItemSet from './lib/timeline/component/ItemSet';
import Legend from './lib/timeline/component/Legend';
import LineGraph from './lib/timeline/component/LineGraph';
import TimeAxis from './lib/timeline/component/TimeAxis';
// bundled external libraries
import moment from './lib/module/moment';
import Hammer from './lib/module/hammer';
import keycharm from 'keycharm';
const defaultLanguage = DOMutil.getNavigatorLanguage()
moment.locale(defaultLanguage)
const timeline = {
Core ,
DateUtil,
Range,
stack,
TimeStep,
components: {
items: {
Item,
BackgroundItem,
BoxItem,
PointItem,
RangeItem,
},
BackgroundGroup,
Component,
CurrentTime,
CustomTime,
DataAxis,
DataScale,
GraphGroup,
Group,
ItemSet,
Legend,
LineGraph,
TimeAxis
}
}
export {
util,
DOMutil,
DataSet,
DataView,
Queue,
Timeline,
Graph2d,
timeline,
moment,
Hammer,
keycharm
};
export default {
util,
DOMutil,
DataSet,
DataView,
Queue,
Timeline,
Graph2d,
timeline,
moment,
Hammer,
keycharm
};