Skip to content

resolveFigureExportOptions

function

Back to Helios Web API

Kind
function
Source
src/export/figureExport.js:213

Description

Normalize figure export options into concrete dimensions and capture flags.

Signature

export function resolveFigureExportOptions(options = {}, context = {}) {

Parameters

NameTypeAttributesDefaultDescription
optionsObjectoptionalRequested filename, format, preset, width, height, supersampling, overlay inclusion, transparency, and legend scale.
contextObjectoptionalRenderer, viewport, device pixel ratio, and capability context.

Returns

Resolved export options including logical dimensions, bitmap dimensions, crop rectangle, filename, and capability fit status.

Type Object

Notes

Callers should check fitsCapability before allocating render targets for the result.