We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eab81b commit ac8e14bCopy full SHA for ac8e14b
site/src/components/ShapeBuilder/index.js
@@ -27,7 +27,6 @@ const ShapeBuilder = () => {
27
28
const handleCopyToClipboard = async () => {
29
if (!result.trim()) return;
30
-
31
try {
32
await navigator.clipboard.writeText(result);
33
setShowCopied(true);
@@ -324,6 +323,9 @@ const ShapeBuilder = () => {
324
323
onMouseDown={onMouseDown}
325
onMouseMove={onMouseMove}
326
onMouseUp={onMouseUp}
+ onDoubleClick={() => {
327
+ if (!isClosed && anchors.length >= 3) setIsClosed(true);
328
+ }}
329
>
330
<defs>
331
<pattern id="grid" width="16" height="16" patternUnits="userSpaceOnUse">
0 commit comments