mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7
This commit is contained in:
parent
728ebcc932
commit
8c46b67f8e
456 changed files with 10561 additions and 5108 deletions
|
@ -0,0 +1,67 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "Accelerated Shape Detection in Images" spec.
|
||||
// See: https://wicg.github.io/shape-detection-api/
|
||||
|
||||
[Exposed=(Window,Worker),
|
||||
Constructor(optional FaceDetectorOptions faceDetectorOptions)]
|
||||
interface FaceDetector {
|
||||
Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
|
||||
};
|
||||
|
||||
dictionary FaceDetectorOptions {
|
||||
unsigned short maxDetectedFaces;
|
||||
boolean fastMode;
|
||||
};
|
||||
|
||||
interface DetectedFace {
|
||||
[SameObject] readonly attribute DOMRectReadOnly boundingBox;
|
||||
[SameObject] readonly attribute FrozenArray<Landmark>? landmarks;
|
||||
};
|
||||
|
||||
dictionary Landmark {
|
||||
required FrozenArray<Point2D> locations;
|
||||
LandmarkType type;
|
||||
};
|
||||
|
||||
enum LandmarkType {
|
||||
"mouth",
|
||||
"eye",
|
||||
"nose"
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker),
|
||||
Constructor(optional BarcodeDetectorOptions barcodeDetectorOptions)]
|
||||
interface BarcodeDetector {
|
||||
readonly attribute FrozenArray<BarcodeFormat> supportedFormats;
|
||||
|
||||
Promise<sequence<DetectedBarcode>> detect(ImageBitmapSource image);
|
||||
};
|
||||
|
||||
dictionary BarcodeDetectorOptions {
|
||||
sequence<BarcodeFormat> formats;
|
||||
};
|
||||
|
||||
interface DetectedBarcode {
|
||||
[SameObject] readonly attribute DOMRectReadOnly boundingBox;
|
||||
[SameObject] readonly attribute DOMString rawValue;
|
||||
[SameObject] readonly attribute BarcodeFormat format;
|
||||
[SameObject] readonly attribute FrozenArray<Point2D> cornerPoints;
|
||||
};
|
||||
|
||||
enum BarcodeFormat {
|
||||
"aztec",
|
||||
"code_128",
|
||||
"code_39",
|
||||
"code_93",
|
||||
"codabar",
|
||||
"data_matrix",
|
||||
"ean_13",
|
||||
"ean_8",
|
||||
"itf",
|
||||
"pdf417",
|
||||
"qr_code",
|
||||
"unknown",
|
||||
"upc_a",
|
||||
"upc_e"
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue