1
0
Fork 0
freesewing/markdown/dev/reference/api/settings/embed/en.md

28 lines
643 B
Markdown
Raw Normal View History

2022-02-19 08:04:25 +01:00
---
title: embed
---
2021-12-28 21:07:45 +01:00
The `embed` setting controls the properties of the SVG document.
Set it to `true` to make SVG output suitable for embedding in a web page.
2021-12-28 21:07:45 +01:00
The default for `embed` is `false` which will include the `width` and `height`
attributes in the SVG tag, thereby making it suitable for printing.
When set to `true` the `width` and `height` attributes will not be added
2022-02-19 08:04:25 +01:00
which allows you to inject the SVG into an HTML document, where it will
2021-12-28 21:07:45 +01:00
responsively scale.
```js
2021-12-28 21:07:45 +01:00
import Brian from "@freesewing/brian";
2021-12-28 21:07:45 +01:00
const pattern = new Brian({
embed: true
})
```
<Warning>
Do **not** use this for SVGs you want to print.
</Warning>