Coral 0.2.17 candidate API
Preparing search index...
@coral-viz/render
computeTextBox
Function computeTextBox
computeTextBox
(
width
:
number
,
height
:
number
,
sizing
:
StencilLabelSizing028
,
shapeId
?:
string
,
context
?:
StencilCaptionContext0210
,
)
:
{
height
:
number
;
width
:
number
;
x
:
number
;
y
:
number
}
The centered rectangle in which a shape can safely render its label.
Parameters
width
:
number
height
:
number
sizing
:
StencilLabelSizing028
Optional
shapeId
:
string
Optional
context
:
StencilCaptionContext0210
Returns
{
height
:
number
;
width
:
number
;
x
:
number
;
y
:
number
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coral 0.2.17 candidate API
Loading...
The centered rectangle in which a shape can safely render its label.