Function prepareAnnotatedText
- prepareAnnotatedText(ctx, cell, labelOverride?): {
annotatedText: AnnotatedText[];
textBbox: undefined;
} | {
annotatedText: AnnotatedText[];
textBbox: Rect;
} Parameters
- ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D
- cell: {
isCell: boolean;
margins: TextMargins;
relativeTextPosition: RelativeTextPosition;
textLabel: null | Label;
txtHeight: number;
txtWidth: number;
width: number;
}isCell: boolean
textLabel: null | Label
txtHeight: number
txtWidth: number
width: number
OptionallabelOverride: Label
Returns {
annotatedText: AnnotatedText[];
textBbox: undefined;
} | {
annotatedText: AnnotatedText[];
textBbox: Rect;
}