From 7f4f2bc234e551ab46438446bb755eaedb40c4e5 Mon Sep 17 00:00:00 2001 From: Stephen Fraser Date: Mon, 6 Jul 2026 12:21:31 +0100 Subject: [PATCH] Added backgroundColour property for P4 compat --- src/presentation-3/serialize-presentation-3.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/presentation-3/serialize-presentation-3.ts b/src/presentation-3/serialize-presentation-3.ts index b619b9e..2702999 100644 --- a/src/presentation-3/serialize-presentation-3.ts +++ b/src/presentation-3/serialize-presentation-3.ts @@ -25,6 +25,8 @@ function technicalProperties(entity: Partial): Array<[keyof ['behavior', entity.behavior && entity.behavior.length ? entity.behavior : undefined], ['timeMode', entity.timeMode], ['motivation', Array.isArray(entity.motivation) ? entity.motivation[0] : entity.motivation], + // Presetntation 4 compat. + ['backgroundColor', (entity as any).backgroundColor || undefined] as any, [HAS_PART as any, UNSET], ]; }