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(draw): support set partial text property for multiple text nodes #WIK-15509 #891

Merged
merged 12 commits into from
May 28, 2024

Conversation

huanhuanwa
Copy link
Contributor

No description provided.

Copy link

vercel bot commented May 24, 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 May 28, 2024 3:17am
plait-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 3:17am

}
};

export const getHitTextEditor = (board: PlaitBoard, element: PlaitGeometry | PlaitTable, point?: Point) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

没有使用?

packages/draw/src/utils/geometry.ts Outdated Show resolved Hide resolved
const selectedTableAndGeometryElements = [...selectedGeometryElements, ...selectedTableElements];
if (selectedTableAndGeometryElements.length) {
const firstGeometry = selectedTableAndGeometryElements.find(item => isDrawElementIncludeText(item));
this.currentMarks = firstGeometry ? PlaitMarkEditor.getMarks(getFirstTextEditor(firstGeometry)) : {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

默认值缺少 align,并且看看是不是需要封装下

@pubuzhixing8 pubuzhixing8 merged commit e9a7f04 into develop May 28, 2024
4 checks passed
@pubuzhixing8 pubuzhixing8 deleted the w/#WIK-15509 branch May 28, 2024 03:40
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