Preparing search index...
The search index is not available
ducjs - v4.0.4
ducjs
getTextElementPositionOffsets
Function getTextElementPositionOffsets
computes element x/y offset based on textAlign/verticalAlign
getTextElementPositionOffsets
(
opts
:
{
textAlign
:
TextAlign
;
verticalAlign
:
VerticalAlign
}
,
metrics
:
{
height
:
RawValue
;
width
:
RawValue
}
,
)
:
{
x
:
number
;
y
:
number
}
Parameters
opts
:
{
textAlign
:
TextAlign
;
verticalAlign
:
VerticalAlign
}
metrics
:
{
height
:
RawValue
;
width
:
RawValue
}
Returns
{
x
:
number
;
y
:
number
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ducjs - v4.0.4
Loading...
computes element x/y offset based on textAlign/verticalAlign