mirror of
https://github.com/svg/svgo.git
synced 2026-01-27 07:02:06 +03:00
11 lines
494 B
Plaintext
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.
|