Equivalent to cursorScrollMargin option in the new Obsidian editor?

A while back, I wrote a tiny plug-in for personal use that relied on the cursorScrollMargin option in CodeMirror. It added a little buffer space that kept the cursor from getting all the way to the top or bottom edge of the screen while I’m writing.

My plug-in no longer works with the new Obsidian Live Editor, and I miss it dearly. I’m trying to update it, but I can’t seem to find the cursorScrollMargin option in the new version of Obsidian/CodeMirror. Does anyone know where it went, or know of another way to achieve the same effect?

Thanks in advance for any help you can provide.