2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: embed
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
Set to `true` to make SVG output suitable for embedding in a web page.
|
|
|
|
|
|
|
|
This removes the `width` and `height` attributes from the SVG tag, which allows
|
|
|
|
you to inject the SVG into an HTML document, and it will responsively scale.
|
|
|
|
|
|
|
|
```js
|
|
|
|
import brian from "@freesewing/brian";
|
|
|
|
|
|
|
|
let pattern = new brian({
|
|
|
|
embed: true
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
|
|
|
<Warning>
|
|
|
|
|
|
|
|
Do **not** use this for SVGs you want to print.
|
|
|
|
|
|
|
|
</Warning>
|
2021-10-17 18:26:00 +02:00
|
|
|
|