diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index f16707336..4d1d2822b 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -96,15 +96,6 @@ } } }, - "CanvasCompositing": { - "properties": { - "property": { - "globalCompositeOperation": { - "type": "GlobalCompositeOperation" - } - } - } - }, "Body": { "properties": { "property": { diff --git a/inputfiles/patches/html-canvas.kdl b/inputfiles/patches/html-canvas.kdl index e5361f72e..a8c8aac6f 100644 --- a/inputfiles/patches/html-canvas.kdl +++ b/inputfiles/patches/html-canvas.kdl @@ -26,3 +26,7 @@ enum GlobalCompositeOperation { color luminosity } + +interface-mixin CanvasCompositing { + property globalCompositeOperation type=GlobalCompositeOperation +} diff --git a/src/build/patches.ts b/src/build/patches.ts index 17b1c7e67..38fc0daea 100644 --- a/src/build/patches.ts +++ b/src/build/patches.ts @@ -175,6 +175,7 @@ function handleProperty(child: Node): Partial { ...optionalMember("exposed", "string", child.properties?.exposed), ...optionalMember("optional", "boolean", child.properties?.optional), ...optionalMember("overrideType", "string", child.properties?.overrideType), + ...optionalMember("type", "string", child.properties?.type), }; }