File tree Expand file tree Collapse file tree 10 files changed +92
-80
lines changed Expand file tree Collapse file tree 10 files changed +92
-80
lines changed Original file line number Diff line number Diff line change 19
19
"@visactor/vchart-theme" : " ~1.6.6" ,
20
20
"@visactor/vmind" : " 1.2.4-alpha.5" ,
21
21
"@visactor/vutils" : " ~1.0.6" ,
22
- "@visactor/vrender" : " 1.0.8 " ,
23
- "@visactor/vrender-kits" : " 1.0.8 " ,
22
+ "@visactor/vrender" : " 1.0.9 " ,
23
+ "@visactor/vrender-kits" : " 1.0.9 " ,
24
24
"@visactor/vtable" : " 1.19.0-alpha.0" ,
25
25
"@visactor/vtable-editors" : " 1.19.0-alpha.0" ,
26
26
"@visactor/vtable-gantt" : " 1.19.0-alpha.0" ,
Original file line number Diff line number Diff line change 30
30
"dependencies" : {
31
31
"@visactor/vchart" : " workspace:2.0.1" ,
32
32
"@visactor/vutils" : " ~1.0.6" ,
33
- "@visactor/vrender-core" : " 1.0.8 " ,
34
- "@visactor/vrender-kits" : " 1.0.8 " ,
33
+ "@visactor/vrender-core" : " 1.0.9 " ,
34
+ "@visactor/vrender-kits" : " 1.0.9 " ,
35
35
"react-is" : " ^18.2.0"
36
36
},
37
37
"devDependencies" : {
Original file line number Diff line number Diff line change 31
31
"@visactor/vchart" : " workspace:2.0.1" ,
32
32
"@visactor/vchart-extension" : " workspace:2.0.1" ,
33
33
"@visactor/vutils" : " ~1.0.6" ,
34
- "@visactor/vrender-core" : " 1.0.8 " ,
35
- "@visactor/vrender-kits" : " 1.0.8 " ,
34
+ "@visactor/vrender-core" : " 1.0.9 " ,
35
+ "@visactor/vrender-kits" : " 1.0.9 " ,
36
36
"react-is" : " ^18.2.0"
37
37
},
38
38
"devDependencies" : {
Original file line number Diff line number Diff line change 21
21
"start" : " ts-node __tests__/runtime/browser/scripts/initVite.ts && vite serve __tests__/runtime/browser"
22
22
},
23
23
"dependencies" : {
24
- "@visactor/vrender-core" : " 1.0.8 " ,
25
- "@visactor/vrender-kits" : " 1.0.8 " ,
26
- "@visactor/vrender-components" : " 1.0.8 " ,
27
- "@visactor/vrender-animate" : " 1.0.8 " ,
24
+ "@visactor/vrender-core" : " 1.0.9 " ,
25
+ "@visactor/vrender-kits" : " 1.0.9 " ,
26
+ "@visactor/vrender-components" : " 1.0.9 " ,
27
+ "@visactor/vrender-animate" : " 1.0.9 " ,
28
28
"@visactor/vutils" : " ~1.0.6" ,
29
29
"@visactor/vdataset" : " ~1.0.6" ,
30
30
"@visactor/vlayouts" : " ~1.0.6" ,
Original file line number Diff line number Diff line change 122
122
"@visactor/vdataset" : " ~1.0.6" ,
123
123
"@visactor/vscale" : " ~1.0.6" ,
124
124
"@visactor/vlayouts" : " ~1.0.6" ,
125
- "@visactor/vrender-core" : " 1.0.8 " ,
126
- "@visactor/vrender-kits" : " 1.0.8 " ,
127
- "@visactor/vrender-components" : " 1.0.8 " ,
128
- "@visactor/vrender-animate" : " 1.0.8 " ,
125
+ "@visactor/vrender-core" : " 1.0.9 " ,
126
+ "@visactor/vrender-kits" : " 1.0.9 " ,
127
+ "@visactor/vrender-components" : " 1.0.9 " ,
128
+ "@visactor/vrender-animate" : " 1.0.9 " ,
129
129
"@visactor/vutils-extension" : " workspace:2.0.1"
130
130
},
131
131
"publishConfig" : {
Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ export class Compiler implements ICompiler {
138
138
this . _option . beforeRender ?.( stage ) ;
139
139
} ,
140
140
afterRender : this . _option . afterRender ,
141
- afterClearScreen : this . _option . afterClearScreen ,
142
141
disableDirtyBounds : true ,
143
142
autoRender : true ,
144
143
ticker : this . _option . ticker ,
@@ -152,7 +151,8 @@ export class Compiler implements ICompiler {
152
151
autoPreventDefault : autoPreventDefault
153
152
} ,
154
153
ReactDOM : this . _option . ReactDOM ,
155
- autoRefresh : isValid ( autoRefreshDpr ) ? autoRefreshDpr : ! isValid ( dpr )
154
+ autoRefresh : isValid ( autoRefreshDpr ) ? autoRefreshDpr : ! isValid ( dpr ) ,
155
+ ...( this . _option . renderHooks ?? { } )
156
156
} ) as unknown as IStage ) ;
157
157
158
158
this . _stage . enableIncrementalAutoRender ( ) ;
Original file line number Diff line number Diff line change @@ -131,11 +131,23 @@ export interface IRenderOption {
131
131
*/
132
132
afterRender ?: IStageParams [ 'afterRender' ] ;
133
133
134
- /**
135
- * 渲染层清除屏幕之后的钩子函数,这个钩子在实际渲染之前
136
- * @since 2.0.1
137
- */
138
- afterClearScreen ?: IStageParams [ 'afterClearScreen' ] ;
134
+ renderHooks ?: {
135
+ /**
136
+ * 渲染层清除屏幕之后的钩子函数,这个钩子在实际渲染之前
137
+ * @since 2.0.1
138
+ */
139
+ afterClearScreen ?: IStageParams [ 'afterClearScreen' ] ;
140
+ /**
141
+ * 渲染层清除屏幕之后的钩子函数,这个钩子在实际渲染之前
142
+ * @since 2.0.2
143
+ */
144
+ afterClearRect ?: IStageParams [ 'afterClearRect' ] ;
145
+ /**
146
+ * 渲染层钩子 直接透传
147
+ * @since 2.0.2
148
+ */
149
+ [ key : string ] : any ;
150
+ } ;
139
151
/**
140
152
* 绘图区域背景色设置
141
153
*/
Original file line number Diff line number Diff line change 21
21
},
22
22
"dependencies" : {
23
23
"@visactor/vchart" : " workspace:1.11.0" ,
24
- "@visactor/vrender-core" : " 1.0.8 " ,
25
- "@visactor/vrender-kits" : " 1.0.8 " ,
26
- "@visactor/vrender-components" : " 1.0.8 " ,
24
+ "@visactor/vrender-core" : " 1.0.9 " ,
25
+ "@visactor/vrender-kits" : " 1.0.9 " ,
26
+ "@visactor/vrender-components" : " 1.0.9 " ,
27
27
"@visactor/vutils" : " ~1.0.6"
28
28
},
29
29
"devDependencies" : {
42
42
"vite" : " 3.2.6" ,
43
43
"typescript" : " 4.9.5"
44
44
}
45
- }
45
+ }
Original file line number Diff line number Diff line change 56
56
"vite" : " 3.2.6"
57
57
},
58
58
"dependencies" : {
59
- "@visactor/vrender-core" : " 1.0.8 " ,
60
- "@visactor/vrender-kits" : " 1.0.8 " ,
59
+ "@visactor/vrender-core" : " 1.0.9 " ,
60
+ "@visactor/vrender-kits" : " 1.0.9 " ,
61
61
"@visactor/vchart" : " workspace:2.0.1" ,
62
- "@visactor/vrender" : " 1.0.8 " ,
62
+ "@visactor/vrender" : " 1.0.9 " ,
63
63
"@visactor/vutils" : " ~1.0.6"
64
64
}
65
65
}
You can’t perform that action at this time.
0 commit comments