Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/CanvasAPI.res
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ type webGLPowerPreference =
| @as("high-performance") HighPerformance
| @as("low-power") LowPower

@editor.completeFrom(FillStyle) type fillStyle

/**
[See OffscreenCanvas on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
*/
Expand Down Expand Up @@ -183,11 +185,11 @@ type offscreenCanvasRenderingContext2D = {
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle)
*/
mutable strokeStyle: unknown,
mutable strokeStyle: fillStyle,
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle)
*/
mutable fillStyle: unknown,
mutable fillStyle: fillStyle,
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)
*/
Expand Down
4 changes: 2 additions & 2 deletions src/DOMAPI/FillStyle.js → src/CanvasAPI/FillStyle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
4 changes: 1 addition & 3 deletions src/DOMAPI.res
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ type shareData = {
mutable url?: string,
}

@editor.completeFrom(FillStyle) type fillStyle

/**
@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.
[See Location on MDN](https://developer.mozilla.org/docs/Web/API/Location)
Expand Down Expand Up @@ -9517,7 +9515,7 @@ type canvasRenderingContext2D = {
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle)
*/
mutable strokeStyle: unknown,
mutable strokeStyle: fillStyle,
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle)
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/DOMAPI/HTMLCanvasElement__test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading