Get mapping without sync-plugin
DanSnow opened this issue · comments
Checklist
[ ] Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
[ ] Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/
Is your feature request related to a problem? Please describe.
I want to use relativePositionToAbsoultePosition
and absolutePositionToRelativePosition
at the websocket server side. These helper functions require a mapping parameter. Currently, I just copy and paste createNodeFromYElement
and its related functions from sync-plugin.js but since it's private API. I want to ask is it possible to expose a public API to do get the mapping from Y.js document?
Describe the solution you'd like
Expose a helper function to get the mapping
Describe alternatives you've considered
Additional context
This would be useful for us as well to work with relative positions on the server side.
Any plans with this in 2023?