- Linting (ESLint): Remove now unneeded config and add per new update
- Refactoring: Prefer for-of, event.key (newly enforced linting) - Refactoring: Better var. names - npm: Update devDeps and update local copies
This commit is contained in:
265
dist/index-es.js
vendored
265
dist/index-es.js
vendored
@@ -2927,7 +2927,7 @@ function jQueryPluginSVG($) {
|
||||
|
||||
/**
|
||||
* @function external:jQuery.fn.attr
|
||||
* @param {string|string[]|PlainObject.<string, string>} key
|
||||
* @param {string|string[]|PlainObject<string, string>} key
|
||||
* @param {string} value
|
||||
* @returns {external:jQuery|module:jQueryAttr.Attributes}
|
||||
*/
|
||||
@@ -3134,6 +3134,7 @@ function () {
|
||||
|
||||
/**
|
||||
* @param {Element} elem
|
||||
* @returns {SVGTransformList}
|
||||
*/
|
||||
function SVGTransformList(elem) {
|
||||
_classCallCheck(this, SVGTransformList);
|
||||
@@ -3242,7 +3243,7 @@ function () {
|
||||
}
|
||||
/**
|
||||
* @param {SVGTransform} newItem
|
||||
* @returns {SVGTransform}
|
||||
* @returns {void}
|
||||
*/
|
||||
|
||||
}, {
|
||||
@@ -5379,7 +5380,7 @@ var getPointGrip = function getPointGrip(seg, update) {
|
||||
/**
|
||||
* @function module:path.getControlPoints
|
||||
* @param {Segment} seg
|
||||
* @returns {PlainObject.<string, SVGLineElement|SVGCircleElement>}
|
||||
* @returns {PlainObject<string, SVGLineElement|SVGCircleElement>}
|
||||
*/
|
||||
|
||||
var getControlPoints = function getControlPoints(seg) {
|
||||
@@ -7124,7 +7125,7 @@ var pathActions = function () {
|
||||
width: 0,
|
||||
height: 0,
|
||||
display: 'inline'
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
|
||||
return undefined;
|
||||
@@ -8682,7 +8683,7 @@ var getPathDFromElement = function getPathDFromElement(elem) {
|
||||
* Get a set of attributes from an element that is useful for convertToPath.
|
||||
* @function module:utilities.getExtraAttributesForConvertToPath
|
||||
* @param {Element} elem - The element to be probed
|
||||
* @returns {PlainObject.<"marker-start"|"marker-end"|"marker-mid"|"filter"|"clip-path", string>} An object with attributes.
|
||||
* @returns {PlainObject<"marker-start"|"marker-end"|"marker-mid"|"filter"|"clip-path", string>} An object with attributes.
|
||||
*/
|
||||
|
||||
var getExtraAttributesForConvertToPath = function getExtraAttributesForConvertToPath(elem) {
|
||||
@@ -9107,7 +9108,7 @@ var getElem = supportsSelectors() ? function (id) {
|
||||
* Assigns multiple attributes to an element.
|
||||
* @function module:utilities.assignAttributes
|
||||
* @param {Element} elem - DOM element to apply new attribute values to
|
||||
* @param {PlainObject.<string, string>} attrs - Object with attribute keys/values
|
||||
* @param {PlainObject<string, string>} attrs - Object with attribute keys/values
|
||||
* @param {Integer} [suspendLength] - Milliseconds to suspend redraw
|
||||
* @param {boolean} [unitCheck=false] - Boolean to indicate the need to use units.setUnitAttr
|
||||
* @returns {void}
|
||||
@@ -9357,7 +9358,7 @@ function toAbsoluteURL(url) {
|
||||
/**
|
||||
* Add any of the whitelisted attributes to the script tag.
|
||||
* @param {HTMLScriptElement} script
|
||||
* @param {PlainObject.<string, string>} atts
|
||||
* @param {PlainObject<string, string>} atts
|
||||
* @returns {void}
|
||||
*/
|
||||
|
||||
@@ -9378,9 +9379,9 @@ function addScriptAtts(script, atts) {
|
||||
|
||||
/**
|
||||
* @function module:importModule.importSetGlobalDefault
|
||||
* @param {string|string[]} url
|
||||
* @param {string|GenericArray<Any>} url
|
||||
* @param {module:importModule.ImportConfig} config
|
||||
* @returns {Promise<*>} The value to which it resolves depends on the export of the targeted module.
|
||||
* @returns {Promise<Any>} The value to which it resolves depends on the export of the targeted module.
|
||||
*/
|
||||
|
||||
|
||||
@@ -9501,7 +9502,7 @@ function importScript(url) {
|
||||
* @param {PlainObject} [atts={}]
|
||||
* @param {PlainObject} opts
|
||||
* @param {boolean} [opts.returnDefault=false} = {}]
|
||||
* @returns {Promise<*>} Resolves to value of loading module or rejects with
|
||||
* @returns {Promise<Any>} Resolves to value of loading module or rejects with
|
||||
* `Error` upon a script loading error.
|
||||
*/
|
||||
|
||||
@@ -9607,7 +9608,7 @@ function jQueryPluginDBox($) {
|
||||
* types without checkboxes, it resolves to `true`. For checkboxes, it resolves
|
||||
* to an object with the `response` key containing the same value as the previous
|
||||
* mentioned (string or `true`) and a `checked` (boolean) property.
|
||||
* @typedef {Promise<boolean|string|module:jQueryPluginDBox.PromiseResultObject>} module:jQueryPluginDBox.PromiseResult
|
||||
* @typedef {Promise<boolean|string|module:jQueryPluginDBox.PromiseResultObject>} module:jQueryPluginDBox.ResultPromise
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -9641,7 +9642,7 @@ function jQueryPluginDBox($) {
|
||||
* @param {module:jQueryPluginDBox.SelectOption[]} [opts]
|
||||
* @param {module:jQueryPluginDBox.SelectChangeListener} [changeListener]
|
||||
* @param {module:jQueryPluginDBox.CheckboxInfo} [checkbox]
|
||||
* @returns {jQueryPluginDBox.PromiseResult}
|
||||
* @returns {jQueryPluginDBox.ResultPromise}
|
||||
*/
|
||||
|
||||
function dbox(type, msg, defaultVal, opts, changeListener, checkbox) {
|
||||
@@ -9729,7 +9730,7 @@ function jQueryPluginDBox($) {
|
||||
}
|
||||
/**
|
||||
* @param {string} msg Message to alert
|
||||
* @returns {jQueryPluginDBox.PromiseResult}
|
||||
* @returns {jQueryPluginDBox.ResultPromise}
|
||||
*/
|
||||
|
||||
|
||||
@@ -9738,7 +9739,7 @@ function jQueryPluginDBox($) {
|
||||
};
|
||||
/**
|
||||
* @param {string} msg Message for which to ask confirmation
|
||||
* @returns {jQueryPluginDBox.PromiseResult}
|
||||
* @returns {jQueryPluginDBox.ResultPromise}
|
||||
*/
|
||||
|
||||
|
||||
@@ -9747,7 +9748,7 @@ function jQueryPluginDBox($) {
|
||||
};
|
||||
/**
|
||||
* @param {string} msg Message to indicate upon cancelable indicator
|
||||
* @returns {jQueryPluginDBox.PromiseResult}
|
||||
* @returns {jQueryPluginDBox.ResultPromise}
|
||||
*/
|
||||
|
||||
|
||||
@@ -9757,7 +9758,7 @@ function jQueryPluginDBox($) {
|
||||
/**
|
||||
* @param {string} msg Message to accompany the prompt
|
||||
* @param {string} [defaultText=''] The default text to show for the prompt
|
||||
* @returns {jQueryPluginDBox.PromiseResult}
|
||||
* @returns {jQueryPluginDBox.ResultPromise}
|
||||
*/
|
||||
|
||||
|
||||
@@ -9930,8 +9931,28 @@ function () {
|
||||
}, {
|
||||
key: "appendChildren",
|
||||
value: function appendChildren(children) {
|
||||
for (var i = 0; i < children.length; ++i) {
|
||||
this.group_.append(children[i]);
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
|
||||
try {
|
||||
for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
var child = _step.value;
|
||||
this.group_.append(child);
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
||||
_iterator["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
@@ -13778,10 +13799,10 @@ function SvgCanvas(container, config) {
|
||||
'fill-opacity': curShape.fill_opacity,
|
||||
opacity: curShape.opacity / 2,
|
||||
style: 'pointer-events:inherit'
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
|
||||
assignAttributes(shape, data.attr, 100);
|
||||
assignAttributes(shape, data.attr);
|
||||
cleanupElement(shape); // Children
|
||||
|
||||
if (data.children) {
|
||||
@@ -14510,7 +14531,7 @@ function SvgCanvas(container, config) {
|
||||
* @param {module:svgcanvas.SvgCanvas#event:ext_mouseDown|module:svgcanvas.SvgCanvas#event:ext_mouseMove|module:svgcanvas.SvgCanvas#event:ext_mouseUp|module:svgcanvas.SvgCanvas#event:ext_zoomChanged|module:svgcanvas.SvgCanvas#event:ext_IDsUpdated|module:svgcanvas.SvgCanvas#event:ext_canvasUpdated|module:svgcanvas.SvgCanvas#event:ext_toolButtonStateUpdate|module:svgcanvas.SvgCanvas#event:ext_selectedChanged|module:svgcanvas.SvgCanvas#event:ext_elementTransition|module:svgcanvas.SvgCanvas#event:ext_elementChanged|module:svgcanvas.SvgCanvas#event:ext_langReady|module:svgcanvas.SvgCanvas#event:ext_langChanged|module:svgcanvas.SvgCanvas#event:ext_addLangData|module:svgcanvas.SvgCanvas#event:ext_onNewDocument|module:svgcanvas.SvgCanvas#event:ext_workareaResized|module:svgcanvas.ExtensionVarBuilder} [vars]
|
||||
* @param {boolean} [returnArray]
|
||||
* @param {module:svgcanvas.ExtensionNameFilter} nameFilter
|
||||
* @returns {GenericArray.<module:svgcanvas.ExtensionStatus>|module:svgcanvas.ExtensionStatus|false} See {@tutorial ExtensionDocs} on the ExtensionStatus.
|
||||
* @returns {GenericArray<module:svgcanvas.ExtensionStatus>|module:svgcanvas.ExtensionStatus|false} See {@tutorial ExtensionDocs} on the ExtensionStatus.
|
||||
*/
|
||||
|
||||
|
||||
@@ -15435,12 +15456,14 @@ function SvgCanvas(container, config) {
|
||||
if (!rightClick) {
|
||||
// insert a dummy transform so if the element(s) are moved it will have
|
||||
// a transform to use for its translate
|
||||
for (var i = 0; i < selectedElements.length; ++i) {
|
||||
if (isNullish(selectedElements[i])) {
|
||||
for (var _i2 = 0, _selectedElements = selectedElements; _i2 < _selectedElements.length; _i2++) {
|
||||
var selectedElement = _selectedElements[_i2];
|
||||
|
||||
if (isNullish(selectedElement)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var slist = getTransformList(selectedElements[i]);
|
||||
var slist = getTransformList(selectedElement);
|
||||
|
||||
if (slist.numberOfItems) {
|
||||
slist.insertItemBefore(svgroot.createSVGTransform(), 0);
|
||||
@@ -15469,7 +15492,7 @@ function SvgCanvas(container, config) {
|
||||
width: 0,
|
||||
height: 0,
|
||||
display: 'inline'
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -15487,7 +15510,7 @@ function SvgCanvas(container, config) {
|
||||
width: 0,
|
||||
height: 0,
|
||||
display: 'inline'
|
||||
}, 100);
|
||||
});
|
||||
break;
|
||||
|
||||
case 'resize':
|
||||
@@ -15544,16 +15567,16 @@ function SvgCanvas(container, config) {
|
||||
var all = mouseTarget.getElementsByTagName('*'),
|
||||
len = all.length;
|
||||
|
||||
for (var _i2 = 0; _i2 < len; _i2++) {
|
||||
if (!all[_i2].style) {
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (!all[i].style) {
|
||||
// mathML
|
||||
continue;
|
||||
}
|
||||
|
||||
all[_i2].style.vectorEffect = 'non-scaling-stroke';
|
||||
all[i].style.vectorEffect = 'non-scaling-stroke';
|
||||
|
||||
if (iswebkit) {
|
||||
delayedStroke(all[_i2]);
|
||||
delayedStroke(all[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15884,7 +15907,7 @@ function SvgCanvas(container, config) {
|
||||
y: Math.min(rStartY, realY),
|
||||
width: Math.abs(realX - rStartX),
|
||||
height: Math.abs(realY - rStartY)
|
||||
}, 100); // for each selected:
|
||||
}); // for each selected:
|
||||
// - if newList contains selected, do nothing
|
||||
// - if newList doesn't contain selected, remove it from selected
|
||||
// - for any newList that was not in selectedElements, add it to selected
|
||||
@@ -16032,7 +16055,7 @@ function SvgCanvas(container, config) {
|
||||
y: Math.min(rStartY * currentZoom, realY),
|
||||
width: Math.abs(realX - rStartX * currentZoom),
|
||||
height: Math.abs(realY - rStartY * currentZoom)
|
||||
}, 100);
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -16041,7 +16064,7 @@ function SvgCanvas(container, config) {
|
||||
assignAttributes(shape, {
|
||||
x: x,
|
||||
y: y
|
||||
}, 1000);
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -16100,7 +16123,7 @@ function SvgCanvas(container, config) {
|
||||
height: h,
|
||||
x: newX,
|
||||
y: newY
|
||||
}, 1000);
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -16232,7 +16255,7 @@ function SvgCanvas(container, config) {
|
||||
y: Math.min(rStartY * currentZoom, realY),
|
||||
width: Math.abs(realX - rStartX * currentZoom),
|
||||
height: Math.abs(realY - rStartY * currentZoom)
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
|
||||
pathActions$1.mouseMove(x, y);
|
||||
@@ -19006,10 +19029,30 @@ function SvgCanvas(container, config) {
|
||||
|
||||
elem = $$9(elem).data('gsvg') || $$9(elem).data('symbol') || elem;
|
||||
var childs = elem.childNodes;
|
||||
var _iteratorNormalCompletion2 = true;
|
||||
var _didIteratorError2 = false;
|
||||
var _iteratorError2 = undefined;
|
||||
|
||||
for (var i = 0; i < childs.length; i++) {
|
||||
if (childs[i].nodeName === 'title') {
|
||||
return childs[i].textContent;
|
||||
try {
|
||||
for (var _iterator2 = childs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
||||
var child = _step2.value;
|
||||
|
||||
if (child.nodeName === 'title') {
|
||||
return child.textContent;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError2 = true;
|
||||
_iteratorError2 = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) {
|
||||
_iterator2["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError2) {
|
||||
throw _iteratorError2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19076,12 +19119,32 @@ function SvgCanvas(container, config) {
|
||||
var docTitle = false,
|
||||
oldTitle = '';
|
||||
var batchCmd = new BatchCommand$1('Change Image Title');
|
||||
var _iteratorNormalCompletion3 = true;
|
||||
var _didIteratorError3 = false;
|
||||
var _iteratorError3 = undefined;
|
||||
|
||||
for (var i = 0; i < childs.length; i++) {
|
||||
if (childs[i].nodeName === 'title') {
|
||||
docTitle = childs[i];
|
||||
oldTitle = docTitle.textContent;
|
||||
break;
|
||||
try {
|
||||
for (var _iterator3 = childs[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
||||
var child = _step3.value;
|
||||
|
||||
if (child.nodeName === 'title') {
|
||||
docTitle = child;
|
||||
oldTitle = docTitle.textContent;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError3 = true;
|
||||
_iteratorError3 = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion3 && _iterator3["return"] != null) {
|
||||
_iterator3["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError3) {
|
||||
throw _iteratorError3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19922,7 +19985,7 @@ function SvgCanvas(container, config) {
|
||||
y: '-50%',
|
||||
width: '200%',
|
||||
height: '200%'
|
||||
}, 100); // Removing these attributes hides text in Chrome (see Issue 579)
|
||||
}); // Removing these attributes hides text in Chrome (see Issue 579)
|
||||
} else if (!isWebkit()) {
|
||||
filterElem.removeAttribute('x');
|
||||
filterElem.removeAttribute('y');
|
||||
@@ -21068,9 +21131,9 @@ function SvgCanvas(container, config) {
|
||||
|
||||
|
||||
this.moveToTopSelectedElement = function () {
|
||||
var _selectedElements = selectedElements,
|
||||
_selectedElements2 = _slicedToArray(_selectedElements, 1),
|
||||
selected = _selectedElements2[0];
|
||||
var _selectedElements2 = selectedElements,
|
||||
_selectedElements3 = _slicedToArray(_selectedElements2, 1),
|
||||
selected = _selectedElements3[0];
|
||||
|
||||
if (!isNullish(selected)) {
|
||||
var t = selected;
|
||||
@@ -21095,9 +21158,9 @@ function SvgCanvas(container, config) {
|
||||
|
||||
|
||||
this.moveToBottomSelectedElement = function () {
|
||||
var _selectedElements3 = selectedElements,
|
||||
_selectedElements4 = _slicedToArray(_selectedElements3, 1),
|
||||
selected = _selectedElements4[0];
|
||||
var _selectedElements4 = selectedElements,
|
||||
_selectedElements5 = _slicedToArray(_selectedElements4, 1),
|
||||
selected = _selectedElements5[0];
|
||||
|
||||
if (!isNullish(selected)) {
|
||||
var t = selected;
|
||||
@@ -22352,10 +22415,10 @@ function jQueryPluginSVGIcons($) {
|
||||
* listed under "fallback"
|
||||
* @param {boolean} [opts.replace] If set to `true`, HTML elements will
|
||||
* be replaced by, rather than include the SVG icon.
|
||||
* @param {PlainObject.<string, string>} [opts.placement] Map with selectors
|
||||
* @param {PlainObject<string, string>} [opts.placement] Map with selectors
|
||||
* for keys and SVG icon ids as values. This provides a custom method of
|
||||
* adding icons.
|
||||
* @param {PlainObject.<string, module:jQuerySVGIcons.Size>} [opts.resize] Map
|
||||
* @param {PlainObject<string, module:jQuerySVGIcons.Size>} [opts.resize] Map
|
||||
* with selectors for keys and numbers as values. This allows an easy way to
|
||||
* resize specific icons.
|
||||
* @param {module:jQuerySVGIcons.SVGIconsLoadedCallback} [opts.callback] A
|
||||
@@ -22777,7 +22840,7 @@ function jQueryPluginSVGIcons($) {
|
||||
|
||||
/**
|
||||
* @function external:jQuery.resizeSvgIcons
|
||||
* @param {PlainObject.<string, module:jQuerySVGIcons.Size>} obj Object with
|
||||
* @param {PlainObject<string, module:jQuerySVGIcons.Size>} obj Object with
|
||||
* selectors as keys. The values are sizes.
|
||||
* @returns {void}
|
||||
*/
|
||||
@@ -24682,9 +24745,28 @@ function jQueryContextMenu($) {
|
||||
$(this).each(function () {
|
||||
if (o !== undefined) {
|
||||
var d = o.split(',');
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
|
||||
for (var i = 0; i < d.length; i++) {
|
||||
$(this).find('A[href="' + d[i] + '"]').parent().addClass('disabled');
|
||||
try {
|
||||
for (var _iterator = d[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
var href = _step.value;
|
||||
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
||||
_iterator["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -24707,9 +24789,28 @@ function jQueryContextMenu($) {
|
||||
$(this).each(function () {
|
||||
if (o !== undefined) {
|
||||
var d = o.split(',');
|
||||
var _iteratorNormalCompletion2 = true;
|
||||
var _didIteratorError2 = false;
|
||||
var _iteratorError2 = undefined;
|
||||
|
||||
for (var i = 0; i < d.length; i++) {
|
||||
$(this).find('A[href="' + d[i] + '"]').parent().removeClass('disabled');
|
||||
try {
|
||||
for (var _iterator2 = d[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
||||
var href = _step2.value;
|
||||
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError2 = true;
|
||||
_iteratorError2 = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) {
|
||||
_iterator2["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError2) {
|
||||
throw _iteratorError2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -28518,6 +28619,44 @@ function () {
|
||||
};
|
||||
}();
|
||||
|
||||
function _slicedToArray$1(arr, i) {
|
||||
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
|
||||
}
|
||||
|
||||
function _arrayWithHoles$1(arr) {
|
||||
if (Array.isArray(arr)) return arr;
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit$1(arr, i) {
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
}
|
||||
} catch (err) {
|
||||
_d = true;
|
||||
_e = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_n && _i["return"] != null) _i["return"]();
|
||||
} finally {
|
||||
if (_d) throw _e;
|
||||
}
|
||||
}
|
||||
|
||||
return _arr;
|
||||
}
|
||||
|
||||
function _nonIterableRest$1() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}
|
||||
|
||||
function loadStylesheets(stylesheets) {
|
||||
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
||||
beforeDefault = _ref.before,
|
||||
@@ -28536,7 +28675,7 @@ function loadStylesheets(stylesheets) {
|
||||
if (Array.isArray(stylesheetURL)) {
|
||||
var _stylesheetURL = stylesheetURL;
|
||||
|
||||
var _stylesheetURL2 = _slicedToArray(_stylesheetURL, 2);
|
||||
var _stylesheetURL2 = _slicedToArray$1(_stylesheetURL, 2);
|
||||
|
||||
stylesheetURL = _stylesheetURL2[0];
|
||||
var _stylesheetURL2$ = _stylesheetURL2[1];
|
||||
@@ -29998,7 +30137,7 @@ editor.init = function () {
|
||||
setFlyoutPositions();
|
||||
};
|
||||
/**
|
||||
* Setup SVG icons
|
||||
* Setup SVG icons.
|
||||
* @returns {void}
|
||||
*/
|
||||
|
||||
@@ -30381,7 +30520,7 @@ editor.init = function () {
|
||||
}
|
||||
/**
|
||||
* This function highlights the layer passed in (by fading out the other layers).
|
||||
* If no layer is passed in, this function restores the other layers
|
||||
* If no layer is passed in, this function restores the other layers.
|
||||
* @param {string} [layerNameToHighlight]
|
||||
* @returns {void}
|
||||
*/
|
||||
@@ -31757,7 +31896,7 @@ editor.init = function () {
|
||||
|
||||
var allHolders = {};
|
||||
/**
|
||||
* @param {PlainObject.<string, module:SVGEditor.ToolButton>} holders Key is a selector
|
||||
* @param {PlainObject<string, module:SVGEditor.ToolButton>} holders Key is a selector
|
||||
* @returns {void}
|
||||
*/
|
||||
|
||||
@@ -35826,7 +35965,7 @@ editor.init = function () {
|
||||
}
|
||||
});
|
||||
/**
|
||||
* Implements {@see module:jQueryContextMenu.jQueryContextMenuListener}
|
||||
* Implements {@see module:jQueryContextMenu.jQueryContextMenuListener}.
|
||||
* @param {"dupe"|"delete"|"merge_down"|"merge_all"} action
|
||||
* @param {external:jQuery} el
|
||||
* @param {{x: Float, y: Float, docX: Float, docY: Float}} pos
|
||||
@@ -36024,7 +36163,7 @@ editor.init = function () {
|
||||
var result = _ref27.target.result;
|
||||
|
||||
/**
|
||||
* Insert the new image until we know its dimensions
|
||||
* Insert the new image until we know its dimensions.
|
||||
* @param {Float} width
|
||||
* @param {Float} height
|
||||
* @returns {void}
|
||||
|
||||
Reference in New Issue
Block a user