mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-14 01:57:37 +08:00
chore: drop node-style callback support from public API
BREAKING CHANGES: * use promise based support, available since 7.0.0
This commit is contained in:

committed by
Nico Rehwaldt

parent
ebc69d6f5c
commit
b7be98b649
@ -31,10 +31,6 @@ import {
|
||||
importBpmnDiagram
|
||||
} from './import/Importer';
|
||||
|
||||
import {
|
||||
wrapForCompatibility
|
||||
} from './util/CompatibilityUtil';
|
||||
|
||||
/**
|
||||
* @template T
|
||||
*
|
||||
@ -291,8 +287,6 @@ BaseViewer.prototype.importXML = async function importXML(xml, bpmnDiagram) {
|
||||
}
|
||||
};
|
||||
|
||||
BaseViewer.prototype.importXML = wrapForCompatibility(BaseViewer.prototype.importXML);
|
||||
|
||||
|
||||
/**
|
||||
* Import parsed definitions and render a BPMN 2.0 diagram.
|
||||
@ -323,8 +317,6 @@ BaseViewer.prototype.importDefinitions = async function importDefinitions(defini
|
||||
return { warnings: result.warnings };
|
||||
};
|
||||
|
||||
BaseViewer.prototype.importDefinitions = wrapForCompatibility(BaseViewer.prototype.importDefinitions);
|
||||
|
||||
|
||||
/**
|
||||
* Open diagram of previously imported XML.
|
||||
@ -386,8 +378,6 @@ BaseViewer.prototype.open = async function open(bpmnDiagramOrId) {
|
||||
return { warnings };
|
||||
};
|
||||
|
||||
BaseViewer.prototype.open = wrapForCompatibility(BaseViewer.prototype.open);
|
||||
|
||||
/**
|
||||
* Export the currently displayed BPMN 2.0 diagram as
|
||||
* a BPMN 2.0 XML document.
|
||||
@ -462,8 +452,6 @@ BaseViewer.prototype.saveXML = async function saveXML(options) {
|
||||
return result;
|
||||
};
|
||||
|
||||
BaseViewer.prototype.saveXML = wrapForCompatibility(BaseViewer.prototype.saveXML);
|
||||
|
||||
|
||||
/**
|
||||
* Export the currently displayed BPMN 2.0 diagram as
|
||||
@ -531,8 +519,6 @@ BaseViewer.prototype.saveSVG = async function saveSVG() {
|
||||
return { svg };
|
||||
};
|
||||
|
||||
BaseViewer.prototype.saveSVG = wrapForCompatibility(BaseViewer.prototype.saveSVG);
|
||||
|
||||
/**
|
||||
* Get a named diagram service.
|
||||
*
|
||||
|
Reference in New Issue
Block a user