- Optimization fix: Properly run code conditionally on browser check;

fixes #312 (@ianli-sc)
master
Brett Zamir 2018-12-27 09:51:26 +08:00
parent 01083faf73
commit db06248b7e
13 changed files with 18 additions and 13 deletions

View File

@ -1,6 +1,11 @@
# SVG-Edit CHANGES # SVG-Edit CHANGES
# 4.2.0 ## ?
- Optimization fix: Properly run code conditionally on browser check;
fixes #312 (@ianli-sc)
## 4.2.0
- Fix: Problem with retaining lines with grid mode (@NeiroNx) - Fix: Problem with retaining lines with grid mode (@NeiroNx)
- l10n: Add Chinese (simplified) extension locales (@enlove) - l10n: Add Chinese (simplified) extension locales (@enlove)

2
dist/index-es.js vendored
View File

@ -14761,7 +14761,7 @@ function SvgCanvas(container, config) {
var resultList = null; var resultList = null;
if (!isIE) { if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') { if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element. // Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x')); rubberBBox.x += parseInt(svgcontent.getAttribute('x'));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index-umd.js vendored
View File

@ -14767,7 +14767,7 @@
var resultList = null; var resultList = null;
if (!isIE) { if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') { if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element. // Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x')); rubberBBox.x += parseInt(svgcontent.getAttribute('x'));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14539,7 +14539,7 @@ var SvgCanvas = (function () {
var resultList = null; var resultList = null;
if (!isIE) { if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') { if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element. // Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x')); rubberBBox.x += parseInt(svgcontent.getAttribute('x'));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1226,7 +1226,7 @@ const getIntersectionList = this.getIntersectionList = function (rect) {
} }
let resultList = null; let resultList = null;
if (!isIE) { if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') { if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element. // Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x')); rubberBBox.x += parseInt(svgcontent.getAttribute('x'));

View File

@ -14764,7 +14764,7 @@
var resultList = null; var resultList = null;
if (!isIE) { if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') { if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element. // Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x')); rubberBBox.x += parseInt(svgcontent.getAttribute('x'));

View File

@ -14764,7 +14764,7 @@
var resultList = null; var resultList = null;
if (!isIE) { if (!isIE()) {
if (typeof svgroot.getIntersectionList === 'function') { if (typeof svgroot.getIntersectionList === 'function') {
// Offset the bbox of the rubber box by the offset of the svgcontent element. // Offset the bbox of the rubber box by the offset of the svgcontent element.
rubberBBox.x += parseInt(svgcontent.getAttribute('x')); rubberBBox.x += parseInt(svgcontent.getAttribute('x'));