{ "version": 3, "sources": ["../../../../../src/lib/shapes/shared/freehand/getStroke.ts"], "sourcesContent": ["import { Vec2d, VecLike } from '@tldraw/editor'\nimport { getStrokeOutlinePoints } from './getStrokeOutlinePoints'\nimport { getStrokePoints } from './getStrokePoints'\nimport { setStrokePointRadii } from './setStrokePointRadii'\nimport type { StrokeOptions } from './types'\n\n/**\n * ## getStroke\n *\n * Get an array of points describing a polygon that surrounds the input points.\n *\n * @param points - An array of points (as `[x, y, pressure]` or `{x, y, pressure}`). Pressure is\n * optional in both cases.\n * @param options - An object with options.\n * @public\n */\n\nexport function getStroke(points: VecLike[], options: StrokeOptions = {}): Vec2d[] {\n\treturn getStrokeOutlinePoints(\n\t\tsetStrokePointRadii(getStrokePoints(points, options), options),\n\t\toptions\n\t)\n}\n"], "mappings": "AACA,SAAS,8BAA8B;AACvC,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;AAc7B,SAAS,UAAU,QAAmB,UAAyB,CAAC,GAAY;AAClF,SAAO;AAAA,IACN,oBAAoB,gBAAgB,QAAQ,OAAO,GAAG,OAAO;AAAA,IAC7D;AAAA,EACD;AACD;", "names": [] }