This commit is contained in:
JFH
2020-11-19 01:29:28 +01:00
parent 9655997878
commit 9b464b7a32
5 changed files with 295 additions and 301 deletions

View File

@@ -1001,8 +1001,6 @@ editor.init = () => {
ungroup: 'shape_ungroup.png',
unlink_use: 'unlink_use.png',
width: 'width.png',
height: 'height.png',
c_radius: 'c_radius.png',
angle: 'angle.png',
blur: 'blur.png',
@@ -4773,30 +4771,6 @@ editor.init = () => {
$(window).bind('load resize', centerCanvas);
/**
* @type {module:jQuerySpinButton.StepCallback}
*/
function stepFontSize (elem, step) {
const origVal = Number(elem.value);
const sugVal = origVal + step;
const increasing = sugVal >= origVal;
if (step === 0) { return origVal; }
if (origVal >= 24) {
if (increasing) {
return Math.round(origVal * 1.1);
}
return Math.round(origVal / 1.1);
}
if (origVal <= 1) {
if (increasing) {
return origVal * 2;
}
return origVal / 2;
}
return sugVal;
}
// function setResolution (w, h, center) {
// updateCanvas();
// // w -= 0; h -= 0;