- Build: Update

- Fix: Regression with Rollup config path
- Docs: Update reference to location of IIFE config file
master
Brett Zamir 2020-08-03 15:35:14 +08:00
parent 92635ba721
commit 40ff7380ee
10 changed files with 13 additions and 11 deletions

2
dist/index-es.js vendored
View File

@ -22199,7 +22199,7 @@ This will return the icon (as jQuery object) with a given ID.
// events for each icon // events for each icon
$.each(icons, function (id, icon) { $.each(icons, function (id, icon) {
icon.click(function () { icon.click(function () {
alert('You clicked on the icon with id ' + id); // eslint-disable-line no-alert alert('You clicked on the icon with id ' + id);
}); });
}); });
} }

View File

@ -68,7 +68,7 @@ This will return the icon (as jQuery object) with a given ID.
// events for each icon // events for each icon
$.each(icons, function (id, icon) { $.each(icons, function (id, icon) {
icon.click(function () { icon.click(function () {
alert('You clicked on the icon with id ' + id); // eslint-disable-line no-alert alert('You clicked on the icon with id ' + id);
}); });
}); });
} }

File diff suppressed because one or more lines are too long

2
dist/index-umd.js vendored
View File

@ -22205,7 +22205,7 @@
// events for each icon // events for each icon
$.each(icons, function (id, icon) { $.each(icons, function (id, icon) {
icon.click(function () { icon.click(function () {
alert('You clicked on the icon with id ' + id); // eslint-disable-line no-alert alert('You clicked on the icon with id ' + id);
}); });
}); });
} }

View File

@ -68,7 +68,7 @@ function pt(e){var t=document.createElement("a");return t.setAttribute("href",e)
// events for each icon // events for each icon
$.each(icons, function (id, icon) { $.each(icons, function (id, icon) {
icon.click(function () { icon.click(function () {
alert('You clicked on the icon with id ' + id); // eslint-disable-line no-alert alert('You clicked on the icon with id ' + id);
}); });
}); });
} }

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ SVG-Edit extensions are standalone JavaScript files that can be either
included in the HTML file, loaded using `setConfig`, or indicated through included in the HTML file, loaded using `setConfig`, or indicated through
the URL (see [ConfigOptions]{@tutorial ConfigOptions} for usage). the URL (see [ConfigOptions]{@tutorial ConfigOptions} for usage).
`svgedit-config-iife.js` in the project root directory (if `svgedit-config-iife.js` in the `src` directory (if
through Git clone, by running `npm run build-by-config`) is the file used through Git clone, by running `npm run build-by-config`) is the file used
by `svg-editor.html` to execute commands before extensions are loaded, by `svg-editor.html` to execute commands before extensions are loaded,
e.g., if you wish to make configuration changes which affect extension e.g., if you wish to make configuration changes which affect extension

View File

@ -36,10 +36,10 @@ window.svgEditor.modules = false;
export default [ export default [
{ {
input: 'svgedit-config-es.js', input: 'src/svgedit-config-es.js',
output: { output: {
format: 'iife', format: 'iife',
file: 'svgedit-config-iife.js' file: 'src/svgedit-config-iife.js'
}, },
plugins plugins
}, },

View File

@ -22202,7 +22202,7 @@
// events for each icon // events for each icon
$.each(icons, function (id, icon) { $.each(icons, function (id, icon) {
icon.click(function () { icon.click(function () {
alert('You clicked on the icon with id ' + id); // eslint-disable-line no-alert alert('You clicked on the icon with id ' + id);
}); });
}); });
} }

View File

@ -22202,7 +22202,7 @@
// events for each icon // events for each icon
$.each(icons, function (id, icon) { $.each(icons, function (id, icon) {
icon.click(function () { icon.click(function () {
alert('You clicked on the icon with id ' + id); // eslint-disable-line no-alert alert('You clicked on the icon with id ' + id);
}); });
}); });
} }
@ -36615,6 +36615,8 @@
}))(); }))();
// TO BUILD AN IIFE VERSION OF THIS FILE (AS CAN WORK ON OLDER BROWSERS), // TO BUILD AN IIFE VERSION OF THIS FILE (AS CAN WORK ON OLDER BROWSERS),
window.svgEditor = editor;
window.svgEditor.modules = false; // URL OVERRIDE CONFIG
editor.setConfig({ editor.setConfig({
/** /**