mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
15 lines
326 B
JavaScript
15 lines
326 B
JavaScript
(function () {
|
|
var ns = $.namespace('pskl.utils');
|
|
|
|
ns.StringUtils = {
|
|
leftPad : function (input, length, pad) {
|
|
var padding = new Array(length).join(pad);
|
|
return (padding + input).slice(-length);
|
|
},
|
|
|
|
formatSize : function (width, height) {
|
|
return width + '\u00D7' + height;
|
|
}
|
|
};
|
|
})();
|