{
  "version": 3,
  "sources": ["../../../../../src/lib/shapes/shared/freehand/getStroke.ts"],
  "sourcesContent": ["import { Vec, VecLike } from '@tldraw/editor'\nimport { computeRadii, ingest, loadSrcFromPipeline, pointCount } from './core'\nimport { outlineFromSrc } from './getStrokeOutlinePoints'\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 = {}): Vec[] {\n\tingest(points, options)\n\tif (pointCount === 0) return []\n\tcomputeRadii(options)\n\tloadSrcFromPipeline()\n\treturn outlineFromSrc(options)\n}\n"],
  "mappings": "AACA,SAAS,cAAc,QAAQ,qBAAqB,kBAAkB;AACtE,SAAS,sBAAsB;AAcxB,SAAS,UAAU,QAAmB,UAAyB,CAAC,GAAU;AAChF,SAAO,QAAQ,OAAO;AACtB,MAAI,eAAe,EAAG,QAAO,CAAC;AAC9B,eAAa,OAAO;AACpB,sBAAoB;AACpB,SAAO,eAAe,OAAO;AAC9B;",
  "names": []
}
