Timeline Studio API Documentation - v0.26.0
Preparing search index...
features/timeline/types/factories
createSubtitleClip
Function createSubtitleClip
createSubtitleClip
(
text
:
string
,
trackId
:
string
,
startTime
:
number
,
duration
:
number
,
options
?:
{
animationIn
?:
{
duration
:
number
;
easing
?:
"linear"
|
"ease"
|
"ease-in"
|
"ease-out"
|
"ease-in-out"
;
type
:
"slide"
|
"fade"
|
"typewriter"
|
"scale"
|
"wave"
;
}
;
animationOut
?:
{
duration
:
number
;
easing
?:
"linear"
|
"ease"
|
"ease-in"
|
"ease-out"
|
"ease-in-out"
;
type
:
"slide"
|
"fade"
|
"scale"
;
}
;
formatting
?:
{
bold
?:
boolean
;
color
?:
string
;
fontSize
?:
number
;
italic
?:
boolean
;
underline
?:
boolean
;
}
;
position
?:
{
alignment
:
|
"top-left"
|
"top-right"
|
"bottom-left"
|
"bottom-right"
|
"top-center"
|
"middle-left"
|
"middle-center"
|
"middle-right"
|
"bottom-center"
;
marginX
:
number
;
marginY
:
number
;
}
;
subtitleStyleId
?:
string
;
}
,
)
:
SubtitleClip
Создает новый субтитровый клип
Parameters
text
:
string
trackId
:
string
startTime
:
number
duration
:
number
Optional
options
:
{
animationIn
?:
{
duration
:
number
;
easing
?:
"linear"
|
"ease"
|
"ease-in"
|
"ease-out"
|
"ease-in-out"
;
type
:
"slide"
|
"fade"
|
"typewriter"
|
"scale"
|
"wave"
;
}
;
animationOut
?:
{
duration
:
number
;
easing
?:
"linear"
|
"ease"
|
"ease-in"
|
"ease-out"
|
"ease-in-out"
;
type
:
"slide"
|
"fade"
|
"scale"
;
}
;
formatting
?:
{
bold
?:
boolean
;
color
?:
string
;
fontSize
?:
number
;
italic
?:
boolean
;
underline
?:
boolean
;
}
;
position
?:
{
alignment
:
|
"top-left"
|
"top-right"
|
"bottom-left"
|
"bottom-right"
|
"top-center"
|
"middle-left"
|
"middle-center"
|
"middle-right"
|
"bottom-center"
;
marginX
:
number
;
marginY
:
number
;
}
;
subtitleStyleId
?:
string
;
}
Returns
SubtitleClip
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Timeline Studio API Documentation - v0.26.0
Loading...
Создает новый субтитровый клип