fix the folder for svg-editor.html

master
JFH 2020-08-03 18:12:52 +02:00
parent 90a4d721b8
commit b558290164
4 changed files with 36636 additions and 11 deletions

View File

@ -47,7 +47,7 @@ export default [
input: 'src/editor/xdomain-svgedit-config-es.js', input: 'src/editor/xdomain-svgedit-config-es.js',
output: { output: {
format: 'iife', format: 'iife',
file: 'src/editor/xdomain-svgedit-config-iife.js' file: 'src/xdomain-svgedit-config-iife.js'
}, },
plugins plugins
} }

View File

@ -675,10 +675,10 @@ editor.init = function () {
window.svgEditor.modules !== false; window.svgEditor.modules !== false;
if (!modularVersion) { if (!modularVersion) {
Object.assign(defaultConfig, { Object.assign(defaultConfig, {
langPath: '../dist/locale/', langPath: '../../dist/locale/',
extPath: '../dist/extensions/', extPath: '../../dist/extensions/',
canvgPath: '../dist/', canvgPath: '../../dist/',
jspdfPath: '../dist/' jspdfPath: '../../dist/'
}); });
} }

View File

@ -3875,7 +3875,7 @@
try { try {
var elem = elementContainer_.getElement(val); var elem = elementContainer_.getElement(val);
result = isNullish(elem) || elem === selectedElement; result = !elem || elem === selectedElement;
} catch (e) {} } catch (e) {}
return result; return result;
@ -4042,7 +4042,7 @@
*/ */
var transformListToTransform = function transformListToTransform(tlist, min, max) { var transformListToTransform = function transformListToTransform(tlist, min, max) {
if (isNullish(tlist)) { if (!tlist) {
// Or should tlist = null have been prevented before this? // Or should tlist = null have been prevented before this?
return svg$1.createSVGTransformFromMatrix(svg$1.createSVGMatrix()); return svg$1.createSVGTransformFromMatrix(svg$1.createSVGMatrix());
} }
@ -29336,10 +29336,10 @@
if (!modularVersion) { if (!modularVersion) {
Object.assign(defaultConfig, { Object.assign(defaultConfig, {
langPath: '../dist/locale/', langPath: '../../dist/locale/',
extPath: '../dist/extensions/', extPath: '../../dist/extensions/',
canvgPath: '../dist/', canvgPath: '../../dist/',
jspdfPath: '../dist/' jspdfPath: '../../dist/'
}); });
} // const host = location.hostname, } // const host = location.hostname,
// onWeb = host && host.includes('.'); // onWeb = host && host.includes('.');

File diff suppressed because one or more lines are too long