spatial-monorepo / core/src / ExportOptions
Interface: ExportOptions
Defined in: packages/core/src/export/mapExport.ts:31
Properties
filename?
optionalfilename?:string
Defined in: packages/core/src/export/mapExport.ts:32
height?
optionalheight?:number
Defined in: packages/core/src/export/mapExport.ts:34
pixelRatio?
optionalpixelRatio?:4|2|1
Defined in: packages/core/src/export/mapExport.ts:45
Pixel ratio for high-DPI export. 1=72dpi, 2=144dpi, 4=288dpi. Default: 1.
This is a post-hoc upscale of the already-rendered canvas bitmap (drawn into a larger offscreen canvas), not a re-render at higher device pixel density — it will not reveal any additional map detail beyond what was rasterized at the map's current on-screen size. For genuinely higher pixel density, size the SpatialMap container larger (or increase window.devicePixelRatio context) before capturing.
width?
optionalwidth?:number
Defined in: packages/core/src/export/mapExport.ts:33
