You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/pitfall/pdfkit/node_modules/codemirror/measure_scroll.txt

17 lines
501 B
Plaintext

- Want to first draw lines before doing anything that requires measuring
- Need to know scroll position to know what to draw
- Or, in some other way, estimate which parts to draw
- From cursor: if it looks like cursor will be outside, find side to
align cursor with, plus screenheight above/below it
- From absolute number -- don't need to measure before redraw
- Offset is like abs number
- So instead of pixel viewport, allow either pixels or lines.
- Or always convert to lines?