@singapore-editor/minimap 0.1.1 → 0.2.12
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/LICENSE +22 -0
- package/README.md +27 -10
- package/dist/assets/{minimap.worker-i4S59IOV.js → minimap.worker-C_eNmhCg.js} +114 -35
- package/dist/assets/minimap.worker-C_eNmhCg.js.map +1 -0
- package/dist/color.js +1 -2
- package/dist/decorationMerge.js +2 -3
- package/dist/decorationMerge.js.map +1 -1
- package/dist/documentSource.d.ts +42 -0
- package/dist/documentSource.d.ts.map +1 -0
- package/dist/documentSource.js +170 -0
- package/dist/documentSource.js.map +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/layout.js +0 -1
- package/dist/minimapCharRenderer.d.ts.map +1 -1
- package/dist/minimapCharRendererFactory.d.ts.map +1 -1
- package/dist/minimapCharSheet.d.ts.map +1 -1
- package/dist/minimapCharSheet.js +1 -2
- package/dist/options.js +1 -2
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +18 -5
- package/dist/plugin.js.map +1 -1
- package/dist/raster.d.ts.map +1 -1
- package/dist/renderer.d.ts +4 -1
- package/dist/renderer.d.ts.map +1 -1
- package/dist/sourceIdentity.d.ts +4 -0
- package/dist/sourceIdentity.d.ts.map +1 -0
- package/dist/sourceIdentity.js +10 -0
- package/dist/sourceIdentity.js.map +1 -0
- package/dist/sourceProtocol.d.ts +16 -0
- package/dist/sourceProtocol.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/summary.d.ts +21 -0
- package/dist/summary.d.ts.map +1 -0
- package/dist/summary.js +174 -0
- package/dist/summary.js.map +1 -0
- package/dist/types.d.ts +27 -17
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -2
- package/dist/types.js.map +1 -1
- package/dist/viewportGeometry.js +1 -2
- package/dist/workerClient.d.ts +21 -50
- package/dist/workerClient.d.ts.map +1 -1
- package/dist/workerClient.js +175 -680
- package/dist/workerClient.js.map +1 -1
- package/dist/workerOwner.d.ts +34 -0
- package/dist/workerOwner.d.ts.map +1 -0
- package/dist/workerOwner.js +168 -0
- package/dist/workerOwner.js.map +1 -0
- package/package.json +26 -8
- package/dist/assets/minimap.worker-i4S59IOV.js.map +0 -1
package/dist/summary.js
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// src/summary.ts
|
|
2
|
+
function summarySource(read) {
|
|
3
|
+
return {
|
|
4
|
+
textLength: read.length,
|
|
5
|
+
lineStarts: sourceLineStarts(read)
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function sourceLineStarts(read) {
|
|
9
|
+
return {
|
|
10
|
+
length: read.lineCount,
|
|
11
|
+
at: (index) => index >= 0 && index < read.lineCount ? read.lineStart(index) : void 0,
|
|
12
|
+
indexForOffset: (offset) => read.lineAt(offset)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function documentSummaryPayload(text, maxColumn) {
|
|
16
|
+
const textLength = text.length;
|
|
17
|
+
const lineStarts = Array.from({ length: text.lineCount }, (_, line) => text.lineStart(line));
|
|
18
|
+
return {
|
|
19
|
+
textLength,
|
|
20
|
+
lineStarts,
|
|
21
|
+
lines: lineStarts.map((startOffset, index) => lineSummaryFromSnapshot(text, startOffset, text.lineRange(index).end, maxColumn))
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function sequentialMinimapEdits(canonical) {
|
|
25
|
+
let delta = 0;
|
|
26
|
+
return canonical.toSorted((left, right) => left.from - right.from || left.to - right.to).map((edit) => {
|
|
27
|
+
const from = edit.from + delta;
|
|
28
|
+
const to = edit.to + delta;
|
|
29
|
+
delta += edit.text.length - (edit.to - edit.from);
|
|
30
|
+
return {
|
|
31
|
+
from,
|
|
32
|
+
to,
|
|
33
|
+
text: edit.text
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function documentSummaryPatchPayload(text, previous, edits, maxColumn, workerDocument) {
|
|
38
|
+
const textLength = text.length;
|
|
39
|
+
const lineStarts = sourceLineStarts(text);
|
|
40
|
+
const range = documentSummaryPatchRange(previous, lineStarts, textLength, edits, workerDocument);
|
|
41
|
+
const lines = [];
|
|
42
|
+
for (let lineIndex = range.startLine; lineIndex < range.insertEndLine; lineIndex += 1) lines.push(lineSummaryFromSnapshot(text, lineStarts.at(lineIndex) ?? textLength, text.lineRange(lineIndex).end, maxColumn));
|
|
43
|
+
return {
|
|
44
|
+
textLength,
|
|
45
|
+
startLine: range.startLine,
|
|
46
|
+
deleteCount: range.deleteCount,
|
|
47
|
+
lines
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function lineSummaryFromSnapshot(text, startOffset, endOffset, maxColumn) {
|
|
51
|
+
const length = Math.max(0, endOffset - startOffset);
|
|
52
|
+
const clippedEnd = startOffset + Math.min(length, maxColumn);
|
|
53
|
+
return {
|
|
54
|
+
text: text.readRange(startOffset, clippedEnd),
|
|
55
|
+
length
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function lineEndOffset(lineStarts, index, textLength) {
|
|
59
|
+
const startOffset = lineStarts.at(index) ?? textLength;
|
|
60
|
+
const nextStart = lineStarts.at(index + 1);
|
|
61
|
+
if (nextStart === void 0) return textLength;
|
|
62
|
+
return Math.max(startOffset, nextStart - 1);
|
|
63
|
+
}
|
|
64
|
+
function documentSummaryPatchRange(previous, nextLineStarts, nextTextLength, edits, workerDocument) {
|
|
65
|
+
const edited = editSummaryPatchRange(previous.lineStarts, nextLineStarts, edits);
|
|
66
|
+
if (edited && workerDocument && editsExplainTransition(workerDocument, nextLineStarts, nextTextLength, edits)) return normalizeSummaryPatchRange(edited, previous.lineStarts.length, nextLineStarts.length);
|
|
67
|
+
const changed = mergeSummaryPatchRanges(lineStartSummaryPatchRange(previous.lineStarts, previous.textLength, nextLineStarts, nextTextLength), edited);
|
|
68
|
+
if (!changed) return {
|
|
69
|
+
startLine: 0,
|
|
70
|
+
deleteCount: 0,
|
|
71
|
+
insertEndLine: 0
|
|
72
|
+
};
|
|
73
|
+
return normalizeSummaryPatchRange(changed, previous.lineStarts.length, nextLineStarts.length);
|
|
74
|
+
}
|
|
75
|
+
function editsExplainTransition(workerDocument, nextLineStarts, nextTextLength, edits) {
|
|
76
|
+
if (nextLineStarts.length !== workerDocument.lineCount) return false;
|
|
77
|
+
let textDelta = 0;
|
|
78
|
+
for (const edit of edits) {
|
|
79
|
+
if (edit.text.includes("\n")) return false;
|
|
80
|
+
textDelta += edit.text.length - (Math.max(edit.from, edit.to) - Math.min(edit.from, edit.to));
|
|
81
|
+
}
|
|
82
|
+
return workerDocument.textLength + textDelta === nextTextLength;
|
|
83
|
+
}
|
|
84
|
+
function lineStartSummaryPatchRange(previousLineStarts, previousTextLength, nextLineStarts, nextTextLength) {
|
|
85
|
+
const prefix = commonLineSummaryPrefix(previousLineStarts, previousTextLength, nextLineStarts, nextTextLength);
|
|
86
|
+
const suffix = commonLineSummarySuffix(previousLineStarts, previousTextLength, nextLineStarts, nextTextLength, prefix);
|
|
87
|
+
if (prefix + suffix >= previousLineStarts.length && prefix + suffix >= nextLineStarts.length) return null;
|
|
88
|
+
return {
|
|
89
|
+
startLine: prefix,
|
|
90
|
+
previousEndLine: previousLineStarts.length - suffix,
|
|
91
|
+
nextEndLine: nextLineStarts.length - suffix
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function commonLineSummaryPrefix(previousLineStarts, previousTextLength, nextLineStarts, nextTextLength) {
|
|
95
|
+
let count = 0;
|
|
96
|
+
const limit = Math.min(previousLineStarts.length, nextLineStarts.length);
|
|
97
|
+
while (count < limit && lineSummaryBoundariesMatch(previousLineStarts, previousTextLength, count, nextLineStarts, nextTextLength, count, 0)) count += 1;
|
|
98
|
+
return count;
|
|
99
|
+
}
|
|
100
|
+
function commonLineSummarySuffix(previousLineStarts, previousTextLength, nextLineStarts, nextTextLength, prefix) {
|
|
101
|
+
let count = 0;
|
|
102
|
+
const delta = nextTextLength - previousTextLength;
|
|
103
|
+
const previousLimit = previousLineStarts.length - prefix;
|
|
104
|
+
const nextLimit = nextLineStarts.length - prefix;
|
|
105
|
+
while (count < previousLimit && count < nextLimit) {
|
|
106
|
+
if (!lineSummaryBoundariesMatch(previousLineStarts, previousTextLength, previousLineStarts.length - count - 1, nextLineStarts, nextTextLength, nextLineStarts.length - count - 1, delta)) return count;
|
|
107
|
+
count += 1;
|
|
108
|
+
}
|
|
109
|
+
return count;
|
|
110
|
+
}
|
|
111
|
+
function lineSummaryBoundariesMatch(previousLineStarts, previousTextLength, previousIndex, nextLineStarts, nextTextLength, nextIndex, offsetDelta) {
|
|
112
|
+
const previousStart = previousLineStarts.at(previousIndex) ?? previousTextLength;
|
|
113
|
+
const nextStart = nextLineStarts.at(nextIndex) ?? nextTextLength;
|
|
114
|
+
if (previousStart + offsetDelta !== nextStart) return false;
|
|
115
|
+
return lineEndOffset(previousLineStarts, previousIndex, previousTextLength) + offsetDelta === lineEndOffset(nextLineStarts, nextIndex, nextTextLength);
|
|
116
|
+
}
|
|
117
|
+
function editSummaryPatchRange(previousLineStarts, nextLineStarts, edits) {
|
|
118
|
+
let startOffset = Number.POSITIVE_INFINITY;
|
|
119
|
+
let previousEndOffset = 0;
|
|
120
|
+
let nextEndOffset = 0;
|
|
121
|
+
let offsetDelta = 0;
|
|
122
|
+
for (const edit of edits) {
|
|
123
|
+
if (editIsEmpty(edit)) continue;
|
|
124
|
+
const from = Math.min(edit.from, edit.to);
|
|
125
|
+
const to = Math.max(edit.from, edit.to);
|
|
126
|
+
const editDelta = edit.text.length - (to - from);
|
|
127
|
+
startOffset = Math.min(startOffset, from);
|
|
128
|
+
previousEndOffset = Math.max(previousEndOffset, to - offsetDelta);
|
|
129
|
+
nextEndOffset = Math.max(nextEndOffset, to) + editDelta;
|
|
130
|
+
offsetDelta += editDelta;
|
|
131
|
+
}
|
|
132
|
+
if (startOffset === Number.POSITIVE_INFINITY) return null;
|
|
133
|
+
const previousRange = lineRangeForEdit(previousLineStarts, startOffset, previousEndOffset);
|
|
134
|
+
const nextRange = lineRangeForEdit(nextLineStarts, startOffset, nextEndOffset);
|
|
135
|
+
return {
|
|
136
|
+
startLine: Math.min(previousRange.startLine, nextRange.startLine),
|
|
137
|
+
previousEndLine: previousRange.endLine,
|
|
138
|
+
nextEndLine: nextRange.endLine
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function editIsEmpty(edit) {
|
|
142
|
+
return edit.from === edit.to && edit.text.length === 0;
|
|
143
|
+
}
|
|
144
|
+
function lineRangeForEdit(lineStarts, from, to) {
|
|
145
|
+
const startOffset = Math.min(from, to);
|
|
146
|
+
const endOffset = Math.max(from, to);
|
|
147
|
+
return {
|
|
148
|
+
startLine: lineStarts.indexForOffset(startOffset),
|
|
149
|
+
endLine: lineStarts.indexForOffset(endOffset) + 1
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function mergeSummaryPatchRanges(left, right) {
|
|
153
|
+
if (!left) return right;
|
|
154
|
+
if (!right) return left;
|
|
155
|
+
return {
|
|
156
|
+
startLine: Math.min(left.startLine, right.startLine),
|
|
157
|
+
previousEndLine: Math.max(left.previousEndLine, right.previousEndLine),
|
|
158
|
+
nextEndLine: Math.max(left.nextEndLine, right.nextEndLine)
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function normalizeSummaryPatchRange(range, previousLineCount, nextLineCount) {
|
|
162
|
+
const startLine = Math.min(Math.max(0, range.startLine), Math.max(previousLineCount, nextLineCount));
|
|
163
|
+
const previousEndLine = Math.min(Math.max(startLine, range.previousEndLine), previousLineCount);
|
|
164
|
+
const nextEndLine = Math.min(Math.max(startLine, range.nextEndLine), nextLineCount);
|
|
165
|
+
const suffixCount = Math.min(previousLineCount - previousEndLine, nextLineCount - nextEndLine);
|
|
166
|
+
return {
|
|
167
|
+
startLine,
|
|
168
|
+
deleteCount: previousLineCount - suffixCount - startLine,
|
|
169
|
+
insertEndLine: nextLineCount - suffixCount
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
export { documentSummaryPatchPayload, documentSummaryPayload, sequentialMinimapEdits, summarySource };
|
|
173
|
+
|
|
174
|
+
//# sourceMappingURL=summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summary.js","names":[],"sources":["../src/summary.ts"],"sourcesContent":["import type { TextEdit, TextReadSnapshot } from '@singapore-editor/core/document'\nimport type { MinimapDocumentSummaryPayload, MinimapDocumentSummaryPatch } from './types'\n\ntype SummaryLineStarts = {\n readonly length: number\n at(index: number): number | undefined\n indexForOffset(offset: number): number\n}\n\nexport type SummarySource = {\n readonly textLength: number\n readonly lineStarts: SummaryLineStarts\n}\n\nexport function summarySource(read: TextReadSnapshot): SummarySource {\n return { textLength: read.length, lineStarts: sourceLineStarts(read) }\n}\n\nfunction sourceLineStarts(read: TextReadSnapshot): SummaryLineStarts {\n return {\n length: read.lineCount,\n at: (index) => (index >= 0 && index < read.lineCount ? read.lineStart(index) : undefined),\n indexForOffset: (offset) => read.lineAt(offset),\n }\n}\n\nexport function documentSummaryPayload(\n text: TextReadSnapshot,\n maxColumn: number,\n): MinimapDocumentSummaryPayload {\n const textLength = text.length\n const lineStarts = Array.from({ length: text.lineCount }, (_, line) => text.lineStart(line))\n return {\n textLength,\n lineStarts,\n lines: lineStarts.map((startOffset, index) =>\n lineSummaryFromSnapshot(text, startOffset, text.lineRange(index).end, maxColumn),\n ),\n }\n}\n\nexport type SummaryShape = { readonly textLength: number; readonly lineCount: number }\n\nexport function sequentialMinimapEdits(canonical: readonly TextEdit[]): readonly TextEdit[] {\n let delta = 0\n return canonical\n .toSorted((left, right) => left.from - right.from || left.to - right.to)\n .map((edit) => {\n const from = edit.from + delta\n const to = edit.to + delta\n delta += edit.text.length - (edit.to - edit.from)\n return { from, to, text: edit.text }\n })\n}\n\nexport function documentSummaryPatchPayload(\n text: TextReadSnapshot,\n previous: SummarySource,\n edits: readonly TextEdit[],\n maxColumn: number,\n workerDocument: SummaryShape | null,\n): MinimapDocumentSummaryPatch {\n const textLength = text.length\n const lineStarts = sourceLineStarts(text)\n const range = documentSummaryPatchRange(previous, lineStarts, textLength, edits, workerDocument)\n const lines = []\n for (let lineIndex = range.startLine; lineIndex < range.insertEndLine; lineIndex += 1) {\n lines.push(\n lineSummaryFromSnapshot(\n text,\n lineStarts.at(lineIndex) ?? textLength,\n text.lineRange(lineIndex).end,\n maxColumn,\n ),\n )\n }\n\n return {\n textLength,\n startLine: range.startLine,\n deleteCount: range.deleteCount,\n lines,\n }\n}\n\nfunction lineSummaryFromSnapshot(\n text: TextReadSnapshot,\n startOffset: number,\n endOffset: number,\n maxColumn: number,\n): MinimapDocumentSummaryPayload['lines'][number] {\n const length = Math.max(0, endOffset - startOffset)\n const clippedEnd = startOffset + Math.min(length, maxColumn)\n return {\n text: text.readRange(startOffset, clippedEnd),\n length,\n }\n}\n\nfunction lineEndOffset(lineStarts: SummaryLineStarts, index: number, textLength: number): number {\n const startOffset = lineStarts.at(index) ?? textLength\n const nextStart = lineStarts.at(index + 1)\n if (nextStart === undefined) return textLength\n return Math.max(startOffset, nextStart - 1)\n}\n\ntype SummaryLineChangeRange = {\n readonly startLine: number\n readonly previousEndLine: number\n readonly nextEndLine: number\n}\n\ntype DocumentSummaryPatchRange = {\n readonly startLine: number\n readonly deleteCount: number\n readonly insertEndLine: number\n}\n\nfunction documentSummaryPatchRange(\n previous: SummarySource,\n nextLineStarts: SummaryLineStarts,\n nextTextLength: number,\n edits: readonly TextEdit[],\n workerDocument: SummaryShape | null,\n): DocumentSummaryPatchRange {\n const edited = editSummaryPatchRange(previous.lineStarts, nextLineStarts, edits)\n // Line-break-free edits explain every boundary change when document lengths match.\n // Newline edits and projection changes still require structural verification.\n if (\n edited &&\n workerDocument &&\n editsExplainTransition(workerDocument, nextLineStarts, nextTextLength, edits)\n ) {\n return normalizeSummaryPatchRange(edited, previous.lineStarts.length, nextLineStarts.length)\n }\n\n const structural = lineStartSummaryPatchRange(\n previous.lineStarts,\n previous.textLength,\n nextLineStarts,\n nextTextLength,\n )\n const changed = mergeSummaryPatchRanges(structural, edited)\n if (!changed) return { startLine: 0, deleteCount: 0, insertEndLine: 0 }\n\n return normalizeSummaryPatchRange(changed, previous.lineStarts.length, nextLineStarts.length)\n}\n\nfunction editsExplainTransition(\n workerDocument: SummaryShape,\n nextLineStarts: SummaryLineStarts,\n nextTextLength: number,\n edits: readonly TextEdit[],\n): boolean {\n if (nextLineStarts.length !== workerDocument.lineCount) return false\n\n let textDelta = 0\n for (const edit of edits) {\n // With no inserted breaks and an unchanged line count, no breaks were\n // removed either; the math below is exact, not heuristic.\n if (edit.text.includes('\\n')) return false\n textDelta += edit.text.length - (Math.max(edit.from, edit.to) - Math.min(edit.from, edit.to))\n }\n\n return workerDocument.textLength + textDelta === nextTextLength\n}\n\nfunction lineStartSummaryPatchRange(\n previousLineStarts: SummaryLineStarts,\n previousTextLength: number,\n nextLineStarts: SummaryLineStarts,\n nextTextLength: number,\n): SummaryLineChangeRange | null {\n const prefix = commonLineSummaryPrefix(\n previousLineStarts,\n previousTextLength,\n nextLineStarts,\n nextTextLength,\n )\n const suffix = commonLineSummarySuffix(\n previousLineStarts,\n previousTextLength,\n nextLineStarts,\n nextTextLength,\n prefix,\n )\n if (prefix + suffix >= previousLineStarts.length && prefix + suffix >= nextLineStarts.length) {\n return null\n }\n\n return {\n startLine: prefix,\n previousEndLine: previousLineStarts.length - suffix,\n nextEndLine: nextLineStarts.length - suffix,\n }\n}\n\nfunction commonLineSummaryPrefix(\n previousLineStarts: SummaryLineStarts,\n previousTextLength: number,\n nextLineStarts: SummaryLineStarts,\n nextTextLength: number,\n): number {\n let count = 0\n const limit = Math.min(previousLineStarts.length, nextLineStarts.length)\n while (\n count < limit &&\n lineSummaryBoundariesMatch(\n previousLineStarts,\n previousTextLength,\n count,\n nextLineStarts,\n nextTextLength,\n count,\n 0,\n )\n ) {\n count += 1\n }\n\n return count\n}\n\nfunction commonLineSummarySuffix(\n previousLineStarts: SummaryLineStarts,\n previousTextLength: number,\n nextLineStarts: SummaryLineStarts,\n nextTextLength: number,\n prefix: number,\n): number {\n let count = 0\n const delta = nextTextLength - previousTextLength\n const previousLimit = previousLineStarts.length - prefix\n const nextLimit = nextLineStarts.length - prefix\n\n while (count < previousLimit && count < nextLimit) {\n const previousIndex = previousLineStarts.length - count - 1\n const nextIndex = nextLineStarts.length - count - 1\n if (\n !lineSummaryBoundariesMatch(\n previousLineStarts,\n previousTextLength,\n previousIndex,\n nextLineStarts,\n nextTextLength,\n nextIndex,\n delta,\n )\n ) {\n return count\n }\n count += 1\n }\n\n return count\n}\n\nfunction lineSummaryBoundariesMatch(\n previousLineStarts: SummaryLineStarts,\n previousTextLength: number,\n previousIndex: number,\n nextLineStarts: SummaryLineStarts,\n nextTextLength: number,\n nextIndex: number,\n offsetDelta: number,\n): boolean {\n const previousStart = previousLineStarts.at(previousIndex) ?? previousTextLength\n const nextStart = nextLineStarts.at(nextIndex) ?? nextTextLength\n if (previousStart + offsetDelta !== nextStart) return false\n\n return (\n lineEndOffset(previousLineStarts, previousIndex, previousTextLength) + offsetDelta ===\n lineEndOffset(nextLineStarts, nextIndex, nextTextLength)\n )\n}\n\nfunction editSummaryPatchRange(\n previousLineStarts: SummaryLineStarts,\n nextLineStarts: SummaryLineStarts,\n edits: readonly TextEdit[],\n): SummaryLineChangeRange | null {\n let startOffset = Number.POSITIVE_INFINITY\n let previousEndOffset = 0\n let nextEndOffset = 0\n let offsetDelta = 0\n\n for (const edit of edits) {\n if (editIsEmpty(edit)) continue\n const from = Math.min(edit.from, edit.to)\n const to = Math.max(edit.from, edit.to)\n const editDelta = edit.text.length - (to - from)\n startOffset = Math.min(startOffset, from)\n // The unchanged suffix maps back by the accumulated delta; the changed end moves with each edit.\n previousEndOffset = Math.max(previousEndOffset, to - offsetDelta)\n nextEndOffset = Math.max(nextEndOffset, to) + editDelta\n offsetDelta += editDelta\n }\n\n if (startOffset === Number.POSITIVE_INFINITY) return null\n const previousRange = lineRangeForEdit(previousLineStarts, startOffset, previousEndOffset)\n const nextRange = lineRangeForEdit(nextLineStarts, startOffset, nextEndOffset)\n return {\n startLine: Math.min(previousRange.startLine, nextRange.startLine),\n previousEndLine: previousRange.endLine,\n nextEndLine: nextRange.endLine,\n }\n}\n\nfunction editIsEmpty(edit: TextEdit): boolean {\n return edit.from === edit.to && edit.text.length === 0\n}\n\nfunction lineRangeForEdit(\n lineStarts: SummaryLineStarts,\n from: number,\n to: number,\n): { readonly startLine: number; readonly endLine: number } {\n const startOffset = Math.min(from, to)\n const endOffset = Math.max(from, to)\n const startLine = lineStarts.indexForOffset(startOffset)\n const endLine = lineStarts.indexForOffset(endOffset) + 1\n return { startLine, endLine }\n}\n\nfunction mergeSummaryPatchRanges(\n left: SummaryLineChangeRange | null,\n right: SummaryLineChangeRange | null,\n): SummaryLineChangeRange | null {\n if (!left) return right\n if (!right) return left\n\n return {\n startLine: Math.min(left.startLine, right.startLine),\n previousEndLine: Math.max(left.previousEndLine, right.previousEndLine),\n nextEndLine: Math.max(left.nextEndLine, right.nextEndLine),\n }\n}\n\nfunction normalizeSummaryPatchRange(\n range: SummaryLineChangeRange,\n previousLineCount: number,\n nextLineCount: number,\n): DocumentSummaryPatchRange {\n const startLine = Math.min(\n Math.max(0, range.startLine),\n Math.max(previousLineCount, nextLineCount),\n )\n const previousEndLine = Math.min(Math.max(startLine, range.previousEndLine), previousLineCount)\n const nextEndLine = Math.min(Math.max(startLine, range.nextEndLine), nextLineCount)\n // Both range ends must preserve the same suffix of complete lines.\n const suffixCount = Math.min(previousLineCount - previousEndLine, nextLineCount - nextEndLine)\n return {\n startLine,\n deleteCount: previousLineCount - suffixCount - startLine,\n insertEndLine: nextLineCount - suffixCount,\n }\n}\n"],"mappings":";AAcA,SAAgB,cAAc,MAAuC;CACnE,OAAO;EAAE,YAAY,KAAK;EAAQ,YAAY,iBAAiB,IAAI;CAAE;AACvE;AA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B,KAAK,IAAI,GAAG,MAAM,SAAS,GAC3B,KAAK,IAAI,mBAAmB,aAAa,CAC3C;CACA,MAAM,kBAAkB,KAAK,IAAI,KAAK,IAAI,WAAW,MAAM,eAAe,GAAG,iBAAiB;CAC9F,MAAM,cAAc,KAAK,IAAI,KAAK,IAAI,WAAW,MAAM,WAAW,GAAG,aAAa;CAElF,MAAM,cAAc,KAAK,IAAI,oBAAoB,iBAAiB,gBAAgB,WAAW;CAC7F,OAAO;EACL;EACA,aAAa,oBAAoB,cAAc;EAC/C,eAAe,gBAAgB;CACjC;AACF"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DocumentProjectionReceipt, DocumentWorkerIdentity, DocumentWorkerPoint } from '@singapore-editor/core/internal/document-worker';
|
|
1
2
|
import type { TextEdit } from '@singapore-editor/core/document';
|
|
2
3
|
import type { EditorMinimapDecoration as CoreEditorMinimapDecoration, EditorMinimapDecorationPosition as CoreEditorMinimapDecorationPosition, EditorMinimapSectionHeaderStyle as CoreEditorMinimapSectionHeaderStyle } from '@singapore-editor/core/extensions';
|
|
3
4
|
export declare const enum RenderMinimap {
|
|
@@ -147,20 +148,6 @@ export type MinimapBaseStyles = {
|
|
|
147
148
|
export type MinimapWorkerRequest = MinimapWorkerInitRequest | {
|
|
148
149
|
readonly type: 'updateBaseStyles';
|
|
149
150
|
readonly baseStyles: MinimapBaseStyles;
|
|
150
|
-
} | {
|
|
151
|
-
readonly type: 'openDocument';
|
|
152
|
-
readonly document: MinimapDocumentPayload;
|
|
153
|
-
} | {
|
|
154
|
-
readonly type: 'replaceDocument';
|
|
155
|
-
readonly document: MinimapDocumentPayload;
|
|
156
|
-
} | {
|
|
157
|
-
readonly type: 'applyEdit';
|
|
158
|
-
readonly edit: TextEdit;
|
|
159
|
-
readonly document: MinimapDocumentEditPayload;
|
|
160
|
-
} | {
|
|
161
|
-
readonly type: 'applyEdits';
|
|
162
|
-
readonly edits: readonly TextEdit[];
|
|
163
|
-
readonly document: MinimapDocumentEditPayload;
|
|
164
151
|
} | {
|
|
165
152
|
readonly type: 'updateTokens';
|
|
166
153
|
readonly tokens: readonly MinimapToken[];
|
|
@@ -186,22 +173,45 @@ export type MinimapWorkerRequest = MinimapWorkerInitRequest | {
|
|
|
186
173
|
} | {
|
|
187
174
|
readonly type: 'render';
|
|
188
175
|
readonly sequence: number;
|
|
176
|
+
readonly source: DocumentProjectionReceipt;
|
|
177
|
+
} | {
|
|
178
|
+
readonly type: 'projectSource';
|
|
179
|
+
readonly requestId: number;
|
|
180
|
+
readonly identity: DocumentWorkerIdentity;
|
|
181
|
+
readonly base: DocumentWorkerPoint | null;
|
|
182
|
+
readonly target: DocumentWorkerPoint;
|
|
183
|
+
readonly projection: MinimapSourceProjection;
|
|
189
184
|
} | {
|
|
190
|
-
readonly type: '
|
|
185
|
+
readonly type: 'releaseSource';
|
|
186
|
+
readonly identity: DocumentWorkerIdentity;
|
|
187
|
+
};
|
|
188
|
+
export type MinimapSourceProjection = {
|
|
189
|
+
readonly kind: 'reset';
|
|
190
|
+
readonly summary: MinimapDocumentSummaryPayload;
|
|
191
|
+
} | {
|
|
192
|
+
readonly kind: 'patch';
|
|
193
|
+
readonly edits: readonly TextEdit[];
|
|
194
|
+
readonly summary: MinimapDocumentSummaryPatch;
|
|
191
195
|
};
|
|
192
196
|
export type MinimapWorkerResponse = {
|
|
197
|
+
readonly type: 'sourceApplied';
|
|
198
|
+
readonly requestId: number;
|
|
199
|
+
readonly receipt: DocumentProjectionReceipt;
|
|
200
|
+
} | {
|
|
193
201
|
readonly type: 'layout';
|
|
194
202
|
readonly sequence: number;
|
|
195
203
|
readonly layout: MinimapRenderLayout;
|
|
196
|
-
} | {
|
|
197
|
-
readonly type: 'disposed';
|
|
198
204
|
} | {
|
|
199
205
|
readonly type: 'rendered';
|
|
200
206
|
readonly sequence: number;
|
|
207
|
+
readonly source: DocumentProjectionReceipt;
|
|
201
208
|
readonly sliderNeeded: boolean;
|
|
202
209
|
readonly sliderTop: number;
|
|
203
210
|
readonly sliderHeight: number;
|
|
204
211
|
readonly shadowVisible: boolean;
|
|
212
|
+
} | {
|
|
213
|
+
readonly type: 'renderSkipped';
|
|
214
|
+
readonly sequence: number;
|
|
205
215
|
} | {
|
|
206
216
|
readonly type: 'error';
|
|
207
217
|
readonly sequence?: number;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,IAAI,2BAA2B,EACtD,+BAA+B,IAAI,mCAAmC,EACtE,+BAA+B,IAAI,mCAAmC,EACvE,MAAM,mCAAmC,CAAA;AAE1C,0BAAkB,aAAa;IAC7B,IAAI,IAAI;IACR,IAAI,IAAI;IACR,MAAM,IAAI;CACX;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAA;AAC1C,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,MAAM,GAAG,KAAK,CAAA;AACzD,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,CAAA;AAC5D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;AAC7D,MAAM,MAAM,yBAAyB,GAAG,mCAAmC,CAAA;AAC3E,MAAM,MAAM,yBAAyB,GAAG,mCAAmC,CAAA;AAE3E,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE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eAAe,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC7D;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
package/dist/types.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types.ts
|
|
2
2
|
var RenderMinimap = /* @__PURE__ */ function(RenderMinimap) {
|
|
3
3
|
RenderMinimap[RenderMinimap["None"] = 0] = "None";
|
|
4
4
|
RenderMinimap[RenderMinimap["Text"] = 1] = "Text";
|
|
5
5
|
RenderMinimap[RenderMinimap["Blocks"] = 2] = "Blocks";
|
|
6
6
|
return RenderMinimap;
|
|
7
7
|
}({});
|
|
8
|
-
//#endregion
|
|
9
8
|
export { RenderMinimap };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { TextEdit } from '@singapore-editor/core/document'\nimport type {\n EditorMinimapDecoration as CoreEditorMinimapDecoration,\n EditorMinimapDecorationPosition as CoreEditorMinimapDecorationPosition,\n EditorMinimapSectionHeaderStyle as CoreEditorMinimapSectionHeaderStyle,\n} from '@singapore-editor/core/extensions'\n\nexport const enum RenderMinimap {\n None = 0,\n Text = 1,\n Blocks = 2,\n}\n\nexport type MinimapSide = 'left' | 'right'\nexport type MinimapSize = 'proportional' | 'fill' | 'fit'\nexport type MinimapSliderVisibility = 'always' | 'mouseover'\nexport type MinimapAutohide = 'none' | 'mouseover' | 'scroll'\nexport type MinimapDecorationPosition = CoreEditorMinimapDecorationPosition\nexport type MinimapSectionHeaderStyle = CoreEditorMinimapSectionHeaderStyle\n\nexport type RGBA8 = {\n readonly r: number\n readonly g: number\n readonly b: number\n readonly a: number\n}\n\nexport type EditorMinimapOptions = {\n readonly enabled?: boolean\n readonly autohide?: MinimapAutohide\n readonly side?: MinimapSide\n readonly size?: MinimapSize\n readonly showSlider?: MinimapSliderVisibility\n readonly renderCharacters?: boolean\n readonly maxColumn?: number\n readonly scale?: number\n readonly showRegionSectionHeaders?: boolean\n readonly showMarkSectionHeaders?: boolean\n readonly markSectionHeaderRegex?: string\n readonly sectionHeaderFontSize?: number\n readonly sectionHeaderLetterSpacing?: number\n}\n\nexport type ResolvedMinimapOptions = {\n readonly enabled: boolean\n readonly autohide: MinimapAutohide\n readonly side: MinimapSide\n readonly size: MinimapSize\n readonly showSlider: MinimapSliderVisibility\n readonly renderCharacters: boolean\n readonly maxColumn: number\n readonly scale: number\n readonly showRegionSectionHeaders: boolean\n readonly showMarkSectionHeaders: boolean\n readonly markSectionHeaderRegex: string\n readonly sectionHeaderFontSize: number\n readonly sectionHeaderLetterSpacing: number\n}\n\nexport type EditorMinimapDecoration = CoreEditorMinimapDecoration\n\nexport type MinimapToken = {\n readonly start: number\n readonly end: number\n readonly color: RGBA8\n}\n\nexport type MinimapTokenPatch = {\n readonly start: number\n readonly deleteCount: number\n readonly tokens: readonly MinimapToken[]\n}\n\nexport type MinimapSelection = {\n readonly startOffset: number\n readonly endOffset: number\n}\n\nexport type MinimapViewport = {\n readonly scrollTop: number\n readonly scrollRow: number\n readonly scrollLeft: number\n readonly scrollHeight: number\n readonly scrollWidth: number\n readonly clientHeight: number\n readonly clientWidth: number\n readonly minimapHeight: number\n /**\n * The overlay lane the minimap already holds. `clientWidth` is the content box, which\n * excludes it, so layout adds it back: a minimap sized from the space left after itself\n * is a feedback loop, and integer rounding parks it in a one-pixel two-frame cycle.\n */\n readonly reservedWidth: number\n /** Zero-based document-line bounds, end exclusive. */\n readonly visibleStart: number\n readonly visibleEnd: number\n}\n\nexport type MinimapMetrics = {\n readonly rowHeight: number\n readonly characterWidth: number\n readonly devicePixelRatio: number\n}\n\ntype MinimapDocumentLineSummary = {\n readonly text: string\n readonly length: number\n}\n\nexport type MinimapDocumentSummaryPayload = {\n readonly textLength: number\n readonly lineStarts: readonly number[]\n readonly lines: readonly MinimapDocumentLineSummary[]\n}\n\nexport type MinimapDocumentSummaryPatch = {\n readonly textLength: number\n // Omitted for incremental edits: cloning a full line-start array per\n // keystroke dominates main-thread cost on large documents. The worker\n // splices its own copy from startLine/deleteCount/lines instead.\n readonly lineStarts?: readonly number[]\n readonly startLine: number\n readonly deleteCount: number\n readonly lines: readonly MinimapDocumentLineSummary[]\n}\n\nexport type MinimapDocumentPayload = MinimapDocumentSummaryPayload & {\n readonly tokens: readonly MinimapToken[]\n readonly selections: readonly MinimapSelection[]\n readonly decorations: readonly EditorMinimapDecoration[]\n readonly externalDecorations?: readonly EditorMinimapDecoration[]\n}\n\nexport type MinimapDocumentEditPayload = {\n readonly selections: readonly MinimapSelection[]\n readonly summaryPatch: MinimapDocumentSummaryPatch\n}\n\nexport type MinimapRenderLayout = {\n readonly width: number\n readonly height: number\n readonly canvasInnerWidth: number\n readonly canvasInnerHeight: number\n readonly canvasOuterWidth: number\n readonly canvasOuterHeight: number\n readonly lineHeight: number\n readonly charWidth: number\n readonly scale: number\n readonly isSampling: boolean\n readonly heightIsEditorHeight: boolean\n readonly renderMinimap: RenderMinimap\n}\n\ntype MinimapWorkerInitRequest = {\n readonly type: 'init'\n readonly options: ResolvedMinimapOptions\n readonly baseStyles: MinimapBaseStyles\n readonly mainCanvas: OffscreenCanvas\n readonly decorationsCanvas: OffscreenCanvas\n}\n\nexport type MinimapBaseStyles = {\n readonly foreground: RGBA8\n readonly background: RGBA8\n readonly minimapBackground: RGBA8\n readonly foregroundOpacity: number\n readonly selection: RGBA8\n readonly slider: string\n readonly sliderHover: string\n readonly sliderActive: string\n readonly fontFamily: string\n}\n\nexport type MinimapWorkerRequest =\n | MinimapWorkerInitRequest\n | { readonly type: 'updateBaseStyles'; readonly baseStyles: MinimapBaseStyles }\n | { readonly type: '
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type {\n DocumentProjectionReceipt,\n DocumentWorkerIdentity,\n DocumentWorkerPoint,\n} from '@singapore-editor/core/internal/document-worker'\nimport type { TextEdit } from '@singapore-editor/core/document'\nimport type {\n EditorMinimapDecoration as CoreEditorMinimapDecoration,\n EditorMinimapDecorationPosition as CoreEditorMinimapDecorationPosition,\n EditorMinimapSectionHeaderStyle as CoreEditorMinimapSectionHeaderStyle,\n} from '@singapore-editor/core/extensions'\n\nexport const enum RenderMinimap {\n None = 0,\n Text = 1,\n Blocks = 2,\n}\n\nexport type MinimapSide = 'left' | 'right'\nexport type MinimapSize = 'proportional' | 'fill' | 'fit'\nexport type MinimapSliderVisibility = 'always' | 'mouseover'\nexport type MinimapAutohide = 'none' | 'mouseover' | 'scroll'\nexport type MinimapDecorationPosition = CoreEditorMinimapDecorationPosition\nexport type MinimapSectionHeaderStyle = CoreEditorMinimapSectionHeaderStyle\n\nexport type RGBA8 = {\n readonly r: number\n readonly g: number\n readonly b: number\n readonly a: number\n}\n\nexport type EditorMinimapOptions = {\n readonly enabled?: boolean\n readonly autohide?: MinimapAutohide\n readonly side?: MinimapSide\n readonly size?: MinimapSize\n readonly showSlider?: MinimapSliderVisibility\n readonly renderCharacters?: boolean\n readonly maxColumn?: number\n readonly scale?: number\n readonly showRegionSectionHeaders?: boolean\n readonly showMarkSectionHeaders?: boolean\n readonly markSectionHeaderRegex?: string\n readonly sectionHeaderFontSize?: number\n readonly sectionHeaderLetterSpacing?: number\n}\n\nexport type ResolvedMinimapOptions = {\n readonly enabled: boolean\n readonly autohide: MinimapAutohide\n readonly side: MinimapSide\n readonly size: MinimapSize\n readonly showSlider: MinimapSliderVisibility\n readonly renderCharacters: boolean\n readonly maxColumn: number\n readonly scale: number\n readonly showRegionSectionHeaders: boolean\n readonly showMarkSectionHeaders: boolean\n readonly markSectionHeaderRegex: string\n readonly sectionHeaderFontSize: number\n readonly sectionHeaderLetterSpacing: number\n}\n\nexport type EditorMinimapDecoration = CoreEditorMinimapDecoration\n\nexport type MinimapToken = {\n readonly start: number\n readonly end: number\n readonly color: RGBA8\n}\n\nexport type MinimapTokenPatch = {\n readonly start: number\n readonly deleteCount: number\n readonly tokens: readonly MinimapToken[]\n}\n\nexport type MinimapSelection = {\n readonly startOffset: number\n readonly endOffset: number\n}\n\nexport type MinimapViewport = {\n readonly scrollTop: number\n readonly scrollRow: number\n readonly scrollLeft: number\n readonly scrollHeight: number\n readonly scrollWidth: number\n readonly clientHeight: number\n readonly clientWidth: number\n readonly minimapHeight: number\n /**\n * The overlay lane the minimap already holds. `clientWidth` is the content box, which\n * excludes it, so layout adds it back: a minimap sized from the space left after itself\n * is a feedback loop, and integer rounding parks it in a one-pixel two-frame cycle.\n */\n readonly reservedWidth: number\n /** Zero-based document-line bounds, end exclusive. */\n readonly visibleStart: number\n readonly visibleEnd: number\n}\n\nexport type MinimapMetrics = {\n readonly rowHeight: number\n readonly characterWidth: number\n readonly devicePixelRatio: number\n}\n\ntype MinimapDocumentLineSummary = {\n readonly text: string\n readonly length: number\n}\n\nexport type MinimapDocumentSummaryPayload = {\n readonly textLength: number\n readonly lineStarts: readonly number[]\n readonly lines: readonly MinimapDocumentLineSummary[]\n}\n\nexport type MinimapDocumentSummaryPatch = {\n readonly textLength: number\n // Omitted for incremental edits: cloning a full line-start array per\n // keystroke dominates main-thread cost on large documents. The worker\n // splices its own copy from startLine/deleteCount/lines instead.\n readonly lineStarts?: readonly number[]\n readonly startLine: number\n readonly deleteCount: number\n readonly lines: readonly MinimapDocumentLineSummary[]\n}\n\nexport type MinimapDocumentPayload = MinimapDocumentSummaryPayload & {\n readonly tokens: readonly MinimapToken[]\n readonly selections: readonly MinimapSelection[]\n readonly decorations: readonly EditorMinimapDecoration[]\n readonly externalDecorations?: readonly EditorMinimapDecoration[]\n}\n\nexport type MinimapDocumentEditPayload = {\n readonly selections: readonly MinimapSelection[]\n readonly summaryPatch: MinimapDocumentSummaryPatch\n}\n\nexport type MinimapRenderLayout = {\n readonly width: number\n readonly height: number\n readonly canvasInnerWidth: number\n readonly canvasInnerHeight: number\n readonly canvasOuterWidth: number\n readonly canvasOuterHeight: number\n readonly lineHeight: number\n readonly charWidth: number\n readonly scale: number\n readonly isSampling: boolean\n readonly heightIsEditorHeight: boolean\n readonly renderMinimap: RenderMinimap\n}\n\ntype MinimapWorkerInitRequest = {\n readonly type: 'init'\n readonly options: ResolvedMinimapOptions\n readonly baseStyles: MinimapBaseStyles\n readonly mainCanvas: OffscreenCanvas\n readonly decorationsCanvas: OffscreenCanvas\n}\n\nexport type MinimapBaseStyles = {\n readonly foreground: RGBA8\n readonly background: RGBA8\n readonly minimapBackground: RGBA8\n readonly foregroundOpacity: number\n readonly selection: RGBA8\n readonly slider: string\n readonly sliderHover: string\n readonly sliderActive: string\n readonly fontFamily: string\n}\n\nexport type MinimapWorkerRequest =\n | MinimapWorkerInitRequest\n | { readonly type: 'updateBaseStyles'; readonly baseStyles: MinimapBaseStyles }\n | { readonly type: 'updateTokens'; readonly tokens: readonly MinimapToken[] }\n | { readonly type: 'updateTokenRange'; readonly patch: MinimapTokenPatch }\n | { readonly type: 'updateSelection'; readonly selections: readonly MinimapSelection[] }\n | { readonly type: 'updateDecorations'; readonly decorations: readonly EditorMinimapDecoration[] }\n | {\n readonly type: 'updateExternalDecorations'\n readonly decorations: readonly EditorMinimapDecoration[]\n }\n | {\n readonly type: 'updateLayout'\n readonly metrics: MinimapMetrics\n readonly viewport: MinimapViewport\n }\n | { readonly type: 'updateViewport'; readonly viewport: MinimapViewport }\n | {\n readonly type: 'render'\n readonly sequence: number\n readonly source: DocumentProjectionReceipt\n }\n | {\n readonly type: 'projectSource'\n readonly requestId: number\n readonly identity: DocumentWorkerIdentity\n readonly base: DocumentWorkerPoint | null\n readonly target: DocumentWorkerPoint\n readonly projection: MinimapSourceProjection\n }\n | { readonly type: 'releaseSource'; readonly identity: DocumentWorkerIdentity }\n\nexport type MinimapSourceProjection =\n | { readonly kind: 'reset'; readonly summary: MinimapDocumentSummaryPayload }\n | {\n readonly kind: 'patch'\n readonly edits: readonly TextEdit[]\n readonly summary: MinimapDocumentSummaryPatch\n }\n\nexport type MinimapWorkerResponse =\n | {\n readonly type: 'sourceApplied'\n readonly requestId: number\n readonly receipt: DocumentProjectionReceipt\n }\n | { readonly type: 'layout'; readonly sequence: number; readonly layout: MinimapRenderLayout }\n | {\n readonly type: 'rendered'\n readonly sequence: number\n readonly source: DocumentProjectionReceipt\n readonly sliderNeeded: boolean\n readonly sliderTop: number\n readonly sliderHeight: number\n readonly shadowVisible: boolean\n }\n | { readonly type: 'renderSkipped'; readonly sequence: number }\n | { readonly type: 'error'; readonly sequence?: number; readonly message: string }\n"],"mappings":";AAYA,IAAkB,gBAAX,yBAAA,eAAA;CACL,cAAA,cAAA,UAAA,KAAA;CACA,cAAA,cAAA,UAAA,KAAA;CACA,cAAA,cAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA"}
|
package/dist/viewportGeometry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/viewportGeometry.ts
|
|
2
2
|
function minimapViewportGeometry(side, minimapWidth, scroll) {
|
|
3
3
|
const { width, height, clientWidth, clientHeight, borders, overlayScrollbars } = scroll;
|
|
4
4
|
const allocatedVertical = Math.max(0, width - clientWidth - borders.left - borders.right);
|
|
@@ -16,7 +16,6 @@ function minimapViewportGeometry(side, minimapWidth, scroll) {
|
|
|
16
16
|
horizontalScrollbar: horizontal
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { minimapViewportGeometry };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=viewportGeometry.js.map
|
package/dist/workerClient.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { EditorDocumentContributions } from '@singapore-editor/core/editor';
|
|
2
|
+
import type { MinimapWorkerOwnerSnapshot } from './workerOwner';
|
|
3
|
+
import type { EditorMinimapDecoration, EditorViewportSnapshot, EditorViewSnapshot } from '@singapore-editor/core/extensions';
|
|
4
|
+
import type { ResolvedMinimapOptions } from './types';
|
|
3
5
|
export type MinimapHost = {
|
|
4
6
|
readonly root: HTMLDivElement;
|
|
5
7
|
readonly colorScope: HTMLElement;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
mainCanvas: HTMLCanvasElement;
|
|
9
|
+
decorationsCanvas: HTMLCanvasElement;
|
|
8
10
|
readonly slider: HTMLDivElement;
|
|
9
11
|
readonly sliderHorizontal: HTMLDivElement;
|
|
10
12
|
readonly shadow: HTMLDivElement;
|
|
@@ -16,48 +18,17 @@ export type MinimapWorkerClientOptions = {
|
|
|
16
18
|
readonly decorations: readonly EditorMinimapDecoration[];
|
|
17
19
|
readonly onLayoutWidth: (width: number) => void;
|
|
18
20
|
readonly reservedLane: () => number;
|
|
21
|
+
readonly contributions: EditorDocumentContributions | null;
|
|
19
22
|
};
|
|
20
|
-
export type MinimapWorkerLifecycleState = 'ready' | 'disposing' | 'disposed' | 'crashed';
|
|
21
|
-
export type MinimapWorkerOwnerSnapshot = {
|
|
22
|
-
readonly lifecycle: MinimapWorkerLifecycleState;
|
|
23
|
-
readonly postedRequests: number;
|
|
24
|
-
readonly disposalAcknowledged: boolean;
|
|
25
|
-
readonly lastError: string | null;
|
|
26
|
-
};
|
|
27
|
-
export type MinimapWorkerOwnerOptions = {
|
|
28
|
-
readonly onMessage: (response: MinimapWorkerResponse) => void;
|
|
29
|
-
readonly onError?: (error: Error) => void;
|
|
30
|
-
readonly workerFactory?: () => Worker;
|
|
31
|
-
};
|
|
32
|
-
export declare class MinimapWorkerOwner {
|
|
33
|
-
private readonly options;
|
|
34
|
-
private worker;
|
|
35
|
-
private lifecycle;
|
|
36
|
-
private postedRequests;
|
|
37
|
-
private disposalAcknowledged;
|
|
38
|
-
private lastError;
|
|
39
|
-
private disposalPromise;
|
|
40
|
-
private resolveDisposal;
|
|
41
|
-
private rejectDisposal;
|
|
42
|
-
constructor(options: MinimapWorkerOwnerOptions);
|
|
43
|
-
inspect(): MinimapWorkerOwnerSnapshot;
|
|
44
|
-
post(request: MinimapWorkerRequest, transfer?: Transferable[]): boolean;
|
|
45
|
-
dispose(): Promise<void>;
|
|
46
|
-
private createWorker;
|
|
47
|
-
private canPost;
|
|
48
|
-
private postToWorker;
|
|
49
|
-
private readonly handleWorkerMessage;
|
|
50
|
-
private readonly handleWorkerError;
|
|
51
|
-
private recordError;
|
|
52
|
-
private fail;
|
|
53
|
-
private finishDisposal;
|
|
54
|
-
private terminateWorker;
|
|
55
|
-
private clearDisposalHandlers;
|
|
56
|
-
}
|
|
57
23
|
export declare class MinimapWorkerClient {
|
|
58
24
|
private readonly host;
|
|
59
25
|
private readonly options;
|
|
60
|
-
private
|
|
26
|
+
private contributions;
|
|
27
|
+
private documentSource;
|
|
28
|
+
private sourceResult;
|
|
29
|
+
private sourceWait;
|
|
30
|
+
private canvasesTransferred;
|
|
31
|
+
private lastWorker;
|
|
61
32
|
private readonly colorResolver;
|
|
62
33
|
private readonly scheduler;
|
|
63
34
|
private readonly onLayoutWidth;
|
|
@@ -67,6 +38,7 @@ export declare class MinimapWorkerClient {
|
|
|
67
38
|
private pendingUpdateReady;
|
|
68
39
|
private pendingRender;
|
|
69
40
|
private activeRenderToken;
|
|
41
|
+
private activeRenderSource;
|
|
70
42
|
private renderInFlight;
|
|
71
43
|
private latestBaseStyles;
|
|
72
44
|
private latestBaseStylesSignature;
|
|
@@ -75,18 +47,19 @@ export declare class MinimapWorkerClient {
|
|
|
75
47
|
private latestSnapshot;
|
|
76
48
|
private latestViewport;
|
|
77
49
|
private postedViewport;
|
|
78
|
-
private latestFullDocumentSnapshot;
|
|
79
|
-
private workerDocumentState;
|
|
80
50
|
private latestTokenSource;
|
|
81
51
|
private disposed;
|
|
82
52
|
constructor(options: MinimapWorkerClientOptions);
|
|
83
53
|
inspectWorker(): MinimapWorkerOwnerSnapshot;
|
|
84
|
-
|
|
54
|
+
setDocumentContributions(contributions: EditorDocumentContributions | null, snapshot: EditorViewSnapshot): void;
|
|
55
|
+
update(snapshot: EditorViewSnapshot, kind: string): void;
|
|
85
56
|
private queueUpdate;
|
|
86
57
|
updateViewport(viewport: EditorViewportSnapshot): void;
|
|
87
58
|
frameLayout(): import("./layout").MinimapFrameLayout;
|
|
88
59
|
setExternalDecorations(decorations: readonly EditorMinimapDecoration[]): void;
|
|
89
60
|
dispose(): void;
|
|
61
|
+
private releaseDocumentSource;
|
|
62
|
+
private replaceTransferredCanvases;
|
|
90
63
|
private init;
|
|
91
64
|
private scheduleFlush;
|
|
92
65
|
private scheduleFrameFlush;
|
|
@@ -94,24 +67,22 @@ export declare class MinimapWorkerClient {
|
|
|
94
67
|
private flushDeferredUpdate;
|
|
95
68
|
private flushPendingUpdate;
|
|
96
69
|
private flushPendingUpdateNow;
|
|
70
|
+
private sourceFor;
|
|
71
|
+
private reportSourceFailure;
|
|
97
72
|
private postLayoutIfNeeded;
|
|
98
73
|
private postViewportIfNeeded;
|
|
99
74
|
private postUpdate;
|
|
100
|
-
private postEditUpdate;
|
|
101
|
-
private trackedDocumentPayload;
|
|
102
75
|
private postTokenUpdate;
|
|
103
76
|
private postFullTokenUpdate;
|
|
104
77
|
private tokenPatch;
|
|
105
78
|
private syncBaseStyles;
|
|
106
79
|
private refreshThemeColorCache;
|
|
107
|
-
private shouldSkipDocumentUpdate;
|
|
108
80
|
private requestRender;
|
|
109
81
|
private postRender;
|
|
110
82
|
private postScheduledRender;
|
|
111
83
|
private cancelScheduledRender;
|
|
84
|
+
private finishSourceWait;
|
|
112
85
|
private applyImmediateViewport;
|
|
113
|
-
private documentPayload;
|
|
114
|
-
private documentEditPayload;
|
|
115
86
|
private tokens;
|
|
116
87
|
private metrics;
|
|
117
88
|
private viewport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workerClient.d.ts","sourceRo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