import { SimplePath , Traceable } from "." ; param traceable export function traceSimplePath ( traceable ) { const sp = SimplePath . withPoints ( [ ] ) ; traceable . traceIn ( { moveTo ( x , y ) { sp . addPoint ( [ x , y ] ) ; } , lineTo ( x , y ) { sp . addPoint ( [ x , y ] ) ; } , } as CanvasRenderingContext2D ) ; return sp ; }