File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 205
205
right : 0 ;
206
206
height : 120px !important ;
207
207
opacity : 0.3 ;
208
- transition : all 0.1s ease-out ;
209
208
}
210
209
211
210
/* css gradients are only partially supported in Safari, but will work here since colors are not premultiplied */
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ export default class BarrierStore {
113
113
( ) => [ this . mainStore . chartAdapter . epochBounds , this . mainStore . chartAdapter . quoteBounds ] ,
114
114
this . _drawShadedArea
115
115
) ;
116
+
117
+ this . mainStore . chartAdapter . painter . registerCallback ( this . _drawShadedArea ) ;
116
118
} ;
117
119
118
120
init ( ) : void {
@@ -195,6 +197,9 @@ export default class BarrierStore {
195
197
196
198
this . disposeDrawReaction ?.( ) ;
197
199
200
+ this . mainStore . chartAdapter . painter . unregisterCallback ( this . _drawShadedArea ) ;
201
+
202
+
198
203
const i = this . mainStore . chart . _barriers . findIndex ( ( b : BarrierStore ) => b === this ) ;
199
204
if ( i !== - 1 ) {
200
205
this . mainStore . chart . _barriers . splice ( i , 1 ) ;
You can’t perform that action at this time.
0 commit comments