File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4031,8 +4031,10 @@ export abstract class RendererBase {
40314031 colour = val ;
40324032 if ( / ^ _ c o n t e x t _ / . test ( colour ) ) {
40334033 const [ , , prop ] = colour . split ( "_" ) ;
4034- if ( prop in this . options . colourContext && this . options . colourContext [ prop as "background" | "strokes" | "labels" | "annotations" | "fill" ] !== undefined ) {
4035- colour = this . options . colourContext [ prop as "background" | "strokes" | "labels" | "annotations" | "fill" ] ;
4034+ if ( prop in this . options . colourContext && this . options . colourContext [ prop as "background" | "strokes" | "labels" | "annotations" | "fill" | "board" ] !== undefined ) {
4035+ colour = this . options . colourContext [ prop as "background" | "strokes" | "labels" | "annotations" | "fill" | "board" ] ;
4036+ } else if ( prop === "board" && this . options . colourContext . board === undefined ) {
4037+ colour = this . options . colourContext . background ;
40364038 }
40374039 }
40384040 }
You can’t perform that action at this time.
0 commit comments