@vscode/markdown-editor 0.0.2-38 → 0.0.2-39
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.d.ts +5 -2
- package/dist/index.js +1204 -1147
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2717,7 +2717,8 @@ export declare class VisualLine {
|
|
|
2717
2717
|
/**
|
|
2718
2718
|
* How `offset` relates to this line's runs:
|
|
2719
2719
|
* - `'covers'`: a run starts at or strictly contains the offset
|
|
2720
|
-
* (`start <= offset < endExclusive`)
|
|
2720
|
+
* (`start <= offset < endExclusive`), or a zero-length visual-line
|
|
2721
|
+
* anchor sits at the offset — the caret belongs on this line.
|
|
2721
2722
|
* - `'end'`: the offset is only some run's trailing boundary
|
|
2722
2723
|
* (`offset === endExclusive`) with no run covering it — a line-break
|
|
2723
2724
|
* boundary the caret should leave for the next line.
|
|
@@ -2856,7 +2857,9 @@ export declare class VisualRun {
|
|
|
2856
2857
|
readonly sourceRange: OffsetRange;
|
|
2857
2858
|
readonly rect: Rect2D;
|
|
2858
2859
|
readonly source?: VisualRunSource | undefined;
|
|
2859
|
-
|
|
2860
|
+
readonly isVisualLineAnchor: boolean;
|
|
2861
|
+
static visualLineAnchor(sourceOffset: SourceOffset, rect: Rect2D): VisualRun;
|
|
2862
|
+
constructor(sourceRange: OffsetRange, rect: Rect2D, source?: VisualRunSource | undefined, isVisualLineAnchor?: boolean);
|
|
2860
2863
|
get sourceStart(): SourceOffset;
|
|
2861
2864
|
get sourceEndExclusive(): SourceOffset;
|
|
2862
2865
|
get sourceLength(): number;
|