parent
d173df34d2
commit
8f53e34c0c
|
@ -34,7 +34,7 @@
|
|||
|
||||
var imgLibs = [{
|
||||
name: 'Demo library (local)',
|
||||
url: svgEditor.curConfig.extPath + 'imagelib/index' + (modularVersion ? '-es' : '') + '.html',
|
||||
url: svgEditor.curConfig.extIconsPath + 'imagelib/index' + (modularVersion ? '-es' : '') + '.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
}, {
|
||||
name: 'IAN Symbol Libraries',
|
||||
|
|
|
@ -14772,7 +14772,11 @@ var SvgCanvas = function SvgCanvas(container, config) {
|
|||
return currentZoom;
|
||||
};
|
||||
|
||||
// This method rounds the incoming value to the nearest value based on the currentZoom
|
||||
/**
|
||||
* This method rounds the incoming value to the nearest value based on the `currentZoom`
|
||||
* @param {Number} val
|
||||
* @returns Rounded value to nearest value based on `currentZoom`
|
||||
*/
|
||||
var round = this.round = function (val) {
|
||||
return parseInt(val * currentZoom, 10) / currentZoom;
|
||||
};
|
||||
|
@ -15202,13 +15206,17 @@ var SvgCanvas = function SvgCanvas(container, config) {
|
|||
}
|
||||
};
|
||||
|
||||
// This method sends back an array or a NodeList full of elements that
|
||||
// intersect the multi-select rubber-band-box on the currentLayer only.
|
||||
//
|
||||
// We brute-force getIntersectionList for browsers that do not support it (Firefox).
|
||||
//
|
||||
// Reference:
|
||||
// Firefox does not implement getIntersectionList(), see https://bugzilla.mozilla.org/show_bug.cgi?id=501421
|
||||
/**
|
||||
* This method sends back an array or a NodeList full of elements that
|
||||
* intersect the multi-select rubber-band-box on the currentLayer only.
|
||||
*
|
||||
* We brute-force getIntersectionList for browsers that do not support it (Firefox).
|
||||
*
|
||||
* Reference:
|
||||
* Firefox does not implement getIntersectionList(), see https://bugzilla.mozilla.org/show_bug.cgi?id=501421
|
||||
* @param rect
|
||||
* @returns {Array|NodeList} Bbox elements
|
||||
*/
|
||||
var getIntersectionList = this.getIntersectionList = function (rect) {
|
||||
if (rubberBox == null) {
|
||||
return null;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14778,7 +14778,11 @@
|
|||
return currentZoom;
|
||||
};
|
||||
|
||||
// This method rounds the incoming value to the nearest value based on the currentZoom
|
||||
/**
|
||||
* This method rounds the incoming value to the nearest value based on the `currentZoom`
|
||||
* @param {Number} val
|
||||
* @returns Rounded value to nearest value based on `currentZoom`
|
||||
*/
|
||||
var round = this.round = function (val) {
|
||||
return parseInt(val * currentZoom, 10) / currentZoom;
|
||||
};
|
||||
|
@ -15208,13 +15212,17 @@
|
|||
}
|
||||
};
|
||||
|
||||
// This method sends back an array or a NodeList full of elements that
|
||||
// intersect the multi-select rubber-band-box on the currentLayer only.
|
||||
//
|
||||
// We brute-force getIntersectionList for browsers that do not support it (Firefox).
|
||||
//
|
||||
// Reference:
|
||||
// Firefox does not implement getIntersectionList(), see https://bugzilla.mozilla.org/show_bug.cgi?id=501421
|
||||
/**
|
||||
* This method sends back an array or a NodeList full of elements that
|
||||
* intersect the multi-select rubber-band-box on the currentLayer only.
|
||||
*
|
||||
* We brute-force getIntersectionList for browsers that do not support it (Firefox).
|
||||
*
|
||||
* Reference:
|
||||
* Firefox does not implement getIntersectionList(), see https://bugzilla.mozilla.org/show_bug.cgi?id=501421
|
||||
* @param rect
|
||||
* @returns {Array|NodeList} Bbox elements
|
||||
*/
|
||||
var getIntersectionList = this.getIntersectionList = function (rect) {
|
||||
if (rubberBox == null) {
|
||||
return null;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -30,7 +30,7 @@ svgEditor.addExtension('imagelib', function ({decode64}) {
|
|||
const imgLibs = [
|
||||
{
|
||||
name: 'Demo library (local)',
|
||||
url: svgEditor.curConfig.extPath +
|
||||
url: svgEditor.curConfig.extIconsPath +
|
||||
'imagelib/index' + (modularVersion ? '-es' : '') + '.html',
|
||||
description: 'Demonstration library for SVG-edit on this server'
|
||||
},
|
||||
|
|
|
@ -439,7 +439,11 @@ const addCommandToHistory = function (cmd) {
|
|||
*/
|
||||
const getCurrentZoom = this.getZoom = function () { return currentZoom; };
|
||||
|
||||
// This method rounds the incoming value to the nearest value based on the currentZoom
|
||||
/**
|
||||
* This method rounds the incoming value to the nearest value based on the `currentZoom`
|
||||
* @param {Number} val
|
||||
* @returns Rounded value to nearest value based on `currentZoom`
|
||||
*/
|
||||
const round = this.round = function (val) {
|
||||
return parseInt(val * currentZoom, 10) / currentZoom;
|
||||
};
|
||||
|
@ -825,13 +829,17 @@ this.addExtension = function (name, extFunc) {
|
|||
}
|
||||
};
|
||||
|
||||
// This method sends back an array or a NodeList full of elements that
|
||||
// intersect the multi-select rubber-band-box on the currentLayer only.
|
||||
//
|
||||
// We brute-force getIntersectionList for browsers that do not support it (Firefox).
|
||||
//
|
||||
// Reference:
|
||||
// Firefox does not implement getIntersectionList(), see https://bugzilla.mozilla.org/show_bug.cgi?id=501421
|
||||
/**
|
||||
* This method sends back an array or a NodeList full of elements that
|
||||
* intersect the multi-select rubber-band-box on the currentLayer only.
|
||||
*
|
||||
* We brute-force getIntersectionList for browsers that do not support it (Firefox).
|
||||
*
|
||||
* Reference:
|
||||
* Firefox does not implement getIntersectionList(), see https://bugzilla.mozilla.org/show_bug.cgi?id=501421
|
||||
* @param rect
|
||||
* @returns {Array|NodeList} Bbox elements
|
||||
*/
|
||||
const getIntersectionList = this.getIntersectionList = function (rect) {
|
||||
if (rubberBox == null) { return null; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue