@codemirror/view 0.19.26 → 0.19.30
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/CHANGELOG.md +44 -0
- package/dist/index.cjs +951 -879
- package/dist/index.d.ts +14 -0
- package/dist/index.js +950 -876
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -919,6 +919,11 @@ declare class EditorView {
|
|
|
919
919
|
Find the DOM parent node and offset (child offset if `node` is
|
|
920
920
|
an element, character offset when it is a text node) at the
|
|
921
921
|
given document position.
|
|
922
|
+
|
|
923
|
+
Note that for positions that aren't currently in
|
|
924
|
+
`visibleRanges`, the resulting DOM position isn't necessarily
|
|
925
|
+
meaningful (it may just point before or after a placeholder
|
|
926
|
+
element).
|
|
922
927
|
*/
|
|
923
928
|
domAtPos(pos: number): {
|
|
924
929
|
node: Node;
|
|
@@ -1357,6 +1362,7 @@ declare class MatchDecorator {
|
|
|
1357
1362
|
private regexp;
|
|
1358
1363
|
private getDeco;
|
|
1359
1364
|
private boundary;
|
|
1365
|
+
private maxLength;
|
|
1360
1366
|
/**
|
|
1361
1367
|
Create a decorator.
|
|
1362
1368
|
*/
|
|
@@ -1379,6 +1385,14 @@ declare class MatchDecorator {
|
|
|
1379
1385
|
the amount of re-matching.
|
|
1380
1386
|
*/
|
|
1381
1387
|
boundary?: RegExp;
|
|
1388
|
+
/**
|
|
1389
|
+
Matching happens by line, by default, but when lines are
|
|
1390
|
+
folded or very long lines are only partially drawn, the
|
|
1391
|
+
decorator may avoid matching part of them for speed. This
|
|
1392
|
+
controls how much additional invisible content it should
|
|
1393
|
+
include in its matches. Defaults to 1000.
|
|
1394
|
+
*/
|
|
1395
|
+
maxLength?: number;
|
|
1382
1396
|
});
|
|
1383
1397
|
/**
|
|
1384
1398
|
Compute the full set of decorations for matches in the given
|