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

refactor(edgeless): surface elements api #5874

Merged
merged 28 commits into from
Jan 4, 2024
Merged

Conversation

doouding
Copy link
Member

@doouding doouding commented Dec 27, 2023

Move surface elements related API onto the surface model. Introduce a new pure data element model to replace the existing one to make it independent from the renderer. Additionally, this new element model will not depend on the DOM API.

Copy link

vercel bot commented Dec 27, 2023

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

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2024 9:50am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Jan 3, 2024 9:50am

@doouding
Copy link
Member Author

doouding commented Jan 2, 2024

This is almost ready. We can book a meeting to review the code and discuss the technical details tomorrow. @doodlewind

@doouding
Copy link
Member Author

doouding commented Jan 3, 2024

I have corrected some issues with variable naming:

  • propsToYStruct -> propsToY
  • ymap -> yfield

And add generic type to addElement and updateElement. It is ready now.

@doodlewind doodlewind added the notable Major improvement worth emphasizing label Jan 3, 2024
Copy link
Member

@doodlewind doodlewind left a comment

Choose a reason for hiding this comment

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

Is it possible to remove legacy code defining fields on previous elements? I would supposed to see more deletions :)

@doouding
Copy link
Member Author

doouding commented Jan 4, 2024

Is it possible to remove legacy code defining fields on previous elements? I would supposed to see more deletions :)

Yes, but I'm not planning to do this in this PR. I'll start a new PR on cleanup and replacement or something once this gets merged.

Copy link
Member

@doodlewind doodlewind left a comment

Choose a reason for hiding this comment

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

Look forward to the housekeeping :)

@doodlewind doodlewind merged commit 6deefaf into master Jan 4, 2024
20 checks passed
@doodlewind doodlewind deleted the refactor/surface-model branch January 4, 2024 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notable Major improvement worth emphasizing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants