1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/docs/04-plugins/removeOffCanvasPaths.mdx
2024-06-16 00:10:42 +01:00

11 lines
494 B
Plaintext

---
title: removeOffCanvasPaths
svgo:
pluginId: removeOffCanvasPaths
---
If a [`viewBox`](https://developer.mozilla.org/docs/Web/SVG/Attribute/viewBox) is present,
removes [`<path>`](https://developer.mozilla.org/docs/Web/SVG/Element/path) elements that are drawn outside of it.
Elements with a [`transform`](https://developer.mozilla.org/docs/Web/SVG/Attribute/transform) attribute are ignored, to avoid falsely removing elements that are brought into view through styles or an animation.