UNPKG

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