From 8e9b95f2fcb7e86b84e28a0af6fede513dc7fbc0 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Tue, 20 Jan 2026 08:14:44 -0800 Subject: [PATCH] fix: Add class to shadow blocks in Geras (#9564) * fix: Add class to shadow blocks in Geras * chore: Remove errant logging --- core/renderers/geras/path_object.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/core/renderers/geras/path_object.ts b/core/renderers/geras/path_object.ts index 3b12fb13c..88e5bc578 100644 --- a/core/renderers/geras/path_object.ts +++ b/core/renderers/geras/path_object.ts @@ -81,12 +81,6 @@ export class PathObject extends BasePathObject { override applyColour(block: BlockSvg) { this.svgPathLight.style.display = ''; this.svgPathDark.style.display = ''; - if (!this.style.colourTertiary) { - throw new Error( - 'The renderer did not properly initialize the tertiary colour of ' + - 'the block style', - ); - } this.svgPathLight.setAttribute('stroke', this.style.colourTertiary); this.svgPathDark.setAttribute('fill', this.colourDark); @@ -111,17 +105,10 @@ export class PathObject extends BasePathObject { } override updateShadow_(shadow: boolean) { + super.updateShadow_(shadow); if (shadow) { this.svgPathLight.style.display = 'none'; - if (!this.style.colourSecondary) { - throw new Error( - 'The renderer did not properly initialize the secondary colour ' + - 'of the block style block style', - ); - } this.svgPathDark.setAttribute('fill', this.style.colourSecondary); - this.svgPath.setAttribute('stroke', 'none'); - this.svgPath.setAttribute('fill', this.style.colourSecondary); } }