supportsGoodDecimals_ not used anywhere so was removed
parent
f663898dfd
commit
b7133d5604
|
@ -2907,9 +2907,9 @@
|
|||
}
|
||||
},
|
||||
"@rollup/plugin-commonjs": {
|
||||
"version": "15.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-15.0.0.tgz",
|
||||
"integrity": "sha512-8uAdikHqVyrT32w1zB9VhW6uGwGjhKgnDNP4pQJsjdnyF4FgCj6/bmv24c7v2CuKhq32CcyCwRzMPEElaKkn0w==",
|
||||
"version": "15.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-15.1.0.tgz",
|
||||
"integrity": "sha512-xCQqz4z/o0h2syQ7d9LskIMvBSH4PX5PjYdpSSvgS+pQik3WahkQVNWg3D8XJeYjZoVWnIUQYDghuEMRGrmQYQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@rollup/pluginutils": "^3.1.0",
|
||||
|
@ -12477,9 +12477,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"jsdoc": {
|
||||
"version": "3.6.5",
|
||||
"resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.5.tgz",
|
||||
"integrity": "sha512-SbY+i9ONuxSK35cgVHaI8O9senTE4CDYAmGSDJ5l3+sfe62Ff4gy96osy6OW84t4K4A8iGnMrlRrsSItSNp3RQ==",
|
||||
"version": "3.6.6",
|
||||
"resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.6.tgz",
|
||||
"integrity": "sha512-znR99e1BHeyEkSvgDDpX0sTiTu+8aQyDl9DawrkOGZTTW8hv0deIFXx87114zJ7gRaDZKVQD/4tr1ifmJp9xhQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/parser": "^7.9.4",
|
||||
|
@ -18088,9 +18088,9 @@
|
|||
}
|
||||
},
|
||||
"rollup": {
|
||||
"version": "2.27.1",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.27.1.tgz",
|
||||
"integrity": "sha512-GiWHQvnmMgBktSpY/1+nrGpwPsTw4b9P28og2uedfeq4JZ16rzAmnQ5Pm/E0/BEmDNia1ZbY7+qu3nBgNa19Hg==",
|
||||
"version": "2.28.1",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.28.1.tgz",
|
||||
"integrity": "sha512-DOtVoqOZt3+FjPJWLU8hDIvBjUylc9s6IZvy76XklxzcLvAQLtVAG/bbhsMhcWnYxC0TKKcf1QQ/tg29zeID0Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fsevents": "~2.1.2"
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
"@hkdobrev/run-if-changed": "^0.3.1",
|
||||
"@mysticatea/eslint-plugin": "^13.0.0",
|
||||
"@rollup/plugin-babel": "^5.2.1",
|
||||
"@rollup/plugin-commonjs": "^15.0.0",
|
||||
"@rollup/plugin-commonjs": "^15.1.0",
|
||||
"@rollup/plugin-dynamic-import-vars": "^1.1.0",
|
||||
"@rollup/plugin-node-resolve": "^9.0.0",
|
||||
"@rollup/plugin-replace": "^2.3.3",
|
||||
|
@ -203,7 +203,7 @@
|
|||
"husky": "^4.3.0",
|
||||
"imageoptim-cli": "^3.0.2",
|
||||
"jamilih": "^0.53.2",
|
||||
"jsdoc": "^3.6.5",
|
||||
"jsdoc": "^3.6.6",
|
||||
"license-badger": "^0.18.0",
|
||||
"lint-staged": "^10.4.0",
|
||||
"load-stylesheets": "^0.9.0",
|
||||
|
@ -223,7 +223,7 @@
|
|||
"remark-lint-ordered-list-marker-value": "^2.0.1",
|
||||
"requirejs": "^2.3.6",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "2.27.1",
|
||||
"rollup": "2.28.1",
|
||||
"rollup-plugin-copy": "^3.3.0",
|
||||
"rollup-plugin-filesize": "^9.0.2",
|
||||
"rollup-plugin-node-polyfills": "^0.2.1",
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* globals jQuery */
|
||||
/**
|
||||
* Browser detection.
|
||||
* @module browser
|
||||
|
@ -14,8 +13,6 @@ import 'pathseg';
|
|||
|
||||
import {NS} from './namespaces.js';
|
||||
|
||||
const $ = jQuery;
|
||||
|
||||
const supportsSVG_ = (function () {
|
||||
return Boolean(document.createElementNS && document.createElementNS(NS.SVG, 'svg').createSVGRect);
|
||||
}());
|
||||
|
@ -125,22 +122,6 @@ const supportsEditableText_ = (function () {
|
|||
return isOpera_;
|
||||
}());
|
||||
|
||||
const supportsGoodDecimals_ = (function () {
|
||||
// Correct decimals on clone attributes (Opera < 10.5/win/non-en)
|
||||
const rect = document.createElementNS(NS.SVG, 'rect');
|
||||
rect.setAttribute('x', 0.1);
|
||||
const crect = rect.cloneNode(false);
|
||||
const retValue = (!crect.getAttribute('x').includes(','));
|
||||
if (!retValue) {
|
||||
// Todo: i18nize or remove
|
||||
$.alert(
|
||||
'NOTE: This version of Opera is known to contain bugs in SVG-edit.\n' +
|
||||
'Please upgrade to the <a href="http://opera.com">latest version</a> in which the problems have been fixed.'
|
||||
);
|
||||
}
|
||||
return retValue;
|
||||
}());
|
||||
|
||||
const supportsNonScalingStroke_ = (function () {
|
||||
const rect = document.createElementNS(NS.SVG, 'rect');
|
||||
rect.setAttribute('style', 'vector-effect:non-scaling-stroke');
|
||||
|
@ -258,12 +239,6 @@ export const supportsGoodTextCharPos = () => supportsGoodTextCharPos_;
|
|||
*/
|
||||
export const supportsEditableText = () => supportsEditableText_;
|
||||
|
||||
/**
|
||||
* @function module:browser.supportsGoodDecimals
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export const supportsGoodDecimals = () => supportsGoodDecimals_;
|
||||
|
||||
/**
|
||||
* @function module:browser.supportsNonScalingStroke
|
||||
* @returns {boolean}
|
||||
|
|
Loading…
Reference in New Issue