kopia lustrzana https://github.com/deathbeds/ipydrawio
fix svg export
rodzic
57d16e565e
commit
b7d059e1e2
|
@ -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;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue