- Build: Update with namespaced parseFloat, etc. changes
- npm: Update devDeps. (remove axe-core now that bundled with cypress-axe)
This commit is contained in:
22
dist/extensions/ext-overview_window.js
vendored
22
dist/extensions/ext-overview_window.js
vendored
@@ -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
|
||||
|
||||
|
||||
4
dist/extensions/ext-placemark.js
vendored
4
dist/extensions/ext-placemark.js
vendored
@@ -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;
|
||||
|
||||
18
dist/extensions/ext-server_moinsave.js
vendored
18
dist/extensions/ext-server_moinsave.js
vendored
@@ -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;
|
||||
|
||||
18
dist/extensions/ext-server_opensave.js
vendored
18
dist/extensions/ext-server_opensave.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user