mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-05-20 16:45:56 +08:00
fix: correct BaseViewer#saveXML
definition
Related to https://github.com/bpmn-io/bpmn-js/pull/1881
This commit is contained in:

committed by
Nico Rehwaldt

parent
3de7c6d075
commit
f6cd4784b0
2
lib/BaseViewer.d.ts
vendored
2
lib/BaseViewer.d.ts
vendored
@ -272,7 +272,7 @@ export default class BaseViewer extends Diagram {
|
|||||||
*
|
*
|
||||||
* @return A promise resolving with the XML.
|
* @return A promise resolving with the XML.
|
||||||
*/
|
*/
|
||||||
saveXML(options: SaveXMLOptions): Promise<SaveXMLResult>;
|
saveXML(options?: SaveXMLOptions): Promise<SaveXMLResult>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Export the currently displayed BPMN 2.0 diagram as
|
* Export the currently displayed BPMN 2.0 diagram as
|
||||||
|
@ -89,6 +89,10 @@ export function testViewer(viewer: BaseViewer) {
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
viewer.saveXML();
|
||||||
|
|
||||||
|
viewer.saveSVG();
|
||||||
|
|
||||||
viewer.getModules();
|
viewer.getModules();
|
||||||
|
|
||||||
viewer.clear();
|
viewer.clear();
|
||||||
|
Reference in New Issue
Block a user