1
0
Fork 0
freesewing/markdown/dev/reference/api/settings/embed/en.md
2022-02-19 08:04:25 +01:00

643 B

title
embed

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.

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 which allows you to inject the SVG into an HTML document, where it will responsively scale.

import Brian from "@freesewing/brian";

const pattern = new Brian({
  embed: true
})

Do not use this for SVGs you want to print.