Skip to main content

@twick/video-editor / Exports

@twick/video-editor

Table of contents

Classes

Type Aliases

Variables

Functions

Type Aliases

Animation

Ƭ Animation: Object

Type declaration

NameType
animate?"enter" | "exit" | "both"
direction?"up" | "down" | "left" | "right" | "center"
getSample(animation?: Animation) => string
interval?number
mode?"in" | "out"
namestring
options?{ animate?: string[] ; direction?: string[] ; mode?: string[] }
options.animate?string[]
options.direction?string[]
options.mode?string[]

Defined in

packages/video-editor/src/helpers/types.ts:27


MediaItem

Ƭ MediaItem: Object

Type declaration

NameType
arrayBuffer?ArrayBuffer
idstring
metadata?Record<string, any>
thumbnail?string
type"image" | "video" | "audio"
urlstring

Defined in

packages/video-editor/src/helpers/types.ts:1


PaginationOptions

Ƭ PaginationOptions: Object

Type declaration

NameType
limitnumber
pagenumber

Defined in

packages/video-editor/src/helpers/types.ts:10


SearchOptions

Ƭ SearchOptions: Object

Type declaration

NameType
metadata?Record<string, any>
querystring
type?"image" | "video" | "audio"

Defined in

packages/video-editor/src/helpers/types.ts:15

Variables

ANIMATIONS

Const ANIMATIONS: Animation[]

Defined in

packages/video-editor/src/helpers/animation-manager.tsx:4


AVAILABLE_TEXT_FONTS

Const AVAILABLE_TEXT_FONTS: Object

Type declaration

NameType
BANGERSstring
BIRTHSTONEstring
BRITTANY_SIGNATUREstring
CORINTHIAstring
DASHERstring
HANDYRUSHstring
IMPACTstring
IMPERIAL_SCRIPTstring
KAPAKANAstring
KUMAR_ONE_OUTLINEstring
LONDRI_OUTLINEstring
LUCKIEST_GUYstring
LUMANOSIMOstring
MARCK_SCRIPTstring
MONTSERRATstring
MULISHstring
PATTAYAstring
PERALTAstring
PLAYFAIR_DISPLAYstring
POPPINSstring
ROBOTOstring
RUBIKstring

Defined in

packages/video-editor/src/helpers/constants.ts:53


DEFAULT_ELEMENT_COLORS

Const DEFAULT_ELEMENT_COLORS: ElementColors

Defined in

packages/video-editor/src/helpers/constants.ts:38


DEFAULT_TIMELINE_ZOOM

Const DEFAULT_TIMELINE_ZOOM: 1.5

Defined in

packages/video-editor/src/helpers/constants.ts:36


DRAG_TYPE

Const DRAG_TYPE: Object

Type declaration

NameType
ENDstring
MOVEstring
STARTstring

Defined in

packages/video-editor/src/helpers/constants.ts:30


INITIAL_TIMELINE_DATA

Const INITIAL_TIMELINE_DATA: Object

Type declaration

NameType
tracks{ elements: { e: number = 5; id: string = "e-sample"; name: string = "sample"; props: { fill: string = "#FFFFFF"; text: string = "Twick Video Editor" } ; s: number = 0; trackId: string = "t-sample"; type: string = "text" }[] ; id: string = "t-sample"; name: string = "sample"; type: string = "element" }[]
versionnumber

Defined in

packages/video-editor/src/helpers/constants.ts:3


MIN_DURATION

Const MIN_DURATION: 0.1

Defined in

packages/video-editor/src/helpers/constants.ts:28


TEXT_EFFECTS

Const TEXT_EFFECTS: TextEffect[]

Defined in

packages/video-editor/src/helpers/text-effects-manager.tsx:3


animationGifs

Const animationGifs: Object

Type declaration

NameType
blurstring
breathe-instring
breathe-outstring
fadestring
rise-downstring
rise-upstring
successionstring

Defined in

packages/video-editor/src/assets/index.ts:11

Functions

PlayerControls

PlayerControls(props, deprecatedLegacyContext?): ReactNode

Parameters

NameTypeDescription
propsPlayerControlsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

ReactNode

Defined in

packages/video-editor/src/components/controls/player-controls.tsx:23


TimelineManager

TimelineManager(«destructured»): Element

Parameters

NameType
«destructured»Object
› timelineControls?ReactNode
› trackZoomnumber

Returns

Element

Defined in

packages/video-editor/src/components/timeline/timeline-manager.tsx:5


default

default(props, deprecatedLegacyContext?): ReactNode

Parameters

NameTypeDescription
propsVideoEditorProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

ReactNode

Defined in

packages/video-editor/src/components/video-editor.tsx:23


getAnimationGif

getAnimationGif(name): string

Parameters

NameType
namestring

Returns

string

Defined in

packages/video-editor/src/assets/index.ts:33


usePlayerControl

usePlayerControl(): Object

Returns

Object

NameType
togglePlayback() => void

Defined in

packages/video-editor/src/hooks/use-player-control.tsx:8


useTimelineControl

useTimelineControl(): Object

Returns

Object

NameType
deleteItem(item: TrackElement | Track) => void
handleRedo() => void
handleUndo() => void
splitElement(element: TrackElement, currentTime: number) => void

Defined in

packages/video-editor/src/hooks/use-timeline-control.tsx:7