Skip to content

Commit eb98bd6

Browse files
authored
Add 2D canvas convenience method features (#1064)
1 parent 7eecf29 commit eb98bd6

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated from: canvas-createconicgradient.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: Canvas createConicGradient()
5+
description: The `createConicGradient()` methods draw a conic gradient to a 2D canvas.
6+
spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createconicgradient-dev
7+
group: canvas
8+
status:
9+
baseline: low
10+
baseline_low_date: 2023-04-11
11+
support:
12+
chrome: "99"
13+
chrome_android: "99"
14+
edge: "99"
15+
firefox: "112"
16+
firefox_android: "112"
17+
safari: "16.4"
18+
safari_ios: "16.4"
19+
compat_features:
20+
- api.CanvasRenderingContext2D.createConicGradient
21+
- api.OffscreenCanvasRenderingContext2D.createConicGradient
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Canvas createConicGradient()
2+
description: The `createConicGradient()` methods draw a conic gradient to a 2D canvas.
3+
spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createconicgradient-dev
4+
group: canvas
5+
compat_features:
6+
- api.CanvasRenderingContext2D.createConicGradient
7+
- api.OffscreenCanvasRenderingContext2D.createConicGradient

features/canvas-reset.dist.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated from: canvas-reset.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: Canvas reset()
5+
description: The `reset()` method clears a canvas to its initial state.
6+
spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-reset
7+
status:
8+
baseline: low
9+
baseline_low_date: 2023-12-11
10+
support:
11+
chrome: "99"
12+
chrome_android: "99"
13+
edge: "99"
14+
firefox: "113"
15+
firefox_android: "113"
16+
safari: "17.2"
17+
safari_ios: "17.2"
18+
compat_features:
19+
- api.CanvasRenderingContext2D.reset
20+
- api.OffscreenCanvasRenderingContext2D.reset

features/canvas-reset.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Canvas reset()
2+
description: The `reset()` method clears a canvas to its initial state.
3+
spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-reset
4+
compat_features:
5+
- api.CanvasRenderingContext2D.reset
6+
- api.OffscreenCanvasRenderingContext2D.reset

features/canvas-roundrect.dist.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated from: canvas-roundrect.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: Canvas roundRect()
5+
description: The `roundRect()` methods draw a rounded rectangle to a 2D canvas.
6+
group: canvas
7+
spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-roundrect
8+
status:
9+
baseline: low
10+
baseline_low_date: 2023-04-11
11+
support:
12+
chrome: "99"
13+
chrome_android: "99"
14+
edge: "99"
15+
firefox: "112"
16+
firefox_android: "112"
17+
safari: "16.4"
18+
safari_ios: "16.4"
19+
compat_features:
20+
- api.CanvasRenderingContext2D.roundRect
21+
- api.OffscreenCanvasRenderingContext2D.roundRect

features/canvas-roundrect.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Canvas roundRect()
2+
description: The `roundRect()` methods draw a rounded rectangle to a 2D canvas.
3+
group: canvas
4+
spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-roundrect
5+
compat_features:
6+
- api.CanvasRenderingContext2D.roundRect
7+
- api.OffscreenCanvasRenderingContext2D.roundRect

0 commit comments

Comments
 (0)