@graphty/graphty-element / index / ScreenshotOptions
Interface: ScreenshotOptions ​
Defined in: graphty-element/src/screenshot/types.ts:33
Properties ​
camera? ​
optionalcamera?:CameraState| {preset:string; }
Defined in: graphty-element/src/screenshot/types.ts:65
destination? ​
optionaldestination?:object
Defined in: graphty-element/src/screenshot/types.ts:58
blob? ​
optionalblob?:boolean
clipboard? ​
optionalclipboard?:boolean
download? ​
optionaldownload?:boolean
downloadFilename? ​
optionaldownloadFilename?:string
Defined in: graphty-element/src/screenshot/types.ts:63
enhanceQuality? ​
optionalenhanceQuality?:boolean|QualityEnhancementOptions
Defined in: graphty-element/src/screenshot/types.ts:57
Enable quality enhancement for the screenshot. Can be a boolean (true = default settings) or an object with specific settings.
Quality enhancement uses supersampling (rendering at higher resolution then downscaling) which provides the highest quality anti-aliasing for screenshots.
Examples ​
// Use default settings (2x supersampling)
enhanceQuality: true// Custom settings
enhanceQuality: {
supersampleFactor: 4, // 4x supersampling (very high quality, slower)
msaaSamples: 4, // Also add MSAA
}format? ​
optionalformat?:"png"|"jpeg"|"webp"
Defined in: graphty-element/src/screenshot/types.ts:34
height? ​
optionalheight?:number
Defined in: graphty-element/src/screenshot/types.ts:38
multiplier? ​
optionalmultiplier?:number
Defined in: graphty-element/src/screenshot/types.ts:36
preset? ​
optionalpreset?:"print"|"web-share"|"thumbnail"|"documentation"
Defined in: graphty-element/src/screenshot/types.ts:64
quality? ​
optionalquality?:number
Defined in: graphty-element/src/screenshot/types.ts:35
strictAspectRatio? ​
optionalstrictAspectRatio?:boolean
Defined in: graphty-element/src/screenshot/types.ts:39
timing? ​
optionaltiming?:object
Defined in: graphty-element/src/screenshot/types.ts:66
waitForOperations? ​
optionalwaitForOperations?:boolean
waitForSettle? ​
optionalwaitForSettle?:boolean
transparentBackground? ​
optionaltransparentBackground?:boolean
Defined in: graphty-element/src/screenshot/types.ts:40
width? ​
optionalwidth?:number
Defined in: graphty-element/src/screenshot/types.ts:37