Skip to content

LabelCaptionMeasurement

What a caption measures against the frame it is destined for.

Import:

import type { LabelCaptionMeasurement } from 'obsidian-integration-testing';

Signature:

export interface LabelCaptionMeasurement

Properties

PropertyTypeDescription
captionRoomInPixelsnumberThe room available, in pixels — LabelBandGeometry.captionRoomInPixels.
doesFitbooleanWhether the caption fits that room.
textWidthInPixelsnumberHow wide the caption actually renders, in pixels, at the size the band would draw it.

Links to this page: