diff --git a/src/js/page/ui/settings.js b/src/js/page/ui/settings.js index 16d43786c..f24c5f721 100644 --- a/src/js/page/ui/settings.js +++ b/src/js/page/ui/settings.js @@ -1,5 +1,5 @@ import { createNanoEvents } from 'nanoevents'; -import { collectPlugins } from '../../utils/settings.js'; +import { getActivePlugins } from '../../utils/settings.js'; import { domReady } from '../utils.js'; import MaterialSlider from './material-slider.js'; import Ripple from './ripple.js'; @@ -104,7 +104,7 @@ export default class Settings { _onUpdateExportLink() { const { fingerprint, multipass, pretty, ...settings } = this.getSettings(); - const plugins = collectPlugins(settings); + const plugins = getActivePlugins(settings); const svgoConfig = { multipass, diff --git a/src/js/svgo-worker/index.js b/src/js/svgo-worker/index.js index 6ada42340..41311251d 100644 --- a/src/js/svgo-worker/index.js +++ b/src/js/svgo-worker/index.js @@ -1,5 +1,5 @@ import { optimize } from 'svgo/dist/svgo.browser.js'; -import { collectPlugins } from '../utils/settings.js'; +import { getActivePlugins } from '../utils/settings.js'; const createDimensionsExtractor = () => { const dimensions = {}; @@ -35,7 +35,7 @@ const createDimensionsExtractor = () => { function compress(svgInput, settings) { // setup plugin list - const plugins = collectPlugins(settings); + const plugins = getActivePlugins(settings); // multipass optimization const [dimensions, extractDimensionsPlugin] = createDimensionsExtractor(); diff --git a/src/js/utils/settings.js b/src/js/utils/settings.js index 0ba24361f..8c3b7f94c 100644 --- a/src/js/utils/settings.js +++ b/src/js/utils/settings.js @@ -1,4 +1,4 @@ -export function collectPlugins(settings) { +export function getActivePlugins(settings) { const floatPrecision = Number(settings.floatPrecision); const transformPrecision = Number(settings.transformPrecision); const plugins = [];