2016-05-12 10:39:29 +10:00

20 lines
507 B
JavaScript

(function () {
var ns = $.namespace('pskl.tools.transform');
ns.Center = function () {
this.toolId = 'tool-center';
this.helpText = 'Align image to the center';
this.tooltipDescriptors = [
{key : 'ctrl', description : 'Apply to all layers'},
{key : 'shift', description : 'Apply to all frames'}
];
};
pskl.utils.inherit(ns.Center, ns.AbstractTransformTool);
ns.Center.prototype.applyToolOnFrame_ = function (frame) {
ns.TransformUtils.center(frame);
};
})();