Skip to content

Commit 4fb1587

Browse files
authored
Support for property.type (#2152)
1 parent af33889 commit 4fb1587

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

inputfiles/overridingTypes.jsonc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,6 @@
9696
}
9797
}
9898
},
99-
"CanvasCompositing": {
100-
"properties": {
101-
"property": {
102-
"globalCompositeOperation": {
103-
"type": "GlobalCompositeOperation"
104-
}
105-
}
106-
}
107-
},
10899
"Body": {
109100
"properties": {
110101
"property": {

inputfiles/patches/html-canvas.kdl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ enum GlobalCompositeOperation {
2626
color
2727
luminosity
2828
}
29+
30+
interface-mixin CanvasCompositing {
31+
property globalCompositeOperation type=GlobalCompositeOperation
32+
}

src/build/patches.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ function handleProperty(child: Node): Partial<Property> {
175175
...optionalMember("exposed", "string", child.properties?.exposed),
176176
...optionalMember("optional", "boolean", child.properties?.optional),
177177
...optionalMember("overrideType", "string", child.properties?.overrideType),
178+
...optionalMember("type", "string", child.properties?.type),
178179
};
179180
}
180181

0 commit comments

Comments
 (0)