Skip to content

TypeScript SDK Reference / FaceMeshOptions

Interface: FaceMeshOptions ​

Properties ​

animate? ​

optional animate: boolean


animationDelay? ​

optional animationDelay: number

Animation delay in seconds (controls the CSS animation-delay)


animationDirection? ​

optional animationDirection: FaceMeshAnimationDirection

Animation direction: 'horizontal' (default) or 'vertical'


animationSpeed? ​

optional animationSpeed: number

Animation speed in seconds (controls the CSS animation duration)


color? ​

optional color: string


enabled? ​

optional enabled: boolean


lineWidth? ​

optional lineWidth: number | `${number}%`


simplifyFaceMesh? ​

optional simplifyFaceMesh: boolean

Whether to simplify the face mesh by removing the outer perimeter and surrounding structural zigzag connections. Default is false.