-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync interfaces/ with @webref/idl 3.50.0 (#46965)
Co-authored-by: wpt-pr-bot <[email protected]>
- Loading branch information
1 parent
c5c8021
commit e90ece6
Showing
11 changed files
with
130 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
// GENERATED CONTENT - DO NOT EDIT | ||
// Content was automatically extracted by Reffy into webref | ||
// (https://github.com/w3c/webref) | ||
// Source: Handwriting Recognition API (https://wicg.github.io/handwriting-recognition/) | ||
|
||
[SecureContext] | ||
partial interface Navigator { | ||
Promise<HandwritingRecognizerQueryResult?> | ||
queryHandwritingRecognizer(HandwritingModelConstraint constraint); | ||
}; | ||
|
||
dictionary HandwritingModelConstraint { | ||
required sequence<DOMString> languages; | ||
}; | ||
|
||
dictionary HandwritingRecognizerQueryResult { | ||
boolean textAlternatives; | ||
boolean textSegmentation; | ||
HandwritingHintsQueryResult hints; | ||
}; | ||
|
||
dictionary HandwritingHintsQueryResult { | ||
sequence<HandwritingRecognitionType> recognitionType; | ||
sequence<HandwritingInputType> inputType; | ||
boolean textContext; | ||
boolean alternatives; | ||
}; | ||
|
||
enum HandwritingRecognitionType{ | ||
"text", "per-character" | ||
}; | ||
|
||
enum HandwritingInputType { | ||
"mouse", "stylus", "touch" | ||
}; | ||
|
||
[SecureContext] | ||
partial interface Navigator { | ||
Promise<HandwritingRecognizer> | ||
createHandwritingRecognizer(HandwritingModelConstraint constraint); | ||
}; | ||
|
||
[Exposed=Window, SecureContext] | ||
interface HandwritingRecognizer { | ||
HandwritingDrawing startDrawing(optional HandwritingHints hints = {}); | ||
|
||
undefined finish(); | ||
}; | ||
|
||
dictionary HandwritingHints { | ||
DOMString recognitionType = "text"; | ||
DOMString inputType = "mouse"; | ||
DOMString textContext; | ||
unsigned long alternatives = 3; | ||
}; | ||
|
||
[Exposed=Window, SecureContext] | ||
interface HandwritingDrawing { | ||
undefined addStroke(HandwritingStroke stroke); | ||
undefined removeStroke(HandwritingStroke stroke); | ||
undefined clear(); | ||
sequence<HandwritingStroke> getStrokes(); | ||
|
||
Promise<sequence<HandwritingPrediction>> getPrediction(); | ||
}; | ||
|
||
[SecureContext, Exposed=Window] | ||
interface HandwritingStroke { | ||
constructor(); | ||
undefined addPoint(HandwritingPoint point); | ||
sequence<HandwritingPoint> getPoints(); | ||
undefined clear(); | ||
}; | ||
|
||
dictionary HandwritingPoint { | ||
required double x; | ||
required double y; | ||
|
||
// Optional. Number of milliseconds since a reference time point for a | ||
// drawing. | ||
DOMHighResTimeStamp t; | ||
}; | ||
|
||
dictionary HandwritingPrediction { | ||
required DOMString text; | ||
sequence<HandwritingSegment> segmentationResult; | ||
}; | ||
|
||
dictionary HandwritingSegment { | ||
required DOMString grapheme; | ||
required unsigned long beginIndex; | ||
required unsigned long endIndex; | ||
required sequence<HandwritingDrawingSegment> drawingSegments; | ||
}; | ||
|
||
dictionary HandwritingDrawingSegment { | ||
required unsigned long strokeIndex; | ||
required unsigned long beginPointIndex; | ||
required unsigned long endPointIndex; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters