mizchi/crater-aomx/grounding does not have a README file
pub(all) struct GroundingResult {
node : AccessibilityNode
distance : Double
click_x : Double
click_y : Double
}pub(all) enum SpatialQuery {
InRegion(SpatialRegion)
RelativeTo(SpatialRelation, String)
NearestTo(Double, Double)
RoleInRegion(Role, SpatialRegion)
}pub(all) enum SpatialRegion {
TopLeft
TopCenter
TopRight
MiddleLeft
Center
MiddleRight
BottomLeft
BottomCenter
BottomRight
}pub(all) enum SpatialRelation {
Above
Below
LeftOf
RightOf
Inside
Near
}pub(all) struct Viewport {
width : Double
height : Double
}fn find_best(tree : AccessibilityTree, query : SpatialQuery, viewport : Viewport) -> GroundingResult?fn find_by_spatial(tree : AccessibilityTree, query : SpatialQuery, viewport : Viewport) -> Array[GroundingResult]AOM-derived extraction, grounding, and diff helpers for crater
Dependencies