@usememos/editor 26.10.29 → 26.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -14
- package/dist/index.js.map +3 -3
- package/dist/types/editor.d.ts +8 -0
- package/package.json +1 -1
package/dist/types/editor.d.ts
CHANGED
|
@@ -459,6 +459,14 @@ export declare class Editor {
|
|
|
459
459
|
private insertSourceMarkdown;
|
|
460
460
|
private undo;
|
|
461
461
|
private redo;
|
|
462
|
+
/**
|
|
463
|
+
* The rectangle for a selection with no text to measure (an empty block, or
|
|
464
|
+
* a caret next to an atom): the box of the content at `pos`. In source mode
|
|
465
|
+
* an empty line is an element of its own inside the text, so the box of the
|
|
466
|
+
* element at `node` stands in when it is one: the whole text's box would put
|
|
467
|
+
* the caret at the top of the document and scroll the view there.
|
|
468
|
+
*/
|
|
469
|
+
private emptyRect;
|
|
462
470
|
/** Scrolls the editor and the elements around it so the caret is visible. */
|
|
463
471
|
private scrollCaretIntoView;
|
|
464
472
|
destroy(): void;
|