@rescript/webapi 0.1.0-experimental-b899c6b → 0.1.0-experimental-d063925
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescript/webapi",
|
|
3
|
-
"version": "0.1.0-experimental-
|
|
3
|
+
"version": "0.1.0-experimental-d063925",
|
|
4
4
|
"description": "Experimental successor to [rescript-webapi](https://github.com/TheSpyder/rescript-webapi)",
|
|
5
5
|
"homepage": "https://rescript-lang.github.io/experimental-rescript-webapi/",
|
|
6
6
|
"bugs": "https://github.com/rescript-lang/experimental-rescript-webapi/issues",
|
package/src/CanvasAPI.res
CHANGED
|
@@ -117,6 +117,8 @@ type webGLPowerPreference =
|
|
|
117
117
|
| @as("high-performance") HighPerformance
|
|
118
118
|
| @as("low-power") LowPower
|
|
119
119
|
|
|
120
|
+
@editor.completeFrom(FillStyle) type fillStyle
|
|
121
|
+
|
|
120
122
|
/**
|
|
121
123
|
[See OffscreenCanvas on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
|
|
122
124
|
*/
|
|
@@ -183,11 +185,11 @@ type offscreenCanvasRenderingContext2D = {
|
|
|
183
185
|
/**
|
|
184
186
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle)
|
|
185
187
|
*/
|
|
186
|
-
mutable strokeStyle:
|
|
188
|
+
mutable strokeStyle: fillStyle,
|
|
187
189
|
/**
|
|
188
190
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle)
|
|
189
191
|
*/
|
|
190
|
-
mutable fillStyle:
|
|
192
|
+
mutable fillStyle: fillStyle,
|
|
191
193
|
/**
|
|
192
194
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)
|
|
193
195
|
*/
|
package/src/DOMAPI.res
CHANGED
|
@@ -198,8 +198,6 @@ type shareData = {
|
|
|
198
198
|
mutable url?: string,
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
@editor.completeFrom(FillStyle) type fillStyle
|
|
202
|
-
|
|
203
201
|
/**
|
|
204
202
|
@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.
|
|
205
203
|
[See Location on MDN](https://developer.mozilla.org/docs/Web/API/Location)
|
|
@@ -9517,7 +9515,7 @@ type canvasRenderingContext2D = {
|
|
|
9517
9515
|
/**
|
|
9518
9516
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle)
|
|
9519
9517
|
*/
|
|
9520
|
-
mutable strokeStyle:
|
|
9518
|
+
mutable strokeStyle: fillStyle,
|
|
9521
9519
|
/**
|
|
9522
9520
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle)
|
|
9523
9521
|
*/
|
|
@@ -18,7 +18,7 @@ external append: (formData, ~name: string, ~value: string) => unit = "append"
|
|
|
18
18
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/append)
|
|
19
19
|
*/
|
|
20
20
|
@send
|
|
21
|
-
external
|
|
21
|
+
external appendBlob: (formData, ~name: string, ~blobValue: blob, ~filename: string=?) => unit =
|
|
22
22
|
"append"
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -31,13 +31,13 @@ external delete: (formData, string) => unit = "delete"
|
|
|
31
31
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/get)
|
|
32
32
|
*/
|
|
33
33
|
@send
|
|
34
|
-
external get: (formData, string) =>
|
|
34
|
+
external get: (formData, string) => string = "get"
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/get)
|
|
38
38
|
*/
|
|
39
39
|
@send
|
|
40
|
-
external
|
|
40
|
+
external getFile: (formData, string) => file = "get"
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
|
|
@@ -61,4 +61,4 @@ external set: (formData, ~name: string, ~value: string) => unit = "set"
|
|
|
61
61
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/set)
|
|
62
62
|
*/
|
|
63
63
|
@send
|
|
64
|
-
external
|
|
64
|
+
external setBlob: (formData, ~name: string, ~blobValue: blob, ~filename: string=?) => unit = "set"
|
|
File without changes
|