pull/6/head
Wolf Vollprecht 2018-02-09 22:10:58 +01:00
rodzic 57d16e565e
commit b7d059e1e2
1 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -60,9 +60,6 @@ import {
const DIRTY_CLASS = 'jp-mod-dirty';
// MIME Extension packgage.json:
// "mimeExtension": "lib/mime"
export
class DrawioWidget extends Widget implements DocumentRegistry.IReadyWidget {
@ -75,8 +72,6 @@ class DrawioWidget extends Widget implements DocumentRegistry.IReadyWidget {
this.context.ready.then(() => { this._onContextReady(); });
this.context.ready.then(() => { this._handleDirtyState(); });
// this.node.style.minWidth = '100%';
}
protected onAfterShow(msg: Message): void {
@ -84,6 +79,10 @@ class DrawioWidget extends Widget implements DocumentRegistry.IReadyWidget {
this._onContentChanged();
}
public getSVG() : string {
return mx.mxUtils.getXml(this._editor.editor.graph.getSvg());
}
private _onContextReady() : void {
const contextModel = this.context.model;