@quartic/bokehjs
Version:
Interactive, novel data visualization
36 lines (35 loc) • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var extend = function (child, parent) { for (var key in parent) {
if (hasProp.call(parent, key))
child[key] = parent[key];
} function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty;
var button_tool_1 = require("../button_tool");
exports.ActionToolButtonView = (function (superClass) {
extend(ActionToolButtonView, superClass);
function ActionToolButtonView() {
return ActionToolButtonView.__super__.constructor.apply(this, arguments);
}
ActionToolButtonView.prototype._clicked = function () {
return this.model.trigger('do');
};
return ActionToolButtonView;
})(button_tool_1.ButtonToolButtonView);
exports.ActionToolView = (function (superClass) {
extend(ActionToolView, superClass);
function ActionToolView() {
return ActionToolView.__super__.constructor.apply(this, arguments);
}
ActionToolView.prototype.initialize = function (options) {
ActionToolView.__super__.initialize.call(this, options);
return this.listenTo(this.model, 'do', this["do"]);
};
return ActionToolView;
})(button_tool_1.ButtonToolView);
exports.ActionTool = (function (superClass) {
extend(ActionTool, superClass);
function ActionTool() {
return ActionTool.__super__.constructor.apply(this, arguments);
}
return ActionTool;
})(button_tool_1.ButtonTool);