TextFrameStyleProps Interface

Describes how to draw the frame around a TextAnnotation. The frame can be a simple line, a filled shape, or both. If only a subset of properties are specified, the others will be set to their default value.

Properties

Name Type Description
border TextStyleColor | undefined The color of the text frame's outline.  
borderWeight number | undefined This will be used to set the GeometryParams.weight property of the frame (in pixels).  
fill TextAnnotationFillColor | undefined The color to fill the shape of the text frame.  
shape "none" | "line" | "rectangle" | "circle" | "equilateralTriangle" | "diamond" | "square" | "pentagon" | "hexagon" | "octagon" | "capsule" | "roundedRectangle" Shape of the frame.  

Defined in

Last Updated: 29 July, 2025