Skip to content

Commit

Permalink
Remove the removeViewBox plugin from the default plugins list
Browse files Browse the repository at this point in the history
Fixes svg#1128
  • Loading branch information
JohnAlbin authored and SethFalco committed May 24, 2024
1 parent 83a94e9 commit e8598b2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion docs/03-plugins/removeViewBox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: removeViewBox
svgo:
pluginId: removeViewBox
defaultPlugin: true
---

Removes the [`viewBox`](https://developer.mozilla.org/docs/Web/SVG/Attribute/viewBox) attribute where it matches the documents width and height.
Expand Down
2 changes: 0 additions & 2 deletions plugins/preset-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import * as convertColors from './convertColors.js';
import * as removeUnknownsAndDefaults from './removeUnknownsAndDefaults.js';
import * as removeNonInheritableGroupAttrs from './removeNonInheritableGroupAttrs.js';
import * as removeUselessStrokeAndFill from './removeUselessStrokeAndFill.js';
import * as removeViewBox from './removeViewBox.js';
import * as cleanupEnableBackground from './cleanupEnableBackground.js';
import * as removeHiddenElems from './removeHiddenElems.js';
import * as removeEmptyText from './removeEmptyText.js';
Expand Down Expand Up @@ -56,7 +55,6 @@ const presetDefault = createPreset({
removeUnknownsAndDefaults,
removeNonInheritableGroupAttrs,
removeUselessStrokeAndFill,
removeViewBox,
cleanupEnableBackground,
removeHiddenElems,
removeEmptyText,
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeDimensions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const name = 'removeDimensions';
export const description =
'removes width and height in presence of viewBox (opposite to removeViewBox, disable it first)';
'removes width and height in presence of viewBox (opposite to removeViewBox)';

/**
* Remove width/height attributes and add the viewBox attribute if it's missing
Expand Down

0 comments on commit e8598b2

Please sign in to comment.