- Update: Underscore copy; build files per Rollup/Babel updates
- npm: Update devDeps (babel, cypress, linting, mocha, rollup related)
This commit is contained in:
@@ -336,9 +336,7 @@
|
||||
(function () {
|
||||
if (!('SVGPathSeg' in window)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSeg
|
||||
var _SVGPathSeg =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _SVGPathSeg = /*#__PURE__*/function () {
|
||||
function _SVGPathSeg(type, typeAsLetter, owningPathSegList) {
|
||||
_classCallCheck(this, _SVGPathSeg);
|
||||
|
||||
@@ -382,9 +380,7 @@
|
||||
_SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
|
||||
_SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
|
||||
|
||||
var _SVGPathSegClosePath =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg2) {
|
||||
var _SVGPathSegClosePath = /*#__PURE__*/function (_SVGPathSeg2) {
|
||||
_inherits(_SVGPathSegClosePath, _SVGPathSeg2);
|
||||
|
||||
function _SVGPathSegClosePath(owningPathSegList) {
|
||||
@@ -413,9 +409,7 @@
|
||||
return _SVGPathSegClosePath;
|
||||
}(_SVGPathSeg);
|
||||
|
||||
var _SVGPathSegMovetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg3) {
|
||||
var _SVGPathSegMovetoAbs = /*#__PURE__*/function (_SVGPathSeg3) {
|
||||
_inherits(_SVGPathSegMovetoAbs, _SVGPathSeg3);
|
||||
|
||||
function _SVGPathSegMovetoAbs(owningPathSegList, x, y) {
|
||||
@@ -474,9 +468,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegMovetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg4) {
|
||||
var _SVGPathSegMovetoRel = /*#__PURE__*/function (_SVGPathSeg4) {
|
||||
_inherits(_SVGPathSegMovetoRel, _SVGPathSeg4);
|
||||
|
||||
function _SVGPathSegMovetoRel(owningPathSegList, x, y) {
|
||||
@@ -535,9 +527,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg5) {
|
||||
var _SVGPathSegLinetoAbs = /*#__PURE__*/function (_SVGPathSeg5) {
|
||||
_inherits(_SVGPathSegLinetoAbs, _SVGPathSeg5);
|
||||
|
||||
function _SVGPathSegLinetoAbs(owningPathSegList, x, y) {
|
||||
@@ -596,9 +586,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg6) {
|
||||
var _SVGPathSegLinetoRel = /*#__PURE__*/function (_SVGPathSeg6) {
|
||||
_inherits(_SVGPathSegLinetoRel, _SVGPathSeg6);
|
||||
|
||||
function _SVGPathSegLinetoRel(owningPathSegList, x, y) {
|
||||
@@ -657,9 +645,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg7) {
|
||||
var _SVGPathSegCurvetoCubicAbs = /*#__PURE__*/function (_SVGPathSeg7) {
|
||||
_inherits(_SVGPathSegCurvetoCubicAbs, _SVGPathSeg7);
|
||||
|
||||
function _SVGPathSegCurvetoCubicAbs(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -766,9 +752,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg8) {
|
||||
var _SVGPathSegCurvetoCubicRel = /*#__PURE__*/function (_SVGPathSeg8) {
|
||||
_inherits(_SVGPathSegCurvetoCubicRel, _SVGPathSeg8);
|
||||
|
||||
function _SVGPathSegCurvetoCubicRel(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
@@ -875,9 +859,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg9) {
|
||||
var _SVGPathSegCurvetoQuadraticAbs = /*#__PURE__*/function (_SVGPathSeg9) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticAbs, _SVGPathSeg9);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticAbs(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -960,9 +942,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg10) {
|
||||
var _SVGPathSegCurvetoQuadraticRel = /*#__PURE__*/function (_SVGPathSeg10) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticRel, _SVGPathSeg10);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticRel(owningPathSegList, x, y, x1, y1) {
|
||||
@@ -1045,9 +1025,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg11) {
|
||||
var _SVGPathSegArcAbs = /*#__PURE__*/function (_SVGPathSeg11) {
|
||||
_inherits(_SVGPathSegArcAbs, _SVGPathSeg11);
|
||||
|
||||
function _SVGPathSegArcAbs(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -1166,9 +1144,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegArcRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg12) {
|
||||
var _SVGPathSegArcRel = /*#__PURE__*/function (_SVGPathSeg12) {
|
||||
_inherits(_SVGPathSegArcRel, _SVGPathSeg12);
|
||||
|
||||
function _SVGPathSegArcRel(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
@@ -1287,9 +1263,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg13) {
|
||||
var _SVGPathSegLinetoHorizontalAbs = /*#__PURE__*/function (_SVGPathSeg13) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalAbs, _SVGPathSeg13);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalAbs(owningPathSegList, x) {
|
||||
@@ -1334,9 +1308,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoHorizontalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg14) {
|
||||
var _SVGPathSegLinetoHorizontalRel = /*#__PURE__*/function (_SVGPathSeg14) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalRel, _SVGPathSeg14);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalRel(owningPathSegList, x) {
|
||||
@@ -1381,9 +1353,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg15) {
|
||||
var _SVGPathSegLinetoVerticalAbs = /*#__PURE__*/function (_SVGPathSeg15) {
|
||||
_inherits(_SVGPathSegLinetoVerticalAbs, _SVGPathSeg15);
|
||||
|
||||
function _SVGPathSegLinetoVerticalAbs(owningPathSegList, y) {
|
||||
@@ -1428,9 +1398,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegLinetoVerticalRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg16) {
|
||||
var _SVGPathSegLinetoVerticalRel = /*#__PURE__*/function (_SVGPathSeg16) {
|
||||
_inherits(_SVGPathSegLinetoVerticalRel, _SVGPathSeg16);
|
||||
|
||||
function _SVGPathSegLinetoVerticalRel(owningPathSegList, y) {
|
||||
@@ -1475,9 +1443,7 @@
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg17) {
|
||||
var _SVGPathSegCurvetoCubicSmoothAbs = /*#__PURE__*/function (_SVGPathSeg17) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothAbs, _SVGPathSeg17);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1560,9 +1526,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoCubicSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg18) {
|
||||
var _SVGPathSegCurvetoCubicSmoothRel = /*#__PURE__*/function (_SVGPathSeg18) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothRel, _SVGPathSeg18);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, x, y, x2, y2) {
|
||||
@@ -1645,9 +1609,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg19) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothAbs = /*#__PURE__*/function (_SVGPathSeg19) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs, _SVGPathSeg19);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, x, y) {
|
||||
@@ -1706,9 +1668,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel =
|
||||
/*#__PURE__*/
|
||||
function (_SVGPathSeg20) {
|
||||
var _SVGPathSegCurvetoQuadraticSmoothRel = /*#__PURE__*/function (_SVGPathSeg20) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothRel, _SVGPathSeg20);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, x, y) {
|
||||
@@ -1904,9 +1864,7 @@
|
||||
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
|
||||
var SVGPathSegList =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var SVGPathSegList = /*#__PURE__*/function () {
|
||||
function SVGPathSegList(pathElement) {
|
||||
_classCallCheck(this, SVGPathSegList);
|
||||
|
||||
@@ -2090,9 +2048,7 @@
|
||||
|
||||
var owningPathSegList = this; // eslint-disable-line consistent-this
|
||||
|
||||
var Builder =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Builder = /*#__PURE__*/function () {
|
||||
function Builder() {
|
||||
_classCallCheck(this, Builder);
|
||||
|
||||
@@ -2109,9 +2065,7 @@
|
||||
return Builder;
|
||||
}();
|
||||
|
||||
var Source =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Source = /*#__PURE__*/function () {
|
||||
function Source(string) {
|
||||
_classCallCheck(this, Source);
|
||||
|
||||
@@ -3136,9 +3090,7 @@
|
||||
* @implements {module:SVGTransformList.SVGEditTransformList}
|
||||
*/
|
||||
|
||||
var SVGTransformList =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var SVGTransformList = /*#__PURE__*/function () {
|
||||
// eslint-disable-line no-shadow
|
||||
|
||||
/**
|
||||
@@ -3774,9 +3726,7 @@
|
||||
* Base class for commands.
|
||||
*/
|
||||
|
||||
var Command =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Command = /*#__PURE__*/function () {
|
||||
function Command() {
|
||||
_classCallCheck(this, Command);
|
||||
}
|
||||
@@ -3870,9 +3820,7 @@
|
||||
*/
|
||||
|
||||
|
||||
var MoveElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command) {
|
||||
var MoveElementCommand = /*#__PURE__*/function (_Command) {
|
||||
_inherits(MoveElementCommand, _Command);
|
||||
|
||||
/**
|
||||
@@ -3966,9 +3914,7 @@
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var InsertElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command2) {
|
||||
var InsertElementCommand = /*#__PURE__*/function (_Command2) {
|
||||
_inherits(InsertElementCommand, _Command2);
|
||||
|
||||
/**
|
||||
@@ -4058,9 +4004,7 @@
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var RemoveElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command3) {
|
||||
var RemoveElementCommand = /*#__PURE__*/function (_Command3) {
|
||||
_inherits(RemoveElementCommand, _Command3);
|
||||
|
||||
/**
|
||||
@@ -4172,9 +4116,7 @@
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var ChangeElementCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command4) {
|
||||
var ChangeElementCommand = /*#__PURE__*/function (_Command4) {
|
||||
_inherits(ChangeElementCommand, _Command4);
|
||||
|
||||
/**
|
||||
@@ -4367,9 +4309,7 @@
|
||||
* @implements {module:history.HistoryCommand}
|
||||
*/
|
||||
|
||||
var BatchCommand =
|
||||
/*#__PURE__*/
|
||||
function (_Command5) {
|
||||
var BatchCommand = /*#__PURE__*/function (_Command5) {
|
||||
_inherits(BatchCommand, _Command5);
|
||||
|
||||
/**
|
||||
@@ -4495,9 +4435,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
var UndoManager =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var UndoManager = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {module:history.HistoryEventHandler} historyEventHandler
|
||||
*/
|
||||
@@ -5636,9 +5574,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
var Segment =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Segment = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {Integer} index
|
||||
* @param {SVGPathSeg} item
|
||||
@@ -5866,9 +5802,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
var Path =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Path = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {SVGPathElement} elem
|
||||
* @throws {Error} If constructed without a path element
|
||||
@@ -9496,9 +9430,7 @@
|
||||
*/
|
||||
|
||||
function _importSetGlobal() {
|
||||
_importSetGlobal = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(url, _ref2) {
|
||||
_importSetGlobal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, _ref2) {
|
||||
var glob, returnDefault, modularVersion;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
@@ -9959,9 +9891,7 @@
|
||||
* @memberof module:layer
|
||||
*/
|
||||
|
||||
var Layer =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Layer = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {string} name - Layer name
|
||||
* @param {SVGGElement|null} group - An existing SVG group element or null.
|
||||
@@ -10256,9 +10186,7 @@
|
||||
* @memberof module:history
|
||||
*/
|
||||
|
||||
var HistoryRecordingService =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var HistoryRecordingService = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {history.UndoManager|null} undoManager - The undo manager.
|
||||
* A value of `null` is valid for cases where no history recording is required.
|
||||
@@ -10471,9 +10399,7 @@
|
||||
*/
|
||||
|
||||
|
||||
var Drawing =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Drawing = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {SVGSVGElement} svgElem - The SVG DOM Element that this JS object
|
||||
* encapsulates. If the svgElem has a se:nonce attribute on it, then
|
||||
@@ -13140,9 +13066,7 @@
|
||||
* Private class for DOM element selection boxes.
|
||||
*/
|
||||
|
||||
var Selector =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Selector = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {Integer} id - Internally identify the selector
|
||||
* @param {Element} elem - DOM element associated with this selector
|
||||
@@ -13389,9 +13313,7 @@
|
||||
* Manage all selector objects (selection boxes).
|
||||
*/
|
||||
|
||||
var SelectorManager =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var SelectorManager = /*#__PURE__*/function () {
|
||||
/**
|
||||
* Sets up properties and calls `initGroup`.
|
||||
*/
|
||||
@@ -14864,12 +14786,8 @@
|
||||
*/
|
||||
|
||||
|
||||
this.addExtension =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref3 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(name, extInitFunc, _ref4) {
|
||||
this.addExtension = /*#__PURE__*/function () {
|
||||
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(name, extInitFunc, _ref4) {
|
||||
var jq, importLocale, argObj, extObj;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
@@ -18082,12 +18000,8 @@
|
||||
* @returns {Promise<module:svgcanvas.ImageExportedResults>} Resolves to {@link module:svgcanvas.ImageExportedResults}
|
||||
*/
|
||||
|
||||
this.rasterExport =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref5 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2(imgType, quality, exportWindowName) {
|
||||
this.rasterExport = /*#__PURE__*/function () {
|
||||
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(imgType, quality, exportWindowName) {
|
||||
var opts,
|
||||
type,
|
||||
mimeType,
|
||||
@@ -18230,12 +18144,8 @@
|
||||
*/
|
||||
|
||||
|
||||
this.exportPDF =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref7 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee3(exportWindowName) {
|
||||
this.exportPDF = /*#__PURE__*/function () {
|
||||
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(exportWindowName) {
|
||||
var outputType,
|
||||
modularVersion,
|
||||
res,
|
||||
@@ -28221,12 +28131,8 @@
|
||||
* @returns {Promise<module:locale.LangAndData>} Resolves to [`LangAndData`]{@link module:locale.LangAndData}
|
||||
*/
|
||||
|
||||
var readLang =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref3 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee(langData) {
|
||||
var readLang = /*#__PURE__*/function () {
|
||||
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(langData) {
|
||||
var more, _langData, tools, properties, config, layers, common, ui, opts, ariaLabels;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
@@ -28476,12 +28382,8 @@
|
||||
* @returns {Promise<module:locale.LangAndData>} Resolves to result of {@link module:locale.readLang}
|
||||
*/
|
||||
|
||||
var putLocale =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref8 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2(givenParam, goodLangs, conf) {
|
||||
var putLocale = /*#__PURE__*/function () {
|
||||
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(givenParam, goodLangs, conf) {
|
||||
var url;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
@@ -29012,9 +28914,7 @@
|
||||
|
||||
|
||||
function _loadSvgString() {
|
||||
_loadSvgString = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee23(str) {
|
||||
_loadSvgString = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23(str) {
|
||||
var _ref49,
|
||||
noAlert,
|
||||
success,
|
||||
@@ -29070,12 +28970,8 @@
|
||||
* @param {string} [localeInfo.lang=defaultLang] Defaults to `defaultLang` of {@link module:SVGEditor~getImportLocale}
|
||||
* @returns {Promise<module:locale.LocaleStrings>} Resolves to {@link module:locale.LocaleStrings}
|
||||
*/
|
||||
return (
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _importLocaleDefaulting = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee() {
|
||||
return (/*#__PURE__*/function () {
|
||||
var _importLocaleDefaulting = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var _ref2,
|
||||
_ref2$name,
|
||||
name,
|
||||
@@ -29598,12 +29494,8 @@
|
||||
*/
|
||||
|
||||
|
||||
var extAndLocaleFunc =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref7 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee3() {
|
||||
var extAndLocaleFunc = /*#__PURE__*/function () {
|
||||
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
||||
var _ref8, langParam, langData, _uiStrings$common, ok, cancel;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
||||
@@ -29630,12 +29522,8 @@
|
||||
|
||||
_context3.prev = 10;
|
||||
_context3.next = 13;
|
||||
return Promise.all(curConfig.extensions.map(
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref9 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee2(extname) {
|
||||
return Promise.all(curConfig.extensions.map( /*#__PURE__*/function () {
|
||||
var _ref9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(extname) {
|
||||
var extName, url, imported, _imported$name, _name2, init, importLocale;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
@@ -30238,9 +30126,7 @@
|
||||
'#tools_bottom label .svg_icon': 18
|
||||
},
|
||||
callback: function callback(icons) {
|
||||
return _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee4() {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
||||
var tleft, minHeight, size, getStylesheetPriority, stylesheets, idx, _stylesheets;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
||||
@@ -30814,9 +30700,7 @@
|
||||
|
||||
|
||||
function _promptImgURL() {
|
||||
_promptImgURL = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee18() {
|
||||
_promptImgURL = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
||||
var _ref35,
|
||||
_ref35$cancelDeletes,
|
||||
cancelDeletes,
|
||||
@@ -32079,12 +31963,8 @@
|
||||
* @returns {Promise<void>|void} Resolves to `undefined`
|
||||
*/
|
||||
|
||||
var extAdded =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref16 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee5(win, ext) {
|
||||
var extAdded = /*#__PURE__*/function () {
|
||||
var _ref16 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(win, ext) {
|
||||
var cbCalled, resizeDone, lang, prepResize, runCallback, btnSelects, svgicons, fallbackObj, altsObj, placementObj, holders;
|
||||
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
||||
while (1) {
|
||||
@@ -32775,11 +32655,7 @@
|
||||
}); // fired when user wants to move elements to another layer
|
||||
|
||||
var promptMoveLayerOnce = false;
|
||||
$$b('#selLayerNames').change(
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee6() {
|
||||
$$b('#selLayerNames').change( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
||||
var destLayer, confirmStr, moveToLayer, ok;
|
||||
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
||||
while (1) {
|
||||
@@ -33522,12 +33398,8 @@
|
||||
*/
|
||||
|
||||
|
||||
var makeHyperlink =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref20 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee7() {
|
||||
var makeHyperlink = /*#__PURE__*/function () {
|
||||
var _ref20 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
||||
var url;
|
||||
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
||||
while (1) {
|
||||
@@ -33677,12 +33549,8 @@
|
||||
*/
|
||||
|
||||
|
||||
var clickClear =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref21 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee8() {
|
||||
var clickClear = /*#__PURE__*/function () {
|
||||
var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
||||
var _curConfig$dimensions, x, y, ok;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
||||
@@ -33769,12 +33637,8 @@
|
||||
* @returns {Promise<void>} Resolves to `undefined`
|
||||
*/
|
||||
|
||||
var clickExport =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref22 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee9() {
|
||||
var clickExport = /*#__PURE__*/function () {
|
||||
var _ref22 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
||||
var imgType, exportWindowName, openExportWindow, chrome, quality;
|
||||
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
||||
while (1) {
|
||||
@@ -34070,12 +33934,8 @@
|
||||
*/
|
||||
|
||||
|
||||
var saveSourceEditor =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref24 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee10() {
|
||||
var saveSourceEditor = /*#__PURE__*/function () {
|
||||
var _ref24 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
||||
var saveChanges, ok;
|
||||
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
||||
while (1) {
|
||||
@@ -34215,11 +34075,7 @@
|
||||
*/
|
||||
|
||||
|
||||
var savePreferences = editor.savePreferences =
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee11() {
|
||||
var savePreferences = editor.savePreferences = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
||||
var color, lang, _ref26, langParam, langData;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
||||
@@ -34280,12 +34136,8 @@
|
||||
* @returns {Promise<void>} Resolves to `undefined`
|
||||
*/
|
||||
|
||||
var cancelOverlays =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref27 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee12() {
|
||||
var cancelOverlays = /*#__PURE__*/function () {
|
||||
var _ref27 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
||||
var ok;
|
||||
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
||||
while (1) {
|
||||
@@ -34502,9 +34354,7 @@
|
||||
*/
|
||||
|
||||
|
||||
var PaintBox =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var PaintBox = /*#__PURE__*/function () {
|
||||
/**
|
||||
* @param {string|Element|external:jQuery} container
|
||||
* @param {"fill"} type
|
||||
@@ -34747,11 +34597,7 @@
|
||||
$$b(this).removeClass('push_button_pressed').addClass('push_button');
|
||||
}); // ask for a layer name
|
||||
|
||||
$$b('#layer_new').click(
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee13() {
|
||||
$$b('#layer_new').click( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
||||
var uniqName, i, newName;
|
||||
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
||||
while (1) {
|
||||
@@ -34830,9 +34676,7 @@
|
||||
|
||||
|
||||
function _cloneLayer() {
|
||||
_cloneLayer = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee19() {
|
||||
_cloneLayer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
||||
var name, newName;
|
||||
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
||||
while (1) {
|
||||
@@ -34910,11 +34754,7 @@
|
||||
$$b('#layer_down').click(function () {
|
||||
moveLayer(1);
|
||||
});
|
||||
$$b('#layer_rename').click(
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee14() {
|
||||
$$b('#layer_rename').click( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
||||
var oldName, newName;
|
||||
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
||||
while (1) {
|
||||
@@ -36169,12 +36009,8 @@
|
||||
workarea[0].addEventListener('dragover', onDragOver);
|
||||
workarea[0].addEventListener('dragleave', onDragLeave);
|
||||
workarea[0].addEventListener('drop', importImage);
|
||||
var open = $$b('<input type="file">').change(
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref31 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee16(e) {
|
||||
var open = $$b('<input type="file">').change( /*#__PURE__*/function () {
|
||||
var _ref31 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(e) {
|
||||
var ok, reader;
|
||||
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
||||
while (1) {
|
||||
@@ -36200,12 +36036,8 @@
|
||||
$$b.process_cancel(uiStrings$1.notification.loadingImage);
|
||||
reader = new FileReader();
|
||||
|
||||
reader.onloadend =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref32 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee15(_ref33) {
|
||||
reader.onloadend = /*#__PURE__*/function () {
|
||||
var _ref32 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(_ref33) {
|
||||
var target;
|
||||
return regeneratorRuntime.wrap(function _callee15$(_context15) {
|
||||
while (1) {
|
||||
@@ -36271,12 +36103,8 @@
|
||||
* @returns {Promise<void>} A Promise which resolves to `undefined`
|
||||
*/
|
||||
|
||||
var setLang = editor.setLang =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref34 = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee17(lang, allStrings) {
|
||||
var setLang = editor.setLang = /*#__PURE__*/function () {
|
||||
var _ref34 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17(lang, allStrings) {
|
||||
var oldLayerName, renameLayer, elems;
|
||||
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
||||
while (1) {
|
||||
@@ -36465,11 +36293,7 @@
|
||||
*/
|
||||
|
||||
|
||||
editor.runCallbacks =
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee20() {
|
||||
editor.runCallbacks = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
|
||||
return regeneratorRuntime.wrap(function _callee20$(_context20) {
|
||||
while (1) {
|
||||
switch (_context20.prev = _context20.next) {
|
||||
@@ -36525,11 +36349,7 @@
|
||||
var _ref43 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
||||
noAlert = _ref43.noAlert;
|
||||
|
||||
return editor.ready(
|
||||
/*#__PURE__*/
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee21() {
|
||||
return editor.ready( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {
|
||||
return regeneratorRuntime.wrap(function _callee21$(_context21) {
|
||||
while (1) {
|
||||
switch (_context21.prev = _context21.next) {
|
||||
@@ -36724,9 +36544,7 @@
|
||||
window.addEventListener('message', messageListener); // Run init once DOM is loaded
|
||||
// jQuery(editor.init);
|
||||
|
||||
_asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function _callee22() {
|
||||
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {
|
||||
return regeneratorRuntime.wrap(function _callee22$(_context22) {
|
||||
while (1) {
|
||||
switch (_context22.prev = _context22.next) {
|
||||
|
||||
Reference in New Issue
Block a user