Skip to content

Commit 2552032

Browse files
authored
Integrate more enums
* feat: FontDisplay * rename * feat: InsertPosition * feat: RTCStatsIceCandidatePairState * feat: GlobalCompositeOperation * PermissionName * - * Delete inputfiles/patches/imageOrientation.kdl
1 parent 72303fd commit 2552032

8 files changed

+71
-90
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -289,90 +289,8 @@
289289
},
290290
"enums": {
291291
"enum": {
292-
"InsertPosition": {
293-
"name": "InsertPosition",
294-
"value": [
295-
"beforebegin",
296-
"beforeend",
297-
"afterbegin",
298-
"afterend"
299-
]
300-
},
301-
"FontDisplay": {
302-
"name": "FontDisplay",
303-
// https://w3c.github.io/csswg-drafts/css-fonts-4/#font-display-desc
304-
"value": [
305-
"auto",
306-
"block",
307-
"swap",
308-
"fallback",
309-
"optional"
310-
]
311-
},
312292
"ClientType": {
313293
"name": "ClientTypes"
314-
},
315-
"RTCStatsIceCandidatePairState": {
316-
"value": [
317-
"inprogress"
318-
]
319-
},
320-
"GlobalCompositeOperation": {
321-
"name": "GlobalCompositeOperation",
322-
"value": [
323-
"source-over",
324-
"source-in",
325-
"source-out",
326-
"source-atop",
327-
"destination-over",
328-
"destination-in",
329-
"destination-out",
330-
"destination-atop",
331-
"lighter",
332-
"copy",
333-
"xor",
334-
"multiply",
335-
"screen",
336-
"overlay",
337-
"darken",
338-
"lighten",
339-
"color-dodge",
340-
"color-burn",
341-
"hard-light",
342-
"soft-light",
343-
"difference",
344-
"exclusion",
345-
"hue",
346-
"saturation",
347-
"color",
348-
"luminosity"
349-
]
350-
},
351-
"PermissionName": {
352-
"name": "PermissionName",
353-
// This is a subset of the permissions defined in the spec:
354-
// https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features
355-
// Please add a feature only when it's supported by multiple engines.
356-
"value": [
357-
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility
358-
"camera",
359-
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility
360-
"geolocation",
361-
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility
362-
"microphone",
363-
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API#browser_compatibility
364-
"midi",
365-
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility
366-
"notifications",
367-
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility
368-
"persistent-storage",
369-
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility
370-
"push",
371-
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility
372-
"screen-wake-lock",
373-
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
374-
"storage-access"
375-
]
376294
}
377295
}
378296
},

inputfiles/overridingTypes.jsonc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -504,14 +504,6 @@
504504
},
505505
"TableKind": {
506506
"legacyNamespace": "WebAssembly"
507-
},
508-
"ImageOrientation": {
509-
"value": [
510-
// The spec removed this but it's still in browsers and WebKit doesn't support the new one.
511-
// Keep it until it's safer to fully migrate.
512-
// See https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1507#issuecomment-1454792451
513-
"none"
514-
]
515507
}
516508
}
517509
},
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
enum ImageOrientation {
2+
value "none"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
enum RTCStatsIceCandidatePairState {
2+
value "inprogress"
3+
}

inputfiles/patches/fontDisplay.kdl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
enum FontDisplay {
2+
// https://w3c.github.io/csswg-drafts/css-fonts-4/#font-display-desc
3+
value "auto"
4+
value "block"
5+
value "swap"
6+
value "fallback"
7+
value "optional"
8+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
enum GlobalCompositeOperation {
2+
value "source-over"
3+
value "source-in"
4+
value "source-out"
5+
value "source-atop"
6+
value "destination-over"
7+
value "destination-in"
8+
value "destination-out"
9+
value "destination-atop"
10+
value "lighter"
11+
value "copy"
12+
value "xor"
13+
value "multiply"
14+
value "screen"
15+
value "overlay"
16+
value "darken"
17+
value "lighten"
18+
value "color-dodge"
19+
value "color-burn"
20+
value "hard-light"
21+
value "soft-light"
22+
value "difference"
23+
value "exclusion"
24+
value "hue"
25+
value "saturation"
26+
value "color"
27+
value "luminosity"
28+
}

inputfiles/patches/insertPosition.kdl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
enum InsertPosition {
2+
value "beforebegin"
3+
value "beforeend"
4+
value "afterbegin"
5+
value "afterend"
6+
}

inputfiles/patches/permissionName.kdl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
enum PermissionName {
2+
// This is a subset of the permissions defined in the spec:
3+
// https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features
4+
// Please add a feature only when it's supported by multiple engines.
5+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
6+
value "camera"
7+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
8+
value "geolocation"
9+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
10+
value "microphone"
11+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
12+
value "midi"
13+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
14+
value "notifications"
15+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
16+
value "persistent-storage"
17+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
18+
value "push"
19+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
20+
value "screen-wake-lock"
21+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
22+
value "storage-access"
23+
}

0 commit comments

Comments
 (0)