Skip to content

Commit d063925

Browse files
authored
Merge pull request #96 from stephanoskomnenos/fill-style
Move FillStyle
2 parents f038eef + 1f2ae69 commit d063925

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/CanvasAPI.res

+4-2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ type webGLPowerPreference =
117117
| @as("high-performance") HighPerformance
118118
| @as("low-power") LowPower
119119

120+
@editor.completeFrom(FillStyle) type fillStyle
121+
120122
/**
121123
[See OffscreenCanvas on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
122124
*/
@@ -183,11 +185,11 @@ type offscreenCanvasRenderingContext2D = {
183185
/**
184186
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle)
185187
*/
186-
mutable strokeStyle: unknown,
188+
mutable strokeStyle: fillStyle,
187189
/**
188190
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle)
189191
*/
190-
mutable fillStyle: unknown,
192+
mutable fillStyle: fillStyle,
191193
/**
192194
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)
193195
*/

src/DOMAPI/FillStyle.js renamed to src/CanvasAPI/FillStyle.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

src/DOMAPI.res

+1-3
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ type shareData = {
198198
mutable url?: string,
199199
}
200200

201-
@editor.completeFrom(FillStyle) type fillStyle
202-
203201
/**
204202
@editor.completeFrom(Window) The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.
205203
[See Location on MDN](https://developer.mozilla.org/docs/Web/API/Location)
@@ -9517,7 +9515,7 @@ type canvasRenderingContext2D = {
95179515
/**
95189516
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle)
95199517
*/
9520-
mutable strokeStyle: unknown,
9518+
mutable strokeStyle: fillStyle,
95219519
/**
95229520
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle)
95239521
*/

tests/DOMAPI/HTMLCanvasElement__test.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)