TldrawImageProps
See source codeTable of contents
Extends TLSvgOptions
.
interface TldrawImageProps extends TLSvgOptions {}
Properties
background
optional
from TLSvgOptions
background?: boolean
bindingUtils
optional
Additional binding utils to use.
bindingUtils?: readonly TLAnyBindingUtilConstructor[]
bounds
optional
from TLSvgOptions
bounds?: Box
darkMode
optional
from TLSvgOptions
darkMode?: boolean
format
optional
The image format to use. Defaults to 'svg'.
format?: 'png' | 'svg'
licenseKey
optional
The license key.
licenseKey?: string
padding
optional
from TLSvgOptions
padding?: number
pageId
optional
The page to display. Defaults to the first page.
pageId?: TLPageId
preserveAspectRatio
optional
from TLSvgOptions
preserveAspectRatio?: React.SVGAttributes<SVGSVGElement>['preserveAspectRatio']
scale
optional
from TLSvgOptions
scale?: number
shapeUtils
optional
Additional shape utils to use.
shapeUtils?: readonly TLAnyShapeUtilConstructor[]
snapshot
The snapshot to display.
snapshot: Partial<TLEditorSnapshot> | TLStoreSnapshot
Prev
TldrawFileNext
TldrawUiContextProviderProps