LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.interaction.anchorPath

Declare an editable open or closed path on one plot axis.

Syntax

spec = labkit.app.interaction.anchorPath(id, onChanged, Name=Value)

Description

Creates the semantic declaration for a managed multi-anchor path editor; the runtime owns native graphics, viewport preservation, and dispatch.

Inputs

id
Unique MATLAB identifier for this interaction.
onChanged
Callback state = callback(state,points,context).

Options

Axis
Axis ID within the owning plotArea. Default: "main".
Style
Scalar struct of anchor editor visual options. Default: struct().
Instruction
Scalar user guidance text. Default: "".
ViewportPolicy
"preserve" or "fit". Default: "preserve".

Outputs

spec
Immutable interaction declaration accepted by layout.plotArea.

Errors

Throws labkit:app:contract:* for invalid IDs, options, or callbacks.

Typical Call

spec = labkit.app.interaction.anchorPath( ...
"curve", @changeCurve, Style=struct("closed", false));

Source

This page is generated from the MATLAB help text in +labkit/+app/+interaction/anchorPath.m.