File tree Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 239
239
height : 100% ;
240
240
"
241
241
></canvas >
242
- <div id =" miniMap" >
243
- <canvas
244
- id =" miniMapArea"
245
- style =" position : absolute ; left : 0 ; top : 0 ; z-index : 3 "
246
- ></canvas >
247
- </div >
248
-
242
+ <transition >
243
+ <div id =" miniMap" style =" height : 253px ; width : 255px " >
244
+ <canvas
245
+ id =" miniMapArea"
246
+ style =" position : absolute ; left : 0 ; top : 0 ; z-index : 3 "
247
+ ></canvas >
248
+ </div >
249
+ </transition >
249
250
<div id =" Help" ></div >
250
251
<div
251
252
class =" sk-folding-cube loadingIcon"
@@ -320,4 +321,16 @@ import CustomShortcut from './DialogBox/CustomShortcut.vue'
320
321
import InsertSubcircuit from ' ./DialogBox/InsertSubcircuit.vue'
321
322
import OpenOffline from ' ./DialogBox/OpenOffline.vue'
322
323
import ReportIssue from ' ./ReportIssue/ReportIssue.vue'
323
- </script >
324
+ </script >
325
+
326
+ <style >
327
+ .v-enter-active ,
328
+ .v-leave-active {
329
+ transition : opacity 0.8s linear ;
330
+ display : none ;
331
+ }
332
+
333
+ .v-leave-to {
334
+ opacity : 0 ;
335
+ }
336
+ </style >
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export default miniMapArea = {
166
166
} ,
167
167
clear ( ) {
168
168
if ( lightMode ) return
169
- document . querySelector ( '# miniMapArea') . style . zIndex = '-1' ;
169
+ document . getElementById ( ' miniMapArea') . style . zIndex = '-1' ;
170
170
this . context . clearRect ( 0 , 0 , this . canvas . width , this . canvas . height )
171
171
} ,
172
172
}
@@ -189,7 +189,4 @@ export function removeMiniMap() {
189
189
)
190
190
return
191
191
}
192
- let miniMap = document . getElementById ( 'miniMap' ) ;
193
- miniMap . style . transition = 'opacity 0.2s' ;
194
- miniMap . style . opacity = '0' ;
195
192
}
You can’t perform that action at this time.
0 commit comments