README

mizchi/crater-aomx/grounding does not have a README file

#
GroundingResult

pub(all) struct GroundingResult {
node :
AccessibilityNode

distance : Double
click_x : Double
click_y : Double
}

Result of a grounding query

#
GroundingResult::to_string

fn GroundingResult::to_string(self : GroundingResult) -> String

#
SpatialQuery

pub(all) enum SpatialQuery {
InRegion(SpatialRegion)
RelativeTo(SpatialRelation, String)
NearestTo(Double, Double)
RoleInRegion(
Role
, SpatialRegion)
}

Query for finding elements by spatial description

#
SpatialRegion

pub(all) enum SpatialRegion {
TopLeft
TopCenter
TopRight
MiddleLeft
Center
MiddleRight
BottomLeft
BottomCenter
BottomRight
}

Spatial region on the viewport

#
SpatialRegion::to_string

fn SpatialRegion::to_string(self : SpatialRegion) -> String

#
SpatialRelation

pub(all) enum SpatialRelation {
Above
Below
LeftOf
RightOf
Inside
Near
}

Spatial relation between elements

#
Viewport

pub(all) struct Viewport {
width : Double
height : Double
}

Viewport configuration

#
Viewport::default

fn Viewport::default() -> Viewport

#
find_best

Find the best element for a spatial query

#
find_by_spatial

Find elements matching a spatial query

#
get_click_coords

fn get_click_coords(tree :
AccessibilityTree
, ref_id : String) -> (Double, Double)?

Get click coordinates for an element by ref_id

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io