getSvgAsImage

Public Function

Parameters
NameDescription

svg

SVGElement

options

{
  type: TLCopyType | TLExportType
  quality: number
  scale: number
}
Returns
Promise<Blob | null>
References

SVGElement, TLCopyType, TLExportType, Promise, Blob

Edit this page
Last edited on 11 May 2023
getSvgAsDataUrlSyncgetSvgAsString