Last active
October 14, 2020 21:05
-
-
Save ljmotta/c6eb72effbc09df206f6e73fc8f9c9d7 to your computer and use it in GitHub Desktop.
BpmnPage Envelope Locator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const editorEnvelopeLocator: EditorEnvelopeLocator = useMemo(() => { | |
return { | |
targetOrigin: window.location.origin, | |
mapping: new Map([ | |
[ | |
"bpmn", | |
{ | |
resourcesPathPrefix: "https://kiegroup.github.io/kogito-online/editors/0.7.0/bpmn", | |
envelopePath: "https://kiegroup.github.io/kogito-online/editors/0.7.0/envelope", | |
}, | |
], | |
[ | |
"bpmn2", | |
{ | |
resourcesPathPrefix: "https://kiegroup.github.io/kogito-online/editors/0.7.0/bpmn2", | |
envelopePath: "https://kiegroup.github.io/kogito-online/editors/0.7.0/envelope", | |
}, | |
], | |
]), | |
}; | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment