- Build: Update per latest Rollup

- npm: Update devDeps
This commit is contained in:
Brett Zamir
2020-03-24 10:04:15 +08:00
parent 9e5fe12f94
commit 2b07946b6b
37 changed files with 3247 additions and 2341 deletions

View File

@@ -58,7 +58,7 @@ var svgEditorExtension_connector = (function () {
while (1) {
switch (_context.prev = _context.next) {
case 0:
init = function _ref9() {
init = function _init() {
// Make sure all connectors have data set
$(svgcontent).find('*').each(function () {
var conn = this.getAttributeNS(seNs, 'connector');
@@ -74,7 +74,7 @@ var svgEditorExtension_connector = (function () {
}); // updateConnectors();
};
updateConnectors = function _ref8(elems) {
updateConnectors = function _updateConnectors(elems) {
// Updates connector lines based on selected elements
// Is not used on mousemove, as it runs getStrokedBBox every time,
// which isn't necessary there.
@@ -126,7 +126,7 @@ var svgEditorExtension_connector = (function () {
}
};
findConnectors = function _ref7() {
findConnectors = function _findConnectors() {
var elems = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : selElems;
var connectors = $(svgcontent).find(connSel);
connections = []; // Loop through connectors to see if one is connected to the element
@@ -186,7 +186,7 @@ var svgEditorExtension_connector = (function () {
});
};
updateLine = function _ref6(diffX, diffY) {
updateLine = function _updateLine(diffX, diffY) {
// Update line with element
var i = connections.length;
@@ -216,7 +216,7 @@ var svgEditorExtension_connector = (function () {
}
};
setPoint = function _ref5(elem, pos, x, y, setMid) {
setPoint = function _setPoint(elem, pos, x, y, setMid) {
var pts = elem.points;
var pt = svgroot.createSVGPoint();
pt.x = x;
@@ -250,7 +250,7 @@ var svgEditorExtension_connector = (function () {
}
};
showPanel = function _ref4(on) {
showPanel = function _showPanel(on) {
var connRules = $('#connector_rules');
if (!connRules.length) {
@@ -261,7 +261,7 @@ var svgEditorExtension_connector = (function () {
$('#connector_panel').toggle(on);
};
getOffset = function _ref3(side, line) {
getOffset = function _getOffset(side, line) {
var giveOffset = line.getAttribute('marker-' + side); // const giveOffset = $(line).data(side+'_off');
// TODO: Make this number (5) be based on marker width/height
@@ -269,7 +269,7 @@ var svgEditorExtension_connector = (function () {
return giveOffset ? size : 0;
};
getBBintersect = function _ref2(x, y, bb, offset) {
getBBintersect = function _getBBintersect(x, y, bb, offset) {
if (offset) {
offset -= 0;
bb = $.extend({}, bb);