Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): support alt key duplicate #WIK-15159 #851

Merged
merged 7 commits into from
Apr 26, 2024
Merged

Conversation

huanhuanwa
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Apr 26, 2024

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

Name Status Preview Comments Updated (UTC)
plait ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 26, 2024 9:09am
plait-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 26, 2024 9:09am

pendingNodesG = createG();
pendingNodesG.classList.add(ACTIVE_MOVING_CLASS_NAME);
}
pendingNodesG!.append(movingG);
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果有角度的话,好像需要设置下角度

packages/core/src/plugins/create-board.ts Outdated Show resolved Hide resolved
packages/core/src/utils/fragment.ts Outdated Show resolved Hide resolved
packages/draw/src/utils/selected.ts Outdated Show resolved Hide resolved
packages/mind/src/utils/node/common.ts Outdated Show resolved Hide resolved
packages/core/src/plugins/with-moving.ts Outdated Show resolved Hide resolved

export function withMoving(board: PlaitBoard) {
const { pointerDown, pointerMove, globalPointerUp, globalPointerMove } = board;
const { pointerDown, pointerMove, globalPointerUp, globalPointerMove, globalKeyDown, keyUp, pointerUp } = board;
Copy link
Collaborator

Choose a reason for hiding this comment

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

对于 duplicated 感觉可以和 with-moving 分开,没必要一起考虑,看看拆开是否合理

Copy link
Contributor Author

Choose a reason for hiding this comment

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

也可以拆开,但是重复代码就会很多, pointerDown 中针对 activeElements 的处理逻辑、还有参考线的逻辑都是一样的

@pubuzhixing8 pubuzhixing8 merged commit f854a64 into develop Apr 26, 2024
4 checks passed
@pubuzhixing8 pubuzhixing8 deleted the w/#WIK-15159 branch April 26, 2024 09:36
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.

None yet

3 participants