- 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:
Brett Zamir
2019-03-16 12:30:23 +08:00
parent 5691b7b1e7
commit dade2a7b37
28 changed files with 521 additions and 537 deletions

53
dist/index-umd.js vendored
View File

@@ -5720,7 +5720,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;
@@ -9451,7 +9452,7 @@
return _context.stop();
}
}
}, _callee, this);
}, _callee);
}));
return _importSetGlobal.apply(this, arguments);
}
@@ -14733,7 +14734,7 @@
return _context.stop();
}
}
}, _callee, this);
}, _callee);
}));
return function (_x, _x2, _x3) {
@@ -28305,7 +28306,7 @@
return _context.stop();
}
}
}, _callee, this);
}, _callee);
}));
return function readLang(_x) {
@@ -28378,7 +28379,7 @@
return _context2.stop();
}
}
}, _callee2, this);
}, _callee2);
}));
return function putLocale(_x2, _x3, _x4) {
@@ -28873,7 +28874,7 @@
return _context23.stop();
}
}
}, _callee23, this);
}, _callee23);
}));
return _loadSvgString.apply(this, arguments);
}
@@ -28932,7 +28933,7 @@
return _context.stop();
}
}
}, _callee, this, [[2, 8]]);
}, _callee, null, [[2, 8]]);
}));
function importLocaleDefaulting() {
@@ -29495,7 +29496,7 @@
return _context2.stop();
}
}
}, _callee2, this, [[4, 13]]);
}, _callee2, null, [[4, 13]]);
}));
return function (_x2) {
@@ -29547,7 +29548,7 @@
return _context3.stop();
}
}
}, _callee3, this, [[10, 17]]);
}, _callee3, null, [[10, 17]]);
}));
return function extAndLocaleFunc() {
@@ -30138,7 +30139,7 @@
return _context4.stop();
}
}
}, _callee4, this);
}, _callee4);
}));
function callback(_x3) {
@@ -30645,7 +30646,7 @@
return _context18.stop();
}
}
}, _callee18, this);
}, _callee18);
}));
return _promptImgURL.apply(this, arguments);
}
@@ -32362,7 +32363,7 @@
return _context5.stop();
}
}
}, _callee5, this);
}, _callee5);
}));
return function extAdded(_x4, _x5) {
@@ -33352,7 +33353,7 @@
return _context7.stop();
}
}
}, _callee7, this);
}, _callee7);
}));
return function makeHyperlink() {
@@ -33518,7 +33519,7 @@
return _context8.stop();
}
}
}, _callee8, this);
}, _callee8);
}));
return function clickClear() {
@@ -33666,7 +33667,7 @@
return _context9.stop();
}
}
}, _callee9, this);
}, _callee9);
}));
return function clickExport() {
@@ -33923,7 +33924,7 @@
return _context10.stop();
}
}
}, _callee10, this);
}, _callee10);
}));
return function saveSourceEditor() {
@@ -34065,7 +34066,7 @@
return _context11.stop();
}
}
}, _callee11, this);
}, _callee11);
}));
var resetScrollPos = $$b.noop;
@@ -34144,7 +34145,7 @@
return _context12.stop();
}
}
}, _callee12, this);
}, _callee12);
}));
return function cancelOverlays() {
@@ -34566,7 +34567,7 @@
return _context13.stop();
}
}
}, _callee13, this);
}, _callee13);
})));
/**
*
@@ -34642,7 +34643,7 @@
return _context19.stop();
}
}
}, _callee19, this);
}, _callee19);
}));
return _cloneLayer.apply(this, arguments);
}
@@ -34724,7 +34725,7 @@
return _context14.stop();
}
}
}, _callee14, this);
}, _callee14);
})));
var SIDEPANEL_MAXWIDTH = 300;
var SIDEPANEL_OPENWIDTH = 150;
@@ -35973,7 +35974,7 @@
return _context15.stop();
}
}
}, _callee15, this);
}, _callee15);
}));
return function (_x6) {
@@ -36112,7 +36113,7 @@
return _context17.stop();
}
}
}, _callee17, this);
}, _callee17);
}));
return function (_x7, _x8) {
@@ -36246,7 +36247,7 @@
return _context20.stop();
}
}
}, _callee20, this, [[0, 5]]);
}, _callee20, null, [[0, 5]]);
}));
/**
* @param {string} str The SVG string to load
@@ -36294,7 +36295,7 @@
return _context21.stop();
}
}
}, _callee21, this, [[0, 5]]);
}, _callee21, null, [[0, 5]]);
})));
};
/**
@@ -36484,7 +36485,7 @@
return _context22.stop();
}
}
}, _callee22, this, [[0, 6]]);
}, _callee22, null, [[0, 6]]);
}))();
return editor;