You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.8 KiB
54 lines
1.8 KiB
"use strict";
|
|
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = function (d, b) {
|
|
extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
return extendStatics(d, b);
|
|
};
|
|
return function (d, b) {
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var layout_1 = require("./layout");
|
|
var LayoutAdaptor = (function (_super) {
|
|
__extends(LayoutAdaptor, _super);
|
|
function LayoutAdaptor(options) {
|
|
var _this = _super.call(this) || this;
|
|
var self = _this;
|
|
var o = options;
|
|
if (o.trigger) {
|
|
_this.trigger = o.trigger;
|
|
}
|
|
if (o.kick) {
|
|
_this.kick = o.kick;
|
|
}
|
|
if (o.drag) {
|
|
_this.drag = o.drag;
|
|
}
|
|
if (o.on) {
|
|
_this.on = o.on;
|
|
}
|
|
_this.dragstart = _this.dragStart = layout_1.Layout.dragStart;
|
|
_this.dragend = _this.dragEnd = layout_1.Layout.dragEnd;
|
|
return _this;
|
|
}
|
|
LayoutAdaptor.prototype.trigger = function (e) { };
|
|
;
|
|
LayoutAdaptor.prototype.kick = function () { };
|
|
;
|
|
LayoutAdaptor.prototype.drag = function () { };
|
|
;
|
|
LayoutAdaptor.prototype.on = function (eventType, listener) { return this; };
|
|
;
|
|
return LayoutAdaptor;
|
|
}(layout_1.Layout));
|
|
exports.LayoutAdaptor = LayoutAdaptor;
|
|
function adaptor(options) {
|
|
return new LayoutAdaptor(options);
|
|
}
|
|
exports.adaptor = adaptor;
|
|
//# sourceMappingURL=adaptor.js.map
|