This repository was archived by the owner on May 9, 2021. It is now read-only.
Commit 1ec26f3 1 parent a574934 commit 1ec26f3 Copy full SHA for 1ec26f3
File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,9 @@ export class Graph extends Model {
124
124
! item . element . classList . contains ( "fn__none" ) ) {
125
125
const vditorElement = item . vditore . vditor . ir . element ;
126
126
vditorElement . querySelectorAll ( ".editor__blockref" ) . forEach ( item => {
127
- item . classList . remove ( "editor__blockref" )
128
- } )
129
- const nodeElement = vditorElement . querySelector ( `[data-node-id="${ params . name } "]` ) as HTMLElement
127
+ item . classList . remove ( "editor__blockref" ) ;
128
+ } ) ;
129
+ const nodeElement = vditorElement . querySelector ( `[data-node-id="${ params . name } "]` ) as HTMLElement ;
130
130
if ( nodeElement && nodeElement . getClientRects ( ) . length > 0 ) {
131
131
nodeElement . classList . add ( "editor__blockref" ) ;
132
132
vditorElement . scrollTop = nodeElement . offsetTop - vditorElement . clientHeight / 2 ;
Original file line number Diff line number Diff line change @@ -324,17 +324,17 @@ export class Wnd {
324
324
window . liandi . centerLayout . element . style . width = ( window . liandi . centerLayout . element . clientWidth - 200 ) + "px" ;
325
325
layout . element . style . width = "206px" ;
326
326
} else if ( layout . type === "right" && layout . element . clientWidth < 7 ) {
327
- const rightWidth = window . innerWidth / 3
327
+ const rightWidth = window . innerWidth / 3 ;
328
328
window . liandi . centerLayout . element . style . width = ( window . liandi . centerLayout . element . clientWidth - rightWidth ) + "px" ;
329
- window . liandi . rightLayoutWidth = rightWidth
329
+ window . liandi . rightLayoutWidth = rightWidth ;
330
330
} else if ( layout . type === "top" && layout . element . clientHeight < 7 ) {
331
331
window . liandi . centerLayout . parent . element . style . height = ( window . liandi . centerLayout . parent . element . clientHeight - 200 ) + "px" ;
332
332
layout . element . style . height = "206px" ;
333
333
} else if ( layout . type === "bottom" &&
334
334
( layout . element . clientHeight + window . liandi . centerLayout . parent . element . clientHeight + window . liandi . topLayout . element . clientHeight > window . innerHeight
335
335
|| layout . element . clientHeight < 7 ) ) {
336
336
window . liandi . centerLayout . parent . element . style . height = ( window . liandi . centerLayout . parent . element . clientHeight - 200 ) + "px" ;
337
- window . liandi . bottomLayoutHeight = 200
337
+ window . liandi . bottomLayoutHeight = 200 ;
338
338
}
339
339
} else if ( layout . children [ 0 ] . children . length === 1 ) {
340
340
if ( layout . type === "left" || layout . type === "right" ) {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const initBar = () => {
54
54
title : `<svg class="item__svg"><use xlink:href="#iconFiles"></use></svg> ${ i18n [ window . liandi . config . lang ] . fileTree } ` ,
55
55
callback ( tab : Tab ) {
56
56
tab . addModel ( new Files ( tab ) ) ;
57
- ( window . liandi . leftLayout . children [ 0 ] as Wnd ) . resetLayout ( window . liandi . leftLayout )
57
+ ( window . liandi . leftLayout . children [ 0 ] as Wnd ) . resetLayout ( window . liandi . leftLayout ) ;
58
58
}
59
59
} ) ;
60
60
( window . liandi . leftLayout . children [ 0 ] as Wnd ) . addTab ( tab ) ;
@@ -66,7 +66,7 @@ const initBar = () => {
66
66
panel : '<div class="graph__input"><input class="input"></div><div class="fn__flex-1"></div>' ,
67
67
callback ( tab : Tab ) {
68
68
tab . addModel ( new Graph ( { tab} ) ) ;
69
- ( window . liandi . rightLayout . children [ 0 ] as Wnd ) . resetLayout ( window . liandi . rightLayout )
69
+ ( window . liandi . rightLayout . children [ 0 ] as Wnd ) . resetLayout ( window . liandi . rightLayout ) ;
70
70
}
71
71
} ) ;
72
72
( window . liandi . rightLayout . children [ 0 ] as Wnd ) . addTab ( tab ) ;
You can’t perform that action at this time.
0 commit comments