Skip to content

refactor(joint-core): remove this-context dependency from link anchors#3274

Merged
Geliogabalus merged 1 commit intoclientIO:masterfrom
kumilingus:feat/link-anchors-no-this-context
Apr 14, 2026
Merged

refactor(joint-core): remove this-context dependency from link anchors#3274
Geliogabalus merged 1 commit intoclientIO:masterfrom
kumilingus:feat/link-anchors-no-this-context

Conversation

@kumilingus
Copy link
Copy Markdown
Contributor

Summary

  • Replace this references with the linkView parameter in resolveRef() wrapper for link anchor functions
  • Link anchors (connectionPerpendicular, connectionClosest) can now be called directly as anchor(view, magnet, ref, opt, endType, linkView) without needing .call(linkView, ...)

Test plan

  • Verify link anchors work correctly when links connect to other links
  • Verify connectionPerpendicular and connectionClosest produce same results as before

🤖 Generated with Claude Code

@kumilingus kumilingus force-pushed the feat/link-anchors-no-this-context branch from 9b90150 to 9d38601 Compare April 13, 2026 18:20
Use the linkView parameter instead of relying on `this` context in
resolveRef(), so link anchor functions can be called directly without
needing `.call(linkView, ...)`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kumilingus kumilingus force-pushed the feat/link-anchors-no-this-context branch from 9d38601 to 41684e9 Compare April 13, 2026 18:21
@kumilingus kumilingus marked this pull request as ready for review April 14, 2026 10:27
@kumilingus kumilingus requested a review from Geliogabalus April 14, 2026 10:28
@Geliogabalus Geliogabalus merged commit 369bbf8 into clientIO:master Apr 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants