@xpadev-net/niconicomments
Preparing search index...
utils/niconico
measure
Function measure
measure
(
comment
:
{
charSize
:
number
;
content
:
(
|
{
char
:
string
;
charWidth
:
number
;
count
:
number
;
font
?:
"defont"
|
"gulim"
|
"simsun"
;
isButton
?:
boolean
;
type
:
"spacer"
;
}
|
{
content
:
string
;
font
?:
"defont"
|
"gulim"
|
"simsun"
;
isButton
?:
boolean
;
slicedContent
:
string
[]
;
type
:
"text"
;
width
?:
number
[]
;
}
)
[]
;
font
:
"defont"
|
"mincho"
|
"gothic"
|
"gulim"
|
"simsun"
;
lineCount
:
number
;
lineHeight
:
number
;
}
,
renderer
:
IRenderer
,
)
:
{
height
:
number
;
itemWidth
:
number
[]
[]
;
lineWidth
:
number
[]
;
width
:
number
;
}
コメントのサイズを計測する
Parameters
comment
:
{
charSize
:
number
;
content
:
(
|
{
char
:
string
;
charWidth
:
number
;
count
:
number
;
font
?:
"defont"
|
"gulim"
|
"simsun"
;
isButton
?:
boolean
;
type
:
"spacer"
;
}
|
{
content
:
string
;
font
?:
"defont"
|
"gulim"
|
"simsun"
;
isButton
?:
boolean
;
slicedContent
:
string
[]
;
type
:
"text"
;
width
?:
number
[]
;
}
)
[]
;
font
:
"defont"
|
"mincho"
|
"gothic"
|
"gulim"
|
"simsun"
;
lineCount
:
number
;
lineHeight
:
number
;
}
コメント
renderer
:
IRenderer
計測対象のレンダラーインスタンス
Returns
{
height
:
number
;
itemWidth
:
number
[]
[]
;
lineWidth
:
number
[]
;
width
:
number
}
計測結果
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@xpadev-net/niconicomments
Loading...
コメントのサイズを計測する