kopia lustrzana https://github.com/deathbeds/ipydrawio
some more tweaks to load behavior
rodzic
40557b6dc8
commit
5ab21d1bd6
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
},
|
||||
"drawioConfig": {
|
||||
"description": "Configuration options sen,t to each drawio editor. https://desk.draw.io/support/solutions/articles/16000058316",
|
||||
"description": "Configuration options sent to each drawio editor. https://desk.draw.io/support/solutions/articles/16000058316",
|
||||
"$ref": "#/definitions/drawio-config",
|
||||
"default": {}
|
||||
}
|
||||
|
@ -577,25 +577,18 @@
|
|||
},
|
||||
"off-switch": {
|
||||
"type": "number",
|
||||
"enum": [
|
||||
0
|
||||
]
|
||||
"minimum": 0,
|
||||
"maximum": 0
|
||||
},
|
||||
"on-switch": {
|
||||
"type": "number",
|
||||
"enum": [
|
||||
1
|
||||
]
|
||||
"minimum": 1,
|
||||
"maximum": 1
|
||||
},
|
||||
"on-off-switch": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/on-switch"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/off-switch"
|
||||
}
|
||||
]
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"url-param-target": {
|
||||
"type": "string",
|
||||
|
|
|
@ -101,7 +101,6 @@ export class DrawioWidget extends DocumentWidget<IFrame> {
|
|||
this._saveNeedsExport = IO.EXPORT_MIME_MAP.has(
|
||||
this.context.contentsModel.mimetype
|
||||
);
|
||||
this.addClass(READY_CLASS);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -135,6 +134,7 @@ export class DrawioWidget extends DocumentWidget<IFrame> {
|
|||
break;
|
||||
case "load":
|
||||
this._ready.resolve(void 0);
|
||||
this.addClass(READY_CLASS);
|
||||
break;
|
||||
case "save":
|
||||
if (this._saveNeedsExport) {
|
||||
|
|
Ładowanie…
Reference in New Issue