exportSvgWithImages method
Future<SvgSnapshot>
exportSvgWithImages(
- DiagramSnapshot snapshot,
- SvgOptions options,
- Object imageProvider()
Implementation
@override
Future<SvgSnapshot> exportSvgWithImages(
DiagramSnapshot snapshot,
SvgOptions options,
Object Function(DiagramImageSource) imageProvider,
) => exportDiagramSvg(
DiagramPublication(
state: DiagramEditorState.initial(snapshot.document),
scene: snapshot.scene,
),
options: options,
imageProvider: (source) => imageProvider(source) as ImageProvider<Object>,
);