- npm: Update devDeps
- Build: Switch to `terser` plugin with `uglify` plugin not supporting ES6+-capable minifier - Linting (ESLint): Consistent curly spacing; follow new "standard"master
parent
cad412fe6e
commit
4b22c248e4
|
@ -17,6 +17,7 @@
|
|||
"no-var": 2,
|
||||
"prefer-const": 2,
|
||||
"no-extra-semi": 2,
|
||||
"quote-props": [2, "as-needed"]
|
||||
"quote-props": [2, "as-needed"],
|
||||
"object-curly-spacing": ["error", "never"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
# ?
|
||||
|
||||
- npm: Update devDeps
|
||||
- npm: Point to official sinon-test package now that ES6 Modules
|
||||
support landed
|
||||
- Build: Switch to `terser` plugin with `uglify` plugin not
|
||||
supporting ES6+-capable minifier
|
||||
- Linting (ESLint): Consistent spacing; new "standard"
|
||||
|
||||
# 3.0.0-rc.2
|
||||
|
||||
|
|
|
@ -232,6 +232,15 @@ var getReverseNS = function getReverseNS() {
|
|||
return reverseNS;
|
||||
};
|
||||
|
||||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
|
||||
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
|
||||
SVGPathSegLinetoVerticalRel, SVGPathSegLinetoVerticalAbs,
|
||||
SVGPathSegClosePath, SVGPathSegCurvetoCubicRel,
|
||||
SVGPathSegCurvetoCubicAbs, SVGPathSegCurvetoCubicSmoothRel,
|
||||
SVGPathSegCurvetoCubicSmoothAbs, SVGPathSegCurvetoQuadraticRel,
|
||||
SVGPathSegCurvetoQuadraticAbs, SVGPathSegCurvetoQuadraticSmoothRel,
|
||||
SVGPathSegCurvetoQuadraticSmoothAbs, SVGPathSegArcRel, SVGPathSegArcAbs */
|
||||
/**
|
||||
* SVGPathSeg API polyfill
|
||||
* https://github.com/progers/pathseg
|
||||
|
@ -1542,11 +1551,11 @@ var getReverseNS = function getReverseNS() {
|
|||
// The second check for appendItem is specific to Firefox 59+ which removed only parts of the
|
||||
// SVGPathSegList API (e.g., appendItem). In this case we need to re-implement the entire API
|
||||
// so the polyfill data (i.e., _list) is used throughout.
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in SVGPathSegList.prototype)) {
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
|
||||
var _SVGPathSegList = function () {
|
||||
function _SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, _SVGPathSegList);
|
||||
var SVGPathSegList = function () {
|
||||
function SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, SVGPathSegList);
|
||||
|
||||
this._pathElement = pathElement;
|
||||
this._list = this._parsePath(this._pathElement.getAttribute('d'));
|
||||
|
@ -1561,7 +1570,7 @@ var getReverseNS = function getReverseNS() {
|
|||
// MutationObservers are not synchronous so we can have pending asynchronous mutations.
|
||||
|
||||
|
||||
createClass(_SVGPathSegList, [{
|
||||
createClass(SVGPathSegList, [{
|
||||
key: '_checkPathSynchronizedToList',
|
||||
value: function _checkPathSynchronizedToList() {
|
||||
this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
|
||||
|
@ -1589,7 +1598,7 @@ var getReverseNS = function getReverseNS() {
|
|||
key: '_writeListToPath',
|
||||
value: function _writeListToPath() {
|
||||
this._pathElementMutationObserver.disconnect();
|
||||
this._pathElement.setAttribute('d', _SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElement.setAttribute('d', SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
|
||||
}
|
||||
|
||||
|
@ -2066,12 +2075,12 @@ var getReverseNS = function getReverseNS() {
|
|||
return builder.pathSegList;
|
||||
}
|
||||
}]);
|
||||
return _SVGPathSegList;
|
||||
return SVGPathSegList;
|
||||
}();
|
||||
|
||||
_SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
|
||||
Object.defineProperty(_SVGPathSegList.prototype, 'numberOfItems', {
|
||||
Object.defineProperty(SVGPathSegList.prototype, 'numberOfItems', {
|
||||
get: function get$$1() {
|
||||
this._checkPathSynchronizedToList();
|
||||
return this._list.length;
|
||||
|
@ -2080,7 +2089,7 @@ var getReverseNS = function getReverseNS() {
|
|||
enumerable: true
|
||||
});
|
||||
|
||||
_SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
var string = '';
|
||||
var first = true;
|
||||
pathSegArray.forEach(function (pathSeg) {
|
||||
|
@ -2100,7 +2109,7 @@ var getReverseNS = function getReverseNS() {
|
|||
pathSegList: {
|
||||
get: function get$$1() {
|
||||
if (!this._pathSegList) {
|
||||
this._pathSegList = new _SVGPathSegList(this);
|
||||
this._pathSegList = new SVGPathSegList(this);
|
||||
}
|
||||
return this._pathSegList;
|
||||
},
|
||||
|
@ -2124,7 +2133,7 @@ var getReverseNS = function getReverseNS() {
|
|||
},
|
||||
enumerable: true }
|
||||
});
|
||||
window.SVGPathSegList = _SVGPathSegList;
|
||||
window.SVGPathSegList = SVGPathSegList;
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -12289,7 +12298,7 @@ if (!window.console) {
|
|||
|
||||
if (window.opera) {
|
||||
window.console.log = function (str) {
|
||||
opera.postError(str);
|
||||
window.opera.postError(str);
|
||||
};
|
||||
window.console.dir = function (str) {};
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -238,6 +238,15 @@
|
|||
return reverseNS;
|
||||
};
|
||||
|
||||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
|
||||
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
|
||||
SVGPathSegLinetoVerticalRel, SVGPathSegLinetoVerticalAbs,
|
||||
SVGPathSegClosePath, SVGPathSegCurvetoCubicRel,
|
||||
SVGPathSegCurvetoCubicAbs, SVGPathSegCurvetoCubicSmoothRel,
|
||||
SVGPathSegCurvetoCubicSmoothAbs, SVGPathSegCurvetoQuadraticRel,
|
||||
SVGPathSegCurvetoQuadraticAbs, SVGPathSegCurvetoQuadraticSmoothRel,
|
||||
SVGPathSegCurvetoQuadraticSmoothAbs, SVGPathSegArcRel, SVGPathSegArcAbs */
|
||||
/**
|
||||
* SVGPathSeg API polyfill
|
||||
* https://github.com/progers/pathseg
|
||||
|
@ -1548,11 +1557,11 @@
|
|||
// The second check for appendItem is specific to Firefox 59+ which removed only parts of the
|
||||
// SVGPathSegList API (e.g., appendItem). In this case we need to re-implement the entire API
|
||||
// so the polyfill data (i.e., _list) is used throughout.
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in SVGPathSegList.prototype)) {
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
|
||||
var _SVGPathSegList = function () {
|
||||
function _SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, _SVGPathSegList);
|
||||
var SVGPathSegList = function () {
|
||||
function SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, SVGPathSegList);
|
||||
|
||||
this._pathElement = pathElement;
|
||||
this._list = this._parsePath(this._pathElement.getAttribute('d'));
|
||||
|
@ -1567,7 +1576,7 @@
|
|||
// MutationObservers are not synchronous so we can have pending asynchronous mutations.
|
||||
|
||||
|
||||
createClass(_SVGPathSegList, [{
|
||||
createClass(SVGPathSegList, [{
|
||||
key: '_checkPathSynchronizedToList',
|
||||
value: function _checkPathSynchronizedToList() {
|
||||
this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
|
||||
|
@ -1595,7 +1604,7 @@
|
|||
key: '_writeListToPath',
|
||||
value: function _writeListToPath() {
|
||||
this._pathElementMutationObserver.disconnect();
|
||||
this._pathElement.setAttribute('d', _SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElement.setAttribute('d', SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
|
||||
}
|
||||
|
||||
|
@ -2072,12 +2081,12 @@
|
|||
return builder.pathSegList;
|
||||
}
|
||||
}]);
|
||||
return _SVGPathSegList;
|
||||
return SVGPathSegList;
|
||||
}();
|
||||
|
||||
_SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
|
||||
Object.defineProperty(_SVGPathSegList.prototype, 'numberOfItems', {
|
||||
Object.defineProperty(SVGPathSegList.prototype, 'numberOfItems', {
|
||||
get: function get$$1() {
|
||||
this._checkPathSynchronizedToList();
|
||||
return this._list.length;
|
||||
|
@ -2086,7 +2095,7 @@
|
|||
enumerable: true
|
||||
});
|
||||
|
||||
_SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
var string = '';
|
||||
var first = true;
|
||||
pathSegArray.forEach(function (pathSeg) {
|
||||
|
@ -2106,7 +2115,7 @@
|
|||
pathSegList: {
|
||||
get: function get$$1() {
|
||||
if (!this._pathSegList) {
|
||||
this._pathSegList = new _SVGPathSegList(this);
|
||||
this._pathSegList = new SVGPathSegList(this);
|
||||
}
|
||||
return this._pathSegList;
|
||||
},
|
||||
|
@ -2130,7 +2139,7 @@
|
|||
},
|
||||
enumerable: true }
|
||||
});
|
||||
window.SVGPathSegList = _SVGPathSegList;
|
||||
window.SVGPathSegList = SVGPathSegList;
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -12295,7 +12304,7 @@
|
|||
|
||||
if (window.opera) {
|
||||
window.console.log = function (str) {
|
||||
opera.postError(str);
|
||||
window.opera.postError(str);
|
||||
};
|
||||
window.console.dir = function (str) {};
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -49,6 +49,15 @@
|
|||
return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
||||
};
|
||||
|
||||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
|
||||
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
|
||||
SVGPathSegLinetoVerticalRel, SVGPathSegLinetoVerticalAbs,
|
||||
SVGPathSegClosePath, SVGPathSegCurvetoCubicRel,
|
||||
SVGPathSegCurvetoCubicAbs, SVGPathSegCurvetoCubicSmoothRel,
|
||||
SVGPathSegCurvetoCubicSmoothAbs, SVGPathSegCurvetoQuadraticRel,
|
||||
SVGPathSegCurvetoQuadraticAbs, SVGPathSegCurvetoQuadraticSmoothRel,
|
||||
SVGPathSegCurvetoQuadraticSmoothAbs, SVGPathSegArcRel, SVGPathSegArcAbs */
|
||||
/**
|
||||
* SVGPathSeg API polyfill
|
||||
* https://github.com/progers/pathseg
|
||||
|
@ -1359,11 +1368,11 @@
|
|||
// The second check for appendItem is specific to Firefox 59+ which removed only parts of the
|
||||
// SVGPathSegList API (e.g., appendItem). In this case we need to re-implement the entire API
|
||||
// so the polyfill data (i.e., _list) is used throughout.
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in SVGPathSegList.prototype)) {
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
|
||||
var _SVGPathSegList = function () {
|
||||
function _SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, _SVGPathSegList);
|
||||
var SVGPathSegList = function () {
|
||||
function SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, SVGPathSegList);
|
||||
|
||||
this._pathElement = pathElement;
|
||||
this._list = this._parsePath(this._pathElement.getAttribute('d'));
|
||||
|
@ -1378,7 +1387,7 @@
|
|||
// MutationObservers are not synchronous so we can have pending asynchronous mutations.
|
||||
|
||||
|
||||
createClass(_SVGPathSegList, [{
|
||||
createClass(SVGPathSegList, [{
|
||||
key: '_checkPathSynchronizedToList',
|
||||
value: function _checkPathSynchronizedToList() {
|
||||
this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
|
||||
|
@ -1406,7 +1415,7 @@
|
|||
key: '_writeListToPath',
|
||||
value: function _writeListToPath() {
|
||||
this._pathElementMutationObserver.disconnect();
|
||||
this._pathElement.setAttribute('d', _SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElement.setAttribute('d', SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
|
||||
}
|
||||
|
||||
|
@ -1883,12 +1892,12 @@
|
|||
return builder.pathSegList;
|
||||
}
|
||||
}]);
|
||||
return _SVGPathSegList;
|
||||
return SVGPathSegList;
|
||||
}();
|
||||
|
||||
_SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
|
||||
Object.defineProperty(_SVGPathSegList.prototype, 'numberOfItems', {
|
||||
Object.defineProperty(SVGPathSegList.prototype, 'numberOfItems', {
|
||||
get: function get$$1() {
|
||||
this._checkPathSynchronizedToList();
|
||||
return this._list.length;
|
||||
|
@ -1897,7 +1906,7 @@
|
|||
enumerable: true
|
||||
});
|
||||
|
||||
_SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
var string = '';
|
||||
var first = true;
|
||||
pathSegArray.forEach(function (pathSeg) {
|
||||
|
@ -1917,7 +1926,7 @@
|
|||
pathSegList: {
|
||||
get: function get$$1() {
|
||||
if (!this._pathSegList) {
|
||||
this._pathSegList = new _SVGPathSegList(this);
|
||||
this._pathSegList = new SVGPathSegList(this);
|
||||
}
|
||||
return this._pathSegList;
|
||||
},
|
||||
|
@ -1941,7 +1950,7 @@
|
|||
},
|
||||
enumerable: true }
|
||||
});
|
||||
window.SVGPathSegList = _SVGPathSegList;
|
||||
window.SVGPathSegList = SVGPathSegList;
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ if (!window.console) {
|
|||
}
|
||||
|
||||
if (window.opera) {
|
||||
window.console.log = function (str) { opera.postError(str); };
|
||||
window.console.log = function (str) { window.opera.postError(str); };
|
||||
window.console.dir = function (str) {};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
|
||||
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
|
||||
SVGPathSegLinetoVerticalRel, SVGPathSegLinetoVerticalAbs,
|
||||
SVGPathSegClosePath, SVGPathSegCurvetoCubicRel,
|
||||
SVGPathSegCurvetoCubicAbs, SVGPathSegCurvetoCubicSmoothRel,
|
||||
SVGPathSegCurvetoCubicSmoothAbs, SVGPathSegCurvetoQuadraticRel,
|
||||
SVGPathSegCurvetoQuadraticAbs, SVGPathSegCurvetoQuadraticSmoothRel,
|
||||
SVGPathSegCurvetoQuadraticSmoothAbs, SVGPathSegArcRel, SVGPathSegArcAbs */
|
||||
/**
|
||||
* SVGPathSeg API polyfill
|
||||
* https://github.com/progers/pathseg
|
||||
|
@ -443,7 +452,7 @@ if (!('SVGPathSeg' in window)) {
|
|||
// The second check for appendItem is specific to Firefox 59+ which removed only parts of the
|
||||
// SVGPathSegList API (e.g., appendItem). In this case we need to re-implement the entire API
|
||||
// so the polyfill data (i.e., _list) is used throughout.
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in SVGPathSegList.prototype)) {
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
|
||||
class SVGPathSegList {
|
||||
constructor (pathElement) {
|
||||
|
|
|
@ -235,6 +235,15 @@
|
|||
return reverseNS;
|
||||
};
|
||||
|
||||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
|
||||
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
|
||||
SVGPathSegLinetoVerticalRel, SVGPathSegLinetoVerticalAbs,
|
||||
SVGPathSegClosePath, SVGPathSegCurvetoCubicRel,
|
||||
SVGPathSegCurvetoCubicAbs, SVGPathSegCurvetoCubicSmoothRel,
|
||||
SVGPathSegCurvetoCubicSmoothAbs, SVGPathSegCurvetoQuadraticRel,
|
||||
SVGPathSegCurvetoQuadraticAbs, SVGPathSegCurvetoQuadraticSmoothRel,
|
||||
SVGPathSegCurvetoQuadraticSmoothAbs, SVGPathSegArcRel, SVGPathSegArcAbs */
|
||||
/**
|
||||
* SVGPathSeg API polyfill
|
||||
* https://github.com/progers/pathseg
|
||||
|
@ -1545,11 +1554,11 @@
|
|||
// The second check for appendItem is specific to Firefox 59+ which removed only parts of the
|
||||
// SVGPathSegList API (e.g., appendItem). In this case we need to re-implement the entire API
|
||||
// so the polyfill data (i.e., _list) is used throughout.
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in SVGPathSegList.prototype)) {
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
|
||||
var _SVGPathSegList = function () {
|
||||
function _SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, _SVGPathSegList);
|
||||
var SVGPathSegList = function () {
|
||||
function SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, SVGPathSegList);
|
||||
|
||||
this._pathElement = pathElement;
|
||||
this._list = this._parsePath(this._pathElement.getAttribute('d'));
|
||||
|
@ -1564,7 +1573,7 @@
|
|||
// MutationObservers are not synchronous so we can have pending asynchronous mutations.
|
||||
|
||||
|
||||
createClass(_SVGPathSegList, [{
|
||||
createClass(SVGPathSegList, [{
|
||||
key: '_checkPathSynchronizedToList',
|
||||
value: function _checkPathSynchronizedToList() {
|
||||
this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
|
||||
|
@ -1592,7 +1601,7 @@
|
|||
key: '_writeListToPath',
|
||||
value: function _writeListToPath() {
|
||||
this._pathElementMutationObserver.disconnect();
|
||||
this._pathElement.setAttribute('d', _SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElement.setAttribute('d', SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
|
||||
}
|
||||
|
||||
|
@ -2069,12 +2078,12 @@
|
|||
return builder.pathSegList;
|
||||
}
|
||||
}]);
|
||||
return _SVGPathSegList;
|
||||
return SVGPathSegList;
|
||||
}();
|
||||
|
||||
_SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
|
||||
Object.defineProperty(_SVGPathSegList.prototype, 'numberOfItems', {
|
||||
Object.defineProperty(SVGPathSegList.prototype, 'numberOfItems', {
|
||||
get: function get$$1() {
|
||||
this._checkPathSynchronizedToList();
|
||||
return this._list.length;
|
||||
|
@ -2083,7 +2092,7 @@
|
|||
enumerable: true
|
||||
});
|
||||
|
||||
_SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
var string = '';
|
||||
var first = true;
|
||||
pathSegArray.forEach(function (pathSeg) {
|
||||
|
@ -2103,7 +2112,7 @@
|
|||
pathSegList: {
|
||||
get: function get$$1() {
|
||||
if (!this._pathSegList) {
|
||||
this._pathSegList = new _SVGPathSegList(this);
|
||||
this._pathSegList = new SVGPathSegList(this);
|
||||
}
|
||||
return this._pathSegList;
|
||||
},
|
||||
|
@ -2127,7 +2136,7 @@
|
|||
},
|
||||
enumerable: true }
|
||||
});
|
||||
window.SVGPathSegList = _SVGPathSegList;
|
||||
window.SVGPathSegList = SVGPathSegList;
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -12292,7 +12301,7 @@
|
|||
|
||||
if (window.opera) {
|
||||
window.console.log = function (str) {
|
||||
opera.postError(str);
|
||||
window.opera.postError(str);
|
||||
};
|
||||
window.console.dir = function (str) {};
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
29
package.json
29
package.json
|
@ -58,13 +58,13 @@
|
|||
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"eslint": "4.19.1",
|
||||
"eslint-config-standard": "11.0.0",
|
||||
"eslint-plugin-import": "2.13.0",
|
||||
"eslint-plugin-node": "6.0.1",
|
||||
"eslint-plugin-promise": "3.8.0",
|
||||
"eslint-plugin-qunit": "^3.2.1",
|
||||
"eslint-plugin-standard": "3.1.0",
|
||||
"eslint": "5.5.0",
|
||||
"eslint-config-standard": "12.0.0",
|
||||
"eslint-plugin-import": "2.14.0",
|
||||
"eslint-plugin-node": "7.0.1",
|
||||
"eslint-plugin-promise": "4.0.0",
|
||||
"eslint-plugin-qunit": "^3.3.1",
|
||||
"eslint-plugin-standard": "4.0.0",
|
||||
"find-in-files": "^0.5.0",
|
||||
"imageoptim-cli": "^2.0.3",
|
||||
"jsdoc": "^3.5.5",
|
||||
|
@ -72,17 +72,16 @@
|
|||
"node-static": "^0.7.10",
|
||||
"opn-cli": "^3.1.0",
|
||||
"promise-fs": "^1.3.0",
|
||||
"qunit": "^2.6.1",
|
||||
"rollup": "0.63.2",
|
||||
"qunit": "^2.6.2",
|
||||
"rollup": "0.65.2",
|
||||
"rollup-plugin-babel": "^3.0.7",
|
||||
"rollup-plugin-commonjs": "^9.1.3",
|
||||
"rollup-plugin-commonjs": "^9.1.6",
|
||||
"rollup-plugin-json": "^3.0.0",
|
||||
"rollup-plugin-node-builtins": "^2.1.2",
|
||||
"rollup-plugin-node-resolve": "^3.3.0",
|
||||
"rollup-plugin-node-resolve": "^3.4.0",
|
||||
"rollup-plugin-re": "^1.0.7",
|
||||
"rollup-plugin-uglify": "^4.0.0",
|
||||
"sinon": "^6.1.3",
|
||||
"sinon-test": "^2.3.0",
|
||||
"uglify-es": "^3.3.9"
|
||||
"rollup-plugin-terser": "^2.0.2",
|
||||
"sinon": "^6.2.0",
|
||||
"sinon-test": "^2.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
/* eslint-env node */
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import replace from 'rollup-plugin-re';
|
||||
// import {minify} from 'uglify-es';
|
||||
// import {uglify} from 'rollup-plugin-uglify';
|
||||
|
||||
const plugins = [
|
||||
replace({
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
// user entrance file
|
||||
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import {uglify} from 'rollup-plugin-uglify';
|
||||
import {minify} from 'uglify-es';
|
||||
import {terser} from 'rollup-plugin-terser';
|
||||
import replace from 'rollup-plugin-re';
|
||||
|
||||
const {lstatSync, readdirSync} = require('fs');
|
||||
|
@ -44,7 +43,7 @@ function getRollupObject ({minifying, format = 'umd'} = {}) {
|
|||
]
|
||||
};
|
||||
if (minifying) {
|
||||
nonMinified.plugins.push(uglify(null, minify));
|
||||
nonMinified.plugins.push(terser());
|
||||
}
|
||||
return nonMinified;
|
||||
}
|
||||
|
|
|
@ -235,6 +235,15 @@
|
|||
return reverseNS;
|
||||
};
|
||||
|
||||
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
|
||||
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
|
||||
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
|
||||
SVGPathSegLinetoVerticalRel, SVGPathSegLinetoVerticalAbs,
|
||||
SVGPathSegClosePath, SVGPathSegCurvetoCubicRel,
|
||||
SVGPathSegCurvetoCubicAbs, SVGPathSegCurvetoCubicSmoothRel,
|
||||
SVGPathSegCurvetoCubicSmoothAbs, SVGPathSegCurvetoQuadraticRel,
|
||||
SVGPathSegCurvetoQuadraticAbs, SVGPathSegCurvetoQuadraticSmoothRel,
|
||||
SVGPathSegCurvetoQuadraticSmoothAbs, SVGPathSegArcRel, SVGPathSegArcAbs */
|
||||
/**
|
||||
* SVGPathSeg API polyfill
|
||||
* https://github.com/progers/pathseg
|
||||
|
@ -1545,11 +1554,11 @@
|
|||
// The second check for appendItem is specific to Firefox 59+ which removed only parts of the
|
||||
// SVGPathSegList API (e.g., appendItem). In this case we need to re-implement the entire API
|
||||
// so the polyfill data (i.e., _list) is used throughout.
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in SVGPathSegList.prototype)) {
|
||||
if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.prototype)) {
|
||||
// Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
|
||||
var _SVGPathSegList = function () {
|
||||
function _SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, _SVGPathSegList);
|
||||
var SVGPathSegList = function () {
|
||||
function SVGPathSegList(pathElement) {
|
||||
classCallCheck(this, SVGPathSegList);
|
||||
|
||||
this._pathElement = pathElement;
|
||||
this._list = this._parsePath(this._pathElement.getAttribute('d'));
|
||||
|
@ -1564,7 +1573,7 @@
|
|||
// MutationObservers are not synchronous so we can have pending asynchronous mutations.
|
||||
|
||||
|
||||
createClass(_SVGPathSegList, [{
|
||||
createClass(SVGPathSegList, [{
|
||||
key: '_checkPathSynchronizedToList',
|
||||
value: function _checkPathSynchronizedToList() {
|
||||
this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
|
||||
|
@ -1592,7 +1601,7 @@
|
|||
key: '_writeListToPath',
|
||||
value: function _writeListToPath() {
|
||||
this._pathElementMutationObserver.disconnect();
|
||||
this._pathElement.setAttribute('d', _SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElement.setAttribute('d', SVGPathSegList._pathSegArrayAsString(this._list));
|
||||
this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
|
||||
}
|
||||
|
||||
|
@ -2069,12 +2078,12 @@
|
|||
return builder.pathSegList;
|
||||
}
|
||||
}]);
|
||||
return _SVGPathSegList;
|
||||
return SVGPathSegList;
|
||||
}();
|
||||
|
||||
_SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
SVGPathSegList.prototype.classname = 'SVGPathSegList';
|
||||
|
||||
Object.defineProperty(_SVGPathSegList.prototype, 'numberOfItems', {
|
||||
Object.defineProperty(SVGPathSegList.prototype, 'numberOfItems', {
|
||||
get: function get$$1() {
|
||||
this._checkPathSynchronizedToList();
|
||||
return this._list.length;
|
||||
|
@ -2083,7 +2092,7 @@
|
|||
enumerable: true
|
||||
});
|
||||
|
||||
_SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
|
||||
var string = '';
|
||||
var first = true;
|
||||
pathSegArray.forEach(function (pathSeg) {
|
||||
|
@ -2103,7 +2112,7 @@
|
|||
pathSegList: {
|
||||
get: function get$$1() {
|
||||
if (!this._pathSegList) {
|
||||
this._pathSegList = new _SVGPathSegList(this);
|
||||
this._pathSegList = new SVGPathSegList(this);
|
||||
}
|
||||
return this._pathSegList;
|
||||
},
|
||||
|
@ -2127,7 +2136,7 @@
|
|||
},
|
||||
enumerable: true }
|
||||
});
|
||||
window.SVGPathSegList = _SVGPathSegList;
|
||||
window.SVGPathSegList = SVGPathSegList;
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -12292,7 +12301,7 @@
|
|||
|
||||
if (window.opera) {
|
||||
window.console.log = function (str) {
|
||||
opera.postError(str);
|
||||
window.opera.postError(str);
|
||||
};
|
||||
window.console.dir = function (str) {};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* eslint-env qunit */
|
||||
/* globals SVGPathSeg */
|
||||
import '../editor/svgpathseg.js';
|
||||
import {NS} from '../editor/namespaces.js';
|
||||
import * as utilities from '../editor/utilities.js';
|
||||
|
|
Loading…
Reference in New Issue