File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ All options are based on the documentation at <a href="https://www.drawio.com/do
109
109
XML structure for prefilling the editor
110
110
- ` configuration ` (` Object ` , default: ` undefined ` )\
111
111
For configuration options, see https://www.drawio.com/doc/faq/configure-diagram-editor
112
+ - ` exportFormat ` (` 'html' | 'html2' | 'svg' | 'xmlsvg' | 'png' | 'xmlpng' ` , default: ` xmlsvg ` )\
113
+ Set export format
114
+ - ` baseUrl ` (` string ` , default: ` https://embed.diagrams.net ` )\
115
+ For self hosted instances of draw.io, insert your URL here
112
116
113
117
- ` onLoad ` (` (data: EventLoad) => void ` , optional)
114
118
- ` onSave ` (` (data: EventSave) => void ` , optional)
Original file line number Diff line number Diff line change @@ -94,48 +94,48 @@ export type EmbedEvents =
94
94
| EventDraft
95
95
| EventExport ;
96
96
97
- type EventInit = {
97
+ export type EventInit = {
98
98
event : 'init' ;
99
99
} ;
100
100
101
- type EventLoad = {
101
+ export type EventLoad = {
102
102
event : 'load' ;
103
103
xml : string ;
104
104
scale : number ;
105
105
} ;
106
106
107
- type EventSave = {
107
+ export type EventSave = {
108
108
event : 'save' ;
109
109
exit ?: boolean ;
110
110
xml : string ;
111
111
/** Is set when the event was triggered by anything other than the save action */
112
112
parentEvent ?: string ;
113
113
} ;
114
114
115
- type EventExit = {
115
+ export type EventExit = {
116
116
event : 'exit' ;
117
117
modified : boolean ;
118
118
/** Is set when the event was triggered by anything other than the save action */
119
119
parentEvent ?: string ;
120
120
} ;
121
121
122
- type EventConfigure = {
122
+ export type EventConfigure = {
123
123
event : 'configure' ;
124
124
} ;
125
125
126
- type EventMerge = {
126
+ export type EventMerge = {
127
127
event : 'merge' ;
128
128
error : string ;
129
129
message : string ;
130
130
} ;
131
131
132
- type EventPrompt = {
132
+ export type EventPrompt = {
133
133
event : 'prompt' ;
134
134
value : string ;
135
135
message : ActionPrompt ;
136
136
} ;
137
137
138
- type EventTemplate = {
138
+ export type EventTemplate = {
139
139
event : 'template' ;
140
140
xml : string ;
141
141
name : string ;
@@ -145,14 +145,14 @@ type EventTemplate = {
145
145
blank ?: boolean ;
146
146
} ;
147
147
148
- type EventDraft = {
148
+ export type EventDraft = {
149
149
event : 'draft' ;
150
150
error ?: string ;
151
151
result ?: string ;
152
152
message : ActionDraft ;
153
153
} ;
154
154
155
- type EventExport = {
155
+ export type EventExport = {
156
156
event : 'export' ;
157
157
format : ExportFormats ;
158
158
message : ActionExport ;
You can’t perform that action at this time.
0 commit comments