- Linting (ESLint): Apply coding standards
- Testing (Refactoring): Abstract out to helper file functions for approving local storage and opening the main menu - Docs (CHANGES): Update - npm: Update devDeps; update nested deps for security audit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable new-cap, class-methods-use-this, @mysticatea/no-use-ignored-vars */
|
||||
/* eslint-disable new-cap, class-methods-use-this */
|
||||
// Todo: Compare with latest canvg (add any improvements of ours) and add full JSDocs (denoting links to standard APIs and which are custom): https://github.com/canvg/canvg
|
||||
/**
|
||||
* canvg.js - Javascript SVG parser and renderer on Canvas
|
||||
|
||||
@@ -785,7 +785,12 @@ export class Segment {
|
||||
]
|
||||
: [item.x += dx, item.y += dy];
|
||||
|
||||
replacePathSeg(this.type, this.index, this.type === 10 ? ptObjToArr(this.type, item) : curPts); //type 10 means ARC
|
||||
replacePathSeg(
|
||||
this.type,
|
||||
this.index,
|
||||
// type 10 means ARC
|
||||
this.type === 10 ? ptObjToArr(this.type, item) : curPts
|
||||
);
|
||||
|
||||
if (this.next && this.next.ctrlpts) {
|
||||
const next = this.next.item;
|
||||
|
||||
@@ -5717,7 +5717,8 @@
|
||||
value: function move(dx, dy) {
|
||||
var item = this.item;
|
||||
var curPts = this.ctrlpts ? [item.x += dx, item.y += dy, item.x1, item.y1, item.x2 += dx, item.y2 += dy] : [item.x += dx, item.y += dy];
|
||||
replacePathSeg(this.type, this.index, curPts);
|
||||
replacePathSeg(this.type, this.index, // type 10 means ARC
|
||||
this.type === 10 ? ptObjToArr(this.type, item) : curPts);
|
||||
|
||||
if (this.next && this.next.ctrlpts) {
|
||||
var next = this.next.item;
|
||||
@@ -9448,7 +9449,7 @@
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}, _callee);
|
||||
}));
|
||||
return _importSetGlobal.apply(this, arguments);
|
||||
}
|
||||
@@ -14730,7 +14731,7 @@
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}, _callee);
|
||||
}));
|
||||
|
||||
return function (_x, _x2, _x3) {
|
||||
@@ -28302,7 +28303,7 @@
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}, _callee);
|
||||
}));
|
||||
|
||||
return function readLang(_x) {
|
||||
@@ -28375,7 +28376,7 @@
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this);
|
||||
}, _callee2);
|
||||
}));
|
||||
|
||||
return function putLocale(_x2, _x3, _x4) {
|
||||
@@ -28870,7 +28871,7 @@
|
||||
return _context23.stop();
|
||||
}
|
||||
}
|
||||
}, _callee23, this);
|
||||
}, _callee23);
|
||||
}));
|
||||
return _loadSvgString.apply(this, arguments);
|
||||
}
|
||||
@@ -28929,7 +28930,7 @@
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this, [[2, 8]]);
|
||||
}, _callee, null, [[2, 8]]);
|
||||
}));
|
||||
|
||||
function importLocaleDefaulting() {
|
||||
@@ -29492,7 +29493,7 @@
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this, [[4, 13]]);
|
||||
}, _callee2, null, [[4, 13]]);
|
||||
}));
|
||||
|
||||
return function (_x2) {
|
||||
@@ -29544,7 +29545,7 @@
|
||||
return _context3.stop();
|
||||
}
|
||||
}
|
||||
}, _callee3, this, [[10, 17]]);
|
||||
}, _callee3, null, [[10, 17]]);
|
||||
}));
|
||||
|
||||
return function extAndLocaleFunc() {
|
||||
@@ -30135,7 +30136,7 @@
|
||||
return _context4.stop();
|
||||
}
|
||||
}
|
||||
}, _callee4, this);
|
||||
}, _callee4);
|
||||
}));
|
||||
|
||||
function callback(_x3) {
|
||||
@@ -30642,7 +30643,7 @@
|
||||
return _context18.stop();
|
||||
}
|
||||
}
|
||||
}, _callee18, this);
|
||||
}, _callee18);
|
||||
}));
|
||||
return _promptImgURL.apply(this, arguments);
|
||||
}
|
||||
@@ -32359,7 +32360,7 @@
|
||||
return _context5.stop();
|
||||
}
|
||||
}
|
||||
}, _callee5, this);
|
||||
}, _callee5);
|
||||
}));
|
||||
|
||||
return function extAdded(_x4, _x5) {
|
||||
@@ -33349,7 +33350,7 @@
|
||||
return _context7.stop();
|
||||
}
|
||||
}
|
||||
}, _callee7, this);
|
||||
}, _callee7);
|
||||
}));
|
||||
|
||||
return function makeHyperlink() {
|
||||
@@ -33515,7 +33516,7 @@
|
||||
return _context8.stop();
|
||||
}
|
||||
}
|
||||
}, _callee8, this);
|
||||
}, _callee8);
|
||||
}));
|
||||
|
||||
return function clickClear() {
|
||||
@@ -33663,7 +33664,7 @@
|
||||
return _context9.stop();
|
||||
}
|
||||
}
|
||||
}, _callee9, this);
|
||||
}, _callee9);
|
||||
}));
|
||||
|
||||
return function clickExport() {
|
||||
@@ -33920,7 +33921,7 @@
|
||||
return _context10.stop();
|
||||
}
|
||||
}
|
||||
}, _callee10, this);
|
||||
}, _callee10);
|
||||
}));
|
||||
|
||||
return function saveSourceEditor() {
|
||||
@@ -34062,7 +34063,7 @@
|
||||
return _context11.stop();
|
||||
}
|
||||
}
|
||||
}, _callee11, this);
|
||||
}, _callee11);
|
||||
}));
|
||||
|
||||
var resetScrollPos = $$b.noop;
|
||||
@@ -34141,7 +34142,7 @@
|
||||
return _context12.stop();
|
||||
}
|
||||
}
|
||||
}, _callee12, this);
|
||||
}, _callee12);
|
||||
}));
|
||||
|
||||
return function cancelOverlays() {
|
||||
@@ -34563,7 +34564,7 @@
|
||||
return _context13.stop();
|
||||
}
|
||||
}
|
||||
}, _callee13, this);
|
||||
}, _callee13);
|
||||
})));
|
||||
/**
|
||||
*
|
||||
@@ -34639,7 +34640,7 @@
|
||||
return _context19.stop();
|
||||
}
|
||||
}
|
||||
}, _callee19, this);
|
||||
}, _callee19);
|
||||
}));
|
||||
return _cloneLayer.apply(this, arguments);
|
||||
}
|
||||
@@ -34721,7 +34722,7 @@
|
||||
return _context14.stop();
|
||||
}
|
||||
}
|
||||
}, _callee14, this);
|
||||
}, _callee14);
|
||||
})));
|
||||
var SIDEPANEL_MAXWIDTH = 300;
|
||||
var SIDEPANEL_OPENWIDTH = 150;
|
||||
@@ -35970,7 +35971,7 @@
|
||||
return _context15.stop();
|
||||
}
|
||||
}
|
||||
}, _callee15, this);
|
||||
}, _callee15);
|
||||
}));
|
||||
|
||||
return function (_x6) {
|
||||
@@ -36109,7 +36110,7 @@
|
||||
return _context17.stop();
|
||||
}
|
||||
}
|
||||
}, _callee17, this);
|
||||
}, _callee17);
|
||||
}));
|
||||
|
||||
return function (_x7, _x8) {
|
||||
@@ -36243,7 +36244,7 @@
|
||||
return _context20.stop();
|
||||
}
|
||||
}
|
||||
}, _callee20, this, [[0, 5]]);
|
||||
}, _callee20, null, [[0, 5]]);
|
||||
}));
|
||||
/**
|
||||
* @param {string} str The SVG string to load
|
||||
@@ -36291,7 +36292,7 @@
|
||||
return _context21.stop();
|
||||
}
|
||||
}
|
||||
}, _callee21, this, [[0, 5]]);
|
||||
}, _callee21, null, [[0, 5]]);
|
||||
})));
|
||||
};
|
||||
/**
|
||||
@@ -36481,7 +36482,7 @@
|
||||
return _context22.stop();
|
||||
}
|
||||
}
|
||||
}, _callee22, this, [[0, 6]]);
|
||||
}, _callee22, null, [[0, 6]]);
|
||||
}))();
|
||||
|
||||
window.svgEditor = editor;
|
||||
|
||||
Reference in New Issue
Block a user