PMA.UI Documentation by Pathomation

AIImageAnalysisResults

PMA.UI.Components AIImageAnalysisResults

Represents a UI component that allows the manipulation of AI analysis annotations.

Constructor

new AIImageAnalysisResults(options)

Source:
Parameters:
Name Type Description
options object Configuration options
Properties
Name Type Attributes Default Description
annotationManager AnnotationManager The annotation manager to use.
element string | HTMLElement Selector or HTML element where the UI will be rendered.
aiMarketplaceContextEndpointFunction function The function that provides the endpoint to fetch AI analysis context, used for linking to the AI service if available in the annotation metadata.
aiMarketplaceToken string <optional>
The token to access the AI marketplace, used for linking to the AI service if available in the annotation metadata.
zoomOnNavigation boolean <optional>
false Whether or not zoom to or just highlight annotation on focus.
focusOnSelection boolean <optional>
false Whether or not focus on selected annotation.
fillPoints boolean <optional>
false Whether or not to fill points in the annotation geometries when navigating to them.

Methods

getFillPoints() → {boolean}

Source:
Gets the fill points for the AI analysis annotations
Returns:
Type
boolean

getFocusOnSelection() → {boolean}

Source:
Gets the state of the focusOnSelection option
Returns:
Type
boolean

getZoomOnNavigation() → {boolean}

Source:
Gets the state of the zoomOnNavigation option
Returns:
Type
boolean

setFillPoints(fillPoints)

Source:
Toggles the fillPoints option for the AI analysis annotations
Parameters:
Name Type Description
fillPoints boolean Whether to fill the points for the AI analysis annotations

setFocusOnSelection(focusOnSelection)

Source:
Toggles the focusOnSelection option
Parameters:
Name Type Description
focusOnSelection boolean Whether to focus on the selected annotation when the selection changes

setZoomOnNavigation(zoomOnNavigation)

Source:
Toggles the zoomOnNavigation option
Parameters:
Name Type Description
zoomOnNavigation boolean Whether to zoom when navigating to an annotation