- Build: Update with namespaced `parseFloat`, etc. changes

- npm: Update devDeps. (remove axe-core now that bundled with cypress-axe)
master
Brett Zamir 2020-03-31 00:25:54 +08:00
parent 7914f26e02
commit ea58adbab1
19 changed files with 619 additions and 465 deletions

18
dist/canvg.js vendored
View File

@ -434,7 +434,7 @@ var canvg = (function (exports) {
}
return bits.map(function (b) {
return parseInt(b);
return Number.parseInt(b);
});
}
}, {
@ -447,7 +447,7 @@ var canvg = (function (exports) {
}
return bits.map(function (b) {
return parseInt(b, 16);
return Number.parseInt(b, 16);
});
}
}, {
@ -460,7 +460,7 @@ var canvg = (function (exports) {
}
return bits.map(function (b) {
return parseInt(b + b, 16);
return Number.parseInt(b + b, 16);
});
}
}];
@ -1170,7 +1170,7 @@ var canvg = (function (exports) {
key: "numValue",
value: function numValue() {
if (!this.hasValue()) return 0;
var n = parseFloat(this.value);
var n = Number.parseFloat(this.value);
if (String(this.value).endsWith('%')) {
n /= 100.0;
@ -1398,7 +1398,7 @@ var canvg = (function (exports) {
svg.ToNumberArray = function (s) {
var a = svg.trim(svg.compressSpaces((s || '').replace(/,/g, ' '))).split(' ');
return a.map(function (_a) {
return parseFloat(_a);
return Number.parseFloat(_a);
});
};
@ -2632,7 +2632,7 @@ var canvg = (function (exports) {
return this.tokens[this.i];
},
getScalar: function getScalar() {
return parseFloat(this.getToken());
return Number.parseFloat(this.getToken());
},
nextCommand: function nextCommand() {
this.previousCommand = this.command;
@ -3347,8 +3347,8 @@ var canvg = (function (exports) {
var p = ret.progress * (this.values.value.length - 1);
var lb = Math.floor(p),
ub = Math.ceil(p);
ret.from = new svg.Property('from', parseFloat(this.values.value[lb]));
ret.to = new svg.Property('to', parseFloat(this.values.value[ub]));
ret.from = new svg.Property('from', Number.parseFloat(this.values.value[lb]));
ret.to = new svg.Property('to', Number.parseFloat(this.values.value[ub]));
ret.progress = (p - lb) / (ub - lb);
} else {
ret.from = this.from;
@ -3411,7 +3411,7 @@ var canvg = (function (exports) {
var r = from.r + (to.r - from.r) * p.progress;
var g = from.g + (to.g - from.g) * p.progress;
var b = from.b + (to.b - from.b) * p.progress;
return 'rgb(' + parseInt(r) + ',' + parseInt(g) + ',' + parseInt(b) + ')';
return 'rgb(' + Number.parseInt(r) + ',' + Number.parseInt(g) + ',' + Number.parseInt(b) + ')';
}
return this.attribute('from').value;

View File

@ -20,7 +20,7 @@ var svgEditorExtension_overview_window = (function () {
if (isChrome()) {
var verIndex = navigator.userAgent.indexOf('Chrome/') + 7;
var chromeVersion = parseInt(navigator.userAgent.substring(verIndex));
var chromeVersion = Number.parseInt(navigator.userAgent.substring(verIndex));
if (chromeVersion < 49) {
return undefined;
@ -32,12 +32,12 @@ var svgEditorExtension_overview_window = (function () {
$('#sidepanels').append(propsWindowHtml); // Define dynamic animation of the view box.
var updateViewBox = function updateViewBox() {
var portHeight = parseFloat($('#workarea').css('height'));
var portWidth = parseFloat($('#workarea').css('width'));
var portHeight = Number.parseFloat($('#workarea').css('height'));
var portWidth = Number.parseFloat($('#workarea').css('width'));
var portX = $('#workarea').scrollLeft();
var portY = $('#workarea').scrollTop();
var windowWidth = parseFloat($('#svgcanvas').css('width'));
var windowHeight = parseFloat($('#svgcanvas').css('height'));
var windowWidth = Number.parseFloat($('#svgcanvas').css('width'));
var windowHeight = Number.parseFloat($('#svgcanvas').css('height'));
var overviewWidth = $('#overviewMiniView').attr('width');
var overviewHeight = $('#overviewMiniView').attr('height');
var viewBoxX = portX / windowWidth * overviewWidth;
@ -87,12 +87,12 @@ var svgEditorExtension_overview_window = (function () {
overviewWindowGlobals.viewBoxDragging = false;
var updateViewPortFromViewBox = function updateViewPortFromViewBox() {
var windowWidth = parseFloat($('#svgcanvas').css('width'));
var windowHeight = parseFloat($('#svgcanvas').css('height'));
var windowWidth = Number.parseFloat($('#svgcanvas').css('width'));
var windowHeight = Number.parseFloat($('#svgcanvas').css('height'));
var overviewWidth = $('#overviewMiniView').attr('width');
var overviewHeight = $('#overviewMiniView').attr('height');
var viewBoxX = parseFloat($('#overview_window_view_box').css('left'));
var viewBoxY = parseFloat($('#overview_window_view_box').css('top'));
var viewBoxX = Number.parseFloat($('#overview_window_view_box').css('left'));
var viewBoxY = Number.parseFloat($('#overview_window_view_box').css('top'));
var portX = viewBoxX / overviewWidth * windowWidth;
var portY = viewBoxY / overviewHeight * windowHeight;
$('#workarea').scrollLeft(portX);
@ -115,8 +115,8 @@ var svgEditorExtension_overview_window = (function () {
var mouseY = evt.offsetY || evt.originalEvent.layerY;
var overviewWidth = $('#overviewMiniView').attr('width');
var overviewHeight = $('#overviewMiniView').attr('height');
var viewBoxWidth = parseFloat($('#overview_window_view_box').css('min-width'));
var viewBoxHeight = parseFloat($('#overview_window_view_box').css('min-height'));
var viewBoxWidth = Number.parseFloat($('#overview_window_view_box').css('min-width'));
var viewBoxHeight = Number.parseFloat($('#overview_window_view_box').css('min-height'));
var viewBoxX = mouseX - 0.5 * viewBoxWidth;
var viewBoxY = mouseY - 0.5 * viewBoxHeight; // deal with constraints

View File

@ -290,7 +290,7 @@ var svgEditorExtension_placemark = (function () {
updateFont = function _updateFont(font) {
font = font.split(' ');
var fontSize = parseInt(font.pop());
var fontSize = Number.parseInt(font.pop());
font = font.join(' ');
selElems.forEach(function (elem) {
if (elem && elem.getAttribute('class').includes('placemark')) {
@ -504,7 +504,7 @@ var svgEditorExtension_placemark = (function () {
var id = svgCanvas.getNextId();
var items = $('#placemarkText').val().split(';');
var font = $('#placemarkFont').val().split(' ');
var fontSize = parseInt(font.pop());
var fontSize = Number.parseInt(font.pop());
font = font.join(' ');
var x0 = opts.start_x + 10,
y0 = opts.start_y + 10;

View File

@ -434,7 +434,7 @@ var svgEditorExtension_server_moinsave = (function () {
}
return bits.map(function (b) {
return parseInt(b);
return Number.parseInt(b);
});
}
}, {
@ -447,7 +447,7 @@ var svgEditorExtension_server_moinsave = (function () {
}
return bits.map(function (b) {
return parseInt(b, 16);
return Number.parseInt(b, 16);
});
}
}, {
@ -460,7 +460,7 @@ var svgEditorExtension_server_moinsave = (function () {
}
return bits.map(function (b) {
return parseInt(b + b, 16);
return Number.parseInt(b + b, 16);
});
}
}];
@ -1170,7 +1170,7 @@ var svgEditorExtension_server_moinsave = (function () {
key: "numValue",
value: function numValue() {
if (!this.hasValue()) return 0;
var n = parseFloat(this.value);
var n = Number.parseFloat(this.value);
if (String(this.value).endsWith('%')) {
n /= 100.0;
@ -1398,7 +1398,7 @@ var svgEditorExtension_server_moinsave = (function () {
svg.ToNumberArray = function (s) {
var a = svg.trim(svg.compressSpaces((s || '').replace(/,/g, ' '))).split(' ');
return a.map(function (_a) {
return parseFloat(_a);
return Number.parseFloat(_a);
});
};
@ -2632,7 +2632,7 @@ var svgEditorExtension_server_moinsave = (function () {
return this.tokens[this.i];
},
getScalar: function getScalar() {
return parseFloat(this.getToken());
return Number.parseFloat(this.getToken());
},
nextCommand: function nextCommand() {
this.previousCommand = this.command;
@ -3347,8 +3347,8 @@ var svgEditorExtension_server_moinsave = (function () {
var p = ret.progress * (this.values.value.length - 1);
var lb = Math.floor(p),
ub = Math.ceil(p);
ret.from = new svg.Property('from', parseFloat(this.values.value[lb]));
ret.to = new svg.Property('to', parseFloat(this.values.value[ub]));
ret.from = new svg.Property('from', Number.parseFloat(this.values.value[lb]));
ret.to = new svg.Property('to', Number.parseFloat(this.values.value[ub]));
ret.progress = (p - lb) / (ub - lb);
} else {
ret.from = this.from;
@ -3411,7 +3411,7 @@ var svgEditorExtension_server_moinsave = (function () {
var r = from.r + (to.r - from.r) * p.progress;
var g = from.g + (to.g - from.g) * p.progress;
var b = from.b + (to.b - from.b) * p.progress;
return 'rgb(' + parseInt(r) + ',' + parseInt(g) + ',' + parseInt(b) + ')';
return 'rgb(' + Number.parseInt(r) + ',' + Number.parseInt(g) + ',' + Number.parseInt(b) + ')';
}
return this.attribute('from').value;

View File

@ -434,7 +434,7 @@ var svgEditorExtension_server_opensave = (function () {
}
return bits.map(function (b) {
return parseInt(b);
return Number.parseInt(b);
});
}
}, {
@ -447,7 +447,7 @@ var svgEditorExtension_server_opensave = (function () {
}
return bits.map(function (b) {
return parseInt(b, 16);
return Number.parseInt(b, 16);
});
}
}, {
@ -460,7 +460,7 @@ var svgEditorExtension_server_opensave = (function () {
}
return bits.map(function (b) {
return parseInt(b + b, 16);
return Number.parseInt(b + b, 16);
});
}
}];
@ -1170,7 +1170,7 @@ var svgEditorExtension_server_opensave = (function () {
key: "numValue",
value: function numValue() {
if (!this.hasValue()) return 0;
var n = parseFloat(this.value);
var n = Number.parseFloat(this.value);
if (String(this.value).endsWith('%')) {
n /= 100.0;
@ -1398,7 +1398,7 @@ var svgEditorExtension_server_opensave = (function () {
svg.ToNumberArray = function (s) {
var a = svg.trim(svg.compressSpaces((s || '').replace(/,/g, ' '))).split(' ');
return a.map(function (_a) {
return parseFloat(_a);
return Number.parseFloat(_a);
});
};
@ -2632,7 +2632,7 @@ var svgEditorExtension_server_opensave = (function () {
return this.tokens[this.i];
},
getScalar: function getScalar() {
return parseFloat(this.getToken());
return Number.parseFloat(this.getToken());
},
nextCommand: function nextCommand() {
this.previousCommand = this.command;
@ -3347,8 +3347,8 @@ var svgEditorExtension_server_opensave = (function () {
var p = ret.progress * (this.values.value.length - 1);
var lb = Math.floor(p),
ub = Math.ceil(p);
ret.from = new svg.Property('from', parseFloat(this.values.value[lb]));
ret.to = new svg.Property('to', parseFloat(this.values.value[ub]));
ret.from = new svg.Property('from', Number.parseFloat(this.values.value[lb]));
ret.to = new svg.Property('to', Number.parseFloat(this.values.value[ub]));
ret.progress = (p - lb) / (ub - lb);
} else {
ret.from = this.from;
@ -3411,7 +3411,7 @@ var svgEditorExtension_server_opensave = (function () {
var r = from.r + (to.r - from.r) * p.progress;
var g = from.g + (to.g - from.g) * p.progress;
var b = from.b + (to.b - from.b) * p.progress;
return 'rgb(' + parseInt(r) + ',' + parseInt(g) + ',' + parseInt(b) + ')';
return 'rgb(' + Number.parseInt(r) + ',' + Number.parseInt(g) + ',' + Number.parseInt(b) + ')';
}
return this.attribute('from').value;

104
dist/index-es.js vendored
View File

@ -3289,7 +3289,7 @@ var SVGTransformList = /*#__PURE__*/function () {
var mtx = svgroot.createSVGMatrix();
Object.values(valArr).forEach(function (item, i) {
valArr[i] = parseFloat(item);
valArr[i] = Number.parseFloat(item);
if (name === 'matrix') {
mtx[letters[i]] = valArr[i];
@ -3699,7 +3699,7 @@ var shortFloat = function shortFloat(val) {
return shortFloat(val[0]) + ',' + shortFloat(val[1]);
}
return parseFloat(val).toFixed(digits) - 0;
return Number.parseFloat(val).toFixed(digits) - 0;
};
/**
* Converts the number to given unit or baseUnit.
@ -4937,8 +4937,8 @@ var transformListToTransform = function transformListToTransform(tlist, min, max
min = min || 0;
max = max || tlist.numberOfItems - 1;
min = parseInt(min);
max = parseInt(max);
min = Number.parseInt(min);
max = Number.parseInt(max);
if (min > max) {
var temp = max;
@ -7218,7 +7218,7 @@ var pathActions = function () {
if (id.substr(0, 14) === 'pathpointgrip_') {
// Select this point
curPt = path.cur_pt = parseInt(id.substr(14));
curPt = path.cur_pt = Number.parseInt(id.substr(14));
path.dragging = [startX, startY];
var seg = path.segs[curPt]; // only clear selection if shift is not pressed (otherwise, add
// node to selection)
@ -8679,8 +8679,8 @@ var getBBox = function getBBox(elem) {
var bb = {
width: width,
height: height,
x: x + parseFloat(selected.getAttribute('x') || 0),
y: y + parseFloat(selected.getAttribute('y') || 0)
x: x + Number.parseFloat(selected.getAttribute('x') || 0),
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
};
ret = bb;
}
@ -10148,7 +10148,7 @@ var Layer = /*#__PURE__*/function () {
return 1;
}
return parseFloat(opacity);
return Number.parseFloat(opacity);
}
/**
* Sets the opacity of this layer. If opacity is not a value between 0.0 and 1.0,
@ -10735,7 +10735,7 @@ var Drawing = /*#__PURE__*/function () {
} // extract the obj_num of this id
var num = parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
var num = Number.parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
// then return false.
if (typeof num !== 'number' || num <= 0 || this.releasedNums.includes(num)) {
@ -12012,8 +12012,8 @@ var remapElement = function remapElement(selected, changes, m) {
// therefore [T'] = [M_inv][T][M]
var existing = transformListToTransform(selected).matrix,
tNew = matrixMultiply(existing.inverse(), m, existing);
changes.x = parseFloat(changes.x) + tNew.e;
changes.y = parseFloat(changes.y) + tNew.f;
changes.x = Number.parseFloat(changes.x) + tNew.e;
changes.y = Number.parseFloat(changes.y) + tNew.f;
} else {
// we just absorb all matrices into the element and don't do any remapping
var chlist = getTransformList(selected);
@ -14277,7 +14277,7 @@ function SvgCanvas(container, config) {
var round = this.round = function (val) {
return parseInt(val * currentZoom) / currentZoom;
return Number.parseInt(val * currentZoom) / currentZoom;
};
init$6(curConfig,
@ -15030,8 +15030,8 @@ function SvgCanvas(container, config) {
if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += parseInt(svgcontent.getAttribute('y'));
rubberBBox.x += Number.parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += Number.parseInt(svgcontent.getAttribute('y'));
resultList = svgroot.getIntersectionList(rubberBBox, parent);
}
}
@ -15326,7 +15326,7 @@ function SvgCanvas(container, config) {
this.setRotationAngle = function (val, preventUndo) {
// ensure val is the proper type
val = parseFloat(val);
val = Number.parseFloat(val);
var elem = selectedElements[0];
var oldTransform = elem.getAttribute('transform');
var bbox = getBBox(elem);
@ -16897,7 +16897,7 @@ function SvgCanvas(container, config) {
var aniDur = 0.2;
var cAni;
if (opacAni.beginElement && parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
if (opacAni.beginElement && Number.parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
cAni = $$9(opacAni).clone().attr({
to: curShape.opacity,
dur: aniDur
@ -23233,7 +23233,7 @@ function jQueryPluginJGraduate($) {
for (var i = 0; i < 6; i += 2) {
// const ch = color.substr(i, 2);
var inv = (255 - parseInt(color.substr(i, 2), 16)).toString(16);
var inv = (255 - Number.parseInt(color.substr(i, 2), 16)).toString(16);
if (inv.length < 2) inv = 0 + inv;
inverted += inv;
}
@ -23256,14 +23256,14 @@ function jQueryPluginJGraduate($) {
}
}
var x1 = parseFloat(grad.getAttribute('x1') || 0.0),
y1 = parseFloat(grad.getAttribute('y1') || 0.0),
x2 = parseFloat(grad.getAttribute('x2') || 1.0),
y2 = parseFloat(grad.getAttribute('y2') || 0.0);
var cx = parseFloat(grad.getAttribute('cx') || 0.5),
cy = parseFloat(grad.getAttribute('cy') || 0.5),
fx = parseFloat(grad.getAttribute('fx') || cx),
fy = parseFloat(grad.getAttribute('fy') || cy);
var x1 = Number.parseFloat(grad.getAttribute('x1') || 0.0),
y1 = Number.parseFloat(grad.getAttribute('y1') || 0.0),
x2 = Number.parseFloat(grad.getAttribute('x2') || 1.0),
y2 = Number.parseFloat(grad.getAttribute('y2') || 0.0);
var cx = Number.parseFloat(grad.getAttribute('cx') || 0.5),
cy = Number.parseFloat(grad.getAttribute('cy') || 0.5),
fx = Number.parseFloat(grad.getAttribute('fx') || cx),
fy = Number.parseFloat(grad.getAttribute('fy') || cy);
var previewRect = mkElem('rect', {
id: id + '_jgraduate_rect',
x: MARGINX,
@ -23326,7 +23326,7 @@ function jQueryPluginJGraduate($) {
attrInput[attr] = $('#' + id + '_jGraduate_' + attr).val(attrval).change(function () {
// TODO: Support values < 0 and > 1 (zoomable preview?)
if (isNaN(parseFloat(this.value)) || this.value < 0) {
if (isNaN(Number.parseFloat(this.value)) || this.value < 0) {
this.value = 0.0;
} else if (this.value > 1) {
this.value = 1.0;
@ -23396,7 +23396,7 @@ function jQueryPluginJGraduate($) {
var stopOpacity = Number(stop.getAttribute('stop-opacity')) || 1;
var stopColor = stop.getAttribute('stop-color') || 1;
var thisAlpha = (parseFloat(stopOpacity) * 255).toString(16);
var thisAlpha = (Number.parseFloat(stopOpacity) * 255).toString(16);
while (thisAlpha.length < 2) {
thisAlpha = '0' + thisAlpha;
@ -23754,7 +23754,7 @@ function jQueryPluginJGraduate($) {
var _slider = slider,
left = _slider.offset.left;
var div = slider.parent;
var x = e.pageX - left - parseInt(div.css('border-left-width'));
var x = e.pageX - left - Number.parseInt(div.css('border-left-width'));
if (x > SLIDERW) x = SLIDERW;
if (x <= 0) x = 0;
var posx = x - 5;
@ -23769,7 +23769,7 @@ function jQueryPluginJGraduate($) {
break;
case 'opacity':
$this.paint.alpha = parseInt(x * 100);
$this.paint.alpha = Number.parseInt(x * 100);
previewRect.setAttribute('fill-opacity', x);
break;
@ -24220,9 +24220,9 @@ function jQueryPluginSpinButton($) {
this.spinCfg = {
// min: cfg.min ? Number(cfg.min) : null,
// max: cfg.max ? Number(cfg.max) : null,
min: !isNaN(parseFloat(cfg.min)) ? Number(cfg.min) : null,
min: !isNaN(Number.parseFloat(cfg.min)) ? Number(cfg.min) : null,
// Fixes bug with min:0
max: !isNaN(parseFloat(cfg.max)) ? Number(cfg.max) : null,
max: !isNaN(Number.parseFloat(cfg.max)) ? Number(cfg.max) : null,
step: cfg.step ? Number(cfg.step) : 1,
stepfunc: cfg.stepfunc || false,
page: cfg.page ? Number(cfg.page) : 10,
@ -25301,12 +25301,12 @@ var jPicker = function jPicker($) {
case alpha && alpha.get(0):
switch (e.keyCode) {
case 38:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) + 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) + 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
case 40:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) - 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) - 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
}
@ -25423,7 +25423,7 @@ var jPicker = function jPicker($) {
case ahex && ahex.get(0):
ahex.val(ahex.val().replace(/[^a-fA-F\d]/g, '').toLowerCase().substring(0, 2));
color.val('a', !isNullish$1(ahex.val()) ? parseInt(ahex.val(), 16) : null, e.target);
color.val('a', !isNullish$1(ahex.val()) ? Number.parseInt(ahex.val(), 16) : null, e.target);
break;
}
@ -26093,7 +26093,7 @@ var jPicker = function jPicker($) {
* @returns {Integer}
*/
hexToInt: function hexToInt(hex) {
return parseInt(hex, 16);
return Number.parseInt(hex, 16);
},
/**
@ -26136,7 +26136,7 @@ var jPicker = function jPicker($) {
if (!hsv.s) hsv.h = 0;else {
delta = max - min;
if (r === max) hsv.h = (g - b) / delta;else if (g === max) hsv.h = 2 + (b - r) / delta;else hsv.h = 4 + (r - g) / delta;
hsv.h = parseInt(hsv.h * 60);
hsv.h = Number.parseInt(hsv.h * 60);
if (hsv.h < 0) hsv.h += 360;
}
hsv.s = hsv.s * 100 | 0;
@ -26308,7 +26308,7 @@ var jPicker = function jPicker($) {
settings.window.liveUpdate = false; // Basic control binding for inline use - You will need to override the liveCallback or commitCallback function to retrieve results
}
var isLessThanIE7 = parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
var isLessThanIE7 = Number.parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
// set color mode and update visuals for the new color mode
/**
@ -27137,8 +27137,8 @@ var jPicker = function jPicker($) {
function moveBarMouseDown(e) {
// const {element} = settings.window, // local copies for YUI compressor
// {page} = settings.window;
elementStartX = parseInt(container.css('left'));
elementStartY = parseInt(container.css('top'));
elementStartX = Number.parseInt(container.css('left'));
elementStartY = Number.parseInt(container.css('top'));
pageStartX = e.pageX;
pageStartY = e.pageY; // bind events to document to move window - we will unbind these on mouseup
@ -27320,9 +27320,9 @@ var jPicker = function jPicker($) {
});
container.css( // positions must be set and display set to absolute before source code injection or IE will size the container to fit the window
{
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + parseInt(win.position.x) + 'px',
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + Number.parseInt(win.position.x) + 'px',
position: 'absolute',
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + parseInt(win.position.y) + 'px'
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + Number.parseInt(win.position.y) + 'px'
});
} else {
container = $(that);
@ -29775,7 +29775,7 @@ editor.init = function () {
var cur = el.data('orig_margin-' + s);
if (isNullish(cur)) {
cur = parseInt(el.css('margin-' + s)); // Cache the original margin
cur = Number.parseInt(el.css('margin-' + s)); // Cache the original margin
el.data('orig_margin-' + s, cur);
}
@ -30846,7 +30846,7 @@ editor.init = function () {
$hcanv.siblings().remove(); // Create multiple canvases when necessary (due to browser limits)
if (rulerLen >= limit) {
ctxArrNum = parseInt(rulerLen / limit) + 1;
ctxArrNum = Number.parseInt(rulerLen / limit) + 1;
ctxArr = [];
ctxArr[0] = ctx;
var copy = void 0;
@ -31820,7 +31820,7 @@ editor.init = function () {
options = tool;
} else {
// If flyout is selected, allow shift key to iterate through subitems
j = parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
j = Number.parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
options = allHolders[opts.parent][j + 1] || holders[opts.parent][0];
}
@ -32648,7 +32648,7 @@ editor.init = function () {
var changeRotationAngle = function changeRotationAngle(ctl) {
svgCanvas.setRotationAngle(ctl.value);
$$b('#tool_reorient').toggleClass('disabled', parseInt(ctl.value) === 0);
$$b('#tool_reorient').toggleClass('disabled', Number.parseInt(ctl.value) === 0);
};
/**
* @param {external:jQuery.fn.SpinButton} ctl Spin Button
@ -33087,7 +33087,7 @@ editor.init = function () {
return;
}
var perc = parseInt($$b(this).text().split('%')[0]);
var perc = Number.parseInt($$b(this).text().split('%')[0]);
changeOpacity(false, perc);
}, true); // For slider usage, see: http://jqueryui.com/demos/slider/
@ -33129,7 +33129,7 @@ editor.init = function () {
zoomChanged(window, val);
} else {
changeZoom({
value: parseFloat(item.text())
value: Number.parseFloat(item.text())
});
}
}, true);
@ -33596,7 +33596,7 @@ editor.init = function () {
step *= -1;
}
var angle = parseFloat($$b('#angle').val()) + step;
var angle = Number.parseFloat($$b('#angle').val()) + step;
svgCanvas.setRotationAngle(angle);
updateContextPanel();
};
@ -33777,7 +33777,7 @@ editor.init = function () {
openExportWindow();
}
quality = parseInt($$b('#image-slider').val()) / 100;
quality = Number.parseInt($$b('#image-slider').val()) / 100;
/* const results = */
_context9.next = 16;
@ -34525,7 +34525,7 @@ editor.init = function () {
default:
{
this._paintOpacity = parseFloat(selectedElement.getAttribute(type + '-opacity'));
this._paintOpacity = Number.parseFloat(selectedElement.getAttribute(type + '-opacity'));
if (isNaN(this._paintOpacity)) {
this._paintOpacity = 1.0;
@ -34868,8 +34868,8 @@ editor.init = function () {
var rulerX = $$b('#ruler_x');
$$b('#sidepanels').width('+=' + delta);
$$b('#layerpanel').width('+=' + delta);
rulerX.css('right', parseInt(rulerX.css('right')) + delta);
workarea.css('right', parseInt(workarea.css('right')) + delta);
rulerX.css('right', Number.parseInt(rulerX.css('right')) + delta);
workarea.css('right', Number.parseInt(workarea.css('right')) + delta);
svgCanvas.runExtensions('workareaResized');
};
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

104
dist/index-umd.js vendored
View File

@ -3295,7 +3295,7 @@
var mtx = svgroot.createSVGMatrix();
Object.values(valArr).forEach(function (item, i) {
valArr[i] = parseFloat(item);
valArr[i] = Number.parseFloat(item);
if (name === 'matrix') {
mtx[letters[i]] = valArr[i];
@ -3705,7 +3705,7 @@
return shortFloat(val[0]) + ',' + shortFloat(val[1]);
}
return parseFloat(val).toFixed(digits) - 0;
return Number.parseFloat(val).toFixed(digits) - 0;
};
/**
* Converts the number to given unit or baseUnit.
@ -4943,8 +4943,8 @@
min = min || 0;
max = max || tlist.numberOfItems - 1;
min = parseInt(min);
max = parseInt(max);
min = Number.parseInt(min);
max = Number.parseInt(max);
if (min > max) {
var temp = max;
@ -7224,7 +7224,7 @@
if (id.substr(0, 14) === 'pathpointgrip_') {
// Select this point
curPt = path.cur_pt = parseInt(id.substr(14));
curPt = path.cur_pt = Number.parseInt(id.substr(14));
path.dragging = [startX, startY];
var seg = path.segs[curPt]; // only clear selection if shift is not pressed (otherwise, add
// node to selection)
@ -8685,8 +8685,8 @@
var bb = {
width: width,
height: height,
x: x + parseFloat(selected.getAttribute('x') || 0),
y: y + parseFloat(selected.getAttribute('y') || 0)
x: x + Number.parseFloat(selected.getAttribute('x') || 0),
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
};
ret = bb;
}
@ -10154,7 +10154,7 @@
return 1;
}
return parseFloat(opacity);
return Number.parseFloat(opacity);
}
/**
* Sets the opacity of this layer. If opacity is not a value between 0.0 and 1.0,
@ -10741,7 +10741,7 @@
} // extract the obj_num of this id
var num = parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
var num = Number.parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
// then return false.
if (typeof num !== 'number' || num <= 0 || this.releasedNums.includes(num)) {
@ -12018,8 +12018,8 @@
// therefore [T'] = [M_inv][T][M]
var existing = transformListToTransform(selected).matrix,
tNew = matrixMultiply(existing.inverse(), m, existing);
changes.x = parseFloat(changes.x) + tNew.e;
changes.y = parseFloat(changes.y) + tNew.f;
changes.x = Number.parseFloat(changes.x) + tNew.e;
changes.y = Number.parseFloat(changes.y) + tNew.f;
} else {
// we just absorb all matrices into the element and don't do any remapping
var chlist = getTransformList(selected);
@ -14283,7 +14283,7 @@
var round = this.round = function (val) {
return parseInt(val * currentZoom) / currentZoom;
return Number.parseInt(val * currentZoom) / currentZoom;
};
init$6(curConfig,
@ -15036,8 +15036,8 @@
if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += parseInt(svgcontent.getAttribute('y'));
rubberBBox.x += Number.parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += Number.parseInt(svgcontent.getAttribute('y'));
resultList = svgroot.getIntersectionList(rubberBBox, parent);
}
}
@ -15332,7 +15332,7 @@
this.setRotationAngle = function (val, preventUndo) {
// ensure val is the proper type
val = parseFloat(val);
val = Number.parseFloat(val);
var elem = selectedElements[0];
var oldTransform = elem.getAttribute('transform');
var bbox = getBBox(elem);
@ -16903,7 +16903,7 @@
var aniDur = 0.2;
var cAni;
if (opacAni.beginElement && parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
if (opacAni.beginElement && Number.parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
cAni = $$9(opacAni).clone().attr({
to: curShape.opacity,
dur: aniDur
@ -23239,7 +23239,7 @@
for (var i = 0; i < 6; i += 2) {
// const ch = color.substr(i, 2);
var inv = (255 - parseInt(color.substr(i, 2), 16)).toString(16);
var inv = (255 - Number.parseInt(color.substr(i, 2), 16)).toString(16);
if (inv.length < 2) inv = 0 + inv;
inverted += inv;
}
@ -23262,14 +23262,14 @@
}
}
var x1 = parseFloat(grad.getAttribute('x1') || 0.0),
y1 = parseFloat(grad.getAttribute('y1') || 0.0),
x2 = parseFloat(grad.getAttribute('x2') || 1.0),
y2 = parseFloat(grad.getAttribute('y2') || 0.0);
var cx = parseFloat(grad.getAttribute('cx') || 0.5),
cy = parseFloat(grad.getAttribute('cy') || 0.5),
fx = parseFloat(grad.getAttribute('fx') || cx),
fy = parseFloat(grad.getAttribute('fy') || cy);
var x1 = Number.parseFloat(grad.getAttribute('x1') || 0.0),
y1 = Number.parseFloat(grad.getAttribute('y1') || 0.0),
x2 = Number.parseFloat(grad.getAttribute('x2') || 1.0),
y2 = Number.parseFloat(grad.getAttribute('y2') || 0.0);
var cx = Number.parseFloat(grad.getAttribute('cx') || 0.5),
cy = Number.parseFloat(grad.getAttribute('cy') || 0.5),
fx = Number.parseFloat(grad.getAttribute('fx') || cx),
fy = Number.parseFloat(grad.getAttribute('fy') || cy);
var previewRect = mkElem('rect', {
id: id + '_jgraduate_rect',
x: MARGINX,
@ -23332,7 +23332,7 @@
attrInput[attr] = $('#' + id + '_jGraduate_' + attr).val(attrval).change(function () {
// TODO: Support values < 0 and > 1 (zoomable preview?)
if (isNaN(parseFloat(this.value)) || this.value < 0) {
if (isNaN(Number.parseFloat(this.value)) || this.value < 0) {
this.value = 0.0;
} else if (this.value > 1) {
this.value = 1.0;
@ -23402,7 +23402,7 @@
var stopOpacity = Number(stop.getAttribute('stop-opacity')) || 1;
var stopColor = stop.getAttribute('stop-color') || 1;
var thisAlpha = (parseFloat(stopOpacity) * 255).toString(16);
var thisAlpha = (Number.parseFloat(stopOpacity) * 255).toString(16);
while (thisAlpha.length < 2) {
thisAlpha = '0' + thisAlpha;
@ -23760,7 +23760,7 @@
var _slider = slider,
left = _slider.offset.left;
var div = slider.parent;
var x = e.pageX - left - parseInt(div.css('border-left-width'));
var x = e.pageX - left - Number.parseInt(div.css('border-left-width'));
if (x > SLIDERW) x = SLIDERW;
if (x <= 0) x = 0;
var posx = x - 5;
@ -23775,7 +23775,7 @@
break;
case 'opacity':
$this.paint.alpha = parseInt(x * 100);
$this.paint.alpha = Number.parseInt(x * 100);
previewRect.setAttribute('fill-opacity', x);
break;
@ -24226,9 +24226,9 @@
this.spinCfg = {
// min: cfg.min ? Number(cfg.min) : null,
// max: cfg.max ? Number(cfg.max) : null,
min: !isNaN(parseFloat(cfg.min)) ? Number(cfg.min) : null,
min: !isNaN(Number.parseFloat(cfg.min)) ? Number(cfg.min) : null,
// Fixes bug with min:0
max: !isNaN(parseFloat(cfg.max)) ? Number(cfg.max) : null,
max: !isNaN(Number.parseFloat(cfg.max)) ? Number(cfg.max) : null,
step: cfg.step ? Number(cfg.step) : 1,
stepfunc: cfg.stepfunc || false,
page: cfg.page ? Number(cfg.page) : 10,
@ -25307,12 +25307,12 @@
case alpha && alpha.get(0):
switch (e.keyCode) {
case 38:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) + 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) + 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
case 40:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) - 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) - 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
}
@ -25429,7 +25429,7 @@
case ahex && ahex.get(0):
ahex.val(ahex.val().replace(/[^a-fA-F\d]/g, '').toLowerCase().substring(0, 2));
color.val('a', !isNullish$1(ahex.val()) ? parseInt(ahex.val(), 16) : null, e.target);
color.val('a', !isNullish$1(ahex.val()) ? Number.parseInt(ahex.val(), 16) : null, e.target);
break;
}
@ -26099,7 +26099,7 @@
* @returns {Integer}
*/
hexToInt: function hexToInt(hex) {
return parseInt(hex, 16);
return Number.parseInt(hex, 16);
},
/**
@ -26142,7 +26142,7 @@
if (!hsv.s) hsv.h = 0;else {
delta = max - min;
if (r === max) hsv.h = (g - b) / delta;else if (g === max) hsv.h = 2 + (b - r) / delta;else hsv.h = 4 + (r - g) / delta;
hsv.h = parseInt(hsv.h * 60);
hsv.h = Number.parseInt(hsv.h * 60);
if (hsv.h < 0) hsv.h += 360;
}
hsv.s = hsv.s * 100 | 0;
@ -26314,7 +26314,7 @@
settings.window.liveUpdate = false; // Basic control binding for inline use - You will need to override the liveCallback or commitCallback function to retrieve results
}
var isLessThanIE7 = parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
var isLessThanIE7 = Number.parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
// set color mode and update visuals for the new color mode
/**
@ -27143,8 +27143,8 @@
function moveBarMouseDown(e) {
// const {element} = settings.window, // local copies for YUI compressor
// {page} = settings.window;
elementStartX = parseInt(container.css('left'));
elementStartY = parseInt(container.css('top'));
elementStartX = Number.parseInt(container.css('left'));
elementStartY = Number.parseInt(container.css('top'));
pageStartX = e.pageX;
pageStartY = e.pageY; // bind events to document to move window - we will unbind these on mouseup
@ -27326,9 +27326,9 @@
});
container.css( // positions must be set and display set to absolute before source code injection or IE will size the container to fit the window
{
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + parseInt(win.position.x) + 'px',
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + Number.parseInt(win.position.x) + 'px',
position: 'absolute',
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + parseInt(win.position.y) + 'px'
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + Number.parseInt(win.position.y) + 'px'
});
} else {
container = $(that);
@ -29781,7 +29781,7 @@
var cur = el.data('orig_margin-' + s);
if (isNullish(cur)) {
cur = parseInt(el.css('margin-' + s)); // Cache the original margin
cur = Number.parseInt(el.css('margin-' + s)); // Cache the original margin
el.data('orig_margin-' + s, cur);
}
@ -30852,7 +30852,7 @@
$hcanv.siblings().remove(); // Create multiple canvases when necessary (due to browser limits)
if (rulerLen >= limit) {
ctxArrNum = parseInt(rulerLen / limit) + 1;
ctxArrNum = Number.parseInt(rulerLen / limit) + 1;
ctxArr = [];
ctxArr[0] = ctx;
var copy = void 0;
@ -31826,7 +31826,7 @@
options = tool;
} else {
// If flyout is selected, allow shift key to iterate through subitems
j = parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
j = Number.parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
options = allHolders[opts.parent][j + 1] || holders[opts.parent][0];
}
@ -32654,7 +32654,7 @@
var changeRotationAngle = function changeRotationAngle(ctl) {
svgCanvas.setRotationAngle(ctl.value);
$$b('#tool_reorient').toggleClass('disabled', parseInt(ctl.value) === 0);
$$b('#tool_reorient').toggleClass('disabled', Number.parseInt(ctl.value) === 0);
};
/**
* @param {external:jQuery.fn.SpinButton} ctl Spin Button
@ -33093,7 +33093,7 @@
return;
}
var perc = parseInt($$b(this).text().split('%')[0]);
var perc = Number.parseInt($$b(this).text().split('%')[0]);
changeOpacity(false, perc);
}, true); // For slider usage, see: http://jqueryui.com/demos/slider/
@ -33135,7 +33135,7 @@
zoomChanged(window, val);
} else {
changeZoom({
value: parseFloat(item.text())
value: Number.parseFloat(item.text())
});
}
}, true);
@ -33602,7 +33602,7 @@
step *= -1;
}
var angle = parseFloat($$b('#angle').val()) + step;
var angle = Number.parseFloat($$b('#angle').val()) + step;
svgCanvas.setRotationAngle(angle);
updateContextPanel();
};
@ -33783,7 +33783,7 @@
openExportWindow();
}
quality = parseInt($$b('#image-slider').val()) / 100;
quality = Number.parseInt($$b('#image-slider').val()) / 100;
/* const results = */
_context9.next = 16;
@ -34531,7 +34531,7 @@
default:
{
this._paintOpacity = parseFloat(selectedElement.getAttribute(type + '-opacity'));
this._paintOpacity = Number.parseFloat(selectedElement.getAttribute(type + '-opacity'));
if (isNaN(this._paintOpacity)) {
this._paintOpacity = 1.0;
@ -34874,8 +34874,8 @@
var rulerX = $$b('#ruler_x');
$$b('#sidepanels').width('+=' + delta);
$$b('#layerpanel').width('+=' + delta);
rulerX.css('right', parseInt(rulerX.css('right')) + delta);
workarea.css('right', parseInt(workarea.css('right')) + delta);
rulerX.css('right', Number.parseInt(rulerX.css('right')) + delta);
workarea.css('right', Number.parseInt(workarea.css('right')) + delta);
svgCanvas.runExtensions('workareaResized');
};
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -258,7 +258,7 @@
}
return bits.map(function (b) {
return parseInt(b);
return Number.parseInt(b);
});
}
}, {
@ -271,7 +271,7 @@
}
return bits.map(function (b) {
return parseInt(b, 16);
return Number.parseInt(b, 16);
});
}
}, {
@ -284,7 +284,7 @@
}
return bits.map(function (b) {
return parseInt(b + b, 16);
return Number.parseInt(b + b, 16);
});
}
}];
@ -742,7 +742,7 @@
}
if (attributeIsNotEmpty(node, 'stroke-width')) {
pdf.setLineWidth(k * parseInt(node.getAttribute('stroke-width')));
pdf.setLineWidth(k * Number.parseInt(node.getAttribute('stroke-width')));
}
var strokeColor = node.getAttribute('stroke');
@ -776,22 +776,22 @@
break;
case 'line':
pdf.line(k * parseInt(node.getAttribute('x1')), k * parseInt(node.getAttribute('y1')), k * parseInt(node.getAttribute('x2')), k * parseInt(node.getAttribute('y2')));
pdf.line(k * Number.parseInt(node.getAttribute('x1')), k * Number.parseInt(node.getAttribute('y1')), k * Number.parseInt(node.getAttribute('x2')), k * Number.parseInt(node.getAttribute('y2')));
removeAttributes(node, pdfSvgAttr.line);
break;
case 'rect':
pdf.rect(k * parseInt(node.getAttribute('x')), k * parseInt(node.getAttribute('y')), k * parseInt(node.getAttribute('width')), k * parseInt(node.getAttribute('height')), colorMode);
pdf.rect(k * Number.parseInt(node.getAttribute('x')), k * Number.parseInt(node.getAttribute('y')), k * Number.parseInt(node.getAttribute('width')), k * Number.parseInt(node.getAttribute('height')), colorMode);
removeAttributes(node, pdfSvgAttr.rect);
break;
case 'ellipse':
pdf.ellipse(k * parseInt(node.getAttribute('cx')), k * parseInt(node.getAttribute('cy')), k * parseInt(node.getAttribute('rx')), k * parseInt(node.getAttribute('ry')), colorMode);
pdf.ellipse(k * Number.parseInt(node.getAttribute('cx')), k * Number.parseInt(node.getAttribute('cy')), k * Number.parseInt(node.getAttribute('rx')), k * Number.parseInt(node.getAttribute('ry')), colorMode);
removeAttributes(node, pdfSvgAttr.ellipse);
break;
case 'circle':
pdf.circle(k * parseInt(node.getAttribute('cx')), k * parseInt(node.getAttribute('cy')), k * parseInt(node.getAttribute('r')), colorMode);
pdf.circle(k * Number.parseInt(node.getAttribute('cx')), k * Number.parseInt(node.getAttribute('cy')), k * Number.parseInt(node.getAttribute('r')), colorMode);
removeAttributes(node, pdfSvgAttr.circle);
break;
@ -892,7 +892,7 @@
}
pdf.setFontType(fontType);
var pdfFontSize = node.hasAttribute('font-size') ? parseInt(node.getAttribute('font-size')) : 16;
var pdfFontSize = node.hasAttribute('font-size') ? Number.parseInt(node.getAttribute('font-size')) : 16;
/**
*
* @param {Element} elem
@ -948,8 +948,8 @@
break;
}
x = parseInt(node.getAttribute('x')) - xOffset;
y = parseInt(node.getAttribute('y'));
x = Number.parseInt(node.getAttribute('x')) - xOffset;
y = Number.parseInt(node.getAttribute('y'));
} // console.log('fontSize:', pdfFontSize, 'text:', node.textContent);

View File

@ -3404,7 +3404,7 @@ var SvgCanvas = (function () {
var mtx = svgroot.createSVGMatrix();
Object.values(valArr).forEach(function (item, i) {
valArr[i] = parseFloat(item);
valArr[i] = Number.parseFloat(item);
if (name === 'matrix') {
mtx[letters[i]] = valArr[i];
@ -3813,7 +3813,7 @@ var SvgCanvas = (function () {
return shortFloat(val[0]) + ',' + shortFloat(val[1]);
}
return parseFloat(val).toFixed(digits) - 0;
return Number.parseFloat(val).toFixed(digits) - 0;
};
/**
* Converts the number to given unit or baseUnit.
@ -5009,8 +5009,8 @@ var SvgCanvas = (function () {
min = min || 0;
max = max || tlist.numberOfItems - 1;
min = parseInt(min);
max = parseInt(max);
min = Number.parseInt(min);
max = Number.parseInt(max);
if (min > max) {
var temp = max;
@ -7290,7 +7290,7 @@ var SvgCanvas = (function () {
if (id.substr(0, 14) === 'pathpointgrip_') {
// Select this point
curPt = path.cur_pt = parseInt(id.substr(14));
curPt = path.cur_pt = Number.parseInt(id.substr(14));
path.dragging = [startX, startY];
var seg = path.segs[curPt]; // only clear selection if shift is not pressed (otherwise, add
// node to selection)
@ -8751,8 +8751,8 @@ var SvgCanvas = (function () {
var bb = {
width: width,
height: height,
x: x + parseFloat(selected.getAttribute('x') || 0),
y: y + parseFloat(selected.getAttribute('y') || 0)
x: x + Number.parseFloat(selected.getAttribute('x') || 0),
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
};
ret = bb;
}
@ -9628,7 +9628,7 @@ var SvgCanvas = (function () {
return 1;
}
return parseFloat(opacity);
return Number.parseFloat(opacity);
}
/**
* Sets the opacity of this layer. If opacity is not a value between 0.0 and 1.0,
@ -10215,7 +10215,7 @@ var SvgCanvas = (function () {
} // extract the obj_num of this id
var num = parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
var num = Number.parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
// then return false.
if (typeof num !== 'number' || num <= 0 || this.releasedNums.includes(num)) {
@ -11702,8 +11702,8 @@ var SvgCanvas = (function () {
// therefore [T'] = [M_inv][T][M]
var existing = transformListToTransform(selected).matrix,
tNew = matrixMultiply(existing.inverse(), m, existing);
changes.x = parseFloat(changes.x) + tNew.e;
changes.y = parseFloat(changes.y) + tNew.f;
changes.x = Number.parseFloat(changes.x) + tNew.e;
changes.y = Number.parseFloat(changes.y) + tNew.f;
} else {
// we just absorb all matrices into the element and don't do any remapping
var chlist = getTransformList(selected);
@ -13967,7 +13967,7 @@ var SvgCanvas = (function () {
var round = this.round = function (val) {
return parseInt(val * currentZoom) / currentZoom;
return Number.parseInt(val * currentZoom) / currentZoom;
};
init$6(curConfig,
@ -14720,8 +14720,8 @@ var SvgCanvas = (function () {
if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += parseInt(svgcontent.getAttribute('y'));
rubberBBox.x += Number.parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += Number.parseInt(svgcontent.getAttribute('y'));
resultList = svgroot.getIntersectionList(rubberBBox, parent);
}
}
@ -15016,7 +15016,7 @@ var SvgCanvas = (function () {
this.setRotationAngle = function (val, preventUndo) {
// ensure val is the proper type
val = parseFloat(val);
val = Number.parseFloat(val);
var elem = selectedElements[0];
var oldTransform = elem.getAttribute('transform');
var bbox = getBBox(elem);
@ -16587,7 +16587,7 @@ var SvgCanvas = (function () {
var aniDur = 0.2;
var cAni;
if (opacAni.beginElement && parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
if (opacAni.beginElement && Number.parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
cAni = $$8(opacAni).clone().attr({
to: curShape.opacity,
dur: aniDur

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3292,7 +3292,7 @@
var mtx = svgroot.createSVGMatrix();
Object.values(valArr).forEach(function (item, i) {
valArr[i] = parseFloat(item);
valArr[i] = Number.parseFloat(item);
if (name === 'matrix') {
mtx[letters[i]] = valArr[i];
@ -3702,7 +3702,7 @@
return shortFloat(val[0]) + ',' + shortFloat(val[1]);
}
return parseFloat(val).toFixed(digits) - 0;
return Number.parseFloat(val).toFixed(digits) - 0;
};
/**
* Converts the number to given unit or baseUnit.
@ -4940,8 +4940,8 @@
min = min || 0;
max = max || tlist.numberOfItems - 1;
min = parseInt(min);
max = parseInt(max);
min = Number.parseInt(min);
max = Number.parseInt(max);
if (min > max) {
var temp = max;
@ -7221,7 +7221,7 @@
if (id.substr(0, 14) === 'pathpointgrip_') {
// Select this point
curPt = path.cur_pt = parseInt(id.substr(14));
curPt = path.cur_pt = Number.parseInt(id.substr(14));
path.dragging = [startX, startY];
var seg = path.segs[curPt]; // only clear selection if shift is not pressed (otherwise, add
// node to selection)
@ -8682,8 +8682,8 @@
var bb = {
width: width,
height: height,
x: x + parseFloat(selected.getAttribute('x') || 0),
y: y + parseFloat(selected.getAttribute('y') || 0)
x: x + Number.parseFloat(selected.getAttribute('x') || 0),
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
};
ret = bb;
}
@ -10151,7 +10151,7 @@
return 1;
}
return parseFloat(opacity);
return Number.parseFloat(opacity);
}
/**
* Sets the opacity of this layer. If opacity is not a value between 0.0 and 1.0,
@ -10738,7 +10738,7 @@
} // extract the obj_num of this id
var num = parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
var num = Number.parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
// then return false.
if (typeof num !== 'number' || num <= 0 || this.releasedNums.includes(num)) {
@ -12015,8 +12015,8 @@
// therefore [T'] = [M_inv][T][M]
var existing = transformListToTransform(selected).matrix,
tNew = matrixMultiply(existing.inverse(), m, existing);
changes.x = parseFloat(changes.x) + tNew.e;
changes.y = parseFloat(changes.y) + tNew.f;
changes.x = Number.parseFloat(changes.x) + tNew.e;
changes.y = Number.parseFloat(changes.y) + tNew.f;
} else {
// we just absorb all matrices into the element and don't do any remapping
var chlist = getTransformList(selected);
@ -14280,7 +14280,7 @@
var round = this.round = function (val) {
return parseInt(val * currentZoom) / currentZoom;
return Number.parseInt(val * currentZoom) / currentZoom;
};
init$6(curConfig,
@ -15033,8 +15033,8 @@
if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += parseInt(svgcontent.getAttribute('y'));
rubberBBox.x += Number.parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += Number.parseInt(svgcontent.getAttribute('y'));
resultList = svgroot.getIntersectionList(rubberBBox, parent);
}
}
@ -15329,7 +15329,7 @@
this.setRotationAngle = function (val, preventUndo) {
// ensure val is the proper type
val = parseFloat(val);
val = Number.parseFloat(val);
var elem = selectedElements[0];
var oldTransform = elem.getAttribute('transform');
var bbox = getBBox(elem);
@ -16900,7 +16900,7 @@
var aniDur = 0.2;
var cAni;
if (opacAni.beginElement && parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
if (opacAni.beginElement && Number.parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
cAni = $$9(opacAni).clone().attr({
to: curShape.opacity,
dur: aniDur
@ -23236,7 +23236,7 @@
for (var i = 0; i < 6; i += 2) {
// const ch = color.substr(i, 2);
var inv = (255 - parseInt(color.substr(i, 2), 16)).toString(16);
var inv = (255 - Number.parseInt(color.substr(i, 2), 16)).toString(16);
if (inv.length < 2) inv = 0 + inv;
inverted += inv;
}
@ -23259,14 +23259,14 @@
}
}
var x1 = parseFloat(grad.getAttribute('x1') || 0.0),
y1 = parseFloat(grad.getAttribute('y1') || 0.0),
x2 = parseFloat(grad.getAttribute('x2') || 1.0),
y2 = parseFloat(grad.getAttribute('y2') || 0.0);
var cx = parseFloat(grad.getAttribute('cx') || 0.5),
cy = parseFloat(grad.getAttribute('cy') || 0.5),
fx = parseFloat(grad.getAttribute('fx') || cx),
fy = parseFloat(grad.getAttribute('fy') || cy);
var x1 = Number.parseFloat(grad.getAttribute('x1') || 0.0),
y1 = Number.parseFloat(grad.getAttribute('y1') || 0.0),
x2 = Number.parseFloat(grad.getAttribute('x2') || 1.0),
y2 = Number.parseFloat(grad.getAttribute('y2') || 0.0);
var cx = Number.parseFloat(grad.getAttribute('cx') || 0.5),
cy = Number.parseFloat(grad.getAttribute('cy') || 0.5),
fx = Number.parseFloat(grad.getAttribute('fx') || cx),
fy = Number.parseFloat(grad.getAttribute('fy') || cy);
var previewRect = mkElem('rect', {
id: id + '_jgraduate_rect',
x: MARGINX,
@ -23329,7 +23329,7 @@
attrInput[attr] = $('#' + id + '_jGraduate_' + attr).val(attrval).change(function () {
// TODO: Support values < 0 and > 1 (zoomable preview?)
if (isNaN(parseFloat(this.value)) || this.value < 0) {
if (isNaN(Number.parseFloat(this.value)) || this.value < 0) {
this.value = 0.0;
} else if (this.value > 1) {
this.value = 1.0;
@ -23399,7 +23399,7 @@
var stopOpacity = Number(stop.getAttribute('stop-opacity')) || 1;
var stopColor = stop.getAttribute('stop-color') || 1;
var thisAlpha = (parseFloat(stopOpacity) * 255).toString(16);
var thisAlpha = (Number.parseFloat(stopOpacity) * 255).toString(16);
while (thisAlpha.length < 2) {
thisAlpha = '0' + thisAlpha;
@ -23757,7 +23757,7 @@
var _slider = slider,
left = _slider.offset.left;
var div = slider.parent;
var x = e.pageX - left - parseInt(div.css('border-left-width'));
var x = e.pageX - left - Number.parseInt(div.css('border-left-width'));
if (x > SLIDERW) x = SLIDERW;
if (x <= 0) x = 0;
var posx = x - 5;
@ -23772,7 +23772,7 @@
break;
case 'opacity':
$this.paint.alpha = parseInt(x * 100);
$this.paint.alpha = Number.parseInt(x * 100);
previewRect.setAttribute('fill-opacity', x);
break;
@ -24223,9 +24223,9 @@
this.spinCfg = {
// min: cfg.min ? Number(cfg.min) : null,
// max: cfg.max ? Number(cfg.max) : null,
min: !isNaN(parseFloat(cfg.min)) ? Number(cfg.min) : null,
min: !isNaN(Number.parseFloat(cfg.min)) ? Number(cfg.min) : null,
// Fixes bug with min:0
max: !isNaN(parseFloat(cfg.max)) ? Number(cfg.max) : null,
max: !isNaN(Number.parseFloat(cfg.max)) ? Number(cfg.max) : null,
step: cfg.step ? Number(cfg.step) : 1,
stepfunc: cfg.stepfunc || false,
page: cfg.page ? Number(cfg.page) : 10,
@ -25304,12 +25304,12 @@
case alpha && alpha.get(0):
switch (e.keyCode) {
case 38:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) + 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) + 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
case 40:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) - 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) - 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
}
@ -25426,7 +25426,7 @@
case ahex && ahex.get(0):
ahex.val(ahex.val().replace(/[^a-fA-F\d]/g, '').toLowerCase().substring(0, 2));
color.val('a', !isNullish$1(ahex.val()) ? parseInt(ahex.val(), 16) : null, e.target);
color.val('a', !isNullish$1(ahex.val()) ? Number.parseInt(ahex.val(), 16) : null, e.target);
break;
}
@ -26096,7 +26096,7 @@
* @returns {Integer}
*/
hexToInt: function hexToInt(hex) {
return parseInt(hex, 16);
return Number.parseInt(hex, 16);
},
/**
@ -26139,7 +26139,7 @@
if (!hsv.s) hsv.h = 0;else {
delta = max - min;
if (r === max) hsv.h = (g - b) / delta;else if (g === max) hsv.h = 2 + (b - r) / delta;else hsv.h = 4 + (r - g) / delta;
hsv.h = parseInt(hsv.h * 60);
hsv.h = Number.parseInt(hsv.h * 60);
if (hsv.h < 0) hsv.h += 360;
}
hsv.s = hsv.s * 100 | 0;
@ -26311,7 +26311,7 @@
settings.window.liveUpdate = false; // Basic control binding for inline use - You will need to override the liveCallback or commitCallback function to retrieve results
}
var isLessThanIE7 = parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
var isLessThanIE7 = Number.parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
// set color mode and update visuals for the new color mode
/**
@ -27140,8 +27140,8 @@
function moveBarMouseDown(e) {
// const {element} = settings.window, // local copies for YUI compressor
// {page} = settings.window;
elementStartX = parseInt(container.css('left'));
elementStartY = parseInt(container.css('top'));
elementStartX = Number.parseInt(container.css('left'));
elementStartY = Number.parseInt(container.css('top'));
pageStartX = e.pageX;
pageStartY = e.pageY; // bind events to document to move window - we will unbind these on mouseup
@ -27323,9 +27323,9 @@
});
container.css( // positions must be set and display set to absolute before source code injection or IE will size the container to fit the window
{
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + parseInt(win.position.x) + 'px',
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + Number.parseInt(win.position.x) + 'px',
position: 'absolute',
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + parseInt(win.position.y) + 'px'
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + Number.parseInt(win.position.y) + 'px'
});
} else {
container = $(that);
@ -29778,7 +29778,7 @@
var cur = el.data('orig_margin-' + s);
if (isNullish(cur)) {
cur = parseInt(el.css('margin-' + s)); // Cache the original margin
cur = Number.parseInt(el.css('margin-' + s)); // Cache the original margin
el.data('orig_margin-' + s, cur);
}
@ -30849,7 +30849,7 @@
$hcanv.siblings().remove(); // Create multiple canvases when necessary (due to browser limits)
if (rulerLen >= limit) {
ctxArrNum = parseInt(rulerLen / limit) + 1;
ctxArrNum = Number.parseInt(rulerLen / limit) + 1;
ctxArr = [];
ctxArr[0] = ctx;
var copy = void 0;
@ -31823,7 +31823,7 @@
options = tool;
} else {
// If flyout is selected, allow shift key to iterate through subitems
j = parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
j = Number.parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
options = allHolders[opts.parent][j + 1] || holders[opts.parent][0];
}
@ -32651,7 +32651,7 @@
var changeRotationAngle = function changeRotationAngle(ctl) {
svgCanvas.setRotationAngle(ctl.value);
$$b('#tool_reorient').toggleClass('disabled', parseInt(ctl.value) === 0);
$$b('#tool_reorient').toggleClass('disabled', Number.parseInt(ctl.value) === 0);
};
/**
* @param {external:jQuery.fn.SpinButton} ctl Spin Button
@ -33090,7 +33090,7 @@
return;
}
var perc = parseInt($$b(this).text().split('%')[0]);
var perc = Number.parseInt($$b(this).text().split('%')[0]);
changeOpacity(false, perc);
}, true); // For slider usage, see: http://jqueryui.com/demos/slider/
@ -33132,7 +33132,7 @@
zoomChanged(window, val);
} else {
changeZoom({
value: parseFloat(item.text())
value: Number.parseFloat(item.text())
});
}
}, true);
@ -33599,7 +33599,7 @@
step *= -1;
}
var angle = parseFloat($$b('#angle').val()) + step;
var angle = Number.parseFloat($$b('#angle').val()) + step;
svgCanvas.setRotationAngle(angle);
updateContextPanel();
};
@ -33780,7 +33780,7 @@
openExportWindow();
}
quality = parseInt($$b('#image-slider').val()) / 100;
quality = Number.parseInt($$b('#image-slider').val()) / 100;
/* const results = */
_context9.next = 16;
@ -34528,7 +34528,7 @@
default:
{
this._paintOpacity = parseFloat(selectedElement.getAttribute(type + '-opacity'));
this._paintOpacity = Number.parseFloat(selectedElement.getAttribute(type + '-opacity'));
if (isNaN(this._paintOpacity)) {
this._paintOpacity = 1.0;
@ -34871,8 +34871,8 @@
var rulerX = $$b('#ruler_x');
$$b('#sidepanels').width('+=' + delta);
$$b('#layerpanel').width('+=' + delta);
rulerX.css('right', parseInt(rulerX.css('right')) + delta);
workarea.css('right', parseInt(workarea.css('right')) + delta);
rulerX.css('right', Number.parseInt(rulerX.css('right')) + delta);
workarea.css('right', Number.parseInt(workarea.css('right')) + delta);
svgCanvas.runExtensions('workareaResized');
};
/**

491
package-lock.json generated
View File

@ -1622,9 +1622,9 @@
}
},
"@fintechstudios/eslint-plugin-chai-as-promised": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/@fintechstudios/eslint-plugin-chai-as-promised/-/eslint-plugin-chai-as-promised-3.0.1.tgz",
"integrity": "sha512-rQHxp/KjuQOhnI9mIcvAWaE/lzcNkmmoJuzToKNSUFI7hbQYqrM6Z8u1Axx83Gp48en6uDfMsQ5Fu11bPaW8Eg==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@fintechstudios/eslint-plugin-chai-as-promised/-/eslint-plugin-chai-as-promised-3.0.2.tgz",
"integrity": "sha512-mHavP4gRhtpLwpKkoGZ3GHnKhyeCc7CeSXWLbgehEKGQNRD97ye8jlrwda/Xfc74Xn7MtLG4CJgA3fTIK6bveQ==",
"dev": true
},
"@istanbuljs/load-nyc-config": {
@ -2352,12 +2352,6 @@
"integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==",
"dev": true
},
"axe-core": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-3.5.2.tgz",
"integrity": "sha512-9wBDgdzbn06on6Xt+ay7EM4HV+NBOkeXhjK9DMezD8/qvJKeUTzheGHhM+U1uNaX4OvuIR4BePDStRLF7vyOfg==",
"dev": true
},
"babel-plugin-add-module-exports": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-1.0.2.tgz",
@ -4163,9 +4157,9 @@
}
},
"cypress-axe": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/cypress-axe/-/cypress-axe-0.6.0.tgz",
"integrity": "sha512-TOfGpWPvo0dE/arp9msUtMgckOMgOkwPigGcWSweeqfoUEOAp+4TtpwrCBGmdNbWtIBCvZ0g5VL0qMXb8yMjBA==",
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/cypress-axe/-/cypress-axe-0.8.1.tgz",
"integrity": "sha512-hX48+r5n7Ns7CHkn601Ag0JiCG1vby5+g7QhlP8X+mkiVYpTLpXAPiiaKFj9QTTCdZSI5+0UqwIxA+ShTsr5tA==",
"dev": true
},
"cypress-multi-reporters": {
@ -4957,9 +4951,9 @@
}
},
"eslint-module-utils": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.5.2.tgz",
"integrity": "sha512-LGScZ/JSlqGKiT8OC+cYRxseMjyqt6QO54nl281CK93unD89ijSeRV6An8Ci/2nvWVKe8K/Tqdm75RQoIOCr+Q==",
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz",
"integrity": "sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==",
"dev": true,
"requires": {
"debug": "^2.6.9",
@ -5150,9 +5144,9 @@
}
},
"eslint-plugin-import": {
"version": "2.20.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.20.1.tgz",
"integrity": "sha512-qQHgFOTjguR+LnYRoToeZWT62XM55MBVXObHM6SKFd1VzDcX/vqT1kAz8ssqigh5eMj8qXcRoXXGZpPP6RfdCw==",
"version": "2.20.2",
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.20.2.tgz",
"integrity": "sha512-FObidqpXrR8OnCh4iNsxy+WACztJLXAHBO5hK79T1Hc77PgQZkyDGA5Ag9xAvRpglvLNxhH/zSmZ70/pZ31dHg==",
"dev": true,
"requires": {
"array-includes": "^3.0.3",
@ -5285,9 +5279,9 @@
}
},
"eslint-plugin-node": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.0.0.tgz",
"integrity": "sha512-chUs/NVID+sknFiJzxoN9lM7uKSOEta8GC8365hw1nDfwIPIjjpRSwwPvQanWv8dt/pDe9EV4anmVSwdiSndNg==",
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz",
"integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==",
"dev": true,
"requires": {
"eslint-plugin-es": "^3.0.0",
@ -6078,6 +6072,12 @@
"pend": "~1.2.0"
}
},
"figgy-pudding": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz",
"integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==",
"dev": true
},
"figures": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz",
@ -6219,12 +6219,6 @@
"integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==",
"dev": true
},
"fn-name": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/fn-name/-/fn-name-2.0.1.tgz",
"integrity": "sha1-UhTXU3pNBqSjAcDMJi/rhBiAAuc=",
"dev": true
},
"for-in": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
@ -7975,12 +7969,6 @@
"integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==",
"dev": true
},
"is-hidden": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/is-hidden/-/is-hidden-1.1.3.tgz",
"integrity": "sha512-FFzhGKA9h59OFxeaJl0W5ILTYetI8WsdqdofKr69uLKZdV6hbDKxj8vkpG3L9uS/6Q/XYh1tkXm6xwRGFweETA==",
"dev": true
},
"is-installed-globally": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.1.tgz",
@ -8042,12 +8030,6 @@
"obj-props": "^1.0.0"
}
},
"is-object": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz",
"integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=",
"dev": true
},
"is-observable": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz",
@ -8342,9 +8324,9 @@
}
},
"jamilih": {
"version": "0.52.0",
"resolved": "https://registry.npmjs.org/jamilih/-/jamilih-0.52.0.tgz",
"integrity": "sha512-jhQrukq2zqXabZfhMYmuPajjef8PLXPEm2KTPz64sr6Pz7RrCOeNLGpsZ4bVm+FdGBzjdbZUyg4miswfVbjfbQ==",
"version": "0.52.2",
"resolved": "https://registry.npmjs.org/jamilih/-/jamilih-0.52.2.tgz",
"integrity": "sha512-lw128QVdnyN2QCAtVEcUnRBeyK7ndmlfJ8A79RR7NsJK6YaO/7ud+c33Axl2Uh3jOfsULC/wXvJcqutsVphuKw==",
"dev": true
},
"jest-worker": {
@ -8672,6 +8654,17 @@
"type-check": "~0.3.2"
}
},
"libnpmconfig": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/libnpmconfig/-/libnpmconfig-1.2.1.tgz",
"integrity": "sha512-9esX8rTQAHqarx6qeZqmGQKBNZR5OIbl/Ayr0qQDy3oXja2iFVQQI81R6GZ2a02bSNZ9p3YOGX1O6HHCb1X7kA==",
"dev": true,
"requires": {
"figgy-pudding": "^3.5.1",
"find-up": "^3.0.0",
"ini": "^1.3.5"
}
},
"license-badger": {
"version": "0.12.7",
"resolved": "https://registry.npmjs.org/license-badger/-/license-badger-0.12.7.tgz",
@ -8920,12 +8913,12 @@
}
},
"load-plugin": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/load-plugin/-/load-plugin-2.3.1.tgz",
"integrity": "sha512-dYB1lbwqHgPTrruy9glukCu8Ya9vzj6TMfouCtj2H/GuJ+8syioisgKTBPxnCi6m8K8jINKfTOxOHngFkUYqHw==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/load-plugin/-/load-plugin-3.0.0.tgz",
"integrity": "sha512-od7eKCCZ62ITvFf8nHHrIiYmgOHb4xVNDRDqxBWSaao5FZyyZVX8OmRCbwjDGPrSrgIulwPNyBsWCGnhiDC0oQ==",
"dev": true,
"requires": {
"npm-prefix": "^1.2.0",
"libnpmconfig": "^1.0.0",
"resolve-from": "^5.0.0"
},
"dependencies": {
@ -9239,10 +9232,13 @@
"dev": true
},
"markdown-table": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-1.1.3.tgz",
"integrity": "sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==",
"dev": true
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-2.0.0.tgz",
"integrity": "sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A==",
"dev": true,
"requires": {
"repeat-string": "^1.0.0"
}
},
"marked": {
"version": "0.8.2",
@ -9262,12 +9258,41 @@
}
},
"mdast-util-compact": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/mdast-util-compact/-/mdast-util-compact-1.0.4.tgz",
"integrity": "sha512-3YDMQHI5vRiS2uygEFYaqckibpJtKq5Sj2c8JioeOQBU6INpKbdWzfyLqFFnDwEcEnRFIdMsguzs5pC1Jp4Isg==",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/mdast-util-compact/-/mdast-util-compact-2.0.1.tgz",
"integrity": "sha512-7GlnT24gEwDrdAwEHrU4Vv5lLWrEer4KOkAiKT9nYstsTad7Oc1TwqT2zIMKRdZF7cTuaf+GA1E4Kv7jJh8mPA==",
"dev": true,
"requires": {
"unist-util-visit": "^1.1.0"
"unist-util-visit": "^2.0.0"
},
"dependencies": {
"unist-util-is": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
"integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ==",
"dev": true
},
"unist-util-visit": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
"integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
"unist-util-is": "^4.0.0",
"unist-util-visit-parents": "^3.0.0"
}
},
"unist-util-visit-parents": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
"integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
"unist-util-is": "^4.0.0"
}
}
}
},
"mdn-browser-compat-data": {
@ -10265,28 +10290,6 @@
"integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==",
"dev": true
},
"npm-prefix": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/npm-prefix/-/npm-prefix-1.2.0.tgz",
"integrity": "sha1-5hlFX3B0ulTMZtbQ033Z8b5ry8A=",
"dev": true,
"requires": {
"rc": "^1.1.0",
"shellsubstitute": "^1.1.0",
"untildify": "^2.1.0"
},
"dependencies": {
"untildify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/untildify/-/untildify-2.1.0.tgz",
"integrity": "sha1-F+soB5h/dpUunASF/DEdBqgmouA=",
"dev": true,
"requires": {
"os-homedir": "^1.0.0"
}
}
}
},
"npm-run-all": {
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz",
@ -10867,12 +10870,6 @@
"integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=",
"dev": true
},
"os-homedir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
"dev": true
},
"os-tmpdir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
@ -11756,14 +11753,14 @@
}
},
"remark": {
"version": "11.0.2",
"resolved": "https://registry.npmjs.org/remark/-/remark-11.0.2.tgz",
"integrity": "sha512-bh+eJgn8wgmbHmIBOuwJFdTVRVpl3fcVP6HxmpPWO0ULGP9Qkh6INJh0N5Uy7GqlV7DQYGoqaKiEIpM5LLvJ8w==",
"version": "12.0.0",
"resolved": "https://registry.npmjs.org/remark/-/remark-12.0.0.tgz",
"integrity": "sha512-oX4lMIS0csgk8AEbzY0h2jdR0ngiCHOpwwpxjmRa5TqAkeknY+tkhjRJGZqnCmvyuWh55/0SW5WY3R3nn3PH9A==",
"dev": true,
"requires": {
"remark-parse": "^7.0.0",
"remark-stringify": "^7.0.0",
"unified": "^8.2.0"
"remark-parse": "^8.0.0",
"remark-stringify": "^8.0.0",
"unified": "^9.0.0"
},
"dependencies": {
"is-buffer": {
@ -11778,55 +11775,107 @@
"integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
"dev": true
},
"remark-parse": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-7.0.2.tgz",
"integrity": "sha512-9+my0lQS80IQkYXsMA8Sg6m9QfXYJBnXjWYN5U+kFc5/n69t+XZVXU/ZBYr3cYH8FheEGf1v87rkFDhJ8bVgMA==",
"parse-entities": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz",
"integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==",
"dev": true,
"requires": {
"character-entities": "^1.0.0",
"character-entities-legacy": "^1.0.0",
"character-reference-invalid": "^1.0.0",
"is-alphanumerical": "^1.0.0",
"is-decimal": "^1.0.0",
"is-hexadecimal": "^1.0.0"
}
},
"remark-parse": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-8.0.0.tgz",
"integrity": "sha512-Ck14G1Ns/GEPXhSw6m1Uv28kMtVk63e59NyL+QlhBBwBdIUXROM6MPfBehPhW6TW2d73batMdZsKwuxl5i3tEA==",
"dev": true,
"requires": {
"ccount": "^1.0.0",
"collapse-white-space": "^1.0.2",
"is-alphabetical": "^1.0.0",
"is-decimal": "^1.0.0",
"is-whitespace-character": "^1.0.0",
"is-word-character": "^1.0.0",
"markdown-escapes": "^1.0.0",
"parse-entities": "^1.1.0",
"parse-entities": "^2.0.0",
"repeat-string": "^1.5.4",
"state-toggle": "^1.0.0",
"trim": "0.0.1",
"trim-trailing-lines": "^1.0.0",
"unherit": "^1.0.4",
"unist-util-remove-position": "^1.0.0",
"vfile-location": "^2.0.0",
"unist-util-remove-position": "^2.0.0",
"vfile-location": "^3.0.0",
"xtend": "^4.0.1"
}
},
"unified": {
"version": "8.4.2",
"resolved": "https://registry.npmjs.org/unified/-/unified-8.4.2.tgz",
"integrity": "sha512-JCrmN13jI4+h9UAyKEoGcDZV+i1E7BLFuG7OsaDvTXI5P0qhHX+vZO/kOhz9jn8HGENDKbwSeB0nVOg4gVStGA==",
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/unified/-/unified-9.0.0.tgz",
"integrity": "sha512-ssFo33gljU3PdlWLjNp15Inqb77d6JnJSfyplGJPT/a+fNRNyCBeveBAYJdO5khKdF6WVHa/yYCC7Xl6BDwZUQ==",
"dev": true,
"requires": {
"bail": "^1.0.0",
"extend": "^3.0.0",
"is-buffer": "^2.0.0",
"is-plain-obj": "^2.0.0",
"trough": "^1.0.0",
"vfile": "^4.0.0"
}
},
"unist-util-is": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
"integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ==",
"dev": true
},
"unist-util-remove-position": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-2.0.1.tgz",
"integrity": "sha512-fDZsLYIe2uT+oGFnuZmy73K6ZxOPG/Qcm+w7jbEjaFcJgbQ6cqjs/eSPzXhsmGpAsWPkqZM9pYjww5QTn3LHMA==",
"dev": true,
"requires": {
"unist-util-visit": "^2.0.0"
}
},
"unist-util-stringify-position": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.2.tgz",
"integrity": "sha512-nK5n8OGhZ7ZgUwoUbL8uiVRwAbZyzBsB/Ddrlbu6jwwubFza4oe15KlyEaLNMXQW1svOQq4xesUeqA85YrIUQA==",
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",
"integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",
"dev": true,
"requires": {
"@types/unist": "^2.0.2"
}
},
"unist-util-visit": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
"integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
"unist-util-is": "^4.0.0",
"unist-util-visit-parents": "^3.0.0"
}
},
"unist-util-visit-parents": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
"integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
"unist-util-is": "^4.0.0"
}
},
"vfile": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/vfile/-/vfile-4.0.2.tgz",
"integrity": "sha512-yhoTU5cDMSsaeaMfJ5g0bUKYkYmZhAh9fn9TZicxqn+Cw4Z439il2v3oT9S0yjlpqlI74aFOQCt3nOV+pxzlkw==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/vfile/-/vfile-4.1.0.tgz",
"integrity": "sha512-BaTPalregj++64xbGK6uIlsurN3BCRNM/P2Pg8HezlGzKd1O9PrwIac6bd9Pdx2uTb0QHoioZ+rXKolbVXEgJg==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
@ -11836,10 +11885,16 @@
"vfile-message": "^2.0.0"
}
},
"vfile-location": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
"integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ==",
"dev": true
},
"vfile-message": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.2.tgz",
"integrity": "sha512-gNV2Y2fDvDOOqq8bEe7cF3DXU6QgV4uA9zMR2P8tix11l1r7zju3zry3wZ8sx+BEfuO6WQ7z2QzfWTvqHQiwsA==",
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz",
"integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
@ -11849,14 +11904,14 @@
}
},
"remark-cli": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/remark-cli/-/remark-cli-7.0.1.tgz",
"integrity": "sha512-CUjBLLSbEay0mNwOO+pptnLIoS8UB6cHlhZVpTRKbtbIcw6YEzEfD7jGjW1HCA8lZK87IfY3/DuWE6DlXu+hfg==",
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/remark-cli/-/remark-cli-8.0.0.tgz",
"integrity": "sha512-5iRrk8ad+dU4espDl60H7ANhXqoaEXYsIyL8Mau0lDN6pP7QMAZsZTCX2XdoCfKfKEpiOggA7CHv43HkyVEppA==",
"dev": true,
"requires": {
"markdown-extensions": "^1.1.0",
"remark": "^11.0.0",
"unified-args": "^7.0.0"
"remark": "^12.0.0",
"unified-args": "^8.0.0"
}
},
"remark-frontmatter": {
@ -11870,15 +11925,44 @@
}
},
"remark-lint-ordered-list-marker-value": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/remark-lint-ordered-list-marker-value/-/remark-lint-ordered-list-marker-value-1.0.5.tgz",
"integrity": "sha512-eKepbNNfu9rEuG8WvV0sc7B+KiPMgq5Nc9baAxL9Hi6mhpj347YFWXxJUNttSINS13YTpnHxPvXmF9SzhjFKNQ==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/remark-lint-ordered-list-marker-value/-/remark-lint-ordered-list-marker-value-2.0.0.tgz",
"integrity": "sha512-5ASe7Bgb/npEuLvdQO9AtldVCEVCAKExGSqC3RJ7esy3rI5y8B0Jo383cvvCICVdQrHFIIlO3JAPhINSGNVfig==",
"dev": true,
"requires": {
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^1.1.1"
"unist-util-visit": "^2.0.0"
},
"dependencies": {
"unist-util-is": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
"integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ==",
"dev": true
},
"unist-util-visit": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
"integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
"unist-util-is": "^4.0.0",
"unist-util-visit-parents": "^3.0.0"
}
},
"unist-util-visit-parents": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
"integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
"unist-util-is": "^4.0.0"
}
}
}
},
"remark-parse": {
@ -11905,9 +11989,9 @@
}
},
"remark-stringify": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-7.0.4.tgz",
"integrity": "sha512-qck+8NeA1D0utk1ttKcWAoHRrJxERYQzkHDyn+pF5Z4whX1ug98uCNPPSeFgLSaNERRxnD6oxIug6DzZQth6Pg==",
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-8.0.0.tgz",
"integrity": "sha512-cABVYVloFH+2ZI5bdqzoOmemcz/ZuhQSH6W6ZNYnLojAUUn3xtX7u+6BpnYp35qHoGr2NFBsERV14t4vCIeW8w==",
"dev": true,
"requires": {
"ccount": "^1.0.0",
@ -11916,14 +12000,30 @@
"is-whitespace-character": "^1.0.0",
"longest-streak": "^2.0.1",
"markdown-escapes": "^1.0.0",
"markdown-table": "^1.1.0",
"mdast-util-compact": "^1.0.0",
"parse-entities": "^1.0.2",
"markdown-table": "^2.0.0",
"mdast-util-compact": "^2.0.0",
"parse-entities": "^2.0.0",
"repeat-string": "^1.5.4",
"state-toggle": "^1.0.0",
"stringify-entities": "^2.0.0",
"stringify-entities": "^3.0.0",
"unherit": "^1.0.4",
"xtend": "^4.0.1"
},
"dependencies": {
"parse-entities": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz",
"integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==",
"dev": true,
"requires": {
"character-entities": "^1.0.0",
"character-entities-legacy": "^1.0.0",
"character-reference-invalid": "^1.0.0",
"is-alphanumerical": "^1.0.0",
"is-decimal": "^1.0.0",
"is-hexadecimal": "^1.0.0"
}
}
}
},
"remove-trailing-separator": {
@ -12156,9 +12256,9 @@
}
},
"rollup": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.2.0.tgz",
"integrity": "sha512-iAu/j9/WJ0i+zT0sAMuQnsEbmOKzdQ4Yxu5rbPs9aUCyqveI1Kw3H4Fi9NWfCOpb8luEySD2lDyFWL9CrLE8iw==",
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.3.0.tgz",
"integrity": "sha512-nIq2Z9YwNbEfqTlAXe/tVl8CwUsjX/8Q5Jxlx+JRoYCu5keKLc6k0zyt11sM6WtCDxhmmJEIosFy9y26ZFRx6w==",
"dev": true,
"requires": {
"fsevents": "~2.1.2"
@ -12420,12 +12520,6 @@
"integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==",
"dev": true
},
"shellsubstitute": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/shellsubstitute/-/shellsubstitute-1.2.0.tgz",
"integrity": "sha1-5PcCpQxRiw9v6YRRiQ1wWvKba3A=",
"dev": true
},
"signal-exit": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
@ -12920,9 +13014,9 @@
}
},
"stringify-entities": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-2.0.0.tgz",
"integrity": "sha512-fqqhZzXyAM6pGD9lky/GOPq6V4X0SeTAFBl0iXb/BzOegl40gpf/bV3QQP7zULNYvjr6+Dx8SCaDULjVoOru0A==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-3.0.0.tgz",
"integrity": "sha512-h7NJJIssprqlyjHT2eQt2W1F+MCcNmwPGlKb0bWEdET/3N44QN3QbUF/ueKCgAssyKRZ3Br9rQ7FcXjHr0qLHw==",
"dev": true,
"requires": {
"character-entities-html4": "^1.0.0",
@ -13354,9 +13448,9 @@
}
},
"vfile": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/vfile/-/vfile-4.0.3.tgz",
"integrity": "sha512-lREgT5sF05TQk68LO6APy0In+TkFGnFEgKChK2+PHIaTrFQ9oHCKXznZ7VILwgYVBcl0gv4lGATFZBLhi2kVQg==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/vfile/-/vfile-4.1.0.tgz",
"integrity": "sha512-BaTPalregj++64xbGK6uIlsurN3BCRNM/P2Pg8HezlGzKd1O9PrwIac6bd9Pdx2uTb0QHoioZ+rXKolbVXEgJg==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
@ -13367,9 +13461,9 @@
}
},
"vfile-message": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.3.tgz",
"integrity": "sha512-qQg/2z8qnnBHL0psXyF72kCjb9YioIynvyltuNKFaUhRtqTIcIMP3xnBaPzirVZNuBrUe1qwFciSx2yApa4byw==",
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz",
"integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==",
"dev": true,
"requires": {
"@types/unist": "^2.0.0",
@ -13622,21 +13716,31 @@
}
},
"unified-args": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/unified-args/-/unified-args-7.1.0.tgz",
"integrity": "sha512-soi9Rn7l5c1g0RfElSCHMwaxeiclSI0EsS3uZmMPUOfwMeeeZjLpNmHAowV9iSlQh59iiZhSMyQu9lB8WnIz5g==",
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/unified-args/-/unified-args-8.0.0.tgz",
"integrity": "sha512-224jfXOL0Xu0e52fJTfxmAaNTuW1zopPmnXh/5GDAxx4Z6NbcZpjgQPBmo1xoLAhGih0rWVG2+a2kodzrEHfHw==",
"dev": true,
"requires": {
"camelcase": "^5.0.0",
"chalk": "^2.0.0",
"chalk": "^3.0.0",
"chokidar": "^3.0.0",
"fault": "^1.0.2",
"json5": "^2.0.0",
"minimist": "^1.2.0",
"text-table": "^0.2.0",
"unified-engine": "^7.0.0"
"unified-engine": "^8.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"dev": true,
"requires": {
"@types/color-name": "^1.1.1",
"color-convert": "^2.0.1"
}
},
"anymatch": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz",
@ -13662,6 +13766,16 @@
"fill-range": "^7.0.1"
}
},
"chalk": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"chokidar": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.1.tgz",
@ -13678,6 +13792,21 @@
"readdirp": "~3.3.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
@ -13695,14 +13824,20 @@
"optional": true
},
"glob-parent": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz",
"integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==",
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
"integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
},
"is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
@ -13727,6 +13862,15 @@
"picomatch": "^2.0.7"
}
},
"supports-color": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
"dev": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@ -13739,31 +13883,28 @@
}
},
"unified-engine": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/unified-engine/-/unified-engine-7.0.0.tgz",
"integrity": "sha512-zH/MvcISpWg3JZtCoY/GYBw1WnVHkhnPoMBWpmuvAifCPSS9mzT9EbtimesJp6t2nnr/ojI0mg3TmkO1CjIwVA==",
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/unified-engine/-/unified-engine-8.0.0.tgz",
"integrity": "sha512-vLUezxCnjzz+ya4pYouRQVMT8k82Rk4fIj406UidRnSFJdGXFaQyQklAnalsQHJrLqAlaYPkXPUa1upfVSHGCA==",
"dev": true,
"requires": {
"concat-stream": "^2.0.0",
"debug": "^4.0.0",
"fault": "^1.0.0",
"figures": "^3.0.0",
"fn-name": "^2.0.1",
"glob": "^7.0.3",
"ignore": "^5.0.0",
"is-buffer": "^2.0.0",
"is-empty": "^1.0.0",
"is-hidden": "^1.0.1",
"is-object": "^1.0.1",
"is-plain-obj": "^2.0.0",
"js-yaml": "^3.6.1",
"load-plugin": "^2.0.0",
"parse-json": "^4.0.0",
"load-plugin": "^3.0.0",
"parse-json": "^5.0.0",
"to-vfile": "^6.0.0",
"trough": "^1.0.0",
"unist-util-inspect": "^4.1.2",
"unist-util-inspect": "^5.0.0",
"vfile-reporter": "^6.0.0",
"vfile-statistics": "^1.1.0",
"x-is-string": "^0.1.0",
"xtend": "^4.0.1"
"vfile-statistics": "^1.1.0"
},
"dependencies": {
"concat-stream": {
@ -13787,14 +13928,28 @@
"escape-string-regexp": "^1.0.5"
}
},
"is-buffer": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz",
"integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==",
"dev": true
},
"is-plain-obj": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
"integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
"dev": true
},
"parse-json": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",
"integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz",
"integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.0.0",
"error-ex": "^1.3.1",
"json-parse-better-errors": "^1.0.1"
"json-parse-better-errors": "^1.0.1",
"lines-and-columns": "^1.1.6"
}
},
"readable-stream": {
@ -13847,9 +14002,9 @@
"dev": true
},
"unist-util-inspect": {
"version": "4.1.4",
"resolved": "https://registry.npmjs.org/unist-util-inspect/-/unist-util-inspect-4.1.4.tgz",
"integrity": "sha512-7xxyvKiZ1SC9vL5qrMqKub1T31gRHfau4242F69CcaOrXt//5PmRVOmDZ36UAEgiT+tZWzmQmbNZn+mVtnR9HQ==",
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/unist-util-inspect/-/unist-util-inspect-5.0.1.tgz",
"integrity": "sha512-fPNWewS593JSmg49HbnE86BJKuBi1/nMWhDSccBvbARfxezEuJV85EaARR9/VplveiwCoLm2kWq+DhP8TBaDpw==",
"dev": true,
"requires": {
"is-empty": "^1.0.0"

View File

@ -148,16 +148,15 @@
"@babel/register": "^7.9.0",
"@cypress/code-coverage": "^1.14.0",
"@cypress/fiddle": "^1.4.3",
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.1",
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2",
"@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.5.0",
"cypress": "^4.2.0",
"cypress-axe": "^0.6.0",
"cypress-axe": "^0.8.1",
"cypress-multi-reporters": "^1.2.4",
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
"eslint": "^6.8.0",
@ -171,14 +170,14 @@
"eslint-plugin-cypress": "^2.10.3",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-import": "^2.20.2",
"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.1.0",
"eslint-plugin-no-use-extend-native": "^0.4.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-standard": "^4.0.1",
@ -186,7 +185,7 @@
"frs-replace": "^2.0.1",
"gh-badges": "^2.2.1",
"imageoptim-cli": "^3.0.2",
"jamilih": "^0.52.0",
"jamilih": "^0.52.2",
"jsdoc": "^3.6.3",
"license-badger": "^0.12.7",
"load-stylesheets": "^0.9.0",
@ -203,10 +202,10 @@
"qr-manipulation": "git+https://github.com/brettz9/qr-manipulation.git",
"query-result": "git+https://github.com/WebReflection/query-result.git",
"regenerator-runtime": "^0.13.5",
"remark-cli": "^7.0.1",
"remark-lint-ordered-list-marker-value": "^1.0.5",
"remark-cli": "^8.0.0",
"remark-lint-ordered-list-marker-value": "^2.0.0",
"rimraf": "^3.0.2",
"rollup": "2.2.0",
"rollup": "2.3.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-re": "^1.0.7",
"rollup-plugin-terser": "^5.3.0",

View File

@ -3292,7 +3292,7 @@
var mtx = svgroot.createSVGMatrix();
Object.values(valArr).forEach(function (item, i) {
valArr[i] = parseFloat(item);
valArr[i] = Number.parseFloat(item);
if (name === 'matrix') {
mtx[letters[i]] = valArr[i];
@ -3702,7 +3702,7 @@
return shortFloat(val[0]) + ',' + shortFloat(val[1]);
}
return parseFloat(val).toFixed(digits) - 0;
return Number.parseFloat(val).toFixed(digits) - 0;
};
/**
* Converts the number to given unit or baseUnit.
@ -4940,8 +4940,8 @@
min = min || 0;
max = max || tlist.numberOfItems - 1;
min = parseInt(min);
max = parseInt(max);
min = Number.parseInt(min);
max = Number.parseInt(max);
if (min > max) {
var temp = max;
@ -7221,7 +7221,7 @@
if (id.substr(0, 14) === 'pathpointgrip_') {
// Select this point
curPt = path.cur_pt = parseInt(id.substr(14));
curPt = path.cur_pt = Number.parseInt(id.substr(14));
path.dragging = [startX, startY];
var seg = path.segs[curPt]; // only clear selection if shift is not pressed (otherwise, add
// node to selection)
@ -8682,8 +8682,8 @@
var bb = {
width: width,
height: height,
x: x + parseFloat(selected.getAttribute('x') || 0),
y: y + parseFloat(selected.getAttribute('y') || 0)
x: x + Number.parseFloat(selected.getAttribute('x') || 0),
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
};
ret = bb;
}
@ -10151,7 +10151,7 @@
return 1;
}
return parseFloat(opacity);
return Number.parseFloat(opacity);
}
/**
* Sets the opacity of this layer. If opacity is not a value between 0.0 and 1.0,
@ -10738,7 +10738,7 @@
} // extract the obj_num of this id
var num = parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
var num = Number.parseInt(id.substr(front.length)); // if we didn't get a positive number or we already released this number
// then return false.
if (typeof num !== 'number' || num <= 0 || this.releasedNums.includes(num)) {
@ -12015,8 +12015,8 @@
// therefore [T'] = [M_inv][T][M]
var existing = transformListToTransform(selected).matrix,
tNew = matrixMultiply(existing.inverse(), m, existing);
changes.x = parseFloat(changes.x) + tNew.e;
changes.y = parseFloat(changes.y) + tNew.f;
changes.x = Number.parseFloat(changes.x) + tNew.e;
changes.y = Number.parseFloat(changes.y) + tNew.f;
} else {
// we just absorb all matrices into the element and don't do any remapping
var chlist = getTransformList(selected);
@ -14280,7 +14280,7 @@
var round = this.round = function (val) {
return parseInt(val * currentZoom) / currentZoom;
return Number.parseInt(val * currentZoom) / currentZoom;
};
init$6(curConfig,
@ -15033,8 +15033,8 @@
if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += parseInt(svgcontent.getAttribute('y'));
rubberBBox.x += Number.parseInt(svgcontent.getAttribute('x'));
rubberBBox.y += Number.parseInt(svgcontent.getAttribute('y'));
resultList = svgroot.getIntersectionList(rubberBBox, parent);
}
}
@ -15329,7 +15329,7 @@
this.setRotationAngle = function (val, preventUndo) {
// ensure val is the proper type
val = parseFloat(val);
val = Number.parseFloat(val);
var elem = selectedElements[0];
var oldTransform = elem.getAttribute('transform');
var bbox = getBBox(elem);
@ -16900,7 +16900,7 @@
var aniDur = 0.2;
var cAni;
if (opacAni.beginElement && parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
if (opacAni.beginElement && Number.parseFloat(element.getAttribute('opacity')) !== curShape.opacity) {
cAni = $$9(opacAni).clone().attr({
to: curShape.opacity,
dur: aniDur
@ -23236,7 +23236,7 @@
for (var i = 0; i < 6; i += 2) {
// const ch = color.substr(i, 2);
var inv = (255 - parseInt(color.substr(i, 2), 16)).toString(16);
var inv = (255 - Number.parseInt(color.substr(i, 2), 16)).toString(16);
if (inv.length < 2) inv = 0 + inv;
inverted += inv;
}
@ -23259,14 +23259,14 @@
}
}
var x1 = parseFloat(grad.getAttribute('x1') || 0.0),
y1 = parseFloat(grad.getAttribute('y1') || 0.0),
x2 = parseFloat(grad.getAttribute('x2') || 1.0),
y2 = parseFloat(grad.getAttribute('y2') || 0.0);
var cx = parseFloat(grad.getAttribute('cx') || 0.5),
cy = parseFloat(grad.getAttribute('cy') || 0.5),
fx = parseFloat(grad.getAttribute('fx') || cx),
fy = parseFloat(grad.getAttribute('fy') || cy);
var x1 = Number.parseFloat(grad.getAttribute('x1') || 0.0),
y1 = Number.parseFloat(grad.getAttribute('y1') || 0.0),
x2 = Number.parseFloat(grad.getAttribute('x2') || 1.0),
y2 = Number.parseFloat(grad.getAttribute('y2') || 0.0);
var cx = Number.parseFloat(grad.getAttribute('cx') || 0.5),
cy = Number.parseFloat(grad.getAttribute('cy') || 0.5),
fx = Number.parseFloat(grad.getAttribute('fx') || cx),
fy = Number.parseFloat(grad.getAttribute('fy') || cy);
var previewRect = mkElem('rect', {
id: id + '_jgraduate_rect',
x: MARGINX,
@ -23329,7 +23329,7 @@
attrInput[attr] = $('#' + id + '_jGraduate_' + attr).val(attrval).change(function () {
// TODO: Support values < 0 and > 1 (zoomable preview?)
if (isNaN(parseFloat(this.value)) || this.value < 0) {
if (isNaN(Number.parseFloat(this.value)) || this.value < 0) {
this.value = 0.0;
} else if (this.value > 1) {
this.value = 1.0;
@ -23399,7 +23399,7 @@
var stopOpacity = Number(stop.getAttribute('stop-opacity')) || 1;
var stopColor = stop.getAttribute('stop-color') || 1;
var thisAlpha = (parseFloat(stopOpacity) * 255).toString(16);
var thisAlpha = (Number.parseFloat(stopOpacity) * 255).toString(16);
while (thisAlpha.length < 2) {
thisAlpha = '0' + thisAlpha;
@ -23757,7 +23757,7 @@
var _slider = slider,
left = _slider.offset.left;
var div = slider.parent;
var x = e.pageX - left - parseInt(div.css('border-left-width'));
var x = e.pageX - left - Number.parseInt(div.css('border-left-width'));
if (x > SLIDERW) x = SLIDERW;
if (x <= 0) x = 0;
var posx = x - 5;
@ -23772,7 +23772,7 @@
break;
case 'opacity':
$this.paint.alpha = parseInt(x * 100);
$this.paint.alpha = Number.parseInt(x * 100);
previewRect.setAttribute('fill-opacity', x);
break;
@ -24223,9 +24223,9 @@
this.spinCfg = {
// min: cfg.min ? Number(cfg.min) : null,
// max: cfg.max ? Number(cfg.max) : null,
min: !isNaN(parseFloat(cfg.min)) ? Number(cfg.min) : null,
min: !isNaN(Number.parseFloat(cfg.min)) ? Number(cfg.min) : null,
// Fixes bug with min:0
max: !isNaN(parseFloat(cfg.max)) ? Number(cfg.max) : null,
max: !isNaN(Number.parseFloat(cfg.max)) ? Number(cfg.max) : null,
step: cfg.step ? Number(cfg.step) : 1,
stepfunc: cfg.stepfunc || false,
page: cfg.page ? Number(cfg.page) : 10,
@ -25304,12 +25304,12 @@
case alpha && alpha.get(0):
switch (e.keyCode) {
case 38:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) + 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) + 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
case 40:
alpha.val(setValueInRange.call(that, parseFloat(alpha.val()) - 1, 0, 100));
alpha.val(setValueInRange.call(that, Number.parseFloat(alpha.val()) - 1, 0, 100));
color.val('a', toFixedNumeric(alpha.val() * 255 / 100, alphaPrecision), e.target);
return false;
}
@ -25426,7 +25426,7 @@
case ahex && ahex.get(0):
ahex.val(ahex.val().replace(/[^a-fA-F\d]/g, '').toLowerCase().substring(0, 2));
color.val('a', !isNullish$1(ahex.val()) ? parseInt(ahex.val(), 16) : null, e.target);
color.val('a', !isNullish$1(ahex.val()) ? Number.parseInt(ahex.val(), 16) : null, e.target);
break;
}
@ -26096,7 +26096,7 @@
* @returns {Integer}
*/
hexToInt: function hexToInt(hex) {
return parseInt(hex, 16);
return Number.parseInt(hex, 16);
},
/**
@ -26139,7 +26139,7 @@
if (!hsv.s) hsv.h = 0;else {
delta = max - min;
if (r === max) hsv.h = (g - b) / delta;else if (g === max) hsv.h = 2 + (b - r) / delta;else hsv.h = 4 + (r - g) / delta;
hsv.h = parseInt(hsv.h * 60);
hsv.h = Number.parseInt(hsv.h * 60);
if (hsv.h < 0) hsv.h += 360;
}
hsv.s = hsv.s * 100 | 0;
@ -26311,7 +26311,7 @@
settings.window.liveUpdate = false; // Basic control binding for inline use - You will need to override the liveCallback or commitCallback function to retrieve results
}
var isLessThanIE7 = parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
var isLessThanIE7 = Number.parseFloat(navigator.appVersion.split('MSIE')[1]) < 7 && document.body.filters; // needed to run the AlphaImageLoader function for IE6
// set color mode and update visuals for the new color mode
/**
@ -27140,8 +27140,8 @@
function moveBarMouseDown(e) {
// const {element} = settings.window, // local copies for YUI compressor
// {page} = settings.window;
elementStartX = parseInt(container.css('left'));
elementStartY = parseInt(container.css('top'));
elementStartX = Number.parseInt(container.css('left'));
elementStartY = Number.parseInt(container.css('top'));
pageStartX = e.pageX;
pageStartY = e.pageY; // bind events to document to move window - we will unbind these on mouseup
@ -27323,9 +27323,9 @@
});
container.css( // positions must be set and display set to absolute before source code injection or IE will size the container to fit the window
{
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + parseInt(win.position.x) + 'px',
left: win.position.x === 'left' ? popup.offset().left - 530 - (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'center' ? popup.offset().left - 260 + 'px' : win.position.x === 'right' ? popup.offset().left - 10 + (win.position.y === 'center' ? 25 : 0) + 'px' : win.position.x === 'screenCenter' ? ($(document).width() >> 1) - 260 + 'px' : popup.offset().left + Number.parseInt(win.position.x) + 'px',
position: 'absolute',
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + parseInt(win.position.y) + 'px'
top: win.position.y === 'top' ? popup.offset().top - 312 + 'px' : win.position.y === 'center' ? popup.offset().top - 156 + 'px' : win.position.y === 'bottom' ? popup.offset().top + 25 + 'px' : popup.offset().top + Number.parseInt(win.position.y) + 'px'
});
} else {
container = $(that);
@ -29778,7 +29778,7 @@
var cur = el.data('orig_margin-' + s);
if (isNullish(cur)) {
cur = parseInt(el.css('margin-' + s)); // Cache the original margin
cur = Number.parseInt(el.css('margin-' + s)); // Cache the original margin
el.data('orig_margin-' + s, cur);
}
@ -30849,7 +30849,7 @@
$hcanv.siblings().remove(); // Create multiple canvases when necessary (due to browser limits)
if (rulerLen >= limit) {
ctxArrNum = parseInt(rulerLen / limit) + 1;
ctxArrNum = Number.parseInt(rulerLen / limit) + 1;
ctxArr = [];
ctxArr[0] = ctx;
var copy = void 0;
@ -31823,7 +31823,7 @@
options = tool;
} else {
// If flyout is selected, allow shift key to iterate through subitems
j = parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
j = Number.parseInt(j); // Use `allHolders` to include both extension `includeWith` and toolbarButtons
options = allHolders[opts.parent][j + 1] || holders[opts.parent][0];
}
@ -32651,7 +32651,7 @@
var changeRotationAngle = function changeRotationAngle(ctl) {
svgCanvas.setRotationAngle(ctl.value);
$$b('#tool_reorient').toggleClass('disabled', parseInt(ctl.value) === 0);
$$b('#tool_reorient').toggleClass('disabled', Number.parseInt(ctl.value) === 0);
};
/**
* @param {external:jQuery.fn.SpinButton} ctl Spin Button
@ -33090,7 +33090,7 @@
return;
}
var perc = parseInt($$b(this).text().split('%')[0]);
var perc = Number.parseInt($$b(this).text().split('%')[0]);
changeOpacity(false, perc);
}, true); // For slider usage, see: http://jqueryui.com/demos/slider/
@ -33132,7 +33132,7 @@
zoomChanged(window, val);
} else {
changeZoom({
value: parseFloat(item.text())
value: Number.parseFloat(item.text())
});
}
}, true);
@ -33599,7 +33599,7 @@
step *= -1;
}
var angle = parseFloat($$b('#angle').val()) + step;
var angle = Number.parseFloat($$b('#angle').val()) + step;
svgCanvas.setRotationAngle(angle);
updateContextPanel();
};
@ -33780,7 +33780,7 @@
openExportWindow();
}
quality = parseInt($$b('#image-slider').val()) / 100;
quality = Number.parseInt($$b('#image-slider').val()) / 100;
/* const results = */
_context9.next = 16;
@ -34528,7 +34528,7 @@
default:
{
this._paintOpacity = parseFloat(selectedElement.getAttribute(type + '-opacity'));
this._paintOpacity = Number.parseFloat(selectedElement.getAttribute(type + '-opacity'));
if (isNaN(this._paintOpacity)) {
this._paintOpacity = 1.0;
@ -34871,8 +34871,8 @@
var rulerX = $$b('#ruler_x');
$$b('#sidepanels').width('+=' + delta);
$$b('#layerpanel').width('+=' + delta);
rulerX.css('right', parseInt(rulerX.css('right')) + delta);
workarea.css('right', parseInt(workarea.css('right')) + delta);
rulerX.css('right', Number.parseInt(rulerX.css('right')) + delta);
workarea.css('right', Number.parseInt(workarea.css('right')) + delta);
svgCanvas.runExtensions('workareaResized');
};
/**