mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
20 lines
507 B
JavaScript
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);
|
|
};
|
|
|
|
})();
|