CmdTargetMeasurement
Queries effective measurements of a logical target.
Arguments
| Field | Type | Description |
|---|---|---|
| targetId | u64 | Logical target ID |
| getSize | bool | Includes size and sourceKind in the response |
| getWindowSize | bool | Includes windowSize in the response (when applicable) |
Response
Returns CmdResultTargetMeasurement:
| Field | Type | Description |
|---|---|---|
| success | bool | Whether command was applied successfully |
| message | String | Command status |
| size | Option |
Effective target size |
| windowSize | Option |
Associated window size (when available) |
| sourceKind | Option |
Source of size measurement: "surface", "window-surface", or "declared" |
Notes
- If
targetIdis not ready yet, the command returnssuccess=truewith an empty payload. sizeprioritizes observable real surface measurement (autolink/present window) before declared fallback.- For browser targets bound to windows, surface measurement honors HiDPI when the host uses CSS sizing.
Documentation Vulfram Core