Function: renderWithContext()
ts
function renderWithContext(
ctx: GvcContext,
g: Graph,
format: string,
inlineImages?: boolean): string;Defined in: gvc/device.ts:530
Select renderer, create job, initialise bb from graph, then render.
Parameters
ctx
g
format
string
inlineImages?
boolean = false
AD-1 (additive, default false): when true, the SVG renderer's usershape() consults the registered image resolver (setImageResolver) and inlines a data: URI on a hit instead of the raw src passthrough. Unset/false reproduces byte-identical pre-AD-1 output.
Returns
string
See
- src/render/public.ts:RenderOptions.inlineImages
- lib/gvc/gvrender.c:gvrender_select
Throws
Error if no renderer is registered for format