@webref/idl 3.67.0 → 3.68.0
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/SVG.idl +12 -12
- package/body-tracking.idl +107 -0
- package/html.idl +5 -2
- package/mediaqueries-5.idl +2 -2
- package/mediasession.idl +7 -0
- package/mst-content-hint.idl +2 -1
- package/package.json +1 -1
- package/privacy-preserving-attribution.idl +1 -10
- package/push-api.idl +3 -1
- package/sanitizer-api.idl +9 -9
- package/svg-animations.idl +1 -5
- package/wasm-js-api.idl +52 -14
- package/wasm-web-api.idl +2 -2
- package/webnn.idl +2 -2
- package/webrtc-encoded-transform.idl +1 -5
package/SVG.idl
CHANGED
|
@@ -179,7 +179,7 @@ interface SVGAnimatedAngle {
|
|
|
179
179
|
|
|
180
180
|
[Exposed=Window]
|
|
181
181
|
interface SVGAnimatedString {
|
|
182
|
-
attribute DOMString baseVal;
|
|
182
|
+
attribute (DOMString or TrustedScriptURL) baseVal;
|
|
183
183
|
readonly attribute DOMString animVal;
|
|
184
184
|
};
|
|
185
185
|
|
|
@@ -245,16 +245,16 @@ interface SVGSVGElement : SVGGraphicsElement {
|
|
|
245
245
|
|
|
246
246
|
undefined deselectAll();
|
|
247
247
|
|
|
248
|
-
SVGNumber createSVGNumber();
|
|
249
|
-
SVGLength createSVGLength();
|
|
250
|
-
SVGAngle createSVGAngle();
|
|
251
|
-
DOMPoint createSVGPoint();
|
|
252
|
-
DOMMatrix createSVGMatrix();
|
|
253
|
-
DOMRect createSVGRect();
|
|
254
|
-
SVGTransform createSVGTransform();
|
|
255
|
-
SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
|
|
248
|
+
[NewObject] SVGNumber createSVGNumber();
|
|
249
|
+
[NewObject] SVGLength createSVGLength();
|
|
250
|
+
[NewObject] SVGAngle createSVGAngle();
|
|
251
|
+
[NewObject] DOMPoint createSVGPoint();
|
|
252
|
+
[NewObject] DOMMatrix createSVGMatrix();
|
|
253
|
+
[NewObject] DOMRect createSVGRect();
|
|
254
|
+
[NewObject] SVGTransform createSVGTransform();
|
|
255
|
+
[NewObject] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
|
|
256
256
|
|
|
257
|
-
Element getElementById(DOMString elementId);
|
|
257
|
+
Element? getElementById(DOMString elementId);
|
|
258
258
|
|
|
259
259
|
// Deprecated methods that have no effect when called,
|
|
260
260
|
// but which are kept for compatibility reasons.
|
|
@@ -333,6 +333,7 @@ interface SVGStyleElement : SVGElement {
|
|
|
333
333
|
attribute DOMString type;
|
|
334
334
|
attribute DOMString media;
|
|
335
335
|
attribute DOMString title;
|
|
336
|
+
attribute boolean disabled;
|
|
336
337
|
};
|
|
337
338
|
|
|
338
339
|
SVGStyleElement includes LinkStyle;
|
|
@@ -575,6 +576,7 @@ interface SVGMarkerElement : SVGElement {
|
|
|
575
576
|
const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0;
|
|
576
577
|
const unsigned short SVG_MARKER_ORIENT_AUTO = 1;
|
|
577
578
|
const unsigned short SVG_MARKER_ORIENT_ANGLE = 2;
|
|
579
|
+
const unsigned short SVG_MARKER_ORIENT_AUTO_START_REVERSE = 3;
|
|
578
580
|
|
|
579
581
|
[SameObject] readonly attribute SVGAnimatedLength refX;
|
|
580
582
|
[SameObject] readonly attribute SVGAnimatedLength refY;
|
|
@@ -662,8 +664,6 @@ interface SVGAElement : SVGGraphicsElement {
|
|
|
662
664
|
attribute DOMString hreflang;
|
|
663
665
|
attribute DOMString type;
|
|
664
666
|
|
|
665
|
-
attribute DOMString text;
|
|
666
|
-
|
|
667
667
|
attribute DOMString referrerPolicy;
|
|
668
668
|
};
|
|
669
669
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: WebXR Body Tracking Module - Level 1 (https://immersive-web.github.io/body-tracking/)
|
|
5
|
+
|
|
6
|
+
partial interface XRFrame {
|
|
7
|
+
[SameObject] readonly attribute XRBody? body;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
enum XRBodyJoint {
|
|
11
|
+
"hips",
|
|
12
|
+
"spine-lower",
|
|
13
|
+
"spine-middle",
|
|
14
|
+
"spine-upper",
|
|
15
|
+
"chest",
|
|
16
|
+
"neck",
|
|
17
|
+
"head",
|
|
18
|
+
"left-shoulder",
|
|
19
|
+
"left-scapula",
|
|
20
|
+
"left-arm-upper",
|
|
21
|
+
"left-arm-lower",
|
|
22
|
+
"left-hand-wrist-twist",
|
|
23
|
+
"right-shoulder",
|
|
24
|
+
"right-scapula",
|
|
25
|
+
"right-arm-upper",
|
|
26
|
+
"right-arm-lower",
|
|
27
|
+
"right-hand-wrist-twist",
|
|
28
|
+
"left-hand-palm",
|
|
29
|
+
"left-hand-wrist",
|
|
30
|
+
"left-hand-thumb-metacarpal",
|
|
31
|
+
"left-hand-thumb-phalanx-proximal",
|
|
32
|
+
"left-hand-thumb-phalanx-distal",
|
|
33
|
+
"left-hand-thumb-tip",
|
|
34
|
+
"left-hand-index-metacarpal",
|
|
35
|
+
"left-hand-index-phalanx-proximal",
|
|
36
|
+
"left-hand-index-phalanx-intermediate",
|
|
37
|
+
"left-hand-index-phalanx-distal",
|
|
38
|
+
"left-hand-index-tip",
|
|
39
|
+
"left-hand-middle-phalanx-metacarpal",
|
|
40
|
+
"left-hand-middle-phalanx-proximal",
|
|
41
|
+
"left-hand-middle-phalanx-intermediate",
|
|
42
|
+
"left-hand-middle-phalanx-distal",
|
|
43
|
+
"left-hand-middle-tip",
|
|
44
|
+
"left-hand-ring-metacarpal",
|
|
45
|
+
"left-hand-ring-phalanx-proximal",
|
|
46
|
+
"left-hand-ring-phalanx-intermediate",
|
|
47
|
+
"left-hand-ring-phalanx-distal",
|
|
48
|
+
"left-hand-ring-tip",
|
|
49
|
+
"left-hand-little-metacarpal",
|
|
50
|
+
"left-hand-little-phalanx-proximal",
|
|
51
|
+
"left-hand-little-phalanx-intermediate",
|
|
52
|
+
"left-hand-little-phalanx-distal",
|
|
53
|
+
"left-hand-little-tip",
|
|
54
|
+
"right-hand-palm",
|
|
55
|
+
"right-hand-wrist",
|
|
56
|
+
"right-hand-thumb-metacarpal",
|
|
57
|
+
"right-hand-thumb-phalanx-proximal",
|
|
58
|
+
"right-hand-thumb-phalanx-distal",
|
|
59
|
+
"right-hand-thumb-tip",
|
|
60
|
+
"right-hand-index-metacarpal",
|
|
61
|
+
"right-hand-index-phalanx-proximal",
|
|
62
|
+
"right-hand-index-phalanx-intermediate",
|
|
63
|
+
"right-hand-index-phalanx-distal",
|
|
64
|
+
"right-hand-index-tip",
|
|
65
|
+
"right-hand-middle-metacarpal",
|
|
66
|
+
"right-hand-middle-phalanx-proximal",
|
|
67
|
+
"right-hand-middle-phalanx-intermediate",
|
|
68
|
+
"right-hand-middle-phalanx-distal",
|
|
69
|
+
"right-hand-middle-tip",
|
|
70
|
+
"right-hand-ring-metacarpal",
|
|
71
|
+
"right-hand-ring-phalanx-proximal",
|
|
72
|
+
"right-hand-ring-phalanx-intermediate",
|
|
73
|
+
"right-hand-ring-phalanx-distal",
|
|
74
|
+
"right-hand-ring-tip",
|
|
75
|
+
"right-hand-little-metacarpal",
|
|
76
|
+
"right-hand-little-phalanx-proximal",
|
|
77
|
+
"right-hand-little-phalanx-intermediate",
|
|
78
|
+
"right-hand-little-phalanx-distal",
|
|
79
|
+
"right-hand-little-tip",
|
|
80
|
+
"left-upper-leg",
|
|
81
|
+
"left-lower-leg",
|
|
82
|
+
"left-foot-ankle-twist",
|
|
83
|
+
"left-foot-ankle",
|
|
84
|
+
"left-foot-subtalar",
|
|
85
|
+
"left-foot-transverse",
|
|
86
|
+
"left-foot-ball",
|
|
87
|
+
"right-upper-leg",
|
|
88
|
+
"right-lower-leg",
|
|
89
|
+
"right-foot-ankle-twist",
|
|
90
|
+
"right-foot-ankle",
|
|
91
|
+
"right-foot-subtalar",
|
|
92
|
+
"right-foot-transverse",
|
|
93
|
+
"right-foot-ball"
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
[Exposed=Window]
|
|
97
|
+
interface XRBody {
|
|
98
|
+
iterable<XRBodyJoint, XRBodySpace>;
|
|
99
|
+
|
|
100
|
+
readonly attribute unsigned long size;
|
|
101
|
+
XRBodySpace get(XRBodyJoint key);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
[Exposed=Window]
|
|
105
|
+
interface XRBodySpace: XRSpace {
|
|
106
|
+
readonly attribute XRBodyJoint jointName;
|
|
107
|
+
};
|
package/html.idl
CHANGED
|
@@ -137,6 +137,9 @@ interface HTMLElement : Element {
|
|
|
137
137
|
undefined hidePopover();
|
|
138
138
|
boolean togglePopover(optional (TogglePopoverOptions or boolean) options = {});
|
|
139
139
|
[CEReactions] attribute DOMString? popover;
|
|
140
|
+
|
|
141
|
+
[CEReactions, Reflect, ReflectRange=(0, 8)] attribute unsigned long headingOffset;
|
|
142
|
+
[CEReactions, Reflect] attribute boolean headingReset;
|
|
140
143
|
};
|
|
141
144
|
|
|
142
145
|
dictionary ShowPopoverOptions {
|
|
@@ -1312,8 +1315,6 @@ typedef (HTMLOrSVGImageElement or
|
|
|
1312
1315
|
OffscreenCanvas or
|
|
1313
1316
|
VideoFrame) CanvasImageSource;
|
|
1314
1317
|
|
|
1315
|
-
enum PredefinedColorSpace { "srgb", "display-p3" };
|
|
1316
|
-
|
|
1317
1318
|
enum CanvasColorType { "unorm8", "float16" };
|
|
1318
1319
|
|
|
1319
1320
|
enum CanvasFillRule { "nonzero", "evenodd" };
|
|
@@ -1612,6 +1613,8 @@ OffscreenCanvasRenderingContext2D includes CanvasPathDrawingStyles;
|
|
|
1612
1613
|
OffscreenCanvasRenderingContext2D includes CanvasTextDrawingStyles;
|
|
1613
1614
|
OffscreenCanvasRenderingContext2D includes CanvasPath;
|
|
1614
1615
|
|
|
1616
|
+
enum PredefinedColorSpace { "srgb", "display-p3" };
|
|
1617
|
+
|
|
1615
1618
|
[Exposed=Window]
|
|
1616
1619
|
interface CustomElementRegistry {
|
|
1617
1620
|
constructor();
|
package/mediaqueries-5.idl
CHANGED
|
@@ -7,8 +7,8 @@ typedef (MediaList or boolean) CustomMediaQuery;
|
|
|
7
7
|
|
|
8
8
|
[Exposed=Window]
|
|
9
9
|
interface CSSCustomMediaRule : CSSRule {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
readonly attribute CSSOMString name;
|
|
11
|
+
readonly attribute CustomMediaQuery query;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
[Exposed=Window, SecureContext]
|
package/mediasession.idl
CHANGED
|
@@ -34,6 +34,12 @@ enum MediaSessionAction {
|
|
|
34
34
|
"voiceactivity"
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
enum MediaSessionEnterPictureInPictureReason {
|
|
38
|
+
"other",
|
|
39
|
+
"useraction",
|
|
40
|
+
"contentoccluded"
|
|
41
|
+
};
|
|
42
|
+
|
|
37
43
|
callback MediaSessionActionHandler = undefined(MediaSessionActionDetails details);
|
|
38
44
|
|
|
39
45
|
[Exposed=Window]
|
|
@@ -102,4 +108,5 @@ dictionary MediaSessionActionDetails {
|
|
|
102
108
|
double seekTime;
|
|
103
109
|
boolean fastSeek;
|
|
104
110
|
boolean isActivating;
|
|
111
|
+
MediaSessionEnterPictureInPictureReason enterPictureInPictureReason;
|
|
105
112
|
};
|
package/mst-content-hint.idl
CHANGED
package/package.json
CHANGED
|
@@ -51,20 +51,11 @@ dictionary AttributionConversionOptions {
|
|
|
51
51
|
sequence<USVString> impressionSites = [];
|
|
52
52
|
sequence<USVString> impressionCallers = [];
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
AttributionLogicOptions logicOptions;
|
|
54
|
+
sequence<double> credit;
|
|
56
55
|
unsigned long value = 1;
|
|
57
56
|
unsigned long maxValue = 1;
|
|
58
57
|
};
|
|
59
58
|
|
|
60
|
-
enum AttributionLogic {
|
|
61
|
-
"last-n-touch",
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
dictionary AttributionLogicOptions {
|
|
65
|
-
sequence<double> credit;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
59
|
dictionary AttributionConversionResult {
|
|
69
60
|
required Uint8Array report;
|
|
70
61
|
};
|
package/push-api.idl
CHANGED
|
@@ -8,9 +8,11 @@ dictionary PushPermissionDescriptor : PermissionDescriptor {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
[SecureContext]
|
|
11
|
-
|
|
11
|
+
interface mixin PushManagerAttribute {
|
|
12
12
|
readonly attribute PushManager pushManager;
|
|
13
13
|
};
|
|
14
|
+
Window includes PushManagerAttribute;
|
|
15
|
+
ServiceWorkerRegistration includes PushManagerAttribute;
|
|
14
16
|
|
|
15
17
|
[Exposed=(Window,Worker), SecureContext]
|
|
16
18
|
interface PushManager {
|
package/sanitizer-api.idl
CHANGED
|
@@ -19,16 +19,16 @@ interface Sanitizer {
|
|
|
19
19
|
SanitizerConfig get();
|
|
20
20
|
|
|
21
21
|
// Modify a Sanitizer’s lists and fields:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
boolean allowElement(SanitizerElementWithAttributes element);
|
|
23
|
+
boolean removeElement(SanitizerElement element);
|
|
24
|
+
boolean replaceElementWithChildren(SanitizerElement element);
|
|
25
|
+
boolean allowAttribute(SanitizerAttribute attribute);
|
|
26
|
+
boolean removeAttribute(SanitizerAttribute attribute);
|
|
27
|
+
boolean setComments(boolean allow);
|
|
28
|
+
boolean setDataAttributes(boolean allow);
|
|
29
29
|
|
|
30
|
-
// Remove markup that executes script.
|
|
31
|
-
|
|
30
|
+
// Remove markup that executes script.
|
|
31
|
+
boolean removeUnsafe();
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
dictionary SanitizerElementNamespace {
|
package/svg-animations.idl
CHANGED
|
@@ -9,7 +9,7 @@ interface TimeEvent : Event {
|
|
|
9
9
|
readonly attribute WindowProxy? view;
|
|
10
10
|
readonly attribute long detail;
|
|
11
11
|
|
|
12
|
-
undefined initTimeEvent(DOMString typeArg, Window? viewArg, long detailArg);
|
|
12
|
+
undefined initTimeEvent(DOMString typeArg, optional Window? viewArg = null, optional long detailArg = 0);
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
[Exposed=Window]
|
|
@@ -55,10 +55,6 @@ SVGMPathElement includes SVGURIReference;
|
|
|
55
55
|
interface SVGAnimateTransformElement : SVGAnimationElement {
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
[Exposed=Window]
|
|
59
|
-
interface SVGDiscardElement : SVGAnimationElement {
|
|
60
|
-
};
|
|
61
|
-
|
|
62
58
|
partial interface SVGSVGElement {
|
|
63
59
|
undefined pauseAnimations();
|
|
64
60
|
undefined unpauseAnimations();
|
package/wasm-js-api.idl
CHANGED
|
@@ -8,25 +8,40 @@ dictionary WebAssemblyInstantiatedSource {
|
|
|
8
8
|
required Instance instance;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
dictionary WebAssemblyCompileOptions {
|
|
12
|
+
USVString? importedStringConstants;
|
|
13
|
+
sequence<USVString> builtins;
|
|
14
|
+
};
|
|
15
|
+
|
|
11
16
|
[Exposed=*]
|
|
12
17
|
namespace WebAssembly {
|
|
13
|
-
boolean validate(BufferSource bytes);
|
|
14
|
-
Promise<Module> compile(BufferSource bytes);
|
|
18
|
+
boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
|
|
19
|
+
Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
|
|
15
20
|
|
|
16
21
|
Promise<WebAssemblyInstantiatedSource> instantiate(
|
|
17
|
-
BufferSource bytes, optional object importObject);
|
|
22
|
+
BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
|
|
18
23
|
|
|
19
24
|
Promise<Instance> instantiate(
|
|
20
25
|
Module moduleObject, optional object importObject);
|
|
26
|
+
|
|
27
|
+
readonly attribute Tag JSTag;
|
|
21
28
|
};
|
|
22
29
|
|
|
23
30
|
enum ImportExportKind {
|
|
24
31
|
"function",
|
|
25
32
|
"table",
|
|
26
33
|
"memory",
|
|
27
|
-
"global"
|
|
34
|
+
"global",
|
|
35
|
+
"tag"
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
enum AddressType {
|
|
39
|
+
"i32",
|
|
40
|
+
"i64",
|
|
28
41
|
};
|
|
29
42
|
|
|
43
|
+
typedef any AddressValue;
|
|
44
|
+
|
|
30
45
|
dictionary ModuleExportDescriptor {
|
|
31
46
|
required USVString name;
|
|
32
47
|
required ImportExportKind kind;
|
|
@@ -41,7 +56,7 @@ dictionary ModuleImportDescriptor {
|
|
|
41
56
|
|
|
42
57
|
[LegacyNamespace=WebAssembly, Exposed=*]
|
|
43
58
|
interface Module {
|
|
44
|
-
constructor(BufferSource bytes);
|
|
59
|
+
constructor(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
|
|
45
60
|
static sequence<ModuleExportDescriptor> exports(Module moduleObject);
|
|
46
61
|
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
|
|
47
62
|
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
|
|
@@ -54,14 +69,15 @@ interface Instance {
|
|
|
54
69
|
};
|
|
55
70
|
|
|
56
71
|
dictionary MemoryDescriptor {
|
|
57
|
-
required
|
|
58
|
-
|
|
72
|
+
required AddressValue initial;
|
|
73
|
+
AddressValue maximum;
|
|
74
|
+
AddressType address;
|
|
59
75
|
};
|
|
60
76
|
|
|
61
77
|
[LegacyNamespace=WebAssembly, Exposed=*]
|
|
62
78
|
interface Memory {
|
|
63
79
|
constructor(MemoryDescriptor descriptor);
|
|
64
|
-
|
|
80
|
+
AddressValue grow(AddressValue delta);
|
|
65
81
|
ArrayBuffer toFixedLengthBuffer();
|
|
66
82
|
ArrayBuffer toResizableBuffer();
|
|
67
83
|
readonly attribute ArrayBuffer buffer;
|
|
@@ -76,17 +92,18 @@ enum TableKind {
|
|
|
76
92
|
|
|
77
93
|
dictionary TableDescriptor {
|
|
78
94
|
required TableKind element;
|
|
79
|
-
required
|
|
80
|
-
|
|
95
|
+
required AddressValue initial;
|
|
96
|
+
AddressValue maximum;
|
|
97
|
+
AddressType address;
|
|
81
98
|
};
|
|
82
99
|
|
|
83
100
|
[LegacyNamespace=WebAssembly, Exposed=*]
|
|
84
101
|
interface Table {
|
|
85
102
|
constructor(TableDescriptor descriptor, optional any value);
|
|
86
|
-
|
|
87
|
-
any get(
|
|
88
|
-
undefined set(
|
|
89
|
-
readonly attribute
|
|
103
|
+
AddressValue grow(AddressValue delta, optional any value);
|
|
104
|
+
any get(AddressValue index);
|
|
105
|
+
undefined set(AddressValue index, optional any value);
|
|
106
|
+
readonly attribute AddressValue length;
|
|
90
107
|
};
|
|
91
108
|
|
|
92
109
|
enum ValueType {
|
|
@@ -110,3 +127,24 @@ interface Global {
|
|
|
110
127
|
any valueOf();
|
|
111
128
|
attribute any value;
|
|
112
129
|
};
|
|
130
|
+
|
|
131
|
+
dictionary TagType {
|
|
132
|
+
required sequence<ValueType> parameters;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
|
|
136
|
+
interface Tag {
|
|
137
|
+
constructor(TagType type);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
dictionary ExceptionOptions {
|
|
141
|
+
boolean traceStack = false;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
|
|
145
|
+
interface Exception {
|
|
146
|
+
constructor(Tag exceptionTag, sequence<any> payload, optional ExceptionOptions options = {});
|
|
147
|
+
any getArg([EnforceRange] unsigned long index);
|
|
148
|
+
boolean is(Tag exceptionTag);
|
|
149
|
+
readonly attribute (DOMString or undefined) stack;
|
|
150
|
+
};
|
package/wasm-web-api.idl
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
[Exposed=(Window,Worker)]
|
|
7
7
|
partial namespace WebAssembly {
|
|
8
|
-
Promise<Module> compileStreaming(Promise<Response> source);
|
|
8
|
+
Promise<Module> compileStreaming(Promise<Response> source, optional WebAssemblyCompileOptions options = {});
|
|
9
9
|
Promise<WebAssemblyInstantiatedSource> instantiateStreaming(
|
|
10
|
-
Promise<Response> source, optional object importObject);
|
|
10
|
+
Promise<Response> source, optional object importObject, optional WebAssemblyCompileOptions options = {});
|
|
11
11
|
};
|
package/webnn.idl
CHANGED
|
@@ -155,7 +155,7 @@ interface MLGraphBuilder {
|
|
|
155
155
|
AllowSharedBufferSource buffer);
|
|
156
156
|
|
|
157
157
|
// Create a scalar operand from the specified number of the specified type.
|
|
158
|
-
MLOperand constant(MLOperandDataType
|
|
158
|
+
MLOperand constant(MLOperandDataType dataType, MLNumber value);
|
|
159
159
|
|
|
160
160
|
// Create an operand from a specified constant tensor.
|
|
161
161
|
MLOperand constant(MLTensor tensor);
|
|
@@ -208,7 +208,7 @@ partial dictionary MLOpSupportLimits {
|
|
|
208
208
|
|
|
209
209
|
partial interface MLGraphBuilder {
|
|
210
210
|
MLOperand cast(MLOperand input,
|
|
211
|
-
MLOperandDataType
|
|
211
|
+
MLOperandDataType dataType,
|
|
212
212
|
optional MLOperatorOptions options = {});
|
|
213
213
|
};
|
|
214
214
|
|
|
@@ -137,7 +137,7 @@ partial interface DedicatedWorkerGlobalScope {
|
|
|
137
137
|
interface RTCRtpScriptTransformer : EventTarget {
|
|
138
138
|
// Attributes and methods related to the transformer source
|
|
139
139
|
readonly attribute ReadableStream readable;
|
|
140
|
-
Promise<
|
|
140
|
+
Promise<undefined> generateKeyFrame(optional DOMString rid);
|
|
141
141
|
Promise<undefined> sendKeyFrameRequest();
|
|
142
142
|
// Attributes and methods related to the transformer sink
|
|
143
143
|
readonly attribute WritableStream writable;
|
|
@@ -156,7 +156,3 @@ interface KeyFrameRequestEvent : Event {
|
|
|
156
156
|
constructor(DOMString type, optional DOMString rid);
|
|
157
157
|
readonly attribute DOMString? rid;
|
|
158
158
|
};
|
|
159
|
-
|
|
160
|
-
partial interface RTCRtpSender {
|
|
161
|
-
Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
|
|
162
|
-
};
|