@@ -177,7 +177,8 @@ class Renderer2D extends Renderer {
177
177
// create background rect
178
178
const color = this . _pInst . color ( ...args ) ;
179
179
180
- //accessible Outputs
180
+ // Add accessible outputs if the method exists; on success,
181
+ // set the accessible output background to white.
181
182
if ( this . _pInst . _addAccsOutput ?. ( ) ) {
182
183
this . _pInst . _accsBackground ?. ( color . _getRGBA ( [ 255 , 255 , 255 , 255 ] ) ) ;
183
184
}
@@ -210,7 +211,8 @@ class Renderer2D extends Renderer {
210
211
const color = this . states . fillColor ;
211
212
this . _setFill ( color . toString ( ) ) ;
212
213
213
- //accessible Outputs
214
+ // Add accessible outputs if the method exists; on success,
215
+ // set the accessible output background to white.
214
216
if ( this . _pInst . _addAccsOutput ?. ( ) ) {
215
217
this . _pInst . _accsCanvasColors ?. ( 'fill' , color . _getRGBA ( [ 255 , 255 , 255 , 255 ] ) ) ;
216
218
}
@@ -221,7 +223,8 @@ class Renderer2D extends Renderer {
221
223
const color = this . states . strokeColor ;
222
224
this . _setStroke ( color . toString ( ) ) ;
223
225
224
- //accessible Outputs
226
+ // Add accessible outputs if the method exists; on success,
227
+ // set the accessible output background to white.
225
228
if ( this . _pInst . _addAccsOutput ?. ( ) ) {
226
229
this . _pInst . _accsCanvasColors ?. ( 'stroke' , color . _getRGBA ( [ 255 , 255 , 255 , 255 ] ) ) ;
227
230
}
0 commit comments