LabelCaptionMeasurement
What a caption measures against the frame it is destined for.
Import:
import type { LabelCaptionMeasurement } from 'obsidian-integration-testing';Signature:
export interface LabelCaptionMeasurementProperties
| Property | Type | Description |
|---|---|---|
| captionRoomInPixels | number | The room available, in pixels — LabelBandGeometry.captionRoomInPixels. |
| doesFit | boolean | Whether the caption fits that room. |
| textWidthInPixels | number | How wide the caption actually renders, in pixels, at the size the band would draw it. |
Links to this page: