Skip to content

Commit d2608bc

Browse files
committed
Remove underscore in names, tis not that ideomatic.
1 parent 533589d commit d2608bc

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

src/CanvasAPI/OffscreenCanvas.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Returns null if the canvas has already been initialized with another context typ
1818
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
1919
*/
2020
@send
21-
external getContext_2D: (
21+
external getContext2D: (
2222
offscreenCanvas,
2323
@as("2d") _,
2424
~options: JSON.t=?,
@@ -33,7 +33,7 @@ Returns null if the canvas has already been initialized with another context typ
3333
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
3434
*/
3535
@send
36-
external getContext_WebGL: (
36+
external getContextWebGL: (
3737
offscreenCanvas,
3838
@as("webgl") _,
3939
~options: webGLContextAttributes=?,
@@ -48,7 +48,7 @@ Returns null if the canvas has already been initialized with another context typ
4848
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
4949
*/
5050
@send
51-
external getContext_WebGL2: (
51+
external getContextWebGL2: (
5252
offscreenCanvas,
5353
@as("webgl2") _,
5454
~options: webGLContextAttributes=?,
@@ -63,7 +63,7 @@ Returns null if the canvas has already been initialized with another context typ
6363
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
6464
*/
6565
@send
66-
external getContext_BitmapRenderer: (
66+
external getContextBitmapRenderer: (
6767
offscreenCanvas,
6868
@as("bitmaprenderer") _,
6969
~options: imageBitmapRenderingContextSettings=?,

src/DOMAPI/Element.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ element->Element.scrollIntoView_alignToTop()
411411
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
412412
*/
413413
@send
414-
external scrollIntoView_alignToTop: (T.t, @as(json`true`) _) => unit = "scrollIntoView"
414+
external scrollIntoViewAlignToTop: (T.t, @as(json`true`) _) => unit = "scrollIntoView"
415415

416416
/**
417417
`scrollIntoView({ behavior: "smooth" })`

src/DOMAPI/HTMLCanvasElement.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Creates a CanvasRenderingContext2D object representing a two-dimensional renderi
1111
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext#2d)
1212
*/
1313
@send
14-
external getContext_2D: (
14+
external getContext2D: (
1515
htmlCanvasElement,
1616
@as("2d") _,
1717
~options: canvasRenderingContext2DSettings=?,
@@ -23,7 +23,7 @@ Returns an object that provides methods and properties for drawing and manipulat
2323
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)
2424
*/
2525
@send
26-
external getContext_WebGL: (
26+
external getContextWebGL: (
2727
htmlCanvasElement,
2828
@as("webgl") _,
2929
~options: webGLContextAttributes=?,
@@ -35,7 +35,7 @@ Returns an object that provides methods and properties for drawing and manipulat
3535
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)
3636
*/
3737
@send
38-
external getContext_WebGL2: (
38+
external getContextWebGL2: (
3939
htmlCanvasElement,
4040
@as("webgl2") _,
4141
~options: webGLContextAttributes=?,
@@ -47,7 +47,7 @@ Returns an object that provides methods and properties for drawing and manipulat
4747
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)
4848
*/
4949
@send
50-
external getContext_BitmapRenderer: (
50+
external getContextBitmapRenderer: (
5151
htmlCanvasElement,
5252
@as("bitmaprenderer") _,
5353
~options: imageBitmapRenderingContextSettings=?,

src/EventAPI/EventTarget.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Removes the event listener in target's event listener list with the same type, c
7878
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
7979
*/
8080
@send
81-
external removeEventListener_useCapture: (
81+
external removeEventListenerUseCapture: (
8282
T.t,
8383
eventType,
8484
eventListener<'event>,

src/Global.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ external removeEventListener: (
574574
Removes the event listener in target's event listener list with the same type, callback, and options.
575575
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
576576
*/
577-
external removeEventListener_useCapture: (
577+
external removeEventListenerUseCapture: (
578578
eventType,
579579
eventListener<'event>,
580580
@as(json`true`) _,

tests/DOMAPI/HTMLCanvasElement__test.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ open WebAPI.Global
22

33
let myCanvas: DOMAPI.htmlCanvasElement =
44
document->Document.getElementById("myCanvas")->Prelude.unsafeConversation
5-
let ctx = myCanvas->HTMLCanvasElement.getContext_2D
5+
let ctx = myCanvas->HTMLCanvasElement.getContext2D
66

77
ctx.fillStyle = FillStyle.fromString("red")
88
ctx->CanvasRenderingContext2D.fillRect(~x=50., ~y=50., ~w=200., ~h=200.)

tests/ServiceWorkerAPI/ServiceWorker__test.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)