exportImages method
Exports images for specified vector nodes.
Parameters:
vectorIds: List of vector node IDs to exportexportAsSvg: Whether to export as SVG (true) or PDF (false)
Returns a map of node IDs to their export URLs. Throws an exception if the export fails.
Implementation
Future<Map<String, String>> exportImages(List<String> vectorIds,
{bool exportAsSvg = false}) async {
final idsParam = vectorIds.join(',');
final format = exportAsSvg ? 'svg' : 'pdf';
final exportUrl =
'$_baseUrl/images/$_fileId?ids=$idsParam&format=$format&scale=1';
final response = await _makeRequest(exportUrl);
return Map<String, String>.from(response['images']);
}