diff --git a/components/canvas/page.tsx b/components/canvas/page.tsx index c0cf1f2e8..ed0ab79fa 100644 --- a/components/canvas/page.tsx +++ b/components/canvas/page.tsx @@ -18,10 +18,10 @@ export default function Page() { const isSelecting = useSelector((s) => s.isIn('selecting')) return ( - <> + {currentPageShapeIds.map((shapeId) => ( ))} - + ) } diff --git a/components/canvas/selected.tsx b/components/canvas/selected.tsx index 319223594..ba7251583 100644 --- a/components/canvas/selected.tsx +++ b/components/canvas/selected.tsx @@ -33,9 +33,10 @@ export function ShapeOutline({ id }: { id: string }) { if (!shape) return null const transform = ` - rotate(${shape.rotation * (180 / Math.PI)}, - ${getShapeUtils(shape).getCenter(shape)}) - translate(${shape.point})` + rotate(${shape.rotation * (180 / Math.PI)}, + ${getShapeUtils(shape).getCenter(shape)}) + translate(${shape.point}) + ` return ( ({ parentId: 'page0', childIndex: 0, point: [0, 0], - points: [[0, 0]], + points: [], rotation: 0, isAspectRatioLocked: false, isLocked: false, @@ -50,7 +49,12 @@ const draw = registerShapeUtils({ pathCache.set( points, getSvgPathFromStroke( - getStroke(points, { size: +style.strokeWidth * 2, thinning: 0.9 }) + getStroke(points, { + size: +style.strokeWidth * 2, + thinning: 0.9, + end: { taper: 100 }, + start: { taper: 100 }, + }) ) ) }