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 cell fill #WIK-15684 #903

Merged
merged 5 commits into from
Jun 4, 2024
Merged

Conversation

huanhuanwa
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Jun 4, 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 Jun 4, 2024 9:47am
plait-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2024 9:47am

@@ -144,3 +144,12 @@ export function updateCellIds(cells: PlaitTableCell[]) {
export function isCellIncludeText(cell: PlaitTableCell) {
return cell.text && cell.textHeight;
}

export function getCellsRectangle(board: PlaitTableBoard, element: PlaitTable, cells: PlaitTableCell[]) {
const points = cells.map(cell => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

先调用 const cells = getCellsWithPoints(board as PlaitTableBoard, table); 再取下一起取,不用每次都调用一遍 getCellsWithPoints

packages/draw/src/table.component.ts Show resolved Hide resolved
@pubuzhixing8 pubuzhixing8 merged commit f569d88 into develop Jun 4, 2024
4 checks passed
@pubuzhixing8 pubuzhixing8 deleted the w/#WIK-15684 branch June 4, 2024 09:55
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