@graphty/graphty-element / session / TemplateOptions
Interface: TemplateOptions ​
Defined in: graphty-element/src/session/styles/StylesApi.ts:215
What applying a style document accepts beyond the document itself.
Extends ​
Properties ​
dryRun? ​
readonlyoptionaldryRun?:boolean
Defined in: graphty-element/src/session/runs/types.ts:353
Ask what this would do and cost instead of doing it. Nothing is performed.
Inherited from ​
onProgress? ​
readonlyoptionalonProgress?: (progress) =>void
Defined in: graphty-element/src/session/runs/types.ts:349
Called as the work advances, with the run's current progress.
Parameters ​
progress ​
Returns ​
void
Inherited from ​
queue? ​
readonlyoptionalqueue?:"replace"|"append"|"now"
Defined in: graphty-element/src/session/runs/types.ts:351
How the call joins the queue. Defaults to "append".
Inherited from ​
signal? ​
readonlyoptionalsignal?:AbortSignal
Defined in: graphty-element/src/session/runs/types.ts:347
A signal that cancels the work. Cancelling rejects with an AbortError.
Inherited from ​
templateId? ​
readonlyoptionaltemplateId?:string
Defined in: graphty-element/src/session/styles/StylesApi.ts:220
What to record as the template the layers came from, on every layer that named no source of its own. That is what lets the whole import be swept away again in one call.
transitionMs? ​
readonlyoptionaltransitionMs?:number
Defined in: graphty-element/src/session/runs/types.ts:355
Override the configured transition duration for this call only, in milliseconds.