File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,11 @@ export class Runtime<Spec extends G2Spec = G2Spec> extends CompositionNode {
7676 this . _bindAutoFit ( ) ;
7777 this . _rendering = true ;
7878
79- // @fixme The cancel render is not marked, which will cause additional rendered event.
80- // @ref src/runtime/render.ts
79+ /**
80+ * @fixme Trailing render cause additional AFTER_RENDER.
81+ * But in fact, should the last trailing render invoke AFTER_RENDER.
82+ * @ref src/runtime/render.ts
83+ */
8184 const finished = new Promise < Runtime < Spec > > ( ( resolve , reject ) =>
8285 render (
8386 this . _computedOptions ( ) ,
@@ -91,6 +94,7 @@ export class Runtime<Spec extends G2Spec = G2Spec> extends CompositionNode {
9194 . then ( resolve )
9295 . catch ( reject )
9396 . then ( ( ) => this . _renderTrailing ( ) ) ;
97+
9498 return finished1 ;
9599 }
96100
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export const Label: SC<LabelOptions> = (options, context) => {
8080 . call ( applyStyle , defaultStyle )
8181 . style ( 'text' , `${ text } ` )
8282 . style ( 'className' , `${ className } g2-label` )
83+ . style ( 'visibility' , `visible` )
8384 . style (
8485 'innerHTML' ,
8586 render ? render ( text , value . datum , value . index ) : undefined ,
You can’t perform that action at this time.
0 commit comments