Skip to content

feat(joint-core): Paper.resolveViewClass pass NSView to factory callback#3369

Merged
zbynekstara merged 1 commit into
clientIO:masterfrom
kumilingus:feat/joint-core-measureNodeBoundingRect
Jun 15, 2026
Merged

feat(joint-core): Paper.resolveViewClass pass NSView to factory callback#3369
zbynekstara merged 1 commit into
clientIO:masterfrom
kumilingus:feat/joint-core-measureNodeBoundingRect

Conversation

@kumilingus

Copy link
Copy Markdown
Contributor

Summary

Backport of the @joint/core portion of #3277 to master.

  • Paper.resolveViewClass() — the elementView / linkView factory callbacks now receive a second argument NSView (the namespace view class, or null), and namespaceViewClass defaults to null instead of undefined.

The rest of the joint-core changes from #3277 (CellView.computeNodeBoundingRect, HighlighterView Element validation, types) already landed on master via subsequent commits — this PR closes the remaining gap.

Test plan

  • yarn test-server (joint-core)
  • yarn test-ts
  • Verify custom elementView / linkView factory functions can read the new NSView argument

🤖 Generated with Claude Code

The `elementView` / `linkView` factory callbacks now receive a second
argument `NSView` (the namespace view class, or `null`), and
`namespaceViewClass` defaults to `null` instead of `undefined`.

Cherry-picked from clientIO#3277 (joint-core portion).
@kumilingus kumilingus requested a review from zbynekstara June 15, 2026 14:56
@zbynekstara zbynekstara merged commit 88e5812 into clientIO:master Jun 15, 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