1 | import init from './api/init.js';
|
2 | import destroy from './api/destroy.js';
|
3 | import emit from './api/emit.js';
|
4 | import show from './api/show.js';
|
5 | import hide from './api/hide.js';
|
6 | import clear from './api/clear.js';
|
7 | import resize from './api/resize.js';
|
8 | import speed from './api/speed.js';
|
9 |
|
10 | function Danmaku(opt) {
|
11 | opt && init.call(this, opt);
|
12 | }
|
13 | Danmaku.prototype.destroy = function() {
|
14 | return destroy.call(this);
|
15 | };
|
16 | Danmaku.prototype.emit = function(cmt) {
|
17 | return emit.call(this, cmt);
|
18 | };
|
19 | Danmaku.prototype.show = function() {
|
20 | return show.call(this);
|
21 | };
|
22 | Danmaku.prototype.hide = function() {
|
23 | return hide.call(this);
|
24 | };
|
25 | Danmaku.prototype.clear = function() {
|
26 | return clear.call(this);
|
27 | };
|
28 | Danmaku.prototype.resize = function() {
|
29 | return resize.call(this);
|
30 | };
|
31 | Object.defineProperty(Danmaku.prototype, 'speed', speed);
|
32 |
|
33 | export default Danmaku;
|