You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewview.Error('Invalid direction. Must be "vertical" or "horizontal".')
195
+
}
196
+
if(this._options.direction!==direction){
197
+
this._options.direction=direction
198
+
this._reload()
199
+
// Persist the setting
200
+
constoptions={}
201
+
for(constentryofObject.entries(this._options)){
202
+
constname=entry[0]
203
+
if(this._defaultOptions[name]!==entry[1]){
204
+
options[name]=entry[1]
205
+
}
206
+
}
207
+
if(Object.entries(options).length==0){
208
+
this._host.delete('configuration','options')
209
+
}else{
210
+
this._host.set('configuration','options',options)
211
+
}
212
+
}
213
+
}
214
+
192
215
openByFile(file,files){
193
216
this._host._open(file,files)
194
217
}
@@ -748,9 +771,9 @@ export class View {
748
771
if(nodes.length>2048){
749
772
if(!this._host.confirm('Large model detected.','This graph contains a large number of nodes and might take a long time to render. Do you want to continue?')){
0 commit comments