MCPcopy Create free account
hub / github.com/a7medev/react-native-ml-kit / pointsToPath

Function pointsToPath

example/src/face-detection/FaceMap.tsx:31–36  ·  view source on GitHub ↗
(points: Point[])

Source from the content-addressed store, hash-verified

29 const frame = scaledFrame(face.frame)!;
30
31 function pointsToPath(points: Point[]) {
32 return points
33 .map(scaledPoint)
34 .map(({x, y}, i) => `${i === 0 ? 'M' : 'L'} ${x} ${y} `)
35 .join(' ');
36 }
37
38 return (
39 <Svg style={styles.container} width={width} height={height}>

Callers 1

FaceMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected