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

Port CRDT operations #403

Open
11 of 12 tasks
Brooooooklyn opened this issue Apr 24, 2023 · 1 comment
Open
11 of 12 tasks

Port CRDT operations #403

Brooooooklyn opened this issue Apr 24, 2023 · 1 comment
Assignees
Labels
feat New feature or request roadmap
Milestone

Comments

@Brooooooklyn
Copy link
Member

Brooooooklyn commented Apr 24, 2023

@darkskygit
Copy link
Member

crdt ops in yjs can be divided into two categories: map and list.

  • map: YMap/YXmlElement
  • list: YArray / YXmlFragment
  • list with format: YText / YXmlText

Both map and set use item.left and item.right to form a series of items into a linked list.

The difference is that the map does not care about the key order and contains parentSub(key), while the list does not.

YText and YXmlText are implemented slightly different from list to increase support for Format, but the final operation logic is similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request roadmap
Projects
None yet
Development

No branches or pull requests

3 participants