Expand description
Names of the methods a plugin can invoke through HostApi::call.
Arguments and results are JSON; the argument type of each method is noted.
Constants§
- APP_
CYCLE_ PANE OffsetArgs→null- APP_
CYCLE_ TAB OffsetArgs→null- APP_
SERIES SeriesArgs→null- BADGE_
SET BadgeArgs→null. Shows (or withtext: Noneremoves) a short notice fixed to the corner of every pane showing a slide, which does not move with the view (e.g. “Predicted — research use only”).- BATCH_
FINISH BatchFinishArgs→null: a batch run’s slide is done.- BATCH_
PROGRESS BatchProgressArgs→null: how far a batch run’s slide is.- BATCH_
REGISTER BatchCommandSpec→null: offers a command for headless batch runs over many slides (eov batch run <plugin>:<command> SLIDES). Register it increate; slides then arrive asHostEvent::BatchRun.- CLIPBOARD_
SET_ TEXT TextArgs→null- DIALOG_
CONFIRM ConfirmArgs→RequestId(result arrives asConfirmResult)- DIALOG_
OPEN_ FILE FileDialogArgs→RequestId(result arrives asDialogResult)- DIALOG_
SAVE_ FILE FileDialogArgs→RequestId(result arrives asDialogResult)- EVENTS_
SUBSCRIBE SubscribeArgs→null. Restricts the events delivered to the plugin; by default every event is delivered.- FILE_
INFO FileArgs→FileInfo- FILE_
OPEN OpenFileArgs→null- FILE_
PROPERTIES FileArgs→{ "<name>": "<value>" }(all slide properties)- FILTER_
REGISTER FilterSpec→null- FILTER_
SET_ ENABLED FilterEnableArgs→null- FILTER_
UNREGISTER IdArgs { id: filter_id }→null- HOTKEY_
REGISTER HotkeySpec→null. A key binding of its own, not tied to a toolbar button or tool; presses arrive asHotkeyPressed.- HOTKEY_
UNREGISTER IdArgs { id: hotkey_id }→null- HUD_ADD
HudButtonSpec→null- HUD_
REMOVE IdArgs { id: button_id }→null- HUD_
UPDATE ButtonUpdate→null- JOB_
FINISH JobFinishArgs→null- JOB_
START JobStartArgs→JobStarted- JOB_
UPDATE JobUpdateArgs→null- LAYER_
CLEAR IdArgs { id: layer_id }→null. Removes every object.- LAYER_
CREATE LayerSpec→null(replaces an existing layer with the same id)- LAYER_
HIGHLIGHT SelectArgs→null. Draws these objects with the layer’s hover style (an empty list clears it), e.g. while a list row is hovered.- LAYER_
REMOVE IdArgs { id: layer_id }→null- LAYER_
REMOVE_ OBJECTS RemoveObjectsArgs→null- LAYER_
SELECT SelectArgs→null- LAYER_
SET_ MIN_ ZOOM MinZoomArgs→null. Hides the layer below a zoom level.- LAYER_
SET_ PANES PaneFilterArgs→null. Shows the layer only in these panes (None: in every pane), including panes opened later.- LAYER_
SET_ PANE_ VISIBILITY PaneVisibilityArgs→null. Shows or hides the layer in one pane (on top of the layer’s own visibility).- LAYER_
UPDATE LayerUpdate→null- LAYER_
UPSERT UpsertObjectsArgs→null. Parsed and indexed on the calling thread; call it from a worker thread for large batches.- LOG
LogArgs→null- MEASUREMENTS_
LIST FileArgs→Vec<MeasurementInfo>- MODEL_
FETCH ModelFetchArgs→RequestId: makes a model available in eov’s model store, downloading it (after the user agrees, with progress in the status bar) when it is not stored yet, and verifying every file against its SHA-256. The answer arrives asHostEvent::ModelFetched.- MODEL_
LIST {}→Vec<ModelRecord>: every stored model.- MODEL_
RESOLVE ModelResolveArgs→Option<ModelRecord>: the stored model whose main file has this SHA-256, if any (never downloads).- NOTIFY
NotifyArgs→null. Shows a toast and records it in the log.- POST
PostArgs→null. DeliversPosted { token }on the UI thread.- RENDER_
REQUEST {}→null- ROI_GET
FileArgs→Option<Rect>(the host region of interest of a slide)- SETTINGS_
GET KeyArgs→ value ornull- SETTINGS_
SET SettingsSetArgs→null(persisted by the host)- SNAPSHOT
{}→HostSnapshot- STATUS
StatusArgs→null. Plugin-owned status bar segment.- SURFACE_
CLOSE IdArgs { id: surface_id }→null- SURFACE_
IS_ OPEN IdArgs { id: surface_id }→bool- SURFACE_
OPEN SurfaceSpec→SurfaceOpened- SURFACE_
SET SurfaceProperties→null. Values the surface already shows are left alone.- TOOLBAR_
ADD ToolbarButtonSpec→null- TOOLBAR_
REMOVE IdArgs { id: button_id }→null- TOOLBAR_
UPDATE ButtonUpdate→null- TOOL_
ACTIVATE IdArgs { id: tool_id }→null- TOOL_
DEACTIVATE {}→null. Returns to Navigate if one of this plugin’s tools is active.- TOOL_
REGISTER ToolSpec→null- TOOL_
UNREGISTER IdArgs { id: tool_id }→null- UNDO_
CLEAR UndoClearArgs→null- UNDO_
PUSH UndoPushArgs→null- VIEW_
DISPLAY PaneArgs→DisplayAdjustments: how the pane renders the slide, so overlays derived from slide pixels can match it.- VIEW_
FIT PaneArgs→null- VIEW_
FRAME ViewFrameArgs→null- VIEW_
ORIENTATION ViewOrientationArgs→null: turns a pane’s view, by any angle (it must be finite), about the pane centre.- VIEW_
PAN ViewPanArgs→null- VIEW_
SET ViewSetArgs→null- VIEW_
ZOOM ViewZoomArgs→null