Skip to content

5.6~5.9 issue fix round 1#2143

Merged
boyongjiong merged 3 commits intomasterfrom
issuefix/round-5.6-to-5.9
May 8, 2025
Merged

5.6~5.9 issue fix round 1#2143
boyongjiong merged 3 commits intomasterfrom
issuefix/round-5.6-to-5.9

Conversation

@DymoneLewis
Copy link
Copy Markdown
Collaborator

fix #2138 #2140

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2025

⚠️ No Changeset found

Latest commit: 23c9d9f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@DymoneLewis DymoneLewis changed the title 5.6~5.9 issue fix 5.6~5.9 issue fix round 1 May 8, 2025

setMode(mode: IMode) {
public setMode(mode: IMode) {
console.log('setMode', mode)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

干掉它

}

highlight(id: string, mode: IMode = this.mode) {
console.log('highlight', id, mode)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

another one

this.lf.graphModel.getNodeModelById(targetNodeId)
const dropPointIsAnchor = targetNodeModel?.anchors.some((anchor) => {
const { x, y } = anchor
return Math.abs(eventX - x) <= 10 && Math.abs(eventY - y) <= 10
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

确认下如果锚点大小调整了,会不会 dropPointIsAnchor 判断与实际不符

现在是判断 Math.abs(evtX - x) <= 10,相当于默认锚点大小为 10

Copy link
Copy Markdown
Collaborator

@boyongjiong boyongjiong left a comment

Choose a reason for hiding this comment

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

gogogo

@boyongjiong boyongjiong merged commit b7b08fb into master May 8, 2025
1 check passed
@boyongjiong boyongjiong deleted the issuefix/round-5.6-to-5.9 branch May 8, 2025 09:46
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.

[Feature]: 高亮插件的数据如何获取

2 participants