parent
9e5fe12f94
commit
2b07946b6b
|
@ -106,7 +106,7 @@ var canvg = (function (exports) {
|
|||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function isNativeReflectConstruct() {
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
@ -120,7 +120,7 @@ var canvg = (function (exports) {
|
|||
}
|
||||
|
||||
function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
if (_isNativeReflectConstruct()) {
|
||||
_construct = Reflect.construct;
|
||||
} else {
|
||||
_construct = function _construct(Parent, args, Class) {
|
||||
|
@ -152,6 +152,23 @@ var canvg = (function (exports) {
|
|||
return _assertThisInitialized(self);
|
||||
}
|
||||
|
||||
function _createSuper(Derived) {
|
||||
return function () {
|
||||
var Super = _getPrototypeOf(Derived),
|
||||
result;
|
||||
|
||||
if (_isNativeReflectConstruct()) {
|
||||
var NewTarget = _getPrototypeOf(this).constructor;
|
||||
|
||||
result = Reflect.construct(Super, arguments, NewTarget);
|
||||
} else {
|
||||
result = Super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(this, result);
|
||||
};
|
||||
}
|
||||
|
||||
function _superPropBase(object, property) {
|
||||
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
||||
object = _getPrototypeOf(object);
|
||||
|
@ -183,19 +200,15 @@ var canvg = (function (exports) {
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -203,14 +216,11 @@ var canvg = (function (exports) {
|
|||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -236,12 +246,29 @@ var canvg = (function (exports) {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1658,12 +1685,14 @@ var canvg = (function (exports) {
|
|||
SkewBase: /*#__PURE__*/function (_this$Type$matrix) {
|
||||
_inherits(SkewBase, _this$Type$matrix);
|
||||
|
||||
var _super = _createSuper(SkewBase);
|
||||
|
||||
function SkewBase(s) {
|
||||
var _this3;
|
||||
|
||||
_classCallCheck(this, SkewBase);
|
||||
|
||||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(SkewBase).call(this, s));
|
||||
_this3 = _super.call(this, s);
|
||||
_this3.angle = new svg.Property('angle', s);
|
||||
return _this3;
|
||||
}
|
||||
|
@ -1675,12 +1704,14 @@ var canvg = (function (exports) {
|
|||
skewX: /*#__PURE__*/function (_this$Type$SkewBase) {
|
||||
_inherits(skewX, _this$Type$SkewBase);
|
||||
|
||||
var _super2 = _createSuper(skewX);
|
||||
|
||||
function skewX(s) {
|
||||
var _this4;
|
||||
|
||||
_classCallCheck(this, skewX);
|
||||
|
||||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(skewX).call(this, s));
|
||||
_this4 = _super2.call(this, s);
|
||||
_this4.m = [1, 0, Math.tan(_this4.angle.toRadians()), 1, 0, 0];
|
||||
return _this4;
|
||||
}
|
||||
|
@ -1690,12 +1721,14 @@ var canvg = (function (exports) {
|
|||
skewY: /*#__PURE__*/function (_this$Type$SkewBase2) {
|
||||
_inherits(skewY, _this$Type$SkewBase2);
|
||||
|
||||
var _super3 = _createSuper(skewY);
|
||||
|
||||
function skewY(s) {
|
||||
var _this5;
|
||||
|
||||
_classCallCheck(this, skewY);
|
||||
|
||||
_this5 = _possibleConstructorReturn(this, _getPrototypeOf(skewY).call(this, s));
|
||||
_this5 = _super3.call(this, s);
|
||||
_this5.m = [1, Math.tan(_this5.angle.toRadians()), 0, 1, 0, 0];
|
||||
return _this5;
|
||||
}
|
||||
|
@ -2029,10 +2062,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.RenderedElementBase = /*#__PURE__*/function (_svg$Element$ElementB) {
|
||||
_inherits(_class5, _svg$Element$ElementB);
|
||||
|
||||
var _super4 = _createSuper(_class5);
|
||||
|
||||
function _class5() {
|
||||
_classCallCheck(this, _class5);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class5).apply(this, arguments));
|
||||
return _super4.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class5, [{
|
||||
|
@ -2134,10 +2169,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.PathElementBase = /*#__PURE__*/function (_svg$Element$Rendered) {
|
||||
_inherits(_class6, _svg$Element$Rendered);
|
||||
|
||||
var _super5 = _createSuper(_class6);
|
||||
|
||||
function _class6() {
|
||||
_classCallCheck(this, _class6);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class6).apply(this, arguments));
|
||||
return _super5.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class6, [{
|
||||
|
@ -2203,10 +2240,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.svg = /*#__PURE__*/function (_svg$Element$Rendered2) {
|
||||
_inherits(_class7, _svg$Element$Rendered2);
|
||||
|
||||
var _super6 = _createSuper(_class7);
|
||||
|
||||
function _class7() {
|
||||
_classCallCheck(this, _class7);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class7).apply(this, arguments));
|
||||
return _super6.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class7, [{
|
||||
|
@ -2284,10 +2323,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.rect = /*#__PURE__*/function (_svg$Element$PathElem) {
|
||||
_inherits(_class8, _svg$Element$PathElem);
|
||||
|
||||
var _super7 = _createSuper(_class8);
|
||||
|
||||
function _class8() {
|
||||
_classCallCheck(this, _class8);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class8).apply(this, arguments));
|
||||
return _super7.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class8, [{
|
||||
|
@ -2329,10 +2370,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.circle = /*#__PURE__*/function (_svg$Element$PathElem2) {
|
||||
_inherits(_class9, _svg$Element$PathElem2);
|
||||
|
||||
var _super8 = _createSuper(_class9);
|
||||
|
||||
function _class9() {
|
||||
_classCallCheck(this, _class9);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class9).apply(this, arguments));
|
||||
return _super8.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class9, [{
|
||||
|
@ -2361,10 +2404,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.ellipse = /*#__PURE__*/function (_svg$Element$PathElem3) {
|
||||
_inherits(_class10, _svg$Element$PathElem3);
|
||||
|
||||
var _super9 = _createSuper(_class10);
|
||||
|
||||
function _class10() {
|
||||
_classCallCheck(this, _class10);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class10).apply(this, arguments));
|
||||
return _super9.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class10, [{
|
||||
|
@ -2396,10 +2441,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.line = /*#__PURE__*/function (_svg$Element$PathElem4) {
|
||||
_inherits(_class11, _svg$Element$PathElem4);
|
||||
|
||||
var _super10 = _createSuper(_class11);
|
||||
|
||||
function _class11() {
|
||||
_classCallCheck(this, _class11);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class11).apply(this, arguments));
|
||||
return _super10.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class11, [{
|
||||
|
@ -2436,12 +2483,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.polyline = /*#__PURE__*/function (_svg$Element$PathElem5) {
|
||||
_inherits(_class12, _svg$Element$PathElem5);
|
||||
|
||||
var _super11 = _createSuper(_class12);
|
||||
|
||||
function _class12(node) {
|
||||
var _this8;
|
||||
|
||||
_classCallCheck(this, _class12);
|
||||
|
||||
_this8 = _possibleConstructorReturn(this, _getPrototypeOf(_class12).call(this, node));
|
||||
_this8 = _super11.call(this, node);
|
||||
_this8.points = svg.CreatePath(_this8.attribute('points').value);
|
||||
return _this8;
|
||||
}
|
||||
|
@ -2490,10 +2539,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.polygon = /*#__PURE__*/function (_svg$Element$polyline) {
|
||||
_inherits(_class13, _svg$Element$polyline);
|
||||
|
||||
var _super12 = _createSuper(_class13);
|
||||
|
||||
function _class13() {
|
||||
_classCallCheck(this, _class13);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class13).apply(this, arguments));
|
||||
return _super12.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class13, [{
|
||||
|
@ -2517,12 +2568,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.path = /*#__PURE__*/function (_svg$Element$PathElem6) {
|
||||
_inherits(_class14, _svg$Element$PathElem6);
|
||||
|
||||
var _super13 = _createSuper(_class14);
|
||||
|
||||
function _class14(node) {
|
||||
var _this9;
|
||||
|
||||
_classCallCheck(this, _class14);
|
||||
|
||||
_this9 = _possibleConstructorReturn(this, _getPrototypeOf(_class14).call(this, node));
|
||||
_this9 = _super13.call(this, node);
|
||||
|
||||
var d = _this9.attribute('d').value // TODO: convert to real lexer based on https://www.w3.org/TR/SVG11/paths.html#PathDataBNF
|
||||
.replace(/,/gm, ' ') // get rid of all commas
|
||||
|
@ -2894,10 +2947,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.pattern = /*#__PURE__*/function (_svg$Element$ElementB2) {
|
||||
_inherits(_class15, _svg$Element$ElementB2);
|
||||
|
||||
var _super14 = _createSuper(_class15);
|
||||
|
||||
function _class15() {
|
||||
_classCallCheck(this, _class15);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class15).apply(this, arguments));
|
||||
return _super14.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class15, [{
|
||||
|
@ -2943,10 +2998,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.marker = /*#__PURE__*/function (_svg$Element$ElementB3) {
|
||||
_inherits(_class16, _svg$Element$ElementB3);
|
||||
|
||||
var _super15 = _createSuper(_class16);
|
||||
|
||||
function _class16() {
|
||||
_classCallCheck(this, _class16);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class16).apply(this, arguments));
|
||||
return _super15.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class16, [{
|
||||
|
@ -2981,10 +3038,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.defs = /*#__PURE__*/function (_svg$Element$ElementB4) {
|
||||
_inherits(_class17, _svg$Element$ElementB4);
|
||||
|
||||
var _super16 = _createSuper(_class17);
|
||||
|
||||
function _class17() {
|
||||
_classCallCheck(this, _class17);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class17).apply(this, arguments));
|
||||
return _super16.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class17, [{
|
||||
|
@ -3000,12 +3059,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.GradientBase = /*#__PURE__*/function (_svg$Element$ElementB5) {
|
||||
_inherits(_class18, _svg$Element$ElementB5);
|
||||
|
||||
var _super17 = _createSuper(_class18);
|
||||
|
||||
function _class18(node) {
|
||||
var _this10;
|
||||
|
||||
_classCallCheck(this, _class18);
|
||||
|
||||
_this10 = _possibleConstructorReturn(this, _getPrototypeOf(_class18).call(this, node));
|
||||
_this10 = _super17.call(this, node);
|
||||
_this10.gradientUnits = _this10.attribute('gradientUnits').valueOrDefault('objectBoundingBox');
|
||||
_this10.stops = [];
|
||||
|
||||
|
@ -3081,10 +3142,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.linearGradient = /*#__PURE__*/function (_svg$Element$Gradient) {
|
||||
_inherits(_class19, _svg$Element$Gradient);
|
||||
|
||||
var _super18 = _createSuper(_class19);
|
||||
|
||||
function _class19() {
|
||||
_classCallCheck(this, _class19);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class19).apply(this, arguments));
|
||||
return _super18.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class19, [{
|
||||
|
@ -3116,10 +3179,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.radialGradient = /*#__PURE__*/function (_svg$Element$Gradient2) {
|
||||
_inherits(_class20, _svg$Element$Gradient2);
|
||||
|
||||
var _super19 = _createSuper(_class20);
|
||||
|
||||
function _class20() {
|
||||
_classCallCheck(this, _class20);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class20).apply(this, arguments));
|
||||
return _super19.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class20, [{
|
||||
|
@ -3155,12 +3220,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.stop = /*#__PURE__*/function (_svg$Element$ElementB6) {
|
||||
_inherits(_class21, _svg$Element$ElementB6);
|
||||
|
||||
var _super20 = _createSuper(_class21);
|
||||
|
||||
function _class21(node) {
|
||||
var _this11;
|
||||
|
||||
_classCallCheck(this, _class21);
|
||||
|
||||
_this11 = _possibleConstructorReturn(this, _getPrototypeOf(_class21).call(this, node));
|
||||
_this11 = _super20.call(this, node);
|
||||
_this11.offset = _this11.attribute('offset').numValue();
|
||||
if (_this11.offset < 0) _this11.offset = 0;
|
||||
if (_this11.offset > 1) _this11.offset = 1;
|
||||
|
@ -3182,12 +3249,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.AnimateBase = /*#__PURE__*/function (_svg$Element$ElementB7) {
|
||||
_inherits(_class22, _svg$Element$ElementB7);
|
||||
|
||||
var _super21 = _createSuper(_class22);
|
||||
|
||||
function _class22(node) {
|
||||
var _this12;
|
||||
|
||||
_classCallCheck(this, _class22);
|
||||
|
||||
_this12 = _possibleConstructorReturn(this, _getPrototypeOf(_class22).call(this, node));
|
||||
_this12 = _super21.call(this, node);
|
||||
svg.Animations.push(_assertThisInitialized(_this12));
|
||||
_this12.duration = 0.0;
|
||||
_this12.begin = _this12.attribute('begin').toMilliseconds();
|
||||
|
@ -3297,10 +3366,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.animate = /*#__PURE__*/function (_svg$Element$AnimateB) {
|
||||
_inherits(_class23, _svg$Element$AnimateB);
|
||||
|
||||
var _super22 = _createSuper(_class23);
|
||||
|
||||
function _class23() {
|
||||
_classCallCheck(this, _class23);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class23).apply(this, arguments));
|
||||
return _super22.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class23, [{
|
||||
|
@ -3320,10 +3391,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.animateColor = /*#__PURE__*/function (_svg$Element$AnimateB2) {
|
||||
_inherits(_class24, _svg$Element$AnimateB2);
|
||||
|
||||
var _super23 = _createSuper(_class24);
|
||||
|
||||
function _class24() {
|
||||
_classCallCheck(this, _class24);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class24).apply(this, arguments));
|
||||
return _super23.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class24, [{
|
||||
|
@ -3352,10 +3425,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.animateTransform = /*#__PURE__*/function (_svg$Element$animate) {
|
||||
_inherits(_class25, _svg$Element$animate);
|
||||
|
||||
var _super24 = _createSuper(_class25);
|
||||
|
||||
function _class25() {
|
||||
_classCallCheck(this, _class25);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class25).apply(this, arguments));
|
||||
return _super24.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class25, [{
|
||||
|
@ -3380,12 +3455,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.font = /*#__PURE__*/function (_svg$Element$ElementB8) {
|
||||
_inherits(_class26, _svg$Element$ElementB8);
|
||||
|
||||
var _super25 = _createSuper(_class26);
|
||||
|
||||
function _class26(node) {
|
||||
var _this13;
|
||||
|
||||
_classCallCheck(this, _class26);
|
||||
|
||||
_this13 = _possibleConstructorReturn(this, _getPrototypeOf(_class26).call(this, node));
|
||||
_this13 = _super25.call(this, node);
|
||||
_this13.horizAdvX = _this13.attribute('horiz-adv-x').numValue();
|
||||
_this13.isRTL = false;
|
||||
_this13.isArabic = false;
|
||||
|
@ -3428,12 +3505,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.fontface = /*#__PURE__*/function (_svg$Element$ElementB9) {
|
||||
_inherits(_class27, _svg$Element$ElementB9);
|
||||
|
||||
var _super26 = _createSuper(_class27);
|
||||
|
||||
function _class27(node) {
|
||||
var _this14;
|
||||
|
||||
_classCallCheck(this, _class27);
|
||||
|
||||
_this14 = _possibleConstructorReturn(this, _getPrototypeOf(_class27).call(this, node));
|
||||
_this14 = _super26.call(this, node);
|
||||
_this14.ascent = _this14.attribute('ascent').value;
|
||||
_this14.descent = _this14.attribute('descent').value;
|
||||
_this14.unitsPerEm = _this14.attribute('units-per-em').numValue();
|
||||
|
@ -3447,12 +3526,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.missingglyph = /*#__PURE__*/function (_svg$Element$path) {
|
||||
_inherits(_class28, _svg$Element$path);
|
||||
|
||||
var _super27 = _createSuper(_class28);
|
||||
|
||||
function _class28(node) {
|
||||
var _this15;
|
||||
|
||||
_classCallCheck(this, _class28);
|
||||
|
||||
_this15 = _possibleConstructorReturn(this, _getPrototypeOf(_class28).call(this, node));
|
||||
_this15 = _super27.call(this, node);
|
||||
_this15.horizAdvX = 0;
|
||||
return _this15;
|
||||
}
|
||||
|
@ -3464,12 +3545,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.glyph = /*#__PURE__*/function (_svg$Element$path2) {
|
||||
_inherits(_class29, _svg$Element$path2);
|
||||
|
||||
var _super28 = _createSuper(_class29);
|
||||
|
||||
function _class29(node) {
|
||||
var _this16;
|
||||
|
||||
_classCallCheck(this, _class29);
|
||||
|
||||
_this16 = _possibleConstructorReturn(this, _getPrototypeOf(_class29).call(this, node));
|
||||
_this16 = _super28.call(this, node);
|
||||
_this16.horizAdvX = _this16.attribute('horiz-adv-x').numValue();
|
||||
_this16.unicode = _this16.attribute('unicode').value;
|
||||
_this16.arabicForm = _this16.attribute('arabic-form').value;
|
||||
|
@ -3483,10 +3566,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.text = /*#__PURE__*/function (_svg$Element$Rendered3) {
|
||||
_inherits(_class30, _svg$Element$Rendered3);
|
||||
|
||||
var _super29 = _createSuper(_class30);
|
||||
|
||||
function _class30(node) {
|
||||
_classCallCheck(this, _class30);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class30).call(this, node, true));
|
||||
return _super29.call(this, node, true);
|
||||
}
|
||||
|
||||
_createClass(_class30, [{
|
||||
|
@ -3579,10 +3664,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.TextElementBase = /*#__PURE__*/function (_svg$Element$Rendered4) {
|
||||
_inherits(_class31, _svg$Element$Rendered4);
|
||||
|
||||
var _super30 = _createSuper(_class31);
|
||||
|
||||
function _class31() {
|
||||
_classCallCheck(this, _class31);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class31).apply(this, arguments));
|
||||
return _super30.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class31, [{
|
||||
|
@ -3703,12 +3790,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.tspan = /*#__PURE__*/function (_svg$Element$TextElem) {
|
||||
_inherits(_class32, _svg$Element$TextElem);
|
||||
|
||||
var _super31 = _createSuper(_class32);
|
||||
|
||||
function _class32(node) {
|
||||
var _this18;
|
||||
|
||||
_classCallCheck(this, _class32);
|
||||
|
||||
_this18 = _possibleConstructorReturn(this, _getPrototypeOf(_class32).call(this, node, true));
|
||||
_this18 = _super31.call(this, node, true);
|
||||
_this18.text = node.nodeValue || node.text || '';
|
||||
return _this18;
|
||||
}
|
||||
|
@ -3727,10 +3816,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.tref = /*#__PURE__*/function (_svg$Element$TextElem2) {
|
||||
_inherits(_class33, _svg$Element$TextElem2);
|
||||
|
||||
var _super32 = _createSuper(_class33);
|
||||
|
||||
function _class33() {
|
||||
_classCallCheck(this, _class33);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class33).apply(this, arguments));
|
||||
return _super32.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class33, [{
|
||||
|
@ -3749,12 +3840,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.a = /*#__PURE__*/function (_svg$Element$TextElem3) {
|
||||
_inherits(_class34, _svg$Element$TextElem3);
|
||||
|
||||
var _super33 = _createSuper(_class34);
|
||||
|
||||
function _class34(node) {
|
||||
var _this19;
|
||||
|
||||
_classCallCheck(this, _class34);
|
||||
|
||||
_this19 = _possibleConstructorReturn(this, _getPrototypeOf(_class34).call(this, node));
|
||||
_this19 = _super33.call(this, node);
|
||||
_this19.hasText = true;
|
||||
|
||||
_toConsumableArray(node.childNodes).forEach(function (childNode) {
|
||||
|
@ -3809,12 +3902,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.image = /*#__PURE__*/function (_svg$Element$Rendered5) {
|
||||
_inherits(_class35, _svg$Element$Rendered5);
|
||||
|
||||
var _super34 = _createSuper(_class35);
|
||||
|
||||
function _class35(node) {
|
||||
var _this20;
|
||||
|
||||
_classCallCheck(this, _class35);
|
||||
|
||||
_this20 = _possibleConstructorReturn(this, _getPrototypeOf(_class35).call(this, node));
|
||||
_this20 = _super34.call(this, node);
|
||||
|
||||
var href = _this20.getHrefAttribute().value;
|
||||
|
||||
|
@ -3896,10 +3991,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.g = /*#__PURE__*/function (_svg$Element$Rendered6) {
|
||||
_inherits(_class36, _svg$Element$Rendered6);
|
||||
|
||||
var _super35 = _createSuper(_class36);
|
||||
|
||||
function _class36() {
|
||||
_classCallCheck(this, _class36);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class36).apply(this, arguments));
|
||||
return _super35.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class36, [{
|
||||
|
@ -3920,10 +4017,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.symbol = /*#__PURE__*/function (_svg$Element$Rendered7) {
|
||||
_inherits(_class37, _svg$Element$Rendered7);
|
||||
|
||||
var _super36 = _createSuper(_class37);
|
||||
|
||||
function _class37() {
|
||||
_classCallCheck(this, _class37);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class37).apply(this, arguments));
|
||||
return _super36.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class37, [{
|
||||
|
@ -3939,12 +4038,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.style = /*#__PURE__*/function (_svg$Element$ElementB10) {
|
||||
_inherits(_class38, _svg$Element$ElementB10);
|
||||
|
||||
var _super37 = _createSuper(_class38);
|
||||
|
||||
function _class38(node) {
|
||||
var _this21;
|
||||
|
||||
_classCallCheck(this, _class38);
|
||||
|
||||
_this21 = _possibleConstructorReturn(this, _getPrototypeOf(_class38).call(this, node)); // text, or spaces then CDATA
|
||||
_this21 = _super37.call(this, node); // text, or spaces then CDATA
|
||||
|
||||
var css = '';
|
||||
|
||||
|
@ -4017,12 +4118,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.use = /*#__PURE__*/function (_svg$Element$Rendered8) {
|
||||
_inherits(_class39, _svg$Element$Rendered8);
|
||||
|
||||
var _super38 = _createSuper(_class39);
|
||||
|
||||
function _class39(node) {
|
||||
var _this22;
|
||||
|
||||
_classCallCheck(this, _class39);
|
||||
|
||||
_this22 = _possibleConstructorReturn(this, _getPrototypeOf(_class39).call(this, node));
|
||||
_this22 = _super38.call(this, node);
|
||||
_this22._el = _this22.getHrefAttribute().getDefinition();
|
||||
return _this22;
|
||||
}
|
||||
|
@ -4087,10 +4190,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.mask = /*#__PURE__*/function (_svg$Element$ElementB11) {
|
||||
_inherits(_class40, _svg$Element$ElementB11);
|
||||
|
||||
var _super39 = _createSuper(_class40);
|
||||
|
||||
function _class40() {
|
||||
_classCallCheck(this, _class40);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class40).apply(this, arguments));
|
||||
return _super39.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class40, [{
|
||||
|
@ -4147,10 +4252,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.clipPath = /*#__PURE__*/function (_svg$Element$ElementB12) {
|
||||
_inherits(_class41, _svg$Element$ElementB12);
|
||||
|
||||
var _super40 = _createSuper(_class41);
|
||||
|
||||
function _class41() {
|
||||
_classCallCheck(this, _class41);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class41).apply(this, arguments));
|
||||
return _super40.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class41, [{
|
||||
|
@ -4187,10 +4294,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.filter = /*#__PURE__*/function (_svg$Element$ElementB13) {
|
||||
_inherits(_class42, _svg$Element$ElementB13);
|
||||
|
||||
var _super41 = _createSuper(_class42);
|
||||
|
||||
function _class42() {
|
||||
_classCallCheck(this, _class42);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class42).apply(this, arguments));
|
||||
return _super41.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class42, [{
|
||||
|
@ -4239,10 +4348,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.feMorphology = /*#__PURE__*/function (_svg$Element$ElementB14) {
|
||||
_inherits(_class43, _svg$Element$ElementB14);
|
||||
|
||||
var _super42 = _createSuper(_class43);
|
||||
|
||||
function _class43() {
|
||||
_classCallCheck(this, _class43);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class43).apply(this, arguments));
|
||||
return _super42.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class43, [{
|
||||
|
@ -4257,10 +4368,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.feComposite = /*#__PURE__*/function (_svg$Element$ElementB15) {
|
||||
_inherits(_class44, _svg$Element$ElementB15);
|
||||
|
||||
var _super43 = _createSuper(_class44);
|
||||
|
||||
function _class44() {
|
||||
_classCallCheck(this, _class44);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class44).apply(this, arguments));
|
||||
return _super43.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class44, [{
|
||||
|
@ -4304,12 +4417,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.feColorMatrix = /*#__PURE__*/function (_svg$Element$ElementB16) {
|
||||
_inherits(_class45, _svg$Element$ElementB16);
|
||||
|
||||
var _super44 = _createSuper(_class45);
|
||||
|
||||
function _class45(node) {
|
||||
var _this23;
|
||||
|
||||
_classCallCheck(this, _class45);
|
||||
|
||||
_this23 = _possibleConstructorReturn(this, _getPrototypeOf(_class45).call(this, node));
|
||||
_this23 = _super44.call(this, node);
|
||||
var matrix = svg.ToNumberArray(_this23.attribute('values').value);
|
||||
|
||||
switch (_this23.attribute('type').valueOrDefault('matrix')) {
|
||||
|
@ -4379,12 +4494,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.feGaussianBlur = /*#__PURE__*/function (_svg$Element$ElementB17) {
|
||||
_inherits(_class46, _svg$Element$ElementB17);
|
||||
|
||||
var _super45 = _createSuper(_class46);
|
||||
|
||||
function _class46(node) {
|
||||
var _this24;
|
||||
|
||||
_classCallCheck(this, _class46);
|
||||
|
||||
_this24 = _possibleConstructorReturn(this, _getPrototypeOf(_class46).call(this, node));
|
||||
_this24 = _super45.call(this, node);
|
||||
_this24.blurRadius = Math.floor(_this24.attribute('stdDeviation').numValue());
|
||||
_this24.extraFilterDistance = _this24.blurRadius;
|
||||
return _this24;
|
||||
|
@ -4410,10 +4527,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.title = /*#__PURE__*/function (_svg$Element$ElementB18) {
|
||||
_inherits(_class47, _svg$Element$ElementB18);
|
||||
|
||||
var _super46 = _createSuper(_class47);
|
||||
|
||||
function _class47(node) {
|
||||
_classCallCheck(this, _class47);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class47).call(this));
|
||||
return _super46.call(this);
|
||||
}
|
||||
|
||||
return _class47;
|
||||
|
@ -4423,10 +4542,12 @@ var canvg = (function (exports) {
|
|||
svg.Element.desc = /*#__PURE__*/function (_svg$Element$ElementB19) {
|
||||
_inherits(_class48, _svg$Element$ElementB19);
|
||||
|
||||
var _super47 = _createSuper(_class48);
|
||||
|
||||
function _class48(node) {
|
||||
_classCallCheck(this, _class48);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class48).call(this));
|
||||
return _super47.call(this);
|
||||
}
|
||||
|
||||
return _class48;
|
||||
|
@ -4435,12 +4556,14 @@ var canvg = (function (exports) {
|
|||
svg.Element.MISSING = /*#__PURE__*/function (_svg$Element$ElementB20) {
|
||||
_inherits(_class49, _svg$Element$ElementB20);
|
||||
|
||||
var _super48 = _createSuper(_class49);
|
||||
|
||||
function _class49(node) {
|
||||
var _this25;
|
||||
|
||||
_classCallCheck(this, _class49);
|
||||
|
||||
_this25 = _possibleConstructorReturn(this, _getPrototypeOf(_class49).call(this));
|
||||
_this25 = _super48.call(this);
|
||||
svg.log('ERROR: Element \'' + node.nodeName + '\' not yet implemented.');
|
||||
return _this25;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ var svgEditorExtension_arrows = (function () {
|
|||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
colorChanged = function _ref10(elem) {
|
||||
colorChanged = function _colorChanged(elem) {
|
||||
var color = elem.getAttribute('stroke');
|
||||
var mtypes = ['start', 'mid', 'end'];
|
||||
var defs = svgCanvas.findDefs();
|
||||
|
@ -122,7 +122,7 @@ var svgEditorExtension_arrows = (function () {
|
|||
});
|
||||
};
|
||||
|
||||
setArrow = function _ref9() {
|
||||
setArrow = function _setArrow() {
|
||||
resetMarker();
|
||||
var type = this.value;
|
||||
|
||||
|
@ -150,7 +150,7 @@ var svgEditorExtension_arrows = (function () {
|
|||
svgCanvas.call('changed', selElems);
|
||||
};
|
||||
|
||||
addMarker = function _ref8(dir, type, id) {
|
||||
addMarker = function _addMarker(dir, type, id) {
|
||||
// TODO: Make marker (or use?) per arrow type, since refX can be different
|
||||
id = id || arrowprefix + dir;
|
||||
var data = pathdata[dir];
|
||||
|
@ -191,14 +191,14 @@ var svgEditorExtension_arrows = (function () {
|
|||
return marker;
|
||||
};
|
||||
|
||||
resetMarker = function _ref7() {
|
||||
resetMarker = function _resetMarker() {
|
||||
var el = selElems[0];
|
||||
el.removeAttribute('marker-start');
|
||||
el.removeAttribute('marker-mid');
|
||||
el.removeAttribute('marker-end');
|
||||
};
|
||||
|
||||
showPanel = function _ref6(on) {
|
||||
showPanel = function _showPanel(on) {
|
||||
$('#arrow_panel').toggle(on);
|
||||
|
||||
if (on) {
|
||||
|
@ -230,7 +230,7 @@ var svgEditorExtension_arrows = (function () {
|
|||
}
|
||||
};
|
||||
|
||||
getLinked = function _ref5(elem, attr) {
|
||||
getLinked = function _getLinked(elem, attr) {
|
||||
var str = elem.getAttribute(attr);
|
||||
|
||||
if (!str) {
|
||||
|
@ -247,14 +247,14 @@ var svgEditorExtension_arrows = (function () {
|
|||
return svgCanvas.getElem(m[1]); // return svgCanvas.getElem(m.groups.id);
|
||||
};
|
||||
|
||||
unsetArrowNonce = function _ref4(win) {
|
||||
unsetArrowNonce = function _unsetArrowNonce(win) {
|
||||
randomizeIds = false;
|
||||
arrowprefix = prefix;
|
||||
pathdata.fw.id = arrowprefix + 'fw';
|
||||
pathdata.bk.id = arrowprefix + 'bk';
|
||||
};
|
||||
|
||||
setArrowNonce = function _ref3(win, n) {
|
||||
setArrowNonce = function _setArrowNonce(win, n) {
|
||||
randomizeIds = true;
|
||||
arrowprefix = prefix + n + '_';
|
||||
pathdata.fw.id = arrowprefix + 'fw';
|
||||
|
@ -325,26 +325,25 @@ var svgEditorExtension_arrows = (function () {
|
|||
$('#arrow_list option')[0].id = 'connector_no_arrow';
|
||||
},
|
||||
addLangData: function addLangData(_ref) {
|
||||
var lang = _ref.lang,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var _ref2, langList;
|
||||
var lang, importLocale, _yield$importLocale, langList;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
lang = _ref.lang, importLocale = _ref.importLocale;
|
||||
_context.next = 3;
|
||||
return importLocale();
|
||||
|
||||
case 2:
|
||||
_ref2 = _context.sent;
|
||||
langList = _ref2.langList;
|
||||
case 3:
|
||||
_yield$importLocale = _context.sent;
|
||||
langList = _yield$importLocale.langList;
|
||||
return _context.abrupt("return", {
|
||||
data: langList
|
||||
});
|
||||
|
||||
case 5:
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -52,18 +52,17 @@ var svgEditorExtension_closepath = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var importLocale = _ref.importLocale,
|
||||
$ = _ref.$;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, selElems, updateButton, showPanel, toggleClosed, buttons;
|
||||
var importLocale, $, strings, svgEditor, selElems, updateButton, showPanel, toggleClosed, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
importLocale = _ref.importLocale, $ = _ref.$;
|
||||
_context.next = 3;
|
||||
return importLocale();
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
strings = _context.sent;
|
||||
svgEditor = _this;
|
||||
|
||||
|
@ -155,7 +154,7 @@ var svgEditorExtension_closepath = (function () {
|
|||
}
|
||||
});
|
||||
|
||||
case 9:
|
||||
case 10:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -56,7 +56,7 @@ var svgEditorExtension_eyedropper = (function () {
|
|||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
getStyle = function _ref(opts) {
|
||||
getStyle = function _getStyle(opts) {
|
||||
// if we are in eyedropper mode, we don't want to disable the eye-dropper tool
|
||||
var mode = svgCanvas.getMode();
|
||||
|
||||
|
|
|
@ -56,12 +56,12 @@ var svgEditorExtension_foreignobject = (function () {
|
|||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
setAttr = function _ref6(attr, val) {
|
||||
setAttr = function _setAttr(attr, val) {
|
||||
svgCanvas.changeSelectedAttribute(attr, val);
|
||||
svgCanvas.call('changed', selElems);
|
||||
};
|
||||
|
||||
showForeignEditor = function _ref5() {
|
||||
showForeignEditor = function _showForeignEditor() {
|
||||
var elt = selElems[0];
|
||||
|
||||
if (!elt || editingforeign) {
|
||||
|
@ -78,7 +78,7 @@ var svgEditorExtension_foreignobject = (function () {
|
|||
$('#svg_source_textarea').focus();
|
||||
};
|
||||
|
||||
setForeignString = function _ref4(xmlString) {
|
||||
setForeignString = function _setForeignString(xmlString) {
|
||||
var elt = selElems[0]; // The parent `Element` to append to
|
||||
|
||||
try {
|
||||
|
@ -99,12 +99,12 @@ var svgEditorExtension_foreignobject = (function () {
|
|||
return true;
|
||||
};
|
||||
|
||||
toggleSourceButtons = function _ref3(on) {
|
||||
toggleSourceButtons = function _toggleSourceButtons(on) {
|
||||
$('#tool_source_save, #tool_source_cancel').toggle(!on);
|
||||
$('#foreign_save, #foreign_cancel').toggle(on);
|
||||
};
|
||||
|
||||
showPanel = function _ref2(on) {
|
||||
showPanel = function _showPanel(on) {
|
||||
var fcRules = $('#fc_rules');
|
||||
|
||||
if (!fcRules.length) {
|
||||
|
|
|
@ -50,17 +50,13 @@ var svgEditorExtension_grid = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
NS = _ref.NS,
|
||||
getTypeMap = _ref.getTypeMap,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, svgCanvas, svgdoc, assignAttributes, hcanvas, canvBG, units, intervals, showGrid, canvasGrid, gridDefs, gridPattern, gridimg, gridBox, updateGrid, gridUpdate, buttons;
|
||||
var $, NS, getTypeMap, importLocale, strings, svgEditor, svgCanvas, svgdoc, assignAttributes, hcanvas, canvBG, units, intervals, showGrid, canvasGrid, gridDefs, gridPattern, gridimg, gridBox, updateGrid, gridUpdate, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
gridUpdate = function _ref3() {
|
||||
gridUpdate = function _gridUpdate() {
|
||||
if (showGrid) {
|
||||
updateGrid(svgCanvas.getZoom());
|
||||
}
|
||||
|
@ -69,7 +65,7 @@ var svgEditorExtension_grid = (function () {
|
|||
$('#view_grid').toggleClass('push_button_pressed tool_button');
|
||||
};
|
||||
|
||||
updateGrid = function _ref2(zoom) {
|
||||
updateGrid = function _updateGrid(zoom) {
|
||||
// TODO: Try this with <line> elements, then compare performance difference
|
||||
var unit = units[svgEditor.curConfig.baseUnit]; // 1 = 1px
|
||||
|
||||
|
@ -117,10 +113,11 @@ var svgEditorExtension_grid = (function () {
|
|||
svgCanvas.setHref(gridimg, datauri);
|
||||
};
|
||||
|
||||
_context.next = 4;
|
||||
$ = _ref.$, NS = _ref.NS, getTypeMap = _ref.getTypeMap, importLocale = _ref.importLocale;
|
||||
_context.next = 5;
|
||||
return importLocale();
|
||||
|
||||
case 4:
|
||||
case 5:
|
||||
strings = _context.sent;
|
||||
svgEditor = _this;
|
||||
svgCanvas = svgEditor.canvas;
|
||||
|
@ -210,7 +207,7 @@ var svgEditorExtension_grid = (function () {
|
|||
})
|
||||
});
|
||||
|
||||
case 26:
|
||||
case 27:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ var svgEditorExtension_helloworld = (function () {
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -46,10 +46,7 @@ var svgEditorExtension_helloworld = (function () {
|
|||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -75,8 +72,25 @@ var svgEditorExtension_helloworld = (function () {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -98,18 +112,17 @@ var svgEditorExtension_helloworld = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, svgCanvas;
|
||||
var $, importLocale, strings, svgEditor, svgCanvas;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
$ = _ref.$, importLocale = _ref.importLocale;
|
||||
_context.next = 3;
|
||||
return importLocale();
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
strings = _context.sent;
|
||||
svgEditor = _this;
|
||||
svgCanvas = svgEditor.canvas;
|
||||
|
@ -177,7 +190,7 @@ var svgEditorExtension_helloworld = (function () {
|
|||
}
|
||||
});
|
||||
|
||||
case 6:
|
||||
case 7:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -66,18 +66,14 @@ var svgEditorExtension_imagelib = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
decode64 = _ref.decode64,
|
||||
importLocale = _ref.importLocale,
|
||||
dropXMLInternalSubset = _ref.dropXMLInternalSubset;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var imagelibStrings, modularVersion, svgEditor, uiStrings, svgCanvas, extIconsPath, allowedImageLibOrigins, closeBrowser, importImage, pending, mode, multiArr, transferStopped, preview, submit, onMessage, _onMessage, toggleMulti, showBrowser, buttons;
|
||||
var $, decode64, importLocale, dropXMLInternalSubset, imagelibStrings, modularVersion, svgEditor, uiStrings, svgCanvas, extIconsPath, allowedImageLibOrigins, closeBrowser, importImage, pending, mode, multiArr, transferStopped, preview, submit, onMessage, _onMessage, toggleMulti, showBrowser, buttons;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
showBrowser = function _ref11() {
|
||||
showBrowser = function _showBrowser() {
|
||||
var browser = $('#imgbrowse');
|
||||
|
||||
if (!browser.length) {
|
||||
|
@ -133,10 +129,10 @@ var svgEditorExtension_imagelib = (function () {
|
|||
});
|
||||
cancel.prepend($.getSvgIcon('cancel', true));
|
||||
back.prepend($.getSvgIcon('tool_imagelib', true));
|
||||
imagelibStrings.imgLibs.forEach(function (_ref4) {
|
||||
var name = _ref4.name,
|
||||
url = _ref4.url,
|
||||
description = _ref4.description;
|
||||
imagelibStrings.imgLibs.forEach(function (_ref5) {
|
||||
var name = _ref5.name,
|
||||
url = _ref5.url,
|
||||
description = _ref5.description;
|
||||
$('<li>').appendTo(libOpts).text(name).on('click touchend', function () {
|
||||
frame.attr('src', url).show();
|
||||
header.text(name);
|
||||
|
@ -149,7 +145,7 @@ var svgEditorExtension_imagelib = (function () {
|
|||
}
|
||||
};
|
||||
|
||||
toggleMulti = function _ref10(show) {
|
||||
toggleMulti = function _toggleMulti(show) {
|
||||
$('#lib_framewrap, #imglib_opts').css({
|
||||
right: show ? 200 : 10
|
||||
});
|
||||
|
@ -191,14 +187,14 @@ var svgEditorExtension_imagelib = (function () {
|
|||
submit.toggle(show);
|
||||
};
|
||||
|
||||
_onMessage = function _ref9() {
|
||||
_onMessage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref5) {
|
||||
_onMessage = function _onMessage3() {
|
||||
_onMessage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref4) {
|
||||
var origin, response, id, type, hasName, hasHref, char1, secondpos, entry, curMeta, svgStr, imgStr, name, message, pre, src, title, xml, ok;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
origin = _ref5.origin, response = _ref5.data;
|
||||
origin = _ref4.origin, response = _ref4.data;
|
||||
|
||||
if (!(!response || !['string', 'object'].includes(_typeof(response)))) {
|
||||
_context.next = 3;
|
||||
|
@ -477,11 +473,11 @@ var svgEditorExtension_imagelib = (function () {
|
|||
return _onMessage.apply(this, arguments);
|
||||
};
|
||||
|
||||
onMessage = function _ref8(_x) {
|
||||
onMessage = function _onMessage2(_x) {
|
||||
return _onMessage.apply(this, arguments);
|
||||
};
|
||||
|
||||
importImage = function _ref7(url) {
|
||||
importImage = function _importImage(url) {
|
||||
var newImage = svgCanvas.addSVGElementFromJson({
|
||||
element: 'image',
|
||||
attr: {
|
||||
|
@ -498,14 +494,15 @@ var svgEditorExtension_imagelib = (function () {
|
|||
svgCanvas.setImageURL(url);
|
||||
};
|
||||
|
||||
closeBrowser = function _ref6() {
|
||||
closeBrowser = function _closeBrowser() {
|
||||
$('#imgbrowse_holder').hide();
|
||||
};
|
||||
|
||||
_context2.next = 8;
|
||||
$ = _ref.$, decode64 = _ref.decode64, importLocale = _ref.importLocale, dropXMLInternalSubset = _ref.dropXMLInternalSubset;
|
||||
_context2.next = 9;
|
||||
return importLocale();
|
||||
|
||||
case 8:
|
||||
case 9:
|
||||
imagelibStrings = _context2.sent;
|
||||
modularVersion = !('svgEditor' in window) || !window.svgEditor || window.svgEditor.modules !== false;
|
||||
svgEditor = _this;
|
||||
|
@ -571,7 +568,7 @@ var svgEditorExtension_imagelib = (function () {
|
|||
}
|
||||
});
|
||||
|
||||
case 21:
|
||||
case 22:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ var svgEditorExtension_markers = (function () {
|
|||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
buildButtonList = function _ref16() {
|
||||
buildButtonList = function _buildButtonList() {
|
||||
var buttons = []; // const i = 0;
|
||||
|
||||
/*
|
||||
|
@ -130,7 +130,7 @@ var svgEditorExtension_markers = (function () {
|
|||
return buttons;
|
||||
};
|
||||
|
||||
getTitle = function _ref15(id) {
|
||||
getTitle = function _getTitle(id) {
|
||||
var langList = strings.langList;
|
||||
var item = langList.find(function (itm) {
|
||||
return itm.id === id;
|
||||
|
@ -138,7 +138,7 @@ var svgEditorExtension_markers = (function () {
|
|||
return item ? item.title : id;
|
||||
};
|
||||
|
||||
_setArrowFromButton = function _ref14() {
|
||||
_setArrowFromButton = function _setArrowFromButton3() {
|
||||
_setArrowFromButton = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(ev) {
|
||||
var parts, pos, val;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
|
@ -176,11 +176,11 @@ var svgEditorExtension_markers = (function () {
|
|||
return _setArrowFromButton.apply(this, arguments);
|
||||
};
|
||||
|
||||
setArrowFromButton = function _ref13(_x2) {
|
||||
setArrowFromButton = function _setArrowFromButton2(_x2) {
|
||||
return _setArrowFromButton.apply(this, arguments);
|
||||
};
|
||||
|
||||
_showTextPrompt = function _ref12() {
|
||||
_showTextPrompt = function _showTextPrompt3() {
|
||||
_showTextPrompt = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(pos) {
|
||||
var def, txt;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
|
@ -213,18 +213,18 @@ var svgEditorExtension_markers = (function () {
|
|||
return _showTextPrompt.apply(this, arguments);
|
||||
};
|
||||
|
||||
showTextPrompt = function _ref11(_x) {
|
||||
showTextPrompt = function _showTextPrompt2(_x) {
|
||||
return _showTextPrompt.apply(this, arguments);
|
||||
};
|
||||
|
||||
triggerTextEntry = function _ref10(pos, val) {
|
||||
triggerTextEntry = function _triggerTextEntry(pos, val) {
|
||||
$('#' + pos + '_marker').val(val);
|
||||
$('#' + pos + '_marker').change(); // const txtbox = $('#'+pos+'_marker');
|
||||
// if (val.substr(0,1)=='\\') {txtbox.hide();}
|
||||
// else {txtbox.show();}
|
||||
};
|
||||
|
||||
updateReferences = function _ref9(el) {
|
||||
updateReferences = function _updateReferences(el) {
|
||||
$.each(mtypes, function (i, pos) {
|
||||
var id = markerPrefix + pos + '_' + el.id;
|
||||
var markerName = 'marker-' + pos;
|
||||
|
@ -256,7 +256,7 @@ var svgEditorExtension_markers = (function () {
|
|||
});
|
||||
};
|
||||
|
||||
colorChanged = function _ref8(elem) {
|
||||
colorChanged = function _colorChanged(elem) {
|
||||
var color = elem.getAttribute('stroke');
|
||||
$.each(mtypes, function (i, pos) {
|
||||
var marker = getLinked(elem, 'marker-' + pos);
|
||||
|
@ -289,7 +289,7 @@ var svgEditorExtension_markers = (function () {
|
|||
});
|
||||
};
|
||||
|
||||
setMarker = function _ref7() {
|
||||
setMarker = function _setMarker() {
|
||||
var poslist = {
|
||||
start_marker: 'start',
|
||||
mid_marker: 'mid',
|
||||
|
@ -330,7 +330,7 @@ var svgEditorExtension_markers = (function () {
|
|||
setIcon(pos, val);
|
||||
};
|
||||
|
||||
convertline = function _ref6(elem) {
|
||||
convertline = function _convertline(elem) {
|
||||
// this routine came from the connectors extension
|
||||
// it is needed because midpoint markers don't work with line elements
|
||||
if (elem.tagName !== 'line') {
|
||||
|
@ -374,7 +374,7 @@ var svgEditorExtension_markers = (function () {
|
|||
return pline;
|
||||
};
|
||||
|
||||
addMarker = function _ref5(id, val) {
|
||||
addMarker = function _addMarker(id, val) {
|
||||
var txtBoxBg = '#ffffff';
|
||||
var txtBoxBorder = 'none';
|
||||
var txtBoxStrokeWidth = 0;
|
||||
|
@ -478,7 +478,7 @@ var svgEditorExtension_markers = (function () {
|
|||
return marker;
|
||||
};
|
||||
|
||||
showPanel = function _ref4(on) {
|
||||
showPanel = function _showPanel(on) {
|
||||
$('#marker_panel').toggle(on);
|
||||
|
||||
if (on) {
|
||||
|
@ -514,7 +514,7 @@ var svgEditorExtension_markers = (function () {
|
|||
}
|
||||
};
|
||||
|
||||
setIcon = function _ref3(pos, id) {
|
||||
setIcon = function _setIcon(pos, id) {
|
||||
if (id.substr(0, 1) !== '\\') {
|
||||
id = '\\textmarker';
|
||||
}
|
||||
|
@ -524,7 +524,7 @@ var svgEditorExtension_markers = (function () {
|
|||
$(ci).addClass('current').siblings().removeClass('current');
|
||||
};
|
||||
|
||||
getLinked = function _ref2(elem, attr) {
|
||||
getLinked = function _getLinked(elem, attr) {
|
||||
var str = elem.getAttribute(attr);
|
||||
|
||||
if (!str) {
|
||||
|
|
|
@ -106,15 +106,13 @@ var svgEditorExtension_mathjax = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var strings, svgEditor, svgCanvas, mathjaxSrcSecure, uiStrings, math, locationX, locationY, mathjaxLoaded, saveMath, buttons;
|
||||
var $, importLocale, strings, svgEditor, svgCanvas, mathjaxSrcSecure, uiStrings, math, locationX, locationY, mathjaxLoaded, saveMath, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
saveMath = function _ref2() {
|
||||
saveMath = function _saveMath() {
|
||||
var code = $('#mathjax_code_textarea').val(); // displaystyle to force MathJax NOT to use the inline style. Because it is
|
||||
// less fancy!
|
||||
|
||||
|
@ -166,10 +164,11 @@ var svgEditorExtension_mathjax = (function () {
|
|||
});
|
||||
};
|
||||
|
||||
_context2.next = 3;
|
||||
$ = _ref.$, importLocale = _ref.importLocale;
|
||||
_context2.next = 4;
|
||||
return importLocale();
|
||||
|
||||
case 3:
|
||||
case 4:
|
||||
strings = _context2.sent;
|
||||
svgEditor = _this;
|
||||
svgCanvas = svgEditor.canvas; // Configuration of the MathJax extention.
|
||||
|
@ -346,7 +345,7 @@ var svgEditorExtension_mathjax = (function () {
|
|||
}
|
||||
});
|
||||
|
||||
case 11:
|
||||
case 12:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
|
|
|
@ -54,17 +54,17 @@ var svgEditorExtension_panning = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, svgCanvas, buttons;
|
||||
var importLocale, strings, svgEditor, svgCanvas, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
importLocale = _ref.importLocale;
|
||||
_context.next = 3;
|
||||
return importLocale();
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
strings = _context.sent;
|
||||
svgEditor = _this;
|
||||
svgCanvas = svgEditor.canvas;
|
||||
|
@ -107,7 +107,7 @@ var svgEditorExtension_panning = (function () {
|
|||
}
|
||||
});
|
||||
|
||||
case 7:
|
||||
case 8:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -46,10 +46,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -75,8 +72,25 @@ var svgEditorExtension_placemark = (function () {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,7 +111,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
addMarkerButtons = function _ref11(buttons) {
|
||||
addMarkerButtons = function _addMarkerButtons(buttons) {
|
||||
Object.keys(markerTypes).forEach(function (id) {
|
||||
var title = getTitle(String(id));
|
||||
buttons.push({
|
||||
|
@ -117,7 +131,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
return buttons;
|
||||
};
|
||||
|
||||
getTitle = function _ref10(id) {
|
||||
getTitle = function _getTitle(id) {
|
||||
var langList = strings.langList;
|
||||
var item = langList.find(function (itm) {
|
||||
return itm.id === id;
|
||||
|
@ -125,7 +139,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
return item ? item.title : id;
|
||||
};
|
||||
|
||||
setArrowFromButton = function _ref9(ev) {
|
||||
setArrowFromButton = function _setArrowFromButton(ev) {
|
||||
var parts = this.id.split('_');
|
||||
var val = parts[2];
|
||||
|
||||
|
@ -136,7 +150,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
$('#placemark_marker').attr('value', val);
|
||||
};
|
||||
|
||||
updateReferences = function _ref8(el) {
|
||||
updateReferences = function _updateReferences(el) {
|
||||
var id = 'placemark_marker_' + el.id;
|
||||
var markerName = 'marker-start';
|
||||
var marker = getLinked(el, markerName);
|
||||
|
@ -161,7 +175,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
}
|
||||
};
|
||||
|
||||
colorChanged = function _ref7(el) {
|
||||
colorChanged = function _colorChanged(el) {
|
||||
var color = el.getAttribute('stroke');
|
||||
var marker = getLinked(el, 'marker-start'); // console.log(marker);
|
||||
|
||||
|
@ -192,7 +206,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
}
|
||||
};
|
||||
|
||||
setMarker = function _ref6(el, val) {
|
||||
setMarker = function _setMarker(el, val) {
|
||||
var markerName = 'marker-start';
|
||||
var marker = getLinked(el, markerName);
|
||||
|
||||
|
@ -214,7 +228,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
svgCanvas.call('changed', [el]);
|
||||
};
|
||||
|
||||
addMarker = function _ref5(id, val) {
|
||||
addMarker = function _addMarker(id, val) {
|
||||
var marker = svgCanvas.getElem(id);
|
||||
|
||||
if (marker) {
|
||||
|
@ -274,7 +288,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
return marker;
|
||||
};
|
||||
|
||||
updateFont = function _ref4(font) {
|
||||
updateFont = function _updateFont(font) {
|
||||
font = font.split(' ');
|
||||
var fontSize = parseInt(font.pop());
|
||||
font = font.join(' ');
|
||||
|
@ -296,7 +310,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
});
|
||||
};
|
||||
|
||||
updateText = function _ref3(txt) {
|
||||
updateText = function _updateText(txt) {
|
||||
var items = txt.split(';');
|
||||
selElems.forEach(function (elem) {
|
||||
if (elem && elem.getAttribute('class').includes('placemark')) {
|
||||
|
@ -314,7 +328,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
});
|
||||
};
|
||||
|
||||
getLinked = function _ref2(elem, attr) {
|
||||
getLinked = function _getLinked(elem, attr) {
|
||||
if (!elem) {
|
||||
return null;
|
||||
}
|
||||
|
@ -336,7 +350,7 @@ var svgEditorExtension_placemark = (function () {
|
|||
return svgCanvas.getElem(m[1]); // return svgCanvas.getElem(m.groups.id);
|
||||
};
|
||||
|
||||
showPanel = function _ref(on) {
|
||||
showPanel = function _showPanel(on) {
|
||||
$('#placemark_panel').toggle(on);
|
||||
};
|
||||
|
||||
|
|
|
@ -55,20 +55,20 @@ var svgEditorExtension_polygon = (function () {
|
|||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
sec = function _ref4(n) {
|
||||
sec = function _sec(n) {
|
||||
return 1 / Math.cos(n);
|
||||
};
|
||||
|
||||
cot = function _ref3(n) {
|
||||
cot = function _cot(n) {
|
||||
return 1 / Math.tan(n);
|
||||
};
|
||||
|
||||
setAttr = function _ref2(attr, val) {
|
||||
setAttr = function _setAttr(attr, val) {
|
||||
svgCanvas.changeSelectedAttribute(attr, val);
|
||||
svgCanvas.call('changed', selElems);
|
||||
};
|
||||
|
||||
showPanel = function _ref(on) {
|
||||
showPanel = function _showPanel(on) {
|
||||
var fcRules = $('#fc_rules');
|
||||
|
||||
if (!fcRules.length) {
|
||||
|
|
|
@ -106,7 +106,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function isNativeReflectConstruct() {
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
@ -120,7 +120,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
}
|
||||
|
||||
function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
if (_isNativeReflectConstruct()) {
|
||||
_construct = Reflect.construct;
|
||||
} else {
|
||||
_construct = function _construct(Parent, args, Class) {
|
||||
|
@ -152,6 +152,23 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
return _assertThisInitialized(self);
|
||||
}
|
||||
|
||||
function _createSuper(Derived) {
|
||||
return function () {
|
||||
var Super = _getPrototypeOf(Derived),
|
||||
result;
|
||||
|
||||
if (_isNativeReflectConstruct()) {
|
||||
var NewTarget = _getPrototypeOf(this).constructor;
|
||||
|
||||
result = Reflect.construct(Super, arguments, NewTarget);
|
||||
} else {
|
||||
result = Super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(this, result);
|
||||
};
|
||||
}
|
||||
|
||||
function _superPropBase(object, property) {
|
||||
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
||||
object = _getPrototypeOf(object);
|
||||
|
@ -183,19 +200,15 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -203,14 +216,11 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -236,12 +246,29 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1658,12 +1685,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
SkewBase: /*#__PURE__*/function (_this$Type$matrix) {
|
||||
_inherits(SkewBase, _this$Type$matrix);
|
||||
|
||||
var _super = _createSuper(SkewBase);
|
||||
|
||||
function SkewBase(s) {
|
||||
var _this3;
|
||||
|
||||
_classCallCheck(this, SkewBase);
|
||||
|
||||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(SkewBase).call(this, s));
|
||||
_this3 = _super.call(this, s);
|
||||
_this3.angle = new svg.Property('angle', s);
|
||||
return _this3;
|
||||
}
|
||||
|
@ -1675,12 +1704,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
skewX: /*#__PURE__*/function (_this$Type$SkewBase) {
|
||||
_inherits(skewX, _this$Type$SkewBase);
|
||||
|
||||
var _super2 = _createSuper(skewX);
|
||||
|
||||
function skewX(s) {
|
||||
var _this4;
|
||||
|
||||
_classCallCheck(this, skewX);
|
||||
|
||||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(skewX).call(this, s));
|
||||
_this4 = _super2.call(this, s);
|
||||
_this4.m = [1, 0, Math.tan(_this4.angle.toRadians()), 1, 0, 0];
|
||||
return _this4;
|
||||
}
|
||||
|
@ -1690,12 +1721,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
skewY: /*#__PURE__*/function (_this$Type$SkewBase2) {
|
||||
_inherits(skewY, _this$Type$SkewBase2);
|
||||
|
||||
var _super3 = _createSuper(skewY);
|
||||
|
||||
function skewY(s) {
|
||||
var _this5;
|
||||
|
||||
_classCallCheck(this, skewY);
|
||||
|
||||
_this5 = _possibleConstructorReturn(this, _getPrototypeOf(skewY).call(this, s));
|
||||
_this5 = _super3.call(this, s);
|
||||
_this5.m = [1, Math.tan(_this5.angle.toRadians()), 0, 1, 0, 0];
|
||||
return _this5;
|
||||
}
|
||||
|
@ -2029,10 +2062,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.RenderedElementBase = /*#__PURE__*/function (_svg$Element$ElementB) {
|
||||
_inherits(_class5, _svg$Element$ElementB);
|
||||
|
||||
var _super4 = _createSuper(_class5);
|
||||
|
||||
function _class5() {
|
||||
_classCallCheck(this, _class5);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class5).apply(this, arguments));
|
||||
return _super4.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class5, [{
|
||||
|
@ -2134,10 +2169,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.PathElementBase = /*#__PURE__*/function (_svg$Element$Rendered) {
|
||||
_inherits(_class6, _svg$Element$Rendered);
|
||||
|
||||
var _super5 = _createSuper(_class6);
|
||||
|
||||
function _class6() {
|
||||
_classCallCheck(this, _class6);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class6).apply(this, arguments));
|
||||
return _super5.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class6, [{
|
||||
|
@ -2203,10 +2240,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.svg = /*#__PURE__*/function (_svg$Element$Rendered2) {
|
||||
_inherits(_class7, _svg$Element$Rendered2);
|
||||
|
||||
var _super6 = _createSuper(_class7);
|
||||
|
||||
function _class7() {
|
||||
_classCallCheck(this, _class7);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class7).apply(this, arguments));
|
||||
return _super6.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class7, [{
|
||||
|
@ -2284,10 +2323,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.rect = /*#__PURE__*/function (_svg$Element$PathElem) {
|
||||
_inherits(_class8, _svg$Element$PathElem);
|
||||
|
||||
var _super7 = _createSuper(_class8);
|
||||
|
||||
function _class8() {
|
||||
_classCallCheck(this, _class8);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class8).apply(this, arguments));
|
||||
return _super7.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class8, [{
|
||||
|
@ -2329,10 +2370,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.circle = /*#__PURE__*/function (_svg$Element$PathElem2) {
|
||||
_inherits(_class9, _svg$Element$PathElem2);
|
||||
|
||||
var _super8 = _createSuper(_class9);
|
||||
|
||||
function _class9() {
|
||||
_classCallCheck(this, _class9);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class9).apply(this, arguments));
|
||||
return _super8.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class9, [{
|
||||
|
@ -2361,10 +2404,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.ellipse = /*#__PURE__*/function (_svg$Element$PathElem3) {
|
||||
_inherits(_class10, _svg$Element$PathElem3);
|
||||
|
||||
var _super9 = _createSuper(_class10);
|
||||
|
||||
function _class10() {
|
||||
_classCallCheck(this, _class10);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class10).apply(this, arguments));
|
||||
return _super9.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class10, [{
|
||||
|
@ -2396,10 +2441,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.line = /*#__PURE__*/function (_svg$Element$PathElem4) {
|
||||
_inherits(_class11, _svg$Element$PathElem4);
|
||||
|
||||
var _super10 = _createSuper(_class11);
|
||||
|
||||
function _class11() {
|
||||
_classCallCheck(this, _class11);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class11).apply(this, arguments));
|
||||
return _super10.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class11, [{
|
||||
|
@ -2436,12 +2483,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.polyline = /*#__PURE__*/function (_svg$Element$PathElem5) {
|
||||
_inherits(_class12, _svg$Element$PathElem5);
|
||||
|
||||
var _super11 = _createSuper(_class12);
|
||||
|
||||
function _class12(node) {
|
||||
var _this8;
|
||||
|
||||
_classCallCheck(this, _class12);
|
||||
|
||||
_this8 = _possibleConstructorReturn(this, _getPrototypeOf(_class12).call(this, node));
|
||||
_this8 = _super11.call(this, node);
|
||||
_this8.points = svg.CreatePath(_this8.attribute('points').value);
|
||||
return _this8;
|
||||
}
|
||||
|
@ -2490,10 +2539,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.polygon = /*#__PURE__*/function (_svg$Element$polyline) {
|
||||
_inherits(_class13, _svg$Element$polyline);
|
||||
|
||||
var _super12 = _createSuper(_class13);
|
||||
|
||||
function _class13() {
|
||||
_classCallCheck(this, _class13);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class13).apply(this, arguments));
|
||||
return _super12.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class13, [{
|
||||
|
@ -2517,12 +2568,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.path = /*#__PURE__*/function (_svg$Element$PathElem6) {
|
||||
_inherits(_class14, _svg$Element$PathElem6);
|
||||
|
||||
var _super13 = _createSuper(_class14);
|
||||
|
||||
function _class14(node) {
|
||||
var _this9;
|
||||
|
||||
_classCallCheck(this, _class14);
|
||||
|
||||
_this9 = _possibleConstructorReturn(this, _getPrototypeOf(_class14).call(this, node));
|
||||
_this9 = _super13.call(this, node);
|
||||
|
||||
var d = _this9.attribute('d').value // TODO: convert to real lexer based on https://www.w3.org/TR/SVG11/paths.html#PathDataBNF
|
||||
.replace(/,/gm, ' ') // get rid of all commas
|
||||
|
@ -2894,10 +2947,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.pattern = /*#__PURE__*/function (_svg$Element$ElementB2) {
|
||||
_inherits(_class15, _svg$Element$ElementB2);
|
||||
|
||||
var _super14 = _createSuper(_class15);
|
||||
|
||||
function _class15() {
|
||||
_classCallCheck(this, _class15);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class15).apply(this, arguments));
|
||||
return _super14.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class15, [{
|
||||
|
@ -2943,10 +2998,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.marker = /*#__PURE__*/function (_svg$Element$ElementB3) {
|
||||
_inherits(_class16, _svg$Element$ElementB3);
|
||||
|
||||
var _super15 = _createSuper(_class16);
|
||||
|
||||
function _class16() {
|
||||
_classCallCheck(this, _class16);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class16).apply(this, arguments));
|
||||
return _super15.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class16, [{
|
||||
|
@ -2981,10 +3038,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.defs = /*#__PURE__*/function (_svg$Element$ElementB4) {
|
||||
_inherits(_class17, _svg$Element$ElementB4);
|
||||
|
||||
var _super16 = _createSuper(_class17);
|
||||
|
||||
function _class17() {
|
||||
_classCallCheck(this, _class17);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class17).apply(this, arguments));
|
||||
return _super16.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class17, [{
|
||||
|
@ -3000,12 +3059,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.GradientBase = /*#__PURE__*/function (_svg$Element$ElementB5) {
|
||||
_inherits(_class18, _svg$Element$ElementB5);
|
||||
|
||||
var _super17 = _createSuper(_class18);
|
||||
|
||||
function _class18(node) {
|
||||
var _this10;
|
||||
|
||||
_classCallCheck(this, _class18);
|
||||
|
||||
_this10 = _possibleConstructorReturn(this, _getPrototypeOf(_class18).call(this, node));
|
||||
_this10 = _super17.call(this, node);
|
||||
_this10.gradientUnits = _this10.attribute('gradientUnits').valueOrDefault('objectBoundingBox');
|
||||
_this10.stops = [];
|
||||
|
||||
|
@ -3081,10 +3142,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.linearGradient = /*#__PURE__*/function (_svg$Element$Gradient) {
|
||||
_inherits(_class19, _svg$Element$Gradient);
|
||||
|
||||
var _super18 = _createSuper(_class19);
|
||||
|
||||
function _class19() {
|
||||
_classCallCheck(this, _class19);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class19).apply(this, arguments));
|
||||
return _super18.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class19, [{
|
||||
|
@ -3116,10 +3179,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.radialGradient = /*#__PURE__*/function (_svg$Element$Gradient2) {
|
||||
_inherits(_class20, _svg$Element$Gradient2);
|
||||
|
||||
var _super19 = _createSuper(_class20);
|
||||
|
||||
function _class20() {
|
||||
_classCallCheck(this, _class20);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class20).apply(this, arguments));
|
||||
return _super19.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class20, [{
|
||||
|
@ -3155,12 +3220,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.stop = /*#__PURE__*/function (_svg$Element$ElementB6) {
|
||||
_inherits(_class21, _svg$Element$ElementB6);
|
||||
|
||||
var _super20 = _createSuper(_class21);
|
||||
|
||||
function _class21(node) {
|
||||
var _this11;
|
||||
|
||||
_classCallCheck(this, _class21);
|
||||
|
||||
_this11 = _possibleConstructorReturn(this, _getPrototypeOf(_class21).call(this, node));
|
||||
_this11 = _super20.call(this, node);
|
||||
_this11.offset = _this11.attribute('offset').numValue();
|
||||
if (_this11.offset < 0) _this11.offset = 0;
|
||||
if (_this11.offset > 1) _this11.offset = 1;
|
||||
|
@ -3182,12 +3249,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.AnimateBase = /*#__PURE__*/function (_svg$Element$ElementB7) {
|
||||
_inherits(_class22, _svg$Element$ElementB7);
|
||||
|
||||
var _super21 = _createSuper(_class22);
|
||||
|
||||
function _class22(node) {
|
||||
var _this12;
|
||||
|
||||
_classCallCheck(this, _class22);
|
||||
|
||||
_this12 = _possibleConstructorReturn(this, _getPrototypeOf(_class22).call(this, node));
|
||||
_this12 = _super21.call(this, node);
|
||||
svg.Animations.push(_assertThisInitialized(_this12));
|
||||
_this12.duration = 0.0;
|
||||
_this12.begin = _this12.attribute('begin').toMilliseconds();
|
||||
|
@ -3297,10 +3366,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.animate = /*#__PURE__*/function (_svg$Element$AnimateB) {
|
||||
_inherits(_class23, _svg$Element$AnimateB);
|
||||
|
||||
var _super22 = _createSuper(_class23);
|
||||
|
||||
function _class23() {
|
||||
_classCallCheck(this, _class23);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class23).apply(this, arguments));
|
||||
return _super22.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class23, [{
|
||||
|
@ -3320,10 +3391,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.animateColor = /*#__PURE__*/function (_svg$Element$AnimateB2) {
|
||||
_inherits(_class24, _svg$Element$AnimateB2);
|
||||
|
||||
var _super23 = _createSuper(_class24);
|
||||
|
||||
function _class24() {
|
||||
_classCallCheck(this, _class24);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class24).apply(this, arguments));
|
||||
return _super23.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class24, [{
|
||||
|
@ -3352,10 +3425,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.animateTransform = /*#__PURE__*/function (_svg$Element$animate) {
|
||||
_inherits(_class25, _svg$Element$animate);
|
||||
|
||||
var _super24 = _createSuper(_class25);
|
||||
|
||||
function _class25() {
|
||||
_classCallCheck(this, _class25);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class25).apply(this, arguments));
|
||||
return _super24.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class25, [{
|
||||
|
@ -3380,12 +3455,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.font = /*#__PURE__*/function (_svg$Element$ElementB8) {
|
||||
_inherits(_class26, _svg$Element$ElementB8);
|
||||
|
||||
var _super25 = _createSuper(_class26);
|
||||
|
||||
function _class26(node) {
|
||||
var _this13;
|
||||
|
||||
_classCallCheck(this, _class26);
|
||||
|
||||
_this13 = _possibleConstructorReturn(this, _getPrototypeOf(_class26).call(this, node));
|
||||
_this13 = _super25.call(this, node);
|
||||
_this13.horizAdvX = _this13.attribute('horiz-adv-x').numValue();
|
||||
_this13.isRTL = false;
|
||||
_this13.isArabic = false;
|
||||
|
@ -3428,12 +3505,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.fontface = /*#__PURE__*/function (_svg$Element$ElementB9) {
|
||||
_inherits(_class27, _svg$Element$ElementB9);
|
||||
|
||||
var _super26 = _createSuper(_class27);
|
||||
|
||||
function _class27(node) {
|
||||
var _this14;
|
||||
|
||||
_classCallCheck(this, _class27);
|
||||
|
||||
_this14 = _possibleConstructorReturn(this, _getPrototypeOf(_class27).call(this, node));
|
||||
_this14 = _super26.call(this, node);
|
||||
_this14.ascent = _this14.attribute('ascent').value;
|
||||
_this14.descent = _this14.attribute('descent').value;
|
||||
_this14.unitsPerEm = _this14.attribute('units-per-em').numValue();
|
||||
|
@ -3447,12 +3526,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.missingglyph = /*#__PURE__*/function (_svg$Element$path) {
|
||||
_inherits(_class28, _svg$Element$path);
|
||||
|
||||
var _super27 = _createSuper(_class28);
|
||||
|
||||
function _class28(node) {
|
||||
var _this15;
|
||||
|
||||
_classCallCheck(this, _class28);
|
||||
|
||||
_this15 = _possibleConstructorReturn(this, _getPrototypeOf(_class28).call(this, node));
|
||||
_this15 = _super27.call(this, node);
|
||||
_this15.horizAdvX = 0;
|
||||
return _this15;
|
||||
}
|
||||
|
@ -3464,12 +3545,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.glyph = /*#__PURE__*/function (_svg$Element$path2) {
|
||||
_inherits(_class29, _svg$Element$path2);
|
||||
|
||||
var _super28 = _createSuper(_class29);
|
||||
|
||||
function _class29(node) {
|
||||
var _this16;
|
||||
|
||||
_classCallCheck(this, _class29);
|
||||
|
||||
_this16 = _possibleConstructorReturn(this, _getPrototypeOf(_class29).call(this, node));
|
||||
_this16 = _super28.call(this, node);
|
||||
_this16.horizAdvX = _this16.attribute('horiz-adv-x').numValue();
|
||||
_this16.unicode = _this16.attribute('unicode').value;
|
||||
_this16.arabicForm = _this16.attribute('arabic-form').value;
|
||||
|
@ -3483,10 +3566,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.text = /*#__PURE__*/function (_svg$Element$Rendered3) {
|
||||
_inherits(_class30, _svg$Element$Rendered3);
|
||||
|
||||
var _super29 = _createSuper(_class30);
|
||||
|
||||
function _class30(node) {
|
||||
_classCallCheck(this, _class30);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class30).call(this, node, true));
|
||||
return _super29.call(this, node, true);
|
||||
}
|
||||
|
||||
_createClass(_class30, [{
|
||||
|
@ -3579,10 +3664,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.TextElementBase = /*#__PURE__*/function (_svg$Element$Rendered4) {
|
||||
_inherits(_class31, _svg$Element$Rendered4);
|
||||
|
||||
var _super30 = _createSuper(_class31);
|
||||
|
||||
function _class31() {
|
||||
_classCallCheck(this, _class31);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class31).apply(this, arguments));
|
||||
return _super30.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class31, [{
|
||||
|
@ -3703,12 +3790,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.tspan = /*#__PURE__*/function (_svg$Element$TextElem) {
|
||||
_inherits(_class32, _svg$Element$TextElem);
|
||||
|
||||
var _super31 = _createSuper(_class32);
|
||||
|
||||
function _class32(node) {
|
||||
var _this18;
|
||||
|
||||
_classCallCheck(this, _class32);
|
||||
|
||||
_this18 = _possibleConstructorReturn(this, _getPrototypeOf(_class32).call(this, node, true));
|
||||
_this18 = _super31.call(this, node, true);
|
||||
_this18.text = node.nodeValue || node.text || '';
|
||||
return _this18;
|
||||
}
|
||||
|
@ -3727,10 +3816,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.tref = /*#__PURE__*/function (_svg$Element$TextElem2) {
|
||||
_inherits(_class33, _svg$Element$TextElem2);
|
||||
|
||||
var _super32 = _createSuper(_class33);
|
||||
|
||||
function _class33() {
|
||||
_classCallCheck(this, _class33);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class33).apply(this, arguments));
|
||||
return _super32.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class33, [{
|
||||
|
@ -3749,12 +3840,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.a = /*#__PURE__*/function (_svg$Element$TextElem3) {
|
||||
_inherits(_class34, _svg$Element$TextElem3);
|
||||
|
||||
var _super33 = _createSuper(_class34);
|
||||
|
||||
function _class34(node) {
|
||||
var _this19;
|
||||
|
||||
_classCallCheck(this, _class34);
|
||||
|
||||
_this19 = _possibleConstructorReturn(this, _getPrototypeOf(_class34).call(this, node));
|
||||
_this19 = _super33.call(this, node);
|
||||
_this19.hasText = true;
|
||||
|
||||
_toConsumableArray(node.childNodes).forEach(function (childNode) {
|
||||
|
@ -3809,12 +3902,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.image = /*#__PURE__*/function (_svg$Element$Rendered5) {
|
||||
_inherits(_class35, _svg$Element$Rendered5);
|
||||
|
||||
var _super34 = _createSuper(_class35);
|
||||
|
||||
function _class35(node) {
|
||||
var _this20;
|
||||
|
||||
_classCallCheck(this, _class35);
|
||||
|
||||
_this20 = _possibleConstructorReturn(this, _getPrototypeOf(_class35).call(this, node));
|
||||
_this20 = _super34.call(this, node);
|
||||
|
||||
var href = _this20.getHrefAttribute().value;
|
||||
|
||||
|
@ -3896,10 +3991,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.g = /*#__PURE__*/function (_svg$Element$Rendered6) {
|
||||
_inherits(_class36, _svg$Element$Rendered6);
|
||||
|
||||
var _super35 = _createSuper(_class36);
|
||||
|
||||
function _class36() {
|
||||
_classCallCheck(this, _class36);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class36).apply(this, arguments));
|
||||
return _super35.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class36, [{
|
||||
|
@ -3920,10 +4017,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.symbol = /*#__PURE__*/function (_svg$Element$Rendered7) {
|
||||
_inherits(_class37, _svg$Element$Rendered7);
|
||||
|
||||
var _super36 = _createSuper(_class37);
|
||||
|
||||
function _class37() {
|
||||
_classCallCheck(this, _class37);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class37).apply(this, arguments));
|
||||
return _super36.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class37, [{
|
||||
|
@ -3939,12 +4038,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.style = /*#__PURE__*/function (_svg$Element$ElementB10) {
|
||||
_inherits(_class38, _svg$Element$ElementB10);
|
||||
|
||||
var _super37 = _createSuper(_class38);
|
||||
|
||||
function _class38(node) {
|
||||
var _this21;
|
||||
|
||||
_classCallCheck(this, _class38);
|
||||
|
||||
_this21 = _possibleConstructorReturn(this, _getPrototypeOf(_class38).call(this, node)); // text, or spaces then CDATA
|
||||
_this21 = _super37.call(this, node); // text, or spaces then CDATA
|
||||
|
||||
var css = '';
|
||||
|
||||
|
@ -4017,12 +4118,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.use = /*#__PURE__*/function (_svg$Element$Rendered8) {
|
||||
_inherits(_class39, _svg$Element$Rendered8);
|
||||
|
||||
var _super38 = _createSuper(_class39);
|
||||
|
||||
function _class39(node) {
|
||||
var _this22;
|
||||
|
||||
_classCallCheck(this, _class39);
|
||||
|
||||
_this22 = _possibleConstructorReturn(this, _getPrototypeOf(_class39).call(this, node));
|
||||
_this22 = _super38.call(this, node);
|
||||
_this22._el = _this22.getHrefAttribute().getDefinition();
|
||||
return _this22;
|
||||
}
|
||||
|
@ -4087,10 +4190,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.mask = /*#__PURE__*/function (_svg$Element$ElementB11) {
|
||||
_inherits(_class40, _svg$Element$ElementB11);
|
||||
|
||||
var _super39 = _createSuper(_class40);
|
||||
|
||||
function _class40() {
|
||||
_classCallCheck(this, _class40);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class40).apply(this, arguments));
|
||||
return _super39.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class40, [{
|
||||
|
@ -4147,10 +4252,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.clipPath = /*#__PURE__*/function (_svg$Element$ElementB12) {
|
||||
_inherits(_class41, _svg$Element$ElementB12);
|
||||
|
||||
var _super40 = _createSuper(_class41);
|
||||
|
||||
function _class41() {
|
||||
_classCallCheck(this, _class41);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class41).apply(this, arguments));
|
||||
return _super40.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class41, [{
|
||||
|
@ -4187,10 +4294,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.filter = /*#__PURE__*/function (_svg$Element$ElementB13) {
|
||||
_inherits(_class42, _svg$Element$ElementB13);
|
||||
|
||||
var _super41 = _createSuper(_class42);
|
||||
|
||||
function _class42() {
|
||||
_classCallCheck(this, _class42);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class42).apply(this, arguments));
|
||||
return _super41.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class42, [{
|
||||
|
@ -4239,10 +4348,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.feMorphology = /*#__PURE__*/function (_svg$Element$ElementB14) {
|
||||
_inherits(_class43, _svg$Element$ElementB14);
|
||||
|
||||
var _super42 = _createSuper(_class43);
|
||||
|
||||
function _class43() {
|
||||
_classCallCheck(this, _class43);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class43).apply(this, arguments));
|
||||
return _super42.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class43, [{
|
||||
|
@ -4257,10 +4368,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.feComposite = /*#__PURE__*/function (_svg$Element$ElementB15) {
|
||||
_inherits(_class44, _svg$Element$ElementB15);
|
||||
|
||||
var _super43 = _createSuper(_class44);
|
||||
|
||||
function _class44() {
|
||||
_classCallCheck(this, _class44);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class44).apply(this, arguments));
|
||||
return _super43.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class44, [{
|
||||
|
@ -4304,12 +4417,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.feColorMatrix = /*#__PURE__*/function (_svg$Element$ElementB16) {
|
||||
_inherits(_class45, _svg$Element$ElementB16);
|
||||
|
||||
var _super44 = _createSuper(_class45);
|
||||
|
||||
function _class45(node) {
|
||||
var _this23;
|
||||
|
||||
_classCallCheck(this, _class45);
|
||||
|
||||
_this23 = _possibleConstructorReturn(this, _getPrototypeOf(_class45).call(this, node));
|
||||
_this23 = _super44.call(this, node);
|
||||
var matrix = svg.ToNumberArray(_this23.attribute('values').value);
|
||||
|
||||
switch (_this23.attribute('type').valueOrDefault('matrix')) {
|
||||
|
@ -4379,12 +4494,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.feGaussianBlur = /*#__PURE__*/function (_svg$Element$ElementB17) {
|
||||
_inherits(_class46, _svg$Element$ElementB17);
|
||||
|
||||
var _super45 = _createSuper(_class46);
|
||||
|
||||
function _class46(node) {
|
||||
var _this24;
|
||||
|
||||
_classCallCheck(this, _class46);
|
||||
|
||||
_this24 = _possibleConstructorReturn(this, _getPrototypeOf(_class46).call(this, node));
|
||||
_this24 = _super45.call(this, node);
|
||||
_this24.blurRadius = Math.floor(_this24.attribute('stdDeviation').numValue());
|
||||
_this24.extraFilterDistance = _this24.blurRadius;
|
||||
return _this24;
|
||||
|
@ -4410,10 +4527,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.title = /*#__PURE__*/function (_svg$Element$ElementB18) {
|
||||
_inherits(_class47, _svg$Element$ElementB18);
|
||||
|
||||
var _super46 = _createSuper(_class47);
|
||||
|
||||
function _class47(node) {
|
||||
_classCallCheck(this, _class47);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class47).call(this));
|
||||
return _super46.call(this);
|
||||
}
|
||||
|
||||
return _class47;
|
||||
|
@ -4423,10 +4542,12 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.desc = /*#__PURE__*/function (_svg$Element$ElementB19) {
|
||||
_inherits(_class48, _svg$Element$ElementB19);
|
||||
|
||||
var _super47 = _createSuper(_class48);
|
||||
|
||||
function _class48(node) {
|
||||
_classCallCheck(this, _class48);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class48).call(this));
|
||||
return _super47.call(this);
|
||||
}
|
||||
|
||||
return _class48;
|
||||
|
@ -4435,12 +4556,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svg.Element.MISSING = /*#__PURE__*/function (_svg$Element$ElementB20) {
|
||||
_inherits(_class49, _svg$Element$ElementB20);
|
||||
|
||||
var _super48 = _createSuper(_class49);
|
||||
|
||||
function _class49(node) {
|
||||
var _this25;
|
||||
|
||||
_classCallCheck(this, _class49);
|
||||
|
||||
_this25 = _possibleConstructorReturn(this, _getPrototypeOf(_class49).call(this));
|
||||
_this25 = _super48.call(this);
|
||||
svg.log('ERROR: Element \'' + node.nodeName + '\' not yet implemented.');
|
||||
return _this25;
|
||||
}
|
||||
|
@ -4773,19 +4896,17 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
encode64 = _ref.encode64,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
var strings, svgEditor, svgCanvas, saveSvgAction;
|
||||
var $, encode64, importLocale, strings, svgEditor, svgCanvas, saveSvgAction;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
$ = _ref.$, encode64 = _ref.encode64, importLocale = _ref.importLocale;
|
||||
_context2.next = 3;
|
||||
return importLocale();
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
strings = _context2.sent;
|
||||
svgEditor = _this;
|
||||
svgCanvas = svgEditor.canvas;
|
||||
|
@ -4799,14 +4920,14 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
svgEditor.setCustomHandlers({
|
||||
save: function save(win, data) {
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var svg, _ref2, pathname, name, svgData, c, datauri, pngData;
|
||||
var svg, _URL, pathname, name, svgData, c, datauri, pngData;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
svg = '<?xml version="1.0"?>\n' + data;
|
||||
_ref2 = new URL(location), pathname = _ref2.pathname;
|
||||
_URL = new URL(location), pathname = _URL.pathname;
|
||||
name = pathname.replace(/\/+get\//, '');
|
||||
svgData = encode64(svg);
|
||||
|
||||
|
@ -4847,7 +4968,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||
}
|
||||
});
|
||||
|
||||
case 8:
|
||||
case 9:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function isNativeReflectConstruct() {
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
@ -120,7 +120,7 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
}
|
||||
|
||||
function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
if (_isNativeReflectConstruct()) {
|
||||
_construct = Reflect.construct;
|
||||
} else {
|
||||
_construct = function _construct(Parent, args, Class) {
|
||||
|
@ -152,6 +152,23 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
return _assertThisInitialized(self);
|
||||
}
|
||||
|
||||
function _createSuper(Derived) {
|
||||
return function () {
|
||||
var Super = _getPrototypeOf(Derived),
|
||||
result;
|
||||
|
||||
if (_isNativeReflectConstruct()) {
|
||||
var NewTarget = _getPrototypeOf(this).constructor;
|
||||
|
||||
result = Reflect.construct(Super, arguments, NewTarget);
|
||||
} else {
|
||||
result = Super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(this, result);
|
||||
};
|
||||
}
|
||||
|
||||
function _superPropBase(object, property) {
|
||||
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
||||
object = _getPrototypeOf(object);
|
||||
|
@ -183,19 +200,15 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -203,14 +216,11 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -236,12 +246,29 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1658,12 +1685,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
SkewBase: /*#__PURE__*/function (_this$Type$matrix) {
|
||||
_inherits(SkewBase, _this$Type$matrix);
|
||||
|
||||
var _super = _createSuper(SkewBase);
|
||||
|
||||
function SkewBase(s) {
|
||||
var _this3;
|
||||
|
||||
_classCallCheck(this, SkewBase);
|
||||
|
||||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(SkewBase).call(this, s));
|
||||
_this3 = _super.call(this, s);
|
||||
_this3.angle = new svg.Property('angle', s);
|
||||
return _this3;
|
||||
}
|
||||
|
@ -1675,12 +1704,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
skewX: /*#__PURE__*/function (_this$Type$SkewBase) {
|
||||
_inherits(skewX, _this$Type$SkewBase);
|
||||
|
||||
var _super2 = _createSuper(skewX);
|
||||
|
||||
function skewX(s) {
|
||||
var _this4;
|
||||
|
||||
_classCallCheck(this, skewX);
|
||||
|
||||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(skewX).call(this, s));
|
||||
_this4 = _super2.call(this, s);
|
||||
_this4.m = [1, 0, Math.tan(_this4.angle.toRadians()), 1, 0, 0];
|
||||
return _this4;
|
||||
}
|
||||
|
@ -1690,12 +1721,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
skewY: /*#__PURE__*/function (_this$Type$SkewBase2) {
|
||||
_inherits(skewY, _this$Type$SkewBase2);
|
||||
|
||||
var _super3 = _createSuper(skewY);
|
||||
|
||||
function skewY(s) {
|
||||
var _this5;
|
||||
|
||||
_classCallCheck(this, skewY);
|
||||
|
||||
_this5 = _possibleConstructorReturn(this, _getPrototypeOf(skewY).call(this, s));
|
||||
_this5 = _super3.call(this, s);
|
||||
_this5.m = [1, Math.tan(_this5.angle.toRadians()), 0, 1, 0, 0];
|
||||
return _this5;
|
||||
}
|
||||
|
@ -2029,10 +2062,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.RenderedElementBase = /*#__PURE__*/function (_svg$Element$ElementB) {
|
||||
_inherits(_class5, _svg$Element$ElementB);
|
||||
|
||||
var _super4 = _createSuper(_class5);
|
||||
|
||||
function _class5() {
|
||||
_classCallCheck(this, _class5);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class5).apply(this, arguments));
|
||||
return _super4.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class5, [{
|
||||
|
@ -2134,10 +2169,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.PathElementBase = /*#__PURE__*/function (_svg$Element$Rendered) {
|
||||
_inherits(_class6, _svg$Element$Rendered);
|
||||
|
||||
var _super5 = _createSuper(_class6);
|
||||
|
||||
function _class6() {
|
||||
_classCallCheck(this, _class6);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class6).apply(this, arguments));
|
||||
return _super5.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class6, [{
|
||||
|
@ -2203,10 +2240,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.svg = /*#__PURE__*/function (_svg$Element$Rendered2) {
|
||||
_inherits(_class7, _svg$Element$Rendered2);
|
||||
|
||||
var _super6 = _createSuper(_class7);
|
||||
|
||||
function _class7() {
|
||||
_classCallCheck(this, _class7);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class7).apply(this, arguments));
|
||||
return _super6.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class7, [{
|
||||
|
@ -2284,10 +2323,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.rect = /*#__PURE__*/function (_svg$Element$PathElem) {
|
||||
_inherits(_class8, _svg$Element$PathElem);
|
||||
|
||||
var _super7 = _createSuper(_class8);
|
||||
|
||||
function _class8() {
|
||||
_classCallCheck(this, _class8);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class8).apply(this, arguments));
|
||||
return _super7.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class8, [{
|
||||
|
@ -2329,10 +2370,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.circle = /*#__PURE__*/function (_svg$Element$PathElem2) {
|
||||
_inherits(_class9, _svg$Element$PathElem2);
|
||||
|
||||
var _super8 = _createSuper(_class9);
|
||||
|
||||
function _class9() {
|
||||
_classCallCheck(this, _class9);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class9).apply(this, arguments));
|
||||
return _super8.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class9, [{
|
||||
|
@ -2361,10 +2404,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.ellipse = /*#__PURE__*/function (_svg$Element$PathElem3) {
|
||||
_inherits(_class10, _svg$Element$PathElem3);
|
||||
|
||||
var _super9 = _createSuper(_class10);
|
||||
|
||||
function _class10() {
|
||||
_classCallCheck(this, _class10);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class10).apply(this, arguments));
|
||||
return _super9.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class10, [{
|
||||
|
@ -2396,10 +2441,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.line = /*#__PURE__*/function (_svg$Element$PathElem4) {
|
||||
_inherits(_class11, _svg$Element$PathElem4);
|
||||
|
||||
var _super10 = _createSuper(_class11);
|
||||
|
||||
function _class11() {
|
||||
_classCallCheck(this, _class11);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class11).apply(this, arguments));
|
||||
return _super10.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class11, [{
|
||||
|
@ -2436,12 +2483,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.polyline = /*#__PURE__*/function (_svg$Element$PathElem5) {
|
||||
_inherits(_class12, _svg$Element$PathElem5);
|
||||
|
||||
var _super11 = _createSuper(_class12);
|
||||
|
||||
function _class12(node) {
|
||||
var _this8;
|
||||
|
||||
_classCallCheck(this, _class12);
|
||||
|
||||
_this8 = _possibleConstructorReturn(this, _getPrototypeOf(_class12).call(this, node));
|
||||
_this8 = _super11.call(this, node);
|
||||
_this8.points = svg.CreatePath(_this8.attribute('points').value);
|
||||
return _this8;
|
||||
}
|
||||
|
@ -2490,10 +2539,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.polygon = /*#__PURE__*/function (_svg$Element$polyline) {
|
||||
_inherits(_class13, _svg$Element$polyline);
|
||||
|
||||
var _super12 = _createSuper(_class13);
|
||||
|
||||
function _class13() {
|
||||
_classCallCheck(this, _class13);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class13).apply(this, arguments));
|
||||
return _super12.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class13, [{
|
||||
|
@ -2517,12 +2568,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.path = /*#__PURE__*/function (_svg$Element$PathElem6) {
|
||||
_inherits(_class14, _svg$Element$PathElem6);
|
||||
|
||||
var _super13 = _createSuper(_class14);
|
||||
|
||||
function _class14(node) {
|
||||
var _this9;
|
||||
|
||||
_classCallCheck(this, _class14);
|
||||
|
||||
_this9 = _possibleConstructorReturn(this, _getPrototypeOf(_class14).call(this, node));
|
||||
_this9 = _super13.call(this, node);
|
||||
|
||||
var d = _this9.attribute('d').value // TODO: convert to real lexer based on https://www.w3.org/TR/SVG11/paths.html#PathDataBNF
|
||||
.replace(/,/gm, ' ') // get rid of all commas
|
||||
|
@ -2894,10 +2947,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.pattern = /*#__PURE__*/function (_svg$Element$ElementB2) {
|
||||
_inherits(_class15, _svg$Element$ElementB2);
|
||||
|
||||
var _super14 = _createSuper(_class15);
|
||||
|
||||
function _class15() {
|
||||
_classCallCheck(this, _class15);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class15).apply(this, arguments));
|
||||
return _super14.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class15, [{
|
||||
|
@ -2943,10 +2998,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.marker = /*#__PURE__*/function (_svg$Element$ElementB3) {
|
||||
_inherits(_class16, _svg$Element$ElementB3);
|
||||
|
||||
var _super15 = _createSuper(_class16);
|
||||
|
||||
function _class16() {
|
||||
_classCallCheck(this, _class16);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class16).apply(this, arguments));
|
||||
return _super15.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class16, [{
|
||||
|
@ -2981,10 +3038,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.defs = /*#__PURE__*/function (_svg$Element$ElementB4) {
|
||||
_inherits(_class17, _svg$Element$ElementB4);
|
||||
|
||||
var _super16 = _createSuper(_class17);
|
||||
|
||||
function _class17() {
|
||||
_classCallCheck(this, _class17);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class17).apply(this, arguments));
|
||||
return _super16.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class17, [{
|
||||
|
@ -3000,12 +3059,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.GradientBase = /*#__PURE__*/function (_svg$Element$ElementB5) {
|
||||
_inherits(_class18, _svg$Element$ElementB5);
|
||||
|
||||
var _super17 = _createSuper(_class18);
|
||||
|
||||
function _class18(node) {
|
||||
var _this10;
|
||||
|
||||
_classCallCheck(this, _class18);
|
||||
|
||||
_this10 = _possibleConstructorReturn(this, _getPrototypeOf(_class18).call(this, node));
|
||||
_this10 = _super17.call(this, node);
|
||||
_this10.gradientUnits = _this10.attribute('gradientUnits').valueOrDefault('objectBoundingBox');
|
||||
_this10.stops = [];
|
||||
|
||||
|
@ -3081,10 +3142,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.linearGradient = /*#__PURE__*/function (_svg$Element$Gradient) {
|
||||
_inherits(_class19, _svg$Element$Gradient);
|
||||
|
||||
var _super18 = _createSuper(_class19);
|
||||
|
||||
function _class19() {
|
||||
_classCallCheck(this, _class19);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class19).apply(this, arguments));
|
||||
return _super18.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class19, [{
|
||||
|
@ -3116,10 +3179,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.radialGradient = /*#__PURE__*/function (_svg$Element$Gradient2) {
|
||||
_inherits(_class20, _svg$Element$Gradient2);
|
||||
|
||||
var _super19 = _createSuper(_class20);
|
||||
|
||||
function _class20() {
|
||||
_classCallCheck(this, _class20);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class20).apply(this, arguments));
|
||||
return _super19.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class20, [{
|
||||
|
@ -3155,12 +3220,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.stop = /*#__PURE__*/function (_svg$Element$ElementB6) {
|
||||
_inherits(_class21, _svg$Element$ElementB6);
|
||||
|
||||
var _super20 = _createSuper(_class21);
|
||||
|
||||
function _class21(node) {
|
||||
var _this11;
|
||||
|
||||
_classCallCheck(this, _class21);
|
||||
|
||||
_this11 = _possibleConstructorReturn(this, _getPrototypeOf(_class21).call(this, node));
|
||||
_this11 = _super20.call(this, node);
|
||||
_this11.offset = _this11.attribute('offset').numValue();
|
||||
if (_this11.offset < 0) _this11.offset = 0;
|
||||
if (_this11.offset > 1) _this11.offset = 1;
|
||||
|
@ -3182,12 +3249,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.AnimateBase = /*#__PURE__*/function (_svg$Element$ElementB7) {
|
||||
_inherits(_class22, _svg$Element$ElementB7);
|
||||
|
||||
var _super21 = _createSuper(_class22);
|
||||
|
||||
function _class22(node) {
|
||||
var _this12;
|
||||
|
||||
_classCallCheck(this, _class22);
|
||||
|
||||
_this12 = _possibleConstructorReturn(this, _getPrototypeOf(_class22).call(this, node));
|
||||
_this12 = _super21.call(this, node);
|
||||
svg.Animations.push(_assertThisInitialized(_this12));
|
||||
_this12.duration = 0.0;
|
||||
_this12.begin = _this12.attribute('begin').toMilliseconds();
|
||||
|
@ -3297,10 +3366,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.animate = /*#__PURE__*/function (_svg$Element$AnimateB) {
|
||||
_inherits(_class23, _svg$Element$AnimateB);
|
||||
|
||||
var _super22 = _createSuper(_class23);
|
||||
|
||||
function _class23() {
|
||||
_classCallCheck(this, _class23);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class23).apply(this, arguments));
|
||||
return _super22.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class23, [{
|
||||
|
@ -3320,10 +3391,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.animateColor = /*#__PURE__*/function (_svg$Element$AnimateB2) {
|
||||
_inherits(_class24, _svg$Element$AnimateB2);
|
||||
|
||||
var _super23 = _createSuper(_class24);
|
||||
|
||||
function _class24() {
|
||||
_classCallCheck(this, _class24);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class24).apply(this, arguments));
|
||||
return _super23.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class24, [{
|
||||
|
@ -3352,10 +3425,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.animateTransform = /*#__PURE__*/function (_svg$Element$animate) {
|
||||
_inherits(_class25, _svg$Element$animate);
|
||||
|
||||
var _super24 = _createSuper(_class25);
|
||||
|
||||
function _class25() {
|
||||
_classCallCheck(this, _class25);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class25).apply(this, arguments));
|
||||
return _super24.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class25, [{
|
||||
|
@ -3380,12 +3455,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.font = /*#__PURE__*/function (_svg$Element$ElementB8) {
|
||||
_inherits(_class26, _svg$Element$ElementB8);
|
||||
|
||||
var _super25 = _createSuper(_class26);
|
||||
|
||||
function _class26(node) {
|
||||
var _this13;
|
||||
|
||||
_classCallCheck(this, _class26);
|
||||
|
||||
_this13 = _possibleConstructorReturn(this, _getPrototypeOf(_class26).call(this, node));
|
||||
_this13 = _super25.call(this, node);
|
||||
_this13.horizAdvX = _this13.attribute('horiz-adv-x').numValue();
|
||||
_this13.isRTL = false;
|
||||
_this13.isArabic = false;
|
||||
|
@ -3428,12 +3505,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.fontface = /*#__PURE__*/function (_svg$Element$ElementB9) {
|
||||
_inherits(_class27, _svg$Element$ElementB9);
|
||||
|
||||
var _super26 = _createSuper(_class27);
|
||||
|
||||
function _class27(node) {
|
||||
var _this14;
|
||||
|
||||
_classCallCheck(this, _class27);
|
||||
|
||||
_this14 = _possibleConstructorReturn(this, _getPrototypeOf(_class27).call(this, node));
|
||||
_this14 = _super26.call(this, node);
|
||||
_this14.ascent = _this14.attribute('ascent').value;
|
||||
_this14.descent = _this14.attribute('descent').value;
|
||||
_this14.unitsPerEm = _this14.attribute('units-per-em').numValue();
|
||||
|
@ -3447,12 +3526,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.missingglyph = /*#__PURE__*/function (_svg$Element$path) {
|
||||
_inherits(_class28, _svg$Element$path);
|
||||
|
||||
var _super27 = _createSuper(_class28);
|
||||
|
||||
function _class28(node) {
|
||||
var _this15;
|
||||
|
||||
_classCallCheck(this, _class28);
|
||||
|
||||
_this15 = _possibleConstructorReturn(this, _getPrototypeOf(_class28).call(this, node));
|
||||
_this15 = _super27.call(this, node);
|
||||
_this15.horizAdvX = 0;
|
||||
return _this15;
|
||||
}
|
||||
|
@ -3464,12 +3545,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.glyph = /*#__PURE__*/function (_svg$Element$path2) {
|
||||
_inherits(_class29, _svg$Element$path2);
|
||||
|
||||
var _super28 = _createSuper(_class29);
|
||||
|
||||
function _class29(node) {
|
||||
var _this16;
|
||||
|
||||
_classCallCheck(this, _class29);
|
||||
|
||||
_this16 = _possibleConstructorReturn(this, _getPrototypeOf(_class29).call(this, node));
|
||||
_this16 = _super28.call(this, node);
|
||||
_this16.horizAdvX = _this16.attribute('horiz-adv-x').numValue();
|
||||
_this16.unicode = _this16.attribute('unicode').value;
|
||||
_this16.arabicForm = _this16.attribute('arabic-form').value;
|
||||
|
@ -3483,10 +3566,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.text = /*#__PURE__*/function (_svg$Element$Rendered3) {
|
||||
_inherits(_class30, _svg$Element$Rendered3);
|
||||
|
||||
var _super29 = _createSuper(_class30);
|
||||
|
||||
function _class30(node) {
|
||||
_classCallCheck(this, _class30);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class30).call(this, node, true));
|
||||
return _super29.call(this, node, true);
|
||||
}
|
||||
|
||||
_createClass(_class30, [{
|
||||
|
@ -3579,10 +3664,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.TextElementBase = /*#__PURE__*/function (_svg$Element$Rendered4) {
|
||||
_inherits(_class31, _svg$Element$Rendered4);
|
||||
|
||||
var _super30 = _createSuper(_class31);
|
||||
|
||||
function _class31() {
|
||||
_classCallCheck(this, _class31);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class31).apply(this, arguments));
|
||||
return _super30.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class31, [{
|
||||
|
@ -3703,12 +3790,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.tspan = /*#__PURE__*/function (_svg$Element$TextElem) {
|
||||
_inherits(_class32, _svg$Element$TextElem);
|
||||
|
||||
var _super31 = _createSuper(_class32);
|
||||
|
||||
function _class32(node) {
|
||||
var _this18;
|
||||
|
||||
_classCallCheck(this, _class32);
|
||||
|
||||
_this18 = _possibleConstructorReturn(this, _getPrototypeOf(_class32).call(this, node, true));
|
||||
_this18 = _super31.call(this, node, true);
|
||||
_this18.text = node.nodeValue || node.text || '';
|
||||
return _this18;
|
||||
}
|
||||
|
@ -3727,10 +3816,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.tref = /*#__PURE__*/function (_svg$Element$TextElem2) {
|
||||
_inherits(_class33, _svg$Element$TextElem2);
|
||||
|
||||
var _super32 = _createSuper(_class33);
|
||||
|
||||
function _class33() {
|
||||
_classCallCheck(this, _class33);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class33).apply(this, arguments));
|
||||
return _super32.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class33, [{
|
||||
|
@ -3749,12 +3840,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.a = /*#__PURE__*/function (_svg$Element$TextElem3) {
|
||||
_inherits(_class34, _svg$Element$TextElem3);
|
||||
|
||||
var _super33 = _createSuper(_class34);
|
||||
|
||||
function _class34(node) {
|
||||
var _this19;
|
||||
|
||||
_classCallCheck(this, _class34);
|
||||
|
||||
_this19 = _possibleConstructorReturn(this, _getPrototypeOf(_class34).call(this, node));
|
||||
_this19 = _super33.call(this, node);
|
||||
_this19.hasText = true;
|
||||
|
||||
_toConsumableArray(node.childNodes).forEach(function (childNode) {
|
||||
|
@ -3809,12 +3902,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.image = /*#__PURE__*/function (_svg$Element$Rendered5) {
|
||||
_inherits(_class35, _svg$Element$Rendered5);
|
||||
|
||||
var _super34 = _createSuper(_class35);
|
||||
|
||||
function _class35(node) {
|
||||
var _this20;
|
||||
|
||||
_classCallCheck(this, _class35);
|
||||
|
||||
_this20 = _possibleConstructorReturn(this, _getPrototypeOf(_class35).call(this, node));
|
||||
_this20 = _super34.call(this, node);
|
||||
|
||||
var href = _this20.getHrefAttribute().value;
|
||||
|
||||
|
@ -3896,10 +3991,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.g = /*#__PURE__*/function (_svg$Element$Rendered6) {
|
||||
_inherits(_class36, _svg$Element$Rendered6);
|
||||
|
||||
var _super35 = _createSuper(_class36);
|
||||
|
||||
function _class36() {
|
||||
_classCallCheck(this, _class36);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class36).apply(this, arguments));
|
||||
return _super35.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class36, [{
|
||||
|
@ -3920,10 +4017,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.symbol = /*#__PURE__*/function (_svg$Element$Rendered7) {
|
||||
_inherits(_class37, _svg$Element$Rendered7);
|
||||
|
||||
var _super36 = _createSuper(_class37);
|
||||
|
||||
function _class37() {
|
||||
_classCallCheck(this, _class37);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class37).apply(this, arguments));
|
||||
return _super36.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class37, [{
|
||||
|
@ -3939,12 +4038,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.style = /*#__PURE__*/function (_svg$Element$ElementB10) {
|
||||
_inherits(_class38, _svg$Element$ElementB10);
|
||||
|
||||
var _super37 = _createSuper(_class38);
|
||||
|
||||
function _class38(node) {
|
||||
var _this21;
|
||||
|
||||
_classCallCheck(this, _class38);
|
||||
|
||||
_this21 = _possibleConstructorReturn(this, _getPrototypeOf(_class38).call(this, node)); // text, or spaces then CDATA
|
||||
_this21 = _super37.call(this, node); // text, or spaces then CDATA
|
||||
|
||||
var css = '';
|
||||
|
||||
|
@ -4017,12 +4118,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.use = /*#__PURE__*/function (_svg$Element$Rendered8) {
|
||||
_inherits(_class39, _svg$Element$Rendered8);
|
||||
|
||||
var _super38 = _createSuper(_class39);
|
||||
|
||||
function _class39(node) {
|
||||
var _this22;
|
||||
|
||||
_classCallCheck(this, _class39);
|
||||
|
||||
_this22 = _possibleConstructorReturn(this, _getPrototypeOf(_class39).call(this, node));
|
||||
_this22 = _super38.call(this, node);
|
||||
_this22._el = _this22.getHrefAttribute().getDefinition();
|
||||
return _this22;
|
||||
}
|
||||
|
@ -4087,10 +4190,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.mask = /*#__PURE__*/function (_svg$Element$ElementB11) {
|
||||
_inherits(_class40, _svg$Element$ElementB11);
|
||||
|
||||
var _super39 = _createSuper(_class40);
|
||||
|
||||
function _class40() {
|
||||
_classCallCheck(this, _class40);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class40).apply(this, arguments));
|
||||
return _super39.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class40, [{
|
||||
|
@ -4147,10 +4252,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.clipPath = /*#__PURE__*/function (_svg$Element$ElementB12) {
|
||||
_inherits(_class41, _svg$Element$ElementB12);
|
||||
|
||||
var _super40 = _createSuper(_class41);
|
||||
|
||||
function _class41() {
|
||||
_classCallCheck(this, _class41);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class41).apply(this, arguments));
|
||||
return _super40.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class41, [{
|
||||
|
@ -4187,10 +4294,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.filter = /*#__PURE__*/function (_svg$Element$ElementB13) {
|
||||
_inherits(_class42, _svg$Element$ElementB13);
|
||||
|
||||
var _super41 = _createSuper(_class42);
|
||||
|
||||
function _class42() {
|
||||
_classCallCheck(this, _class42);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class42).apply(this, arguments));
|
||||
return _super41.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class42, [{
|
||||
|
@ -4239,10 +4348,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.feMorphology = /*#__PURE__*/function (_svg$Element$ElementB14) {
|
||||
_inherits(_class43, _svg$Element$ElementB14);
|
||||
|
||||
var _super42 = _createSuper(_class43);
|
||||
|
||||
function _class43() {
|
||||
_classCallCheck(this, _class43);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class43).apply(this, arguments));
|
||||
return _super42.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class43, [{
|
||||
|
@ -4257,10 +4368,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.feComposite = /*#__PURE__*/function (_svg$Element$ElementB15) {
|
||||
_inherits(_class44, _svg$Element$ElementB15);
|
||||
|
||||
var _super43 = _createSuper(_class44);
|
||||
|
||||
function _class44() {
|
||||
_classCallCheck(this, _class44);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class44).apply(this, arguments));
|
||||
return _super43.apply(this, arguments);
|
||||
}
|
||||
|
||||
_createClass(_class44, [{
|
||||
|
@ -4304,12 +4417,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.feColorMatrix = /*#__PURE__*/function (_svg$Element$ElementB16) {
|
||||
_inherits(_class45, _svg$Element$ElementB16);
|
||||
|
||||
var _super44 = _createSuper(_class45);
|
||||
|
||||
function _class45(node) {
|
||||
var _this23;
|
||||
|
||||
_classCallCheck(this, _class45);
|
||||
|
||||
_this23 = _possibleConstructorReturn(this, _getPrototypeOf(_class45).call(this, node));
|
||||
_this23 = _super44.call(this, node);
|
||||
var matrix = svg.ToNumberArray(_this23.attribute('values').value);
|
||||
|
||||
switch (_this23.attribute('type').valueOrDefault('matrix')) {
|
||||
|
@ -4379,12 +4494,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.feGaussianBlur = /*#__PURE__*/function (_svg$Element$ElementB17) {
|
||||
_inherits(_class46, _svg$Element$ElementB17);
|
||||
|
||||
var _super45 = _createSuper(_class46);
|
||||
|
||||
function _class46(node) {
|
||||
var _this24;
|
||||
|
||||
_classCallCheck(this, _class46);
|
||||
|
||||
_this24 = _possibleConstructorReturn(this, _getPrototypeOf(_class46).call(this, node));
|
||||
_this24 = _super45.call(this, node);
|
||||
_this24.blurRadius = Math.floor(_this24.attribute('stdDeviation').numValue());
|
||||
_this24.extraFilterDistance = _this24.blurRadius;
|
||||
return _this24;
|
||||
|
@ -4410,10 +4527,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.title = /*#__PURE__*/function (_svg$Element$ElementB18) {
|
||||
_inherits(_class47, _svg$Element$ElementB18);
|
||||
|
||||
var _super46 = _createSuper(_class47);
|
||||
|
||||
function _class47(node) {
|
||||
_classCallCheck(this, _class47);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class47).call(this));
|
||||
return _super46.call(this);
|
||||
}
|
||||
|
||||
return _class47;
|
||||
|
@ -4423,10 +4542,12 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.desc = /*#__PURE__*/function (_svg$Element$ElementB19) {
|
||||
_inherits(_class48, _svg$Element$ElementB19);
|
||||
|
||||
var _super47 = _createSuper(_class48);
|
||||
|
||||
function _class48(node) {
|
||||
_classCallCheck(this, _class48);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_class48).call(this));
|
||||
return _super47.call(this);
|
||||
}
|
||||
|
||||
return _class48;
|
||||
|
@ -4435,12 +4556,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
svg.Element.MISSING = /*#__PURE__*/function (_svg$Element$ElementB20) {
|
||||
_inherits(_class49, _svg$Element$ElementB20);
|
||||
|
||||
var _super48 = _createSuper(_class49);
|
||||
|
||||
function _class49(node) {
|
||||
var _this25;
|
||||
|
||||
_classCallCheck(this, _class49);
|
||||
|
||||
_this25 = _possibleConstructorReturn(this, _getPrototypeOf(_class49).call(this));
|
||||
_this25 = _super48.call(this);
|
||||
svg.log('ERROR: Element \'' + node.nodeName + '\' not yet implemented.');
|
||||
return _this25;
|
||||
}
|
||||
|
@ -4773,18 +4896,14 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
decode64 = _ref.decode64,
|
||||
encode64 = _ref.encode64,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
||||
var strings, svgEditor, _svgEditor$curConfig, extPath, avoidClientSide, avoidClientSideDownload, avoidClientSideOpen, svgCanvas, getFileNameFromTitle, xhtmlEscape, clientDownloadSupport, saveSvgAction, saveImgAction, cancelled, openSvgAction, importSvgAction, importImgAction, openSvgForm, importSvgForm, importImgForm, rebuildInput;
|
||||
var $, decode64, encode64, importLocale, strings, svgEditor, _svgEditor$curConfig, extPath, avoidClientSide, avoidClientSideDownload, avoidClientSideOpen, svgCanvas, getFileNameFromTitle, xhtmlEscape, clientDownloadSupport, saveSvgAction, saveImgAction, cancelled, openSvgAction, importSvgAction, importImgAction, openSvgForm, importSvgForm, importImgForm, rebuildInput;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
||||
while (1) {
|
||||
switch (_context5.prev = _context5.next) {
|
||||
case 0:
|
||||
rebuildInput = function _ref7(form) {
|
||||
rebuildInput = function _rebuildInput(form) {
|
||||
form.empty();
|
||||
var inp = $('<input type="file" name="svg_file">').appendTo(form);
|
||||
/**
|
||||
|
@ -4874,7 +4993,7 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
}
|
||||
};
|
||||
|
||||
clientDownloadSupport = function _ref6(filename, suffix, uri) {
|
||||
clientDownloadSupport = function _clientDownloadSuppor(filename, suffix, uri) {
|
||||
if (avoidClientSide || avoidClientSideDownload) {
|
||||
return false;
|
||||
}
|
||||
|
@ -4894,20 +5013,21 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
return false;
|
||||
};
|
||||
|
||||
xhtmlEscape = function _ref5(str) {
|
||||
xhtmlEscape = function _xhtmlEscape(str) {
|
||||
return str.replace(/&(?!amp;)/g, '&').replace(/"/g, '"').replace(/</g, '<'); // < is actually disallowed above anyways
|
||||
};
|
||||
|
||||
getFileNameFromTitle = function _ref4() {
|
||||
getFileNameFromTitle = function _getFileNameFromTitle() {
|
||||
var title = svgCanvas.getDocumentTitle(); // We convert (to underscore) only those disallowed Win7 file name characters
|
||||
|
||||
return title.trim().replace(/[/\\:*?"<>|]/g, '_');
|
||||
};
|
||||
|
||||
_context5.next = 6;
|
||||
$ = _ref.$, decode64 = _ref.decode64, encode64 = _ref.encode64, importLocale = _ref.importLocale;
|
||||
_context5.next = 7;
|
||||
return importLocale();
|
||||
|
||||
case 6:
|
||||
case 7:
|
||||
strings = _context5.sent;
|
||||
svgEditor = _this;
|
||||
_svgEditor$curConfig = svgEditor.curConfig, extPath = _svgEditor$curConfig.extPath, avoidClientSide = _svgEditor$curConfig.avoidClientSide, avoidClientSideDownload = _svgEditor$curConfig.avoidClientSideDownload, avoidClientSideOpen = _svgEditor$curConfig.avoidClientSideOpen, svgCanvas = svgEditor.canvas;
|
||||
|
@ -5023,13 +5143,13 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
}); // Do nothing if client support is found
|
||||
|
||||
if (!(window.FileReader && !avoidClientSideOpen)) {
|
||||
_context5.next = 15;
|
||||
_context5.next = 16;
|
||||
break;
|
||||
}
|
||||
|
||||
return _context5.abrupt("return");
|
||||
|
||||
case 15:
|
||||
case 16:
|
||||
// Change these to appropriate script file
|
||||
openSvgAction = extPath + 'fileopen.php?type=load_svg';
|
||||
importSvgAction = extPath + 'fileopen.php?type=import_svg';
|
||||
|
@ -5096,7 +5216,7 @@ var svgEditorExtension_server_opensave = (function () {
|
|||
$('#tool_import').show().prepend(importSvgForm);
|
||||
$('#tool_image').prepend(importImgForm);
|
||||
|
||||
case 29:
|
||||
case 30:
|
||||
case "end":
|
||||
return _context5.stop();
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ var svgEditorExtension_shapes = (function () {
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -46,10 +46,7 @@ var svgEditorExtension_shapes = (function () {
|
|||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -75,8 +72,25 @@ var svgEditorExtension_shapes = (function () {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -92,15 +106,13 @@ var svgEditorExtension_shapes = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var $ = _ref.$,
|
||||
importLocale = _ref.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, canv, svgroot, lastBBox, categories, library, modeId, startClientPos, currentD, curShapeId, curShape, startX, startY, curLib, loadIcons, makeButtons, loadLibrary, buttons;
|
||||
var $, importLocale, strings, svgEditor, canv, svgroot, lastBBox, categories, library, modeId, startClientPos, currentD, curShapeId, curShape, startX, startY, curLib, loadIcons, makeButtons, loadLibrary, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
loadLibrary = function _ref8(catId) {
|
||||
loadLibrary = function _loadLibrary(catId) {
|
||||
var lib = library[catId];
|
||||
|
||||
if (!lib) {
|
||||
|
@ -126,7 +138,7 @@ var svgEditorExtension_shapes = (function () {
|
|||
loadIcons();
|
||||
};
|
||||
|
||||
makeButtons = function _ref7(cat, shapes) {
|
||||
makeButtons = function _makeButtons(cat, shapes) {
|
||||
var size = curLib.size || 300;
|
||||
var fill = curLib.fill || false;
|
||||
var off = size * 0.05;
|
||||
|
@ -155,14 +167,15 @@ var svgEditorExtension_shapes = (function () {
|
|||
});
|
||||
};
|
||||
|
||||
loadIcons = function _ref6() {
|
||||
loadIcons = function _loadIcons() {
|
||||
$('#shape_buttons').empty().append(curLib.buttons);
|
||||
};
|
||||
|
||||
_context.next = 5;
|
||||
$ = _ref.$, importLocale = _ref.importLocale;
|
||||
_context.next = 6;
|
||||
return importLocale();
|
||||
|
||||
case 5:
|
||||
case 6:
|
||||
strings = _context.sent;
|
||||
svgEditor = _this;
|
||||
canv = svgEditor.canvas;
|
||||
|
@ -409,7 +422,7 @@ var svgEditorExtension_shapes = (function () {
|
|||
}
|
||||
});
|
||||
|
||||
case 17:
|
||||
case 18:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -55,12 +55,12 @@ var svgEditorExtension_star = (function () {
|
|||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setAttr = function _ref2(attr, val) {
|
||||
setAttr = function _setAttr(attr, val) {
|
||||
svgCanvas.changeSelectedAttribute(attr, val);
|
||||
svgCanvas.call('changed', selElems);
|
||||
};
|
||||
|
||||
showPanel = function _ref(on) {
|
||||
showPanel = function _showPanel(on) {
|
||||
var fcRules = $('#fc_rules');
|
||||
|
||||
if (!fcRules.length) {
|
||||
|
|
|
@ -38,7 +38,7 @@ var svgEditorExtension_storage = (function () {
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -46,10 +46,7 @@ var svgEditorExtension_storage = (function () {
|
|||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -75,8 +72,25 @@ var svgEditorExtension_storage = (function () {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -253,31 +267,31 @@ var svgEditorExtension_storage = (function () {
|
|||
return {
|
||||
name: 'storage',
|
||||
langReady: function langReady(_ref4) {
|
||||
var importLocale = _ref4.importLocale;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var storagePrompt, confirmSetStorage, message, storagePrefsAndContent, storagePrefsOnly, storagePrefs, storageNoPrefsOrContent, storageNoPrefs, rememberLabel, rememberTooltip, options, oldContainerWidth, oldContainerMarginLeft, oldContentHeight, oldContainerHeight, _ref5, pref, checked;
|
||||
var importLocale, storagePrompt, confirmSetStorage, message, storagePrefsAndContent, storagePrefsOnly, storagePrefs, storageNoPrefsOrContent, storageNoPrefs, rememberLabel, rememberTooltip, options, oldContainerWidth, oldContainerMarginLeft, oldContentHeight, oldContainerHeight, _yield$$$select, pref, checked;
|
||||
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
importLocale = _ref4.importLocale;
|
||||
storagePrompt = new URL(top.location).searchParams.get('storagePrompt');
|
||||
_context.next = 3;
|
||||
_context.next = 4;
|
||||
return importLocale();
|
||||
|
||||
case 3:
|
||||
case 4:
|
||||
confirmSetStorage = _context.sent;
|
||||
message = confirmSetStorage.message, storagePrefsAndContent = confirmSetStorage.storagePrefsAndContent, storagePrefsOnly = confirmSetStorage.storagePrefsOnly, storagePrefs = confirmSetStorage.storagePrefs, storageNoPrefsOrContent = confirmSetStorage.storageNoPrefsOrContent, storageNoPrefs = confirmSetStorage.storageNoPrefs, rememberLabel = confirmSetStorage.rememberLabel, rememberTooltip = confirmSetStorage.rememberTooltip; // No need to run this one-time dialog again just because the user
|
||||
// changes the language
|
||||
|
||||
if (!loaded) {
|
||||
_context.next = 7;
|
||||
_context.next = 8;
|
||||
break;
|
||||
}
|
||||
|
||||
return _context.abrupt("return");
|
||||
|
||||
case 7:
|
||||
case 8:
|
||||
loaded = true; // Note that the following can load even if "noStorageOnLoad" is
|
||||
// set to false; to avoid any chance of storage, avoid this
|
||||
// extension! (and to avoid using any prior storage, set the
|
||||
|
@ -293,7 +307,7 @@ var svgEditorExtension_storage = (function () {
|
|||
storagePrompt !== 'false' && // ...and this user hasn't previously indicated a desire for storage
|
||||
!document.cookie.match(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/) // ...then show the storage prompt.
|
||||
))) {
|
||||
_context.next = 43;
|
||||
_context.next = 44;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -329,20 +343,20 @@ var svgEditorExtension_storage = (function () {
|
|||
// From svg-editor.js
|
||||
|
||||
svgEditor.storagePromptState = 'waiting';
|
||||
_context.next = 19;
|
||||
_context.next = 20;
|
||||
return $.select(message, options, null, null, {
|
||||
label: rememberLabel,
|
||||
checked: true,
|
||||
tooltip: rememberTooltip
|
||||
});
|
||||
|
||||
case 19:
|
||||
_ref5 = _context.sent;
|
||||
pref = _ref5.response;
|
||||
checked = _ref5.checked;
|
||||
case 20:
|
||||
_yield$$$select = _context.sent;
|
||||
pref = _yield$$$select.response;
|
||||
checked = _yield$$$select.checked;
|
||||
|
||||
if (!(pref && pref !== 'noPrefsOrContent')) {
|
||||
_context.next = 29;
|
||||
_context.next = 30;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -359,18 +373,18 @@ var svgEditorExtension_storage = (function () {
|
|||
// them instead to a URL which does not always prompt
|
||||
|
||||
if (!(storagePrompt === 'true' && checked)) {
|
||||
_context.next = 27;
|
||||
_context.next = 28;
|
||||
break;
|
||||
}
|
||||
|
||||
replaceStoragePrompt();
|
||||
return _context.abrupt("return");
|
||||
|
||||
case 27:
|
||||
_context.next = 34;
|
||||
case 28:
|
||||
_context.next = 35;
|
||||
break;
|
||||
|
||||
case 29:
|
||||
case 30:
|
||||
// The user does not wish storage (or cancelled, which we treat equivalently)
|
||||
removeStoragePrefCookie();
|
||||
|
||||
|
@ -380,7 +394,7 @@ var svgEditorExtension_storage = (function () {
|
|||
}
|
||||
|
||||
if (!(pref && checked)) {
|
||||
_context.next = 34;
|
||||
_context.next = 35;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -388,7 +402,7 @@ var svgEditorExtension_storage = (function () {
|
|||
replaceStoragePrompt('false');
|
||||
return _context.abrupt("return");
|
||||
|
||||
case 34:
|
||||
case 35:
|
||||
// Reset width/height of dialog (e.g., for use by Export)
|
||||
$('#dialog_container')[0].style.width = oldContainerWidth;
|
||||
$('#dialog_container')[0].style.marginLeft = oldContainerMarginLeft;
|
||||
|
@ -405,15 +419,15 @@ var svgEditorExtension_storage = (function () {
|
|||
setupBeforeUnloadListener();
|
||||
svgEditor.storagePromptState = 'closed';
|
||||
updateCanvas(true);
|
||||
_context.next = 44;
|
||||
_context.next = 45;
|
||||
break;
|
||||
|
||||
case 43:
|
||||
case 44:
|
||||
if (!noStorageOnLoad || forceStorage) {
|
||||
setupBeforeUnloadListener();
|
||||
}
|
||||
|
||||
case 44:
|
||||
case 45:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -49,18 +49,17 @@ var svgEditorExtension_webappfind = (function () {
|
|||
init: function init(_ref) {
|
||||
var _this = this;
|
||||
|
||||
var importLocale = _ref.importLocale,
|
||||
$ = _ref.$;
|
||||
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
var strings, svgEditor, saveMessage, readMessage, excludedMessages, pathID, buttons;
|
||||
var importLocale, $, strings, svgEditor, saveMessage, readMessage, excludedMessages, pathID, buttons;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
importLocale = _ref.importLocale, $ = _ref.$;
|
||||
_context.next = 3;
|
||||
return importLocale();
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
strings = _context.sent;
|
||||
svgEditor = _this;
|
||||
saveMessage = 'save', readMessage = 'read', excludedMessages = [readMessage, saveMessage];
|
||||
|
@ -162,7 +161,7 @@ var svgEditorExtension_webappfind = (function () {
|
|||
})
|
||||
});
|
||||
|
||||
case 8:
|
||||
case 9:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
|
|
|
@ -18,23 +18,36 @@ var svgEditorExtension_xdomain_messaging = (function () {
|
|||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function isNativeReflectConstruct() {
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
@ -122,7 +122,7 @@
|
|||
}
|
||||
|
||||
function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
if (_isNativeReflectConstruct()) {
|
||||
_construct = Reflect.construct;
|
||||
} else {
|
||||
_construct = function _construct(Parent, args, Class) {
|
||||
|
@ -192,20 +192,33 @@
|
|||
return _assertThisInitialized(self);
|
||||
}
|
||||
|
||||
function _createSuper(Derived) {
|
||||
return function () {
|
||||
var Super = _getPrototypeOf(Derived),
|
||||
result;
|
||||
|
||||
if (_isNativeReflectConstruct()) {
|
||||
var NewTarget = _getPrototypeOf(this).constructor;
|
||||
|
||||
result = Reflect.construct(Super, arguments, NewTarget);
|
||||
} else {
|
||||
result = Super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(this, result);
|
||||
};
|
||||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -213,14 +226,11 @@
|
|||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -246,12 +256,29 @@
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _typeof$1(obj) {
|
||||
|
@ -372,7 +399,7 @@
|
|||
return _setPrototypeOf$1(o, p);
|
||||
}
|
||||
|
||||
function isNativeReflectConstruct$1() {
|
||||
function isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
@ -386,7 +413,7 @@
|
|||
}
|
||||
|
||||
function _construct$1(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct$1()) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
_construct$1 = Reflect.construct;
|
||||
} else {
|
||||
_construct$1 = function _construct(Parent, args, Class) {
|
||||
|
@ -2628,10 +2655,12 @@
|
|||
var QueryResult = /*#__PURE__*/function (_Array) {
|
||||
_inherits(QueryResult, _Array);
|
||||
|
||||
var _super = _createSuper(QueryResult);
|
||||
|
||||
function QueryResult() {
|
||||
_classCallCheck(this, QueryResult);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(QueryResult).apply(this, arguments));
|
||||
return _super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return QueryResult;
|
||||
|
@ -3352,7 +3381,7 @@
|
|||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
queryLink = function _ref4(query) {
|
||||
queryLink = function _queryLink(query) {
|
||||
return ['a', {
|
||||
href: jsVoid,
|
||||
dataset: {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -24,19 +24,15 @@
|
|||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -44,14 +40,11 @@
|
|||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -77,12 +70,29 @@
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -70,6 +70,19 @@
|
|||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
||||
try {
|
||||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function _assertThisInitialized(self) {
|
||||
if (self === void 0) {
|
||||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
|
@ -86,6 +99,23 @@
|
|||
return _assertThisInitialized(self);
|
||||
}
|
||||
|
||||
function _createSuper(Derived) {
|
||||
return function () {
|
||||
var Super = _getPrototypeOf(Derived),
|
||||
result;
|
||||
|
||||
if (_isNativeReflectConstruct()) {
|
||||
var NewTarget = _getPrototypeOf(this).constructor;
|
||||
|
||||
result = Reflect.construct(Super, arguments, NewTarget);
|
||||
} else {
|
||||
result = Super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(this, result);
|
||||
};
|
||||
}
|
||||
|
||||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
|
||||
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
|
||||
|
@ -160,10 +190,12 @@
|
|||
var _SVGPathSegClosePath = /*#__PURE__*/function (_SVGPathSeg2) {
|
||||
_inherits(_SVGPathSegClosePath, _SVGPathSeg2);
|
||||
|
||||
var _super = _createSuper(_SVGPathSegClosePath);
|
||||
|
||||
function _SVGPathSegClosePath(owningPathSegList) {
|
||||
_classCallCheck(this, _SVGPathSegClosePath);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegClosePath).call(this, _SVGPathSeg.PATHSEG_CLOSEPATH, 'z', owningPathSegList));
|
||||
return _super.call(this, _SVGPathSeg.PATHSEG_CLOSEPATH, 'z', owningPathSegList);
|
||||
}
|
||||
|
||||
_createClass(_SVGPathSegClosePath, [{
|
||||
|
@ -189,12 +221,14 @@
|
|||
var _SVGPathSegMovetoAbs = /*#__PURE__*/function (_SVGPathSeg3) {
|
||||
_inherits(_SVGPathSegMovetoAbs, _SVGPathSeg3);
|
||||
|
||||
var _super2 = _createSuper(_SVGPathSegMovetoAbs);
|
||||
|
||||
function _SVGPathSegMovetoAbs(owningPathSegList, x, y) {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegMovetoAbs);
|
||||
|
||||
_this = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegMovetoAbs).call(this, _SVGPathSeg.PATHSEG_MOVETO_ABS, 'M', owningPathSegList));
|
||||
_this = _super2.call(this, _SVGPathSeg.PATHSEG_MOVETO_ABS, 'M', owningPathSegList);
|
||||
_this._x = x;
|
||||
_this._y = y;
|
||||
return _this;
|
||||
|
@ -248,12 +282,14 @@
|
|||
var _SVGPathSegMovetoRel = /*#__PURE__*/function (_SVGPathSeg4) {
|
||||
_inherits(_SVGPathSegMovetoRel, _SVGPathSeg4);
|
||||
|
||||
var _super3 = _createSuper(_SVGPathSegMovetoRel);
|
||||
|
||||
function _SVGPathSegMovetoRel(owningPathSegList, x, y) {
|
||||
var _this2;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegMovetoRel);
|
||||
|
||||
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegMovetoRel).call(this, _SVGPathSeg.PATHSEG_MOVETO_REL, 'm', owningPathSegList));
|
||||
_this2 = _super3.call(this, _SVGPathSeg.PATHSEG_MOVETO_REL, 'm', owningPathSegList);
|
||||
_this2._x = x;
|
||||
_this2._y = y;
|
||||
return _this2;
|
||||
|
@ -307,12 +343,14 @@
|
|||
var _SVGPathSegLinetoAbs = /*#__PURE__*/function (_SVGPathSeg5) {
|
||||
_inherits(_SVGPathSegLinetoAbs, _SVGPathSeg5);
|
||||
|
||||
var _super4 = _createSuper(_SVGPathSegLinetoAbs);
|
||||
|
||||
function _SVGPathSegLinetoAbs(owningPathSegList, x, y) {
|
||||
var _this3;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoAbs);
|
||||
|
||||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoAbs).call(this, _SVGPathSeg.PATHSEG_LINETO_ABS, 'L', owningPathSegList));
|
||||
_this3 = _super4.call(this, _SVGPathSeg.PATHSEG_LINETO_ABS, 'L', owningPathSegList);
|
||||
_this3._x = x;
|
||||
_this3._y = y;
|
||||
return _this3;
|
||||
|
@ -366,12 +404,14 @@
|
|||
var _SVGPathSegLinetoRel = /*#__PURE__*/function (_SVGPathSeg6) {
|
||||
_inherits(_SVGPathSegLinetoRel, _SVGPathSeg6);
|
||||
|
||||
var _super5 = _createSuper(_SVGPathSegLinetoRel);
|
||||
|
||||
function _SVGPathSegLinetoRel(owningPathSegList, x, y) {
|
||||
var _this4;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoRel);
|
||||
|
||||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoRel).call(this, _SVGPathSeg.PATHSEG_LINETO_REL, 'l', owningPathSegList));
|
||||
_this4 = _super5.call(this, _SVGPathSeg.PATHSEG_LINETO_REL, 'l', owningPathSegList);
|
||||
_this4._x = x;
|
||||
_this4._y = y;
|
||||
return _this4;
|
||||
|
@ -425,12 +465,14 @@
|
|||
var _SVGPathSegCurvetoCubicAbs = /*#__PURE__*/function (_SVGPathSeg7) {
|
||||
_inherits(_SVGPathSegCurvetoCubicAbs, _SVGPathSeg7);
|
||||
|
||||
var _super6 = _createSuper(_SVGPathSegCurvetoCubicAbs);
|
||||
|
||||
function _SVGPathSegCurvetoCubicAbs(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
var _this5;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicAbs);
|
||||
|
||||
_this5 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, 'C', owningPathSegList));
|
||||
_this5 = _super6.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, 'C', owningPathSegList);
|
||||
_this5._x = x;
|
||||
_this5._y = y;
|
||||
_this5._x1 = x1;
|
||||
|
@ -532,12 +574,14 @@
|
|||
var _SVGPathSegCurvetoCubicRel = /*#__PURE__*/function (_SVGPathSeg8) {
|
||||
_inherits(_SVGPathSegCurvetoCubicRel, _SVGPathSeg8);
|
||||
|
||||
var _super7 = _createSuper(_SVGPathSegCurvetoCubicRel);
|
||||
|
||||
function _SVGPathSegCurvetoCubicRel(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
var _this6;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicRel);
|
||||
|
||||
_this6 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, 'c', owningPathSegList));
|
||||
_this6 = _super7.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, 'c', owningPathSegList);
|
||||
_this6._x = x;
|
||||
_this6._y = y;
|
||||
_this6._x1 = x1;
|
||||
|
@ -639,12 +683,14 @@
|
|||
var _SVGPathSegCurvetoQuadraticAbs = /*#__PURE__*/function (_SVGPathSeg9) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticAbs, _SVGPathSeg9);
|
||||
|
||||
var _super8 = _createSuper(_SVGPathSegCurvetoQuadraticAbs);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticAbs(owningPathSegList, x, y, x1, y1) {
|
||||
var _this7;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticAbs);
|
||||
|
||||
_this7 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, 'Q', owningPathSegList));
|
||||
_this7 = _super8.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, 'Q', owningPathSegList);
|
||||
_this7._x = x;
|
||||
_this7._y = y;
|
||||
_this7._x1 = x1;
|
||||
|
@ -722,12 +768,14 @@
|
|||
var _SVGPathSegCurvetoQuadraticRel = /*#__PURE__*/function (_SVGPathSeg10) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticRel, _SVGPathSeg10);
|
||||
|
||||
var _super9 = _createSuper(_SVGPathSegCurvetoQuadraticRel);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticRel(owningPathSegList, x, y, x1, y1) {
|
||||
var _this8;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticRel);
|
||||
|
||||
_this8 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, 'q', owningPathSegList));
|
||||
_this8 = _super9.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, 'q', owningPathSegList);
|
||||
_this8._x = x;
|
||||
_this8._y = y;
|
||||
_this8._x1 = x1;
|
||||
|
@ -805,12 +853,14 @@
|
|||
var _SVGPathSegArcAbs = /*#__PURE__*/function (_SVGPathSeg11) {
|
||||
_inherits(_SVGPathSegArcAbs, _SVGPathSeg11);
|
||||
|
||||
var _super10 = _createSuper(_SVGPathSegArcAbs);
|
||||
|
||||
function _SVGPathSegArcAbs(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
var _this9;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegArcAbs);
|
||||
|
||||
_this9 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegArcAbs).call(this, _SVGPathSeg.PATHSEG_ARC_ABS, 'A', owningPathSegList));
|
||||
_this9 = _super10.call(this, _SVGPathSeg.PATHSEG_ARC_ABS, 'A', owningPathSegList);
|
||||
_this9._x = x;
|
||||
_this9._y = y;
|
||||
_this9._r1 = r1;
|
||||
|
@ -924,12 +974,14 @@
|
|||
var _SVGPathSegArcRel = /*#__PURE__*/function (_SVGPathSeg12) {
|
||||
_inherits(_SVGPathSegArcRel, _SVGPathSeg12);
|
||||
|
||||
var _super11 = _createSuper(_SVGPathSegArcRel);
|
||||
|
||||
function _SVGPathSegArcRel(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
var _this10;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegArcRel);
|
||||
|
||||
_this10 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegArcRel).call(this, _SVGPathSeg.PATHSEG_ARC_REL, 'a', owningPathSegList));
|
||||
_this10 = _super11.call(this, _SVGPathSeg.PATHSEG_ARC_REL, 'a', owningPathSegList);
|
||||
_this10._x = x;
|
||||
_this10._y = y;
|
||||
_this10._r1 = r1;
|
||||
|
@ -1043,12 +1095,14 @@
|
|||
var _SVGPathSegLinetoHorizontalAbs = /*#__PURE__*/function (_SVGPathSeg13) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalAbs, _SVGPathSeg13);
|
||||
|
||||
var _super12 = _createSuper(_SVGPathSegLinetoHorizontalAbs);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalAbs(owningPathSegList, x) {
|
||||
var _this11;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoHorizontalAbs);
|
||||
|
||||
_this11 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoHorizontalAbs).call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, 'H', owningPathSegList));
|
||||
_this11 = _super12.call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, 'H', owningPathSegList);
|
||||
_this11._x = x;
|
||||
return _this11;
|
||||
}
|
||||
|
@ -1088,12 +1142,14 @@
|
|||
var _SVGPathSegLinetoHorizontalRel = /*#__PURE__*/function (_SVGPathSeg14) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalRel, _SVGPathSeg14);
|
||||
|
||||
var _super13 = _createSuper(_SVGPathSegLinetoHorizontalRel);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalRel(owningPathSegList, x) {
|
||||
var _this12;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoHorizontalRel);
|
||||
|
||||
_this12 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoHorizontalRel).call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, 'h', owningPathSegList));
|
||||
_this12 = _super13.call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, 'h', owningPathSegList);
|
||||
_this12._x = x;
|
||||
return _this12;
|
||||
}
|
||||
|
@ -1133,12 +1189,14 @@
|
|||
var _SVGPathSegLinetoVerticalAbs = /*#__PURE__*/function (_SVGPathSeg15) {
|
||||
_inherits(_SVGPathSegLinetoVerticalAbs, _SVGPathSeg15);
|
||||
|
||||
var _super14 = _createSuper(_SVGPathSegLinetoVerticalAbs);
|
||||
|
||||
function _SVGPathSegLinetoVerticalAbs(owningPathSegList, y) {
|
||||
var _this13;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoVerticalAbs);
|
||||
|
||||
_this13 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoVerticalAbs).call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, 'V', owningPathSegList));
|
||||
_this13 = _super14.call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, 'V', owningPathSegList);
|
||||
_this13._y = y;
|
||||
return _this13;
|
||||
}
|
||||
|
@ -1178,12 +1236,14 @@
|
|||
var _SVGPathSegLinetoVerticalRel = /*#__PURE__*/function (_SVGPathSeg16) {
|
||||
_inherits(_SVGPathSegLinetoVerticalRel, _SVGPathSeg16);
|
||||
|
||||
var _super15 = _createSuper(_SVGPathSegLinetoVerticalRel);
|
||||
|
||||
function _SVGPathSegLinetoVerticalRel(owningPathSegList, y) {
|
||||
var _this14;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoVerticalRel);
|
||||
|
||||
_this14 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoVerticalRel).call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, 'v', owningPathSegList));
|
||||
_this14 = _super15.call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, 'v', owningPathSegList);
|
||||
_this14._y = y;
|
||||
return _this14;
|
||||
}
|
||||
|
@ -1223,12 +1283,14 @@
|
|||
var _SVGPathSegCurvetoCubicSmoothAbs = /*#__PURE__*/function (_SVGPathSeg17) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothAbs, _SVGPathSeg17);
|
||||
|
||||
var _super16 = _createSuper(_SVGPathSegCurvetoCubicSmoothAbs);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, x, y, x2, y2) {
|
||||
var _this15;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicSmoothAbs);
|
||||
|
||||
_this15 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicSmoothAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, 'S', owningPathSegList));
|
||||
_this15 = _super16.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, 'S', owningPathSegList);
|
||||
_this15._x = x;
|
||||
_this15._y = y;
|
||||
_this15._x2 = x2;
|
||||
|
@ -1306,12 +1368,14 @@
|
|||
var _SVGPathSegCurvetoCubicSmoothRel = /*#__PURE__*/function (_SVGPathSeg18) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothRel, _SVGPathSeg18);
|
||||
|
||||
var _super17 = _createSuper(_SVGPathSegCurvetoCubicSmoothRel);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, x, y, x2, y2) {
|
||||
var _this16;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicSmoothRel);
|
||||
|
||||
_this16 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicSmoothRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, 's', owningPathSegList));
|
||||
_this16 = _super17.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, 's', owningPathSegList);
|
||||
_this16._x = x;
|
||||
_this16._y = y;
|
||||
_this16._x2 = x2;
|
||||
|
@ -1389,12 +1453,14 @@
|
|||
var _SVGPathSegCurvetoQuadraticSmoothAbs = /*#__PURE__*/function (_SVGPathSeg19) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs, _SVGPathSeg19);
|
||||
|
||||
var _super18 = _createSuper(_SVGPathSegCurvetoQuadraticSmoothAbs);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, x, y) {
|
||||
var _this17;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticSmoothAbs);
|
||||
|
||||
_this17 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticSmoothAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, 'T', owningPathSegList));
|
||||
_this17 = _super18.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, 'T', owningPathSegList);
|
||||
_this17._x = x;
|
||||
_this17._y = y;
|
||||
return _this17;
|
||||
|
@ -1448,12 +1514,14 @@
|
|||
var _SVGPathSegCurvetoQuadraticSmoothRel = /*#__PURE__*/function (_SVGPathSeg20) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothRel, _SVGPathSeg20);
|
||||
|
||||
var _super19 = _createSuper(_SVGPathSegCurvetoQuadraticSmoothRel);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, x, y) {
|
||||
var _this18;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticSmoothRel);
|
||||
|
||||
_this18 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticSmoothRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, 't', owningPathSegList));
|
||||
_this18 = _super19.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, 't', owningPathSegList);
|
||||
_this18._x = x;
|
||||
_this18._y = y;
|
||||
return _this18;
|
||||
|
|
|
@ -106,6 +106,19 @@ var SvgCanvas = (function () {
|
|||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
||||
try {
|
||||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function _assertThisInitialized(self) {
|
||||
if (self === void 0) {
|
||||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
|
@ -122,20 +135,33 @@ var SvgCanvas = (function () {
|
|||
return _assertThisInitialized(self);
|
||||
}
|
||||
|
||||
function _createSuper(Derived) {
|
||||
return function () {
|
||||
var Super = _getPrototypeOf(Derived),
|
||||
result;
|
||||
|
||||
if (_isNativeReflectConstruct()) {
|
||||
var NewTarget = _getPrototypeOf(this).constructor;
|
||||
|
||||
result = Reflect.construct(Super, arguments, NewTarget);
|
||||
} else {
|
||||
result = Super.apply(this, arguments);
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(this, result);
|
||||
};
|
||||
}
|
||||
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
function _arrayWithHoles(arr) {
|
||||
|
@ -143,14 +169,11 @@ var SvgCanvas = (function () {
|
|||
}
|
||||
|
||||
function _iterableToArray(iter) {
|
||||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
|
@ -176,12 +199,84 @@ var SvgCanvas = (function () {
|
|||
return _arr;
|
||||
}
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
|
||||
return arr2;
|
||||
}
|
||||
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelper(o) {
|
||||
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||
if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) {
|
||||
var i = 0;
|
||||
|
||||
var F = function () {};
|
||||
|
||||
return {
|
||||
s: F,
|
||||
n: function () {
|
||||
if (i >= o.length) return {
|
||||
done: true
|
||||
};
|
||||
return {
|
||||
done: false,
|
||||
value: o[i++]
|
||||
};
|
||||
},
|
||||
e: function (e) {
|
||||
throw e;
|
||||
},
|
||||
f: F
|
||||
};
|
||||
}
|
||||
|
||||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
var it,
|
||||
normalCompletion = true,
|
||||
didErr = false,
|
||||
err;
|
||||
return {
|
||||
s: function () {
|
||||
it = o[Symbol.iterator]();
|
||||
},
|
||||
n: function () {
|
||||
var step = it.next();
|
||||
normalCompletion = step.done;
|
||||
return step;
|
||||
},
|
||||
e: function (e) {
|
||||
didErr = true;
|
||||
err = e;
|
||||
},
|
||||
f: function () {
|
||||
try {
|
||||
if (!normalCompletion && it.return != null) it.return();
|
||||
} finally {
|
||||
if (didErr) throw err;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
|
@ -258,10 +353,12 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegClosePath = /*#__PURE__*/function (_SVGPathSeg2) {
|
||||
_inherits(_SVGPathSegClosePath, _SVGPathSeg2);
|
||||
|
||||
var _super = _createSuper(_SVGPathSegClosePath);
|
||||
|
||||
function _SVGPathSegClosePath(owningPathSegList) {
|
||||
_classCallCheck(this, _SVGPathSegClosePath);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegClosePath).call(this, _SVGPathSeg.PATHSEG_CLOSEPATH, 'z', owningPathSegList));
|
||||
return _super.call(this, _SVGPathSeg.PATHSEG_CLOSEPATH, 'z', owningPathSegList);
|
||||
}
|
||||
|
||||
_createClass(_SVGPathSegClosePath, [{
|
||||
|
@ -287,12 +384,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegMovetoAbs = /*#__PURE__*/function (_SVGPathSeg3) {
|
||||
_inherits(_SVGPathSegMovetoAbs, _SVGPathSeg3);
|
||||
|
||||
var _super2 = _createSuper(_SVGPathSegMovetoAbs);
|
||||
|
||||
function _SVGPathSegMovetoAbs(owningPathSegList, x, y) {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegMovetoAbs);
|
||||
|
||||
_this = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegMovetoAbs).call(this, _SVGPathSeg.PATHSEG_MOVETO_ABS, 'M', owningPathSegList));
|
||||
_this = _super2.call(this, _SVGPathSeg.PATHSEG_MOVETO_ABS, 'M', owningPathSegList);
|
||||
_this._x = x;
|
||||
_this._y = y;
|
||||
return _this;
|
||||
|
@ -346,12 +445,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegMovetoRel = /*#__PURE__*/function (_SVGPathSeg4) {
|
||||
_inherits(_SVGPathSegMovetoRel, _SVGPathSeg4);
|
||||
|
||||
var _super3 = _createSuper(_SVGPathSegMovetoRel);
|
||||
|
||||
function _SVGPathSegMovetoRel(owningPathSegList, x, y) {
|
||||
var _this2;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegMovetoRel);
|
||||
|
||||
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegMovetoRel).call(this, _SVGPathSeg.PATHSEG_MOVETO_REL, 'm', owningPathSegList));
|
||||
_this2 = _super3.call(this, _SVGPathSeg.PATHSEG_MOVETO_REL, 'm', owningPathSegList);
|
||||
_this2._x = x;
|
||||
_this2._y = y;
|
||||
return _this2;
|
||||
|
@ -405,12 +506,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegLinetoAbs = /*#__PURE__*/function (_SVGPathSeg5) {
|
||||
_inherits(_SVGPathSegLinetoAbs, _SVGPathSeg5);
|
||||
|
||||
var _super4 = _createSuper(_SVGPathSegLinetoAbs);
|
||||
|
||||
function _SVGPathSegLinetoAbs(owningPathSegList, x, y) {
|
||||
var _this3;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoAbs);
|
||||
|
||||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoAbs).call(this, _SVGPathSeg.PATHSEG_LINETO_ABS, 'L', owningPathSegList));
|
||||
_this3 = _super4.call(this, _SVGPathSeg.PATHSEG_LINETO_ABS, 'L', owningPathSegList);
|
||||
_this3._x = x;
|
||||
_this3._y = y;
|
||||
return _this3;
|
||||
|
@ -464,12 +567,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegLinetoRel = /*#__PURE__*/function (_SVGPathSeg6) {
|
||||
_inherits(_SVGPathSegLinetoRel, _SVGPathSeg6);
|
||||
|
||||
var _super5 = _createSuper(_SVGPathSegLinetoRel);
|
||||
|
||||
function _SVGPathSegLinetoRel(owningPathSegList, x, y) {
|
||||
var _this4;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoRel);
|
||||
|
||||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoRel).call(this, _SVGPathSeg.PATHSEG_LINETO_REL, 'l', owningPathSegList));
|
||||
_this4 = _super5.call(this, _SVGPathSeg.PATHSEG_LINETO_REL, 'l', owningPathSegList);
|
||||
_this4._x = x;
|
||||
_this4._y = y;
|
||||
return _this4;
|
||||
|
@ -523,12 +628,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoCubicAbs = /*#__PURE__*/function (_SVGPathSeg7) {
|
||||
_inherits(_SVGPathSegCurvetoCubicAbs, _SVGPathSeg7);
|
||||
|
||||
var _super6 = _createSuper(_SVGPathSegCurvetoCubicAbs);
|
||||
|
||||
function _SVGPathSegCurvetoCubicAbs(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
var _this5;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicAbs);
|
||||
|
||||
_this5 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, 'C', owningPathSegList));
|
||||
_this5 = _super6.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, 'C', owningPathSegList);
|
||||
_this5._x = x;
|
||||
_this5._y = y;
|
||||
_this5._x1 = x1;
|
||||
|
@ -630,12 +737,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoCubicRel = /*#__PURE__*/function (_SVGPathSeg8) {
|
||||
_inherits(_SVGPathSegCurvetoCubicRel, _SVGPathSeg8);
|
||||
|
||||
var _super7 = _createSuper(_SVGPathSegCurvetoCubicRel);
|
||||
|
||||
function _SVGPathSegCurvetoCubicRel(owningPathSegList, x, y, x1, y1, x2, y2) {
|
||||
var _this6;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicRel);
|
||||
|
||||
_this6 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, 'c', owningPathSegList));
|
||||
_this6 = _super7.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, 'c', owningPathSegList);
|
||||
_this6._x = x;
|
||||
_this6._y = y;
|
||||
_this6._x1 = x1;
|
||||
|
@ -737,12 +846,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoQuadraticAbs = /*#__PURE__*/function (_SVGPathSeg9) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticAbs, _SVGPathSeg9);
|
||||
|
||||
var _super8 = _createSuper(_SVGPathSegCurvetoQuadraticAbs);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticAbs(owningPathSegList, x, y, x1, y1) {
|
||||
var _this7;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticAbs);
|
||||
|
||||
_this7 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, 'Q', owningPathSegList));
|
||||
_this7 = _super8.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, 'Q', owningPathSegList);
|
||||
_this7._x = x;
|
||||
_this7._y = y;
|
||||
_this7._x1 = x1;
|
||||
|
@ -820,12 +931,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoQuadraticRel = /*#__PURE__*/function (_SVGPathSeg10) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticRel, _SVGPathSeg10);
|
||||
|
||||
var _super9 = _createSuper(_SVGPathSegCurvetoQuadraticRel);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticRel(owningPathSegList, x, y, x1, y1) {
|
||||
var _this8;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticRel);
|
||||
|
||||
_this8 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, 'q', owningPathSegList));
|
||||
_this8 = _super9.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, 'q', owningPathSegList);
|
||||
_this8._x = x;
|
||||
_this8._y = y;
|
||||
_this8._x1 = x1;
|
||||
|
@ -903,12 +1016,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegArcAbs = /*#__PURE__*/function (_SVGPathSeg11) {
|
||||
_inherits(_SVGPathSegArcAbs, _SVGPathSeg11);
|
||||
|
||||
var _super10 = _createSuper(_SVGPathSegArcAbs);
|
||||
|
||||
function _SVGPathSegArcAbs(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
var _this9;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegArcAbs);
|
||||
|
||||
_this9 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegArcAbs).call(this, _SVGPathSeg.PATHSEG_ARC_ABS, 'A', owningPathSegList));
|
||||
_this9 = _super10.call(this, _SVGPathSeg.PATHSEG_ARC_ABS, 'A', owningPathSegList);
|
||||
_this9._x = x;
|
||||
_this9._y = y;
|
||||
_this9._r1 = r1;
|
||||
|
@ -1022,12 +1137,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegArcRel = /*#__PURE__*/function (_SVGPathSeg12) {
|
||||
_inherits(_SVGPathSegArcRel, _SVGPathSeg12);
|
||||
|
||||
var _super11 = _createSuper(_SVGPathSegArcRel);
|
||||
|
||||
function _SVGPathSegArcRel(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
|
||||
var _this10;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegArcRel);
|
||||
|
||||
_this10 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegArcRel).call(this, _SVGPathSeg.PATHSEG_ARC_REL, 'a', owningPathSegList));
|
||||
_this10 = _super11.call(this, _SVGPathSeg.PATHSEG_ARC_REL, 'a', owningPathSegList);
|
||||
_this10._x = x;
|
||||
_this10._y = y;
|
||||
_this10._r1 = r1;
|
||||
|
@ -1141,12 +1258,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegLinetoHorizontalAbs = /*#__PURE__*/function (_SVGPathSeg13) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalAbs, _SVGPathSeg13);
|
||||
|
||||
var _super12 = _createSuper(_SVGPathSegLinetoHorizontalAbs);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalAbs(owningPathSegList, x) {
|
||||
var _this11;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoHorizontalAbs);
|
||||
|
||||
_this11 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoHorizontalAbs).call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, 'H', owningPathSegList));
|
||||
_this11 = _super12.call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, 'H', owningPathSegList);
|
||||
_this11._x = x;
|
||||
return _this11;
|
||||
}
|
||||
|
@ -1186,12 +1305,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegLinetoHorizontalRel = /*#__PURE__*/function (_SVGPathSeg14) {
|
||||
_inherits(_SVGPathSegLinetoHorizontalRel, _SVGPathSeg14);
|
||||
|
||||
var _super13 = _createSuper(_SVGPathSegLinetoHorizontalRel);
|
||||
|
||||
function _SVGPathSegLinetoHorizontalRel(owningPathSegList, x) {
|
||||
var _this12;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoHorizontalRel);
|
||||
|
||||
_this12 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoHorizontalRel).call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, 'h', owningPathSegList));
|
||||
_this12 = _super13.call(this, _SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, 'h', owningPathSegList);
|
||||
_this12._x = x;
|
||||
return _this12;
|
||||
}
|
||||
|
@ -1231,12 +1352,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegLinetoVerticalAbs = /*#__PURE__*/function (_SVGPathSeg15) {
|
||||
_inherits(_SVGPathSegLinetoVerticalAbs, _SVGPathSeg15);
|
||||
|
||||
var _super14 = _createSuper(_SVGPathSegLinetoVerticalAbs);
|
||||
|
||||
function _SVGPathSegLinetoVerticalAbs(owningPathSegList, y) {
|
||||
var _this13;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoVerticalAbs);
|
||||
|
||||
_this13 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoVerticalAbs).call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, 'V', owningPathSegList));
|
||||
_this13 = _super14.call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, 'V', owningPathSegList);
|
||||
_this13._y = y;
|
||||
return _this13;
|
||||
}
|
||||
|
@ -1276,12 +1399,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegLinetoVerticalRel = /*#__PURE__*/function (_SVGPathSeg16) {
|
||||
_inherits(_SVGPathSegLinetoVerticalRel, _SVGPathSeg16);
|
||||
|
||||
var _super15 = _createSuper(_SVGPathSegLinetoVerticalRel);
|
||||
|
||||
function _SVGPathSegLinetoVerticalRel(owningPathSegList, y) {
|
||||
var _this14;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegLinetoVerticalRel);
|
||||
|
||||
_this14 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegLinetoVerticalRel).call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, 'v', owningPathSegList));
|
||||
_this14 = _super15.call(this, _SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, 'v', owningPathSegList);
|
||||
_this14._y = y;
|
||||
return _this14;
|
||||
}
|
||||
|
@ -1321,12 +1446,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoCubicSmoothAbs = /*#__PURE__*/function (_SVGPathSeg17) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothAbs, _SVGPathSeg17);
|
||||
|
||||
var _super16 = _createSuper(_SVGPathSegCurvetoCubicSmoothAbs);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, x, y, x2, y2) {
|
||||
var _this15;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicSmoothAbs);
|
||||
|
||||
_this15 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicSmoothAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, 'S', owningPathSegList));
|
||||
_this15 = _super16.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, 'S', owningPathSegList);
|
||||
_this15._x = x;
|
||||
_this15._y = y;
|
||||
_this15._x2 = x2;
|
||||
|
@ -1404,12 +1531,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoCubicSmoothRel = /*#__PURE__*/function (_SVGPathSeg18) {
|
||||
_inherits(_SVGPathSegCurvetoCubicSmoothRel, _SVGPathSeg18);
|
||||
|
||||
var _super17 = _createSuper(_SVGPathSegCurvetoCubicSmoothRel);
|
||||
|
||||
function _SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, x, y, x2, y2) {
|
||||
var _this16;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoCubicSmoothRel);
|
||||
|
||||
_this16 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoCubicSmoothRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, 's', owningPathSegList));
|
||||
_this16 = _super17.call(this, _SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, 's', owningPathSegList);
|
||||
_this16._x = x;
|
||||
_this16._y = y;
|
||||
_this16._x2 = x2;
|
||||
|
@ -1487,12 +1616,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoQuadraticSmoothAbs = /*#__PURE__*/function (_SVGPathSeg19) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs, _SVGPathSeg19);
|
||||
|
||||
var _super18 = _createSuper(_SVGPathSegCurvetoQuadraticSmoothAbs);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, x, y) {
|
||||
var _this17;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticSmoothAbs);
|
||||
|
||||
_this17 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticSmoothAbs).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, 'T', owningPathSegList));
|
||||
_this17 = _super18.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, 'T', owningPathSegList);
|
||||
_this17._x = x;
|
||||
_this17._y = y;
|
||||
return _this17;
|
||||
|
@ -1546,12 +1677,14 @@ var SvgCanvas = (function () {
|
|||
var _SVGPathSegCurvetoQuadraticSmoothRel = /*#__PURE__*/function (_SVGPathSeg20) {
|
||||
_inherits(_SVGPathSegCurvetoQuadraticSmoothRel, _SVGPathSeg20);
|
||||
|
||||
var _super19 = _createSuper(_SVGPathSegCurvetoQuadraticSmoothRel);
|
||||
|
||||
function _SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, x, y) {
|
||||
var _this18;
|
||||
|
||||
_classCallCheck(this, _SVGPathSegCurvetoQuadraticSmoothRel);
|
||||
|
||||
_this18 = _possibleConstructorReturn(this, _getPrototypeOf(_SVGPathSegCurvetoQuadraticSmoothRel).call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, 't', owningPathSegList));
|
||||
_this18 = _super19.call(this, _SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, 't', owningPathSegList);
|
||||
_this18._x = x;
|
||||
_this18._y = y;
|
||||
return _this18;
|
||||
|
@ -2823,7 +2956,7 @@ var SvgCanvas = (function () {
|
|||
var isChrome_ = userAgent.includes('Chrome/');
|
||||
var isWindows_ = userAgent.includes('Windows');
|
||||
var isMac_ = userAgent.includes('Macintosh');
|
||||
var isTouch_ = 'ontouchstart' in window;
|
||||
var isTouch_ = ('ontouchstart' in window);
|
||||
|
||||
var supportsSelectors_ = function () {
|
||||
return Boolean(svg.querySelector);
|
||||
|
@ -3892,6 +4025,8 @@ var SvgCanvas = (function () {
|
|||
var MoveElementCommand = /*#__PURE__*/function (_Command) {
|
||||
_inherits(MoveElementCommand, _Command);
|
||||
|
||||
var _super = _createSuper(MoveElementCommand);
|
||||
|
||||
/**
|
||||
* @param {Element} elem - The DOM element that was moved
|
||||
* @param {Element} oldNextSibling - The element's next sibling before it was moved
|
||||
|
@ -3903,7 +4038,7 @@ var SvgCanvas = (function () {
|
|||
|
||||
_classCallCheck(this, MoveElementCommand);
|
||||
|
||||
_this = _possibleConstructorReturn(this, _getPrototypeOf(MoveElementCommand).call(this));
|
||||
_this = _super.call(this);
|
||||
_this.elem = elem;
|
||||
_this.text = text ? 'Move ' + elem.tagName + ' to ' + text : 'Move ' + elem.tagName;
|
||||
_this.oldNextSibling = oldNextSibling;
|
||||
|
@ -3986,6 +4121,8 @@ var SvgCanvas = (function () {
|
|||
var InsertElementCommand = /*#__PURE__*/function (_Command2) {
|
||||
_inherits(InsertElementCommand, _Command2);
|
||||
|
||||
var _super2 = _createSuper(InsertElementCommand);
|
||||
|
||||
/**
|
||||
* @param {Element} elem - The newly added DOM element
|
||||
* @param {string} text - An optional string visible to user related to this change
|
||||
|
@ -3995,7 +4132,7 @@ var SvgCanvas = (function () {
|
|||
|
||||
_classCallCheck(this, InsertElementCommand);
|
||||
|
||||
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(InsertElementCommand).call(this));
|
||||
_this2 = _super2.call(this);
|
||||
_this2.elem = elem;
|
||||
_this2.text = text || 'Create ' + elem.tagName;
|
||||
_this2.parent = elem.parentNode;
|
||||
|
@ -4076,6 +4213,8 @@ var SvgCanvas = (function () {
|
|||
var RemoveElementCommand = /*#__PURE__*/function (_Command3) {
|
||||
_inherits(RemoveElementCommand, _Command3);
|
||||
|
||||
var _super3 = _createSuper(RemoveElementCommand);
|
||||
|
||||
/**
|
||||
* @param {Element} elem - The removed DOM element
|
||||
* @param {Node} oldNextSibling - The DOM element's nextSibling when it was in the DOM
|
||||
|
@ -4087,7 +4226,7 @@ var SvgCanvas = (function () {
|
|||
|
||||
_classCallCheck(this, RemoveElementCommand);
|
||||
|
||||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(RemoveElementCommand).call(this));
|
||||
_this3 = _super3.call(this);
|
||||
_this3.elem = elem;
|
||||
_this3.text = text || 'Delete ' + elem.tagName;
|
||||
_this3.nextSibling = oldNextSibling;
|
||||
|
@ -4188,6 +4327,8 @@ var SvgCanvas = (function () {
|
|||
var ChangeElementCommand = /*#__PURE__*/function (_Command4) {
|
||||
_inherits(ChangeElementCommand, _Command4);
|
||||
|
||||
var _super4 = _createSuper(ChangeElementCommand);
|
||||
|
||||
/**
|
||||
* @param {Element} elem - The DOM element that was changed
|
||||
* @param {module:history.CommandAttributes} attrs - Attributes to be changed with the values they had *before* the change
|
||||
|
@ -4198,7 +4339,7 @@ var SvgCanvas = (function () {
|
|||
|
||||
_classCallCheck(this, ChangeElementCommand);
|
||||
|
||||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(ChangeElementCommand).call(this));
|
||||
_this4 = _super4.call(this);
|
||||
_this4.elem = elem;
|
||||
_this4.text = text ? 'Change ' + elem.tagName + ' ' + text : 'Change ' + elem.tagName;
|
||||
_this4.newValues = {};
|
||||
|
@ -4381,6 +4522,8 @@ var SvgCanvas = (function () {
|
|||
var BatchCommand = /*#__PURE__*/function (_Command5) {
|
||||
_inherits(BatchCommand, _Command5);
|
||||
|
||||
var _super5 = _createSuper(BatchCommand);
|
||||
|
||||
/**
|
||||
* @param {string} [text] - An optional string visible to user related to this change
|
||||
*/
|
||||
|
@ -4389,7 +4532,7 @@ var SvgCanvas = (function () {
|
|||
|
||||
_classCallCheck(this, BatchCommand);
|
||||
|
||||
_this7 = _possibleConstructorReturn(this, _getPrototypeOf(BatchCommand).call(this));
|
||||
_this7 = _super5.call(this);
|
||||
_this7.text = text || 'Batch Command';
|
||||
_this7.stack = [];
|
||||
return _this7;
|
||||
|
@ -9510,28 +9653,18 @@ var SvgCanvas = (function () {
|
|||
}, {
|
||||
key: "appendChildren",
|
||||
value: function appendChildren(children) {
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
var _iterator = _createForOfIteratorHelper(children),
|
||||
_step;
|
||||
|
||||
try {
|
||||
for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
||||
var child = _step.value;
|
||||
this.group_.append(child);
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
_iterator.e(err);
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
||||
_iterator["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
_iterator.f();
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
@ -11305,13 +11438,13 @@ var SvgCanvas = (function () {
|
|||
*/
|
||||
|
||||
function _importSetGlobal() {
|
||||
_importSetGlobal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, _ref2) {
|
||||
_importSetGlobal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, _ref) {
|
||||
var glob, returnDefault, modularVersion;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
glob = _ref2.global, returnDefault = _ref2.returnDefault;
|
||||
glob = _ref.global, returnDefault = _ref.returnDefault;
|
||||
// Todo: Replace calls to this function with `import()` when supported
|
||||
modularVersion = !('svgEditor' in window) || !window.svgEditor || window.svgEditor.modules !== false;
|
||||
|
||||
|
@ -11401,9 +11534,9 @@ var SvgCanvas = (function () {
|
|||
function importModule(url) {
|
||||
var atts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
|
||||
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
||||
_ref$returnDefault = _ref.returnDefault,
|
||||
returnDefault = _ref$returnDefault === void 0 ? false : _ref$returnDefault;
|
||||
var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
||||
_ref2$returnDefault = _ref2.returnDefault,
|
||||
returnDefault = _ref2$returnDefault === void 0 ? false : _ref2$returnDefault;
|
||||
|
||||
if (Array.isArray(url)) {
|
||||
return Promise.all(url.map(function (u) {
|
||||
|
@ -14473,13 +14606,13 @@ var SvgCanvas = (function () {
|
|||
|
||||
|
||||
this.addExtension = /*#__PURE__*/function () {
|
||||
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(name, extInitFunc, _ref4) {
|
||||
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(name, extInitFunc, _ref3) {
|
||||
var jq, importLocale, argObj, extObj;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
jq = _ref4.$, importLocale = _ref4.importLocale;
|
||||
jq = _ref3.$, importLocale = _ref3.importLocale;
|
||||
|
||||
if (!(typeof extInitFunc !== 'function')) {
|
||||
_context.next = 3;
|
||||
|
@ -14542,7 +14675,7 @@ var SvgCanvas = (function () {
|
|||
}));
|
||||
|
||||
return function (_x, _x2, _x3) {
|
||||
return _ref3.apply(this, arguments);
|
||||
return _ref4.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
/**
|
||||
|
@ -15221,12 +15354,11 @@ var SvgCanvas = (function () {
|
|||
if (!rightClick) {
|
||||
// insert a dummy transform so if the element(s) are moved it will have
|
||||
// a transform to use for its translate
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
var _iterator = _createForOfIteratorHelper(selectedElements),
|
||||
_step;
|
||||
|
||||
try {
|
||||
for (var _iterator = selectedElements[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
||||
var selectedElement = _step.value;
|
||||
|
||||
if (isNullish(selectedElement)) {
|
||||
|
@ -15242,18 +15374,9 @@ var SvgCanvas = (function () {
|
|||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
_iterator.e(err);
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
||||
_iterator["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
_iterator.f();
|
||||
}
|
||||
}
|
||||
} else if (!rightClick) {
|
||||
|
@ -17695,7 +17818,7 @@ var SvgCanvas = (function () {
|
|||
issues,
|
||||
issueCodes,
|
||||
svg,
|
||||
_ref6,
|
||||
_yield$importSetGloba,
|
||||
c,
|
||||
_args2 = arguments;
|
||||
|
||||
|
@ -17720,8 +17843,8 @@ var SvgCanvas = (function () {
|
|||
});
|
||||
|
||||
case 8:
|
||||
_ref6 = _context2.sent;
|
||||
canvg = _ref6.canvg;
|
||||
_yield$importSetGloba = _context2.sent;
|
||||
canvg = _yield$importSetGloba.canvg;
|
||||
|
||||
case 10:
|
||||
if (!$$8('#export_canvas').length) {
|
||||
|
@ -17831,7 +17954,7 @@ var SvgCanvas = (function () {
|
|||
|
||||
|
||||
this.exportPDF = /*#__PURE__*/function () {
|
||||
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(exportWindowName) {
|
||||
var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(exportWindowName) {
|
||||
var outputType,
|
||||
modularVersion,
|
||||
res,
|
||||
|
@ -17921,7 +18044,7 @@ var SvgCanvas = (function () {
|
|||
}));
|
||||
|
||||
return function (_x7) {
|
||||
return _ref7.apply(this, arguments);
|
||||
return _ref6.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
/**
|
||||
|
@ -18573,29 +18696,20 @@ var SvgCanvas = (function () {
|
|||
}
|
||||
|
||||
var attrs = svg.attributes;
|
||||
var _iteratorNormalCompletion2 = true;
|
||||
var _didIteratorError2 = false;
|
||||
var _iteratorError2 = undefined;
|
||||
|
||||
var _iterator2 = _createForOfIteratorHelper(attrs),
|
||||
_step2;
|
||||
|
||||
try {
|
||||
for (var _iterator2 = attrs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
||||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
||||
var attr = _step2.value;
|
||||
// Ok for `NamedNodeMap`
|
||||
symbol.setAttribute(attr.nodeName, attr.value);
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError2 = true;
|
||||
_iteratorError2 = err;
|
||||
_iterator2.e(err);
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) {
|
||||
_iterator2["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError2) {
|
||||
throw _iteratorError2;
|
||||
}
|
||||
}
|
||||
_iterator2.f();
|
||||
}
|
||||
|
||||
symbol.id = getNextId(); // Store data
|
||||
|
@ -18651,10 +18765,10 @@ var SvgCanvas = (function () {
|
|||
leaveContext: leaveContext,
|
||||
setContext: setContext
|
||||
};
|
||||
Object.entries(dr).forEach(function (_ref8) {
|
||||
var _ref9 = _slicedToArray(_ref8, 2),
|
||||
prop = _ref9[0],
|
||||
propVal = _ref9[1];
|
||||
Object.entries(dr).forEach(function (_ref7) {
|
||||
var _ref8 = _slicedToArray(_ref7, 2),
|
||||
prop = _ref8[0],
|
||||
propVal = _ref8[1];
|
||||
|
||||
canvas[prop] = propVal;
|
||||
});
|
||||
|
@ -18818,12 +18932,12 @@ var SvgCanvas = (function () {
|
|||
|
||||
elem = $$8(elem).data('gsvg') || $$8(elem).data('symbol') || elem;
|
||||
var childs = elem.childNodes;
|
||||
var _iteratorNormalCompletion3 = true;
|
||||
var _didIteratorError3 = false;
|
||||
var _iteratorError3 = undefined;
|
||||
|
||||
var _iterator3 = _createForOfIteratorHelper(childs),
|
||||
_step3;
|
||||
|
||||
try {
|
||||
for (var _iterator3 = childs[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
||||
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
||||
var child = _step3.value;
|
||||
|
||||
if (child.nodeName === 'title') {
|
||||
|
@ -18831,18 +18945,9 @@ var SvgCanvas = (function () {
|
|||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError3 = true;
|
||||
_iteratorError3 = err;
|
||||
_iterator3.e(err);
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion3 && _iterator3["return"] != null) {
|
||||
_iterator3["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError3) {
|
||||
throw _iteratorError3;
|
||||
}
|
||||
}
|
||||
_iterator3.f();
|
||||
}
|
||||
|
||||
return '';
|
||||
|
@ -18908,12 +19013,12 @@ var SvgCanvas = (function () {
|
|||
var docTitle = false,
|
||||
oldTitle = '';
|
||||
var batchCmd = new BatchCommand$1('Change Image Title');
|
||||
var _iteratorNormalCompletion4 = true;
|
||||
var _didIteratorError4 = false;
|
||||
var _iteratorError4 = undefined;
|
||||
|
||||
var _iterator4 = _createForOfIteratorHelper(childs),
|
||||
_step4;
|
||||
|
||||
try {
|
||||
for (var _iterator4 = childs[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
|
||||
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
||||
var child = _step4.value;
|
||||
|
||||
if (child.nodeName === 'title') {
|
||||
|
@ -18923,18 +19028,9 @@ var SvgCanvas = (function () {
|
|||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError4 = true;
|
||||
_iteratorError4 = err;
|
||||
_iterator4.e(err);
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion4 && _iterator4["return"] != null) {
|
||||
_iterator4["return"]();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError4) {
|
||||
throw _iteratorError4;
|
||||
}
|
||||
}
|
||||
_iterator4.f();
|
||||
}
|
||||
|
||||
if (!docTitle) {
|
||||
|
|
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
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
|
@ -140,29 +140,29 @@
|
|||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.7",
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/node": "^7.8.7",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.9.0",
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.8.3",
|
||||
"@babel/preset-env": "^7.8.7",
|
||||
"@babel/register": "^7.8.6",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@babel/register": "^7.9.0",
|
||||
"@cypress/code-coverage": "^1.14.0",
|
||||
"@cypress/fiddle": "^1.4.3",
|
||||
"@fintechstudios/eslint-plugin-chai-as-promised": "^2.0.0",
|
||||
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.1",
|
||||
"@mysticatea/eslint-plugin": "^13.0.0",
|
||||
"axe-core": "^3.5.2",
|
||||
"babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3",
|
||||
"coffeescript": "^2.5.1",
|
||||
"copyfiles": "^2.2.0",
|
||||
"core-js-bundle": "^3.6.4",
|
||||
"coveradge": "^0.3.0",
|
||||
"coveradge": "^0.4.0",
|
||||
"cypress": "^4.2.0",
|
||||
"cypress-axe": "^0.5.3",
|
||||
"cypress-multi-reporters": "^1.2.4",
|
||||
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-ash-nazg": "^17.4.0",
|
||||
"eslint-config-standard": "^14.1.0",
|
||||
"eslint-config-ash-nazg": "^17.5.0",
|
||||
"eslint-config-standard": "^14.1.1",
|
||||
"eslint-plugin-array-func": "^3.1.4",
|
||||
"eslint-plugin-chai-expect": "^2.1.0",
|
||||
"eslint-plugin-chai-expect-keywords": "^2.0.1",
|
||||
|
@ -172,11 +172,11 @@
|
|||
"eslint-plugin-eslint-comments": "^3.1.2",
|
||||
"eslint-plugin-html": "^6.0.0",
|
||||
"eslint-plugin-import": "^2.20.1",
|
||||
"eslint-plugin-jsdoc": "^22.0.1",
|
||||
"eslint-plugin-jsdoc": "^22.1.0",
|
||||
"eslint-plugin-markdown": "^1.0.2",
|
||||
"eslint-plugin-mocha": "^6.3.0",
|
||||
"eslint-plugin-mocha-cleanup": "^1.8.0",
|
||||
"eslint-plugin-no-unsanitized": "^3.0.2",
|
||||
"eslint-plugin-no-unsanitized": "^3.1.0",
|
||||
"eslint-plugin-no-use-extend-native": "^0.4.1",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
|
@ -190,7 +190,7 @@
|
|||
"jsdoc": "^3.6.3",
|
||||
"license-badger": "^0.12.0",
|
||||
"load-stylesheets": "^0.9.0",
|
||||
"mocha": "^7.1.0",
|
||||
"mocha": "^7.1.1",
|
||||
"mocha-badge-generator": "^0.5.2",
|
||||
"mochawesome": "^5.0.0",
|
||||
"mochawesome-merge": "^4.0.3",
|
||||
|
@ -198,7 +198,7 @@
|
|||
"node-static": "^0.7.11",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nyc": "^15.0.0",
|
||||
"open-cli": "^5.0.0",
|
||||
"open-cli": "^6.0.0",
|
||||
"promise-fs": "^2.1.1",
|
||||
"qr-manipulation": "git+https://github.com/brettz9/qr-manipulation.git",
|
||||
"query-result": "git+https://github.com/WebReflection/query-result.git",
|
||||
|
@ -206,7 +206,7 @@
|
|||
"remark-cli": "^7.0.1",
|
||||
"remark-lint-ordered-list-marker-value": "^1.0.4",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "2.0.6",
|
||||
"rollup": "2.1.0",
|
||||
"rollup-plugin-babel": "^4.4.0",
|
||||
"rollup-plugin-re": "^1.0.7",
|
||||
"rollup-plugin-terser": "^5.3.0",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue