Skip to content

Conversation

@mtolmacs
Copy link
Collaborator

Using ALT/OPT + drag to clone does not transfer the bindings (or leaves the duplicates in place of the old one , which are also not bound).

Before

before

After

after

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
@vercel
Copy link

vercel bot commented Jun 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
excalidraw ✅ Ready (Inspect) Visit Preview Jun 28, 2024 1:06pm
excalidraw-package-example ✅ Ready (Inspect) Visit Preview Jun 28, 2024 1:06pm
excalidraw-package-example-with-nextjs ✅ Ready (Inspect) Visit Preview Jun 28, 2024 1:06pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Jun 28, 2024 1:06pm

@github-actions
Copy link

github-actions bot commented Jun 27, 2024

Coverage Report

Status Category Percentage Covered / Total
🔴 Lines 66.15% (🎯 70%) 53410 / 80734
🔴 Statements 66.15% (🎯 70%) 53410 / 80734
🔴 Functions 67.27% (🎯 68%) 1610 / 2393
🟢 Branches 80.85% (🎯 70%) 6518 / 8061
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/excalidraw/element/binding.ts 96.96% 90.25% 100% 96.96% 225, 231, 250, 255, 298-299, 509-510, 584, 586-587, 607, 617-619, 718-719, 727-728, 733-734, 775, 787-788, 815-816, 1172-1174, 1212-1217, 1263-1264, 1286-1287, 1339-1341, 1516-1517, 1628-1629, 1661-1665
Generated in workflow #2745

Comment on lines 763 to 765
const { boundElements } = sceneElements.filter(
({ id }) => id === oldElementId,
)[0];
Copy link
Member

@dwelle dwelle Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use find so we don't alloc an array for no reason (will require type assertion !, but once we check for unsafe array access we'd need it anyway)

(edit: perf doesn't matter, but feels cleaner)

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
@zsviczian
Copy link
Collaborator

regression: Duplicate bound arrow with only one end bound throws error originating from Throttle Fractional indices #8315

Jauhen pushed a commit to Jauhen/excalidraw that referenced this pull request Nov 7, 2024
…plicate shapes (excalidraw#8185)

Using ALT/OPT + drag to clone does not transfer the bindings (or leaves the duplicates in place of the old one , which are also not bound).

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants