Skip to content

fix(linkTools.Vertices): type interactiveLinkNode - #3549

Merged
kumilingus merged 1 commit into
clientIO:masterfrom
MartinKanera:fix/vertices-interactive-link-node-types
Oct 14, 2026
Merged

kumilingus merged 1 commit into
clientIO:masterfrom
MartinKanera:fix/vertices-interactive-link-node-types

Conversation

@MartinKanera

@MartinKanera MartinKanera commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

linkTools.Vertices reads vertexAdding.interactiveLinkNode, but the typings declared the property as interactiveLineNode. TypeScript users who wrote the working name got a compile error, and the name that compiled did nothing at runtime. With this change the typings use the name the tool reads.

Changes

  • linkTools.Vertices.VertexAddingOptions: interactiveLineNode renamed to interactiveLinkNode.
  • A test/ts check that passes vertexAdding: { interactiveLinkNode: 'wrapper' }.
  • A patch changeset for @joint/core.

Breaking changes

  • Code that passes interactiveLineNode now fails to compile (TS2561). That name never had any effect at runtime, so the error points at an existing bug; no alias is kept.

Verification

  • yarn workspace @joint/core lint: pass
  • yarn workspace @joint/core test: pass (mocha server 4/4, Karma joint 2157/2157, geometry 350/350, vectorizer 453/453 with coverage thresholds, qunit, ts:test, ts:test-exports)
  • Test first: the new test/ts check failed with TS2561 before the rename and passes after it.
  • yarn changeset status --since=upstream/master: @joint/core patch
  • Browser: no check, since only typings change

Related

The vertexAdding option was typed as interactiveLineNode, but the tool
reads interactiveLinkNode. TypeScript rejected the working name, and
the name it accepted had no effect at runtime.

Code that still passes interactiveLineNode now fails to compile. That
name never did anything, so no alias is kept.
@MartinKanera
MartinKanera marked this pull request as ready for review October 14, 2026 07:54
@kumilingus
kumilingus merged commit 375e9cf into clientIO:master Oct 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.

linkTools.Vertices: vertexAdding typed as interactiveLineNode, read as interactiveLinkNode

2 participants