license import * as constants from './constants' ; import { SupportedModels } from './types' ; export function getKeypointIndexByContour ( model ) { switch ( model ) { case SupportedModels . MediaPipeFaceMesh : return constants . MEDIAPIPE_KEYPOINTS_BY_CONTOUR ; default : throw new Error ( `Model ${ model } is not supported.` ) ; } } export function getAdjacentPairs ( model ) { switch ( model ) { case SupportedModels . MediaPipeFaceMesh : return constants . MEDIAPIPE_CONNECTED_KEYPOINTS_PAIRS ; default : throw new Error ( `Model ${ model } is not supported.` ) ; } }