Skip to content

@graphty/graphty-element / index / QualityEnhancementOptions

Interface: QualityEnhancementOptions ​

Defined in: graphty-element/src/screenshot/types.ts:8

Options for quality enhancement during screenshot capture.

Properties ​

fxaa? ​

optional fxaa?: boolean

Defined in: graphty-element/src/screenshot/types.ts:30

Enable FXAA as a final pass after other AA methods. Generally not needed when using supersampling, but can help smooth any remaining jaggies.

Default ​

ts
false

msaaSamples? ​

optional msaaSamples?: number

Defined in: graphty-element/src/screenshot/types.ts:22

MSAA (Multi-Sample Anti-Aliasing) sample count. Values: 1 (off), 2, 4, 8, 16 (hardware dependent). Combined with supersampling for even better results.

Default ​

ts
4

supersampleFactor? ​

optional supersampleFactor?: number

Defined in: graphty-element/src/screenshot/types.ts:14

Supersampling factor - renders at this multiple of the target resolution then downscales for smoother edges. Higher values = better quality but slower.

Default ​

ts
2