- Build: Update

- npm: Update devDeps
This commit is contained in:
Brett Zamir
2020-01-25 10:32:24 +08:00
parent 6acca0cf6a
commit cf80e31de7
18 changed files with 1874 additions and 1610 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -6585,7 +6585,7 @@
x2 = seg.x2 || 0,
y2 = seg.y2 || 0;
var type = seg.pathSegType;
var letter = pathMap[type]['to' + (toRel ? 'Lower' : 'Upper') + 'Case']();
var letter = pathMap[type][toRel ? 'toLowerCase' : 'toUpperCase']();
switch (type) {
case 1:
@@ -6607,16 +6607,18 @@
case 13:
// relative horizontal line (h)
if (toRel) {
y = 0;
curx += x;
letter = 'l';
} else {
y = cury;
x += curx;
curx = x;
letter = 'L';
} // Convert to "line" for easier editing
d += pathDSegment(letter, [[x, cury]]);
d += pathDSegment(letter, [[x, y]]);
break;
case 14:
@@ -6627,16 +6629,18 @@
case 15:
// relative vertical line (v)
if (toRel) {
x = 0;
cury += y;
letter = 'l';
} else {
x = curx;
y += cury;
cury = y;
letter = 'L';
} // Convert to "line" for easier editing
d += pathDSegment(letter, [[curx, y]]);
d += pathDSegment(letter, [[x, y]]);
break;
case 2: // absolute move (M)
@@ -9166,6 +9170,16 @@
var ns = key.substr(0, 4) === 'xml:' ? NS.XML : key.substr(0, 6) === 'xlink:' ? NS.XLINK : null;
if (isNullish(value)) {
if (ns) {
elem.removeAttributeNS(ns, key);
} else {
elem.removeAttribute(key);
}
continue;
}
if (ns) {
elem.setAttributeNS(ns, key, value);
} else if (!unitCheck) {
@@ -14320,6 +14334,10 @@
}
}
if (!selectedElements.length) {
return;
}
call('selected', selectedElements);
if (showGrips || selectedElements.length === 1) {
@@ -17744,6 +17762,16 @@
continue;
}
if (_attrVal === 'null') {
var styleName = _attr.localName.replace(/-[a-z]/g, function (s) {
return s[1].toUpperCase();
});
if (Object.prototype.hasOwnProperty.call(elem.style, styleName)) {
continue;
}
}
if (_attrVal !== '') {
if (_attrVal.startsWith('pointer-events')) {
continue;
@@ -17798,7 +17826,7 @@
case 1:
// element node
out.push('\n');
out.push(this.svgToString(childs.item(_i4), indent));
out.push(this.svgToString(child, indent));
break;
case 3:
@@ -18204,7 +18232,8 @@
_context3.next = 4;
return importScript([// We do not currently have these paths configurable as they are
// currently global-only, so not Rolled-up
'jspdf/underscore-min.js', 'jspdf/jspdf.min.js']);
'jspdf/underscore-min.js', // 'jspdf/jspdf.min.js',
'../../svgedit-myfix/editor/jspdf/jspdf-1.0.150.debug.js']);
case 4:
modularVersion = !('svgEditor' in window) || !window.svgEditor || window.svgEditor.modules !== false; // Todo: Switch to `import()` when widely supported and available (also allow customization of path)