- Docs (JSDoc)

- Fix regression (Imagelib): Fix path for non-module version
master
Brett Zamir 2018-05-30 21:49:32 +08:00
parent d173df34d2
commit 8f53e34c0c
7 changed files with 52 additions and 28 deletions

View File

@ -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',

24
dist/index-es.js vendored
View File

@ -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

24
dist/index-umd.js vendored
View File

@ -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

View File

@ -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'
},

View File

@ -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; }