@folijs/view 0.4.0 → 0.6.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/CHANGELOG.md +59 -0
- package/dist/clipboard.d.ts +3 -1
- package/dist/clipboard.d.ts.map +1 -1
- package/dist/clipboard.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/flow.d.ts +195 -20
- package/dist/layout/flow.d.ts.map +1 -1
- package/dist/layout/flow.js +790 -102
- package/dist/layout/flow.js.map +1 -1
- package/dist/print.d.ts +22 -0
- package/dist/print.d.ts.map +1 -0
- package/dist/print.js +31 -0
- package/dist/print.js.map +1 -0
- package/dist/view.d.ts +407 -8
- package/dist/view.d.ts.map +1 -1
- package/dist/view.js +2956 -263
- package/dist/view.js.map +1 -1
- package/dist/word/blocks.d.ts +99 -2
- package/dist/word/blocks.d.ts.map +1 -1
- package/dist/word/blocks.js +535 -31
- package/dist/word/blocks.js.map +1 -1
- package/dist/word/columns.d.ts +23 -0
- package/dist/word/columns.d.ts.map +1 -0
- package/dist/word/columns.js +51 -0
- package/dist/word/columns.js.map +1 -0
- package/dist/word/controls.d.ts +63 -0
- package/dist/word/controls.d.ts.map +1 -0
- package/dist/word/controls.js +411 -0
- package/dist/word/controls.js.map +1 -0
- package/dist/word/edit.d.ts +32 -11
- package/dist/word/edit.d.ts.map +1 -1
- package/dist/word/edit.js +215 -33
- package/dist/word/edit.js.map +1 -1
- package/dist/word/matches.d.ts +23 -0
- package/dist/word/matches.d.ts.map +1 -0
- package/dist/word/matches.js +97 -0
- package/dist/word/matches.js.map +1 -0
- package/dist/word/notes.d.ts +105 -0
- package/dist/word/notes.d.ts.map +1 -0
- package/dist/word/notes.js +392 -0
- package/dist/word/notes.js.map +1 -0
- package/dist/word/pages.d.ts +26 -13
- package/dist/word/pages.d.ts.map +1 -1
- package/dist/word/pages.js +439 -203
- package/dist/word/pages.js.map +1 -1
- package/dist/word/regions.d.ts +113 -0
- package/dist/word/regions.d.ts.map +1 -0
- package/dist/word/regions.js +374 -0
- package/dist/word/regions.js.map +1 -0
- package/dist/word/table.d.ts +79 -0
- package/dist/word/table.d.ts.map +1 -0
- package/dist/word/table.js +210 -0
- package/dist/word/table.js.map +1 -0
- package/package.json +2 -2
- package/src/clipboard.ts +3 -0
- package/src/index.ts +8 -1
- package/src/layout/flow.ts +948 -111
- package/src/print.ts +48 -0
- package/src/view.ts +3291 -273
- package/src/word/blocks.ts +611 -28
- package/src/word/columns.ts +66 -0
- package/src/word/controls.ts +447 -0
- package/src/word/edit.ts +253 -30
- package/src/word/matches.ts +99 -0
- package/src/word/notes.ts +451 -0
- package/src/word/pages.ts +524 -192
- package/src/word/regions.ts +469 -0
- package/src/word/table.ts +267 -0
package/dist/view.d.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
import { type Editor } from "@folijs/core";
|
|
1
|
+
import { type DocumentTarget, type Editor, type EditorState, type FieldsReport, type FoundMatches, type ResourceJSON, type StorySide, type UpdateFieldsOptions } from "@folijs/core";
|
|
2
|
+
import { type BlockDesc } from "./render.js";
|
|
3
|
+
import { type WordBlockDesc } from "./word/edit.js";
|
|
4
|
+
import { type Frame } from "./word/table.js";
|
|
5
|
+
/** Where a table's fragment is: the rows it shows, the header rows drawn again above them. */
|
|
6
|
+
interface TablePart {
|
|
7
|
+
rows: number[];
|
|
8
|
+
headers: number[];
|
|
9
|
+
}
|
|
10
|
+
/** A table's measurement, in layout px from the table's top (drawn whole). */
|
|
11
|
+
export interface TableMeasure {
|
|
12
|
+
rows: {
|
|
13
|
+
top: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
}[];
|
|
16
|
+
/** The top of each of its units (by index into the units), null for one not shown (covered). */
|
|
17
|
+
tops: Map<number, number | null>;
|
|
18
|
+
/** Where the table may break: inside rows that may split, and between rows (sorted). */
|
|
19
|
+
breaks?: number[];
|
|
20
|
+
}
|
|
2
21
|
interface DomPoint {
|
|
3
22
|
node: Node;
|
|
4
23
|
offset: number;
|
|
@@ -8,6 +27,32 @@ export interface EditorViewOptions {
|
|
|
8
27
|
editable?: boolean;
|
|
9
28
|
/** Shown while the document is one empty block (default: none). */
|
|
10
29
|
placeholder?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The URL to show a picture's image from (`key` in the document's `resources`): an image in
|
|
32
|
+
* the .docx package it came from has none of its own (`packageImages` in `@folijs/docx` gives
|
|
33
|
+
* object URLs). Undefined for a key: the resource's own image `data:` URL or web URL (fetched
|
|
34
|
+
* as it is shown), else a box of the picture's size; `null` (or "") for a key: that box (an
|
|
35
|
+
* app that does not fetch web URLs found in documents says so here). `null` clears it.
|
|
36
|
+
*/
|
|
37
|
+
resource?: ((key: string, resource: ResourceJSON) => string | null | undefined) | null;
|
|
38
|
+
/**
|
|
39
|
+
* Where pasted and dropped image files go (ADR-0006's upload hook): the URL the app stores the
|
|
40
|
+
* file at (or a `data:` URL, opting in), and the alt text if it has asked for it. Without it,
|
|
41
|
+
* image files are not pasted or dropped. A picture inserted without alt text is marked, as an
|
|
42
|
+
* imported one is.
|
|
43
|
+
*/
|
|
44
|
+
upload?: ((file: File) => Promise<string | {
|
|
45
|
+
src: string;
|
|
46
|
+
alt?: string;
|
|
47
|
+
decorative?: boolean;
|
|
48
|
+
}>) | null;
|
|
49
|
+
/**
|
|
50
|
+
* `false`: the content in one flow, without pages, headers or print rules (a story being edited
|
|
51
|
+
* on its page, ADR-0007). Set when the view is made. Default true.
|
|
52
|
+
*/
|
|
53
|
+
paged?: boolean;
|
|
54
|
+
/** What a note's own mark shows, for the view of a note being edited. */
|
|
55
|
+
noteMark?: () => string;
|
|
11
56
|
}
|
|
12
57
|
/**
|
|
13
58
|
* The editable view of an `Editor` from `@folijs/core`: renders its state into one
|
|
@@ -32,8 +77,23 @@ export declare class EditorView {
|
|
|
32
77
|
private indexOf;
|
|
33
78
|
/** The element that shows a node selection, if any. */
|
|
34
79
|
private selectedDom;
|
|
35
|
-
/** The
|
|
36
|
-
private
|
|
80
|
+
/** The cells a cell selection marks, and the caret written in its head cell. */
|
|
81
|
+
private selectedCells;
|
|
82
|
+
private cellCaret;
|
|
83
|
+
/** The pages of each top-level item (a paragraph's fragments, a table's wrappers), by node. */
|
|
84
|
+
private itemPages;
|
|
85
|
+
/** Where on its page each of those is (band and column). */
|
|
86
|
+
private itemSlots;
|
|
87
|
+
/** Each page's band elements, as last placed. */
|
|
88
|
+
private bands;
|
|
89
|
+
/** Each table as last rendered, by node. */
|
|
90
|
+
private frames;
|
|
91
|
+
/** The table each wrapper element draws (part of). */
|
|
92
|
+
private frameOf;
|
|
93
|
+
/** Each table as last rendered, by its index among the top-level items. */
|
|
94
|
+
private frameAt;
|
|
95
|
+
/** Elements the view itself removed: the read-back does not take them for input. */
|
|
96
|
+
private viewRemoved;
|
|
37
97
|
/** The block each fragment element belongs to. */
|
|
38
98
|
private owner;
|
|
39
99
|
/** The page elements, in order; the host's only children. */
|
|
@@ -77,9 +137,12 @@ export declare class EditorView {
|
|
|
77
137
|
private readonly resizeObserver;
|
|
78
138
|
private readonly observed;
|
|
79
139
|
private relayoutPending;
|
|
80
|
-
|
|
140
|
+
/** A composition runs in this view. */
|
|
141
|
+
composing: boolean;
|
|
81
142
|
/** Set by Ctrl/Cmd+Shift+V for the paste event it triggers. */
|
|
82
143
|
private plainPaste;
|
|
144
|
+
/** How deep `renumberNotes` has rendered again. */
|
|
145
|
+
private renumbering;
|
|
83
146
|
/** Blocks whose DOM the browser changed: the next render rebuilds them. */
|
|
84
147
|
private readonly dirty;
|
|
85
148
|
/** DOM mutations not yet read back (kept while a composition is running). */
|
|
@@ -98,13 +161,73 @@ export declare class EditorView {
|
|
|
98
161
|
private readonly addedTabIndex;
|
|
99
162
|
/** Renders the document's blocks; made by the first render. */
|
|
100
163
|
private word;
|
|
164
|
+
/** Where pasted and dropped image files go (`EditorViewOptions.upload`). */
|
|
165
|
+
private upload;
|
|
166
|
+
/** The selected picture's span (with its resize handle). */
|
|
167
|
+
private selectedPicture;
|
|
168
|
+
/** A picture being resized: its position, element, size at the press, scale, the press. */
|
|
169
|
+
private resize;
|
|
170
|
+
/** The app's URLs for pictures' images (`EditorViewOptions.resource`). */
|
|
171
|
+
private resource;
|
|
101
172
|
/** How tracked changes show. */
|
|
102
173
|
private review;
|
|
174
|
+
/** Whether fields show their codes (`toggleFieldCodes`). */
|
|
175
|
+
private fieldCodes;
|
|
176
|
+
/** The elements shaded for the fields the selection is in. */
|
|
177
|
+
private shadedFields;
|
|
103
178
|
/** Fonts' normal line height ratios, measured once per family (Word's single spacing). */
|
|
104
179
|
private readonly ratios;
|
|
105
180
|
/** Web fonts loaded since the v3 blocks were drawn: the next render draws them again. */
|
|
106
181
|
private fontsChanged;
|
|
182
|
+
/** Whether content goes on pages (`EditorViewOptions.paged`). */
|
|
183
|
+
private readonly paged;
|
|
184
|
+
/** The headers and footers of the pages; none without pages. */
|
|
185
|
+
private readonly regions;
|
|
186
|
+
/** Each page as last flowed. */
|
|
187
|
+
private facts;
|
|
188
|
+
/** The header and footer element of each page, as last drawn. */
|
|
189
|
+
private pageRegions;
|
|
190
|
+
/** Each page's margins, when a header or footer pushes them. */
|
|
191
|
+
private pageMargins;
|
|
192
|
+
/** What the header and footer heights were when last laid out (`PageRegions.key`). */
|
|
193
|
+
private regionsKey;
|
|
194
|
+
/** What `regionsKey` was computed from. */
|
|
195
|
+
private regionsFor;
|
|
196
|
+
/** Footnotes and endnotes on the pages; none without pages. */
|
|
197
|
+
private readonly notes;
|
|
198
|
+
/** What each page shows of them. */
|
|
199
|
+
private pageNotes;
|
|
200
|
+
/** Their elements by what they show. */
|
|
201
|
+
private noteElements;
|
|
202
|
+
/** The page each note starts on, as last flowed: numbers can restart on each. */
|
|
203
|
+
private notePages;
|
|
204
|
+
/** What the note references showed when last drawn. */
|
|
205
|
+
private shownNotes;
|
|
206
|
+
/** The layout and boxes of the last flow, to draw notes again from. */
|
|
207
|
+
private flowLayout;
|
|
208
|
+
private flowBoxes;
|
|
209
|
+
/** What this view's note mark shows (`EditorViewOptions.noteMark`). */
|
|
210
|
+
private readonly noteMark;
|
|
211
|
+
/** Puts everything on its page again, as the last render left it. */
|
|
212
|
+
private placeAgain;
|
|
213
|
+
/** The story being edited on its page, if any (ADR-0007). */
|
|
214
|
+
private mount;
|
|
215
|
+
/** What find shows, and which tree this view draws of it (a mounted story's view: its own). */
|
|
216
|
+
private found;
|
|
217
|
+
private matchStory;
|
|
218
|
+
private readonly matchMarks;
|
|
219
|
+
/** The pages marked, as a key; the frame waiting to look again. */
|
|
220
|
+
private matchPages;
|
|
221
|
+
private matchFrame;
|
|
222
|
+
/** The body's selection before the press of a double click in a page's margin. */
|
|
223
|
+
private pressSelection;
|
|
224
|
+
/** The listeners on the host, to remove them. */
|
|
225
|
+
private readonly listeners;
|
|
226
|
+
/** The frames, titles and pop-ups of content controls. */
|
|
227
|
+
private readonly controlChrome;
|
|
107
228
|
constructor(host: HTMLElement, editor: Editor, options?: EditorViewOptions);
|
|
229
|
+
/** Adds a listener for the body's events: a story open on a page has its own view. */
|
|
230
|
+
private listen;
|
|
108
231
|
destroy(): void;
|
|
109
232
|
/** Focuses the host, shows the model selection in it and scrolls it into view. */
|
|
110
233
|
focus(): void;
|
|
@@ -131,15 +254,161 @@ export declare class EditorView {
|
|
|
131
254
|
* Measurements are cached by node and the flow restarts at the first changed block (5.4).
|
|
132
255
|
*/
|
|
133
256
|
private render;
|
|
257
|
+
private renderPages;
|
|
258
|
+
/** The note references shown, with their numbers as the last flow's pages make them. */
|
|
259
|
+
private noteReferences;
|
|
260
|
+
/**
|
|
261
|
+
* Numbers that restart on each page depend on the flow just made: when they came out otherwise,
|
|
262
|
+
* once more with them (their width can move a line), at most twice.
|
|
263
|
+
*/
|
|
264
|
+
private renumberNotes;
|
|
265
|
+
/** The section of each page's bands in the last flow, and each note's place on the pages. */
|
|
266
|
+
private drawNotes;
|
|
267
|
+
/** Layout px per px on screen: what a scaled ancestor (`transform`, `zoom`) multiplies by. */
|
|
268
|
+
private scale;
|
|
269
|
+
/** Whether the headers' and footers' heights differ from when the pages were last flowed. */
|
|
270
|
+
private regionsChanged;
|
|
271
|
+
/**
|
|
272
|
+
* Gives every page the header and footer the last flow says, redrawing those that changed. The
|
|
273
|
+
* one holding the story being edited stays; it follows the story if its page no longer shows it.
|
|
274
|
+
*/
|
|
275
|
+
private drawRegions;
|
|
276
|
+
/** The page setup page `p` has, or will have once placed. */
|
|
277
|
+
private sheetOfPage;
|
|
278
|
+
/**
|
|
279
|
+
* After a story changed: its occurrences redrawn. False when a height changed, which takes a
|
|
280
|
+
* new flow (`render`), or during a composition.
|
|
281
|
+
*/
|
|
282
|
+
private redrawRegions;
|
|
283
|
+
/** The story being edited, moved with its region: the focus goes back to it. */
|
|
284
|
+
private afterPlace;
|
|
285
|
+
/** What the toolbar and code open stories through (`Editor.storyView`). */
|
|
286
|
+
private readonly stories;
|
|
287
|
+
/** Makes this view the one `Editor.storyView` speaks for, telling listeners if it was not. */
|
|
288
|
+
private claimStories;
|
|
289
|
+
/**
|
|
290
|
+
* Marks what find found: on the pages, in the story open, and in the drawn copies of the others.
|
|
291
|
+
* Nothing of it is in the document or the pages' DOM, and it does not print. The current match is
|
|
292
|
+
* scrolled to when it is where the view can show it.
|
|
293
|
+
*/
|
|
294
|
+
showMatches(found: FoundMatches | null): void;
|
|
295
|
+
/** The screen ranges of `from..to` in one paragraph: one per text node it covers. */
|
|
296
|
+
private rangesOf;
|
|
297
|
+
/** The pages on the screen and a screen around it: only these carry marks. */
|
|
298
|
+
private pagesNearView;
|
|
299
|
+
private drawMatches;
|
|
300
|
+
/** Scrolling brings other pages near: their marks are drawn, once per frame. */
|
|
301
|
+
private readonly onMatchScroll;
|
|
302
|
+
/** What find shows here, marked; a story's view is told by its page's view. */
|
|
303
|
+
private showFound;
|
|
304
|
+
private scrollToRange;
|
|
305
|
+
/** Opens story `id` where a page shows it, leaving the focus where it is. */
|
|
306
|
+
private openForReveal;
|
|
307
|
+
/**
|
|
308
|
+
* Selects `target` and scrolls to it: in the body (leaving a story that is open), or in its story,
|
|
309
|
+
* opened where it is. `focus`: the document takes the focus. False when no page shows it.
|
|
310
|
+
*/
|
|
311
|
+
reveal({ story, from, to }: DocumentTarget, { focus }?: {
|
|
312
|
+
focus?: boolean | undefined;
|
|
313
|
+
}): boolean;
|
|
314
|
+
/** The caret to the start of page `page` (1-based) and the page into view. */
|
|
315
|
+
goToPage(page: number, { focus }?: {
|
|
316
|
+
focus?: boolean | undefined;
|
|
317
|
+
}): boolean;
|
|
318
|
+
/** Word's keys for finding and going places, when the app shows something for them. */
|
|
319
|
+
private navigationKey;
|
|
320
|
+
/** The frames of content controls, drawn again (a render takes them off the pages). */
|
|
321
|
+
private drawControls;
|
|
322
|
+
/** Where a control's content is on the screen: its lines, or its blocks by page. */
|
|
323
|
+
private controlRects;
|
|
324
|
+
/** Where what a control's content shows is on the screen. */
|
|
325
|
+
private controlContentRects;
|
|
326
|
+
/**
|
|
327
|
+
* The keys of content controls: Alt+Down opens a list or date picker, and Left and Right stop on
|
|
328
|
+
* each side of a control's edge, as Word's caret does (browsers cannot see the difference).
|
|
329
|
+
*/
|
|
330
|
+
private controlKey;
|
|
331
|
+
/** The pages as last flowed, as fields need them; null without pages. */
|
|
332
|
+
private fieldLayout;
|
|
333
|
+
/**
|
|
334
|
+
* Updates fields from the pages shown: all of them, or those `options.only` says, of the body or
|
|
335
|
+
* of `editor` (a story's). What that does to the pages is taken in by a second pass over what
|
|
336
|
+
* depends on them, in the same undo step.
|
|
337
|
+
*/
|
|
338
|
+
updateFields(options?: UpdateFieldsOptions, editor?: Editor): FieldsReport;
|
|
339
|
+
/**
|
|
340
|
+
* Prints what the document is now: fields updated (one undo step), then the browser's dialog.
|
|
341
|
+
*/
|
|
342
|
+
print(): void;
|
|
343
|
+
/**
|
|
344
|
+
* Left and Right next to a field's markers: the browser's move starts where something can be
|
|
345
|
+
* seen, or the markers (empty elements) cost WebKit a key press each. With codes shown the
|
|
346
|
+
* view makes the move itself, over the whole field; whether it did.
|
|
347
|
+
*/
|
|
348
|
+
private skipFieldParts;
|
|
349
|
+
/** F9 and Alt+F9, as in Word. */
|
|
350
|
+
private fieldKey;
|
|
351
|
+
/** Shades what shows the fields the selection is in (not printed): the outermost of each. */
|
|
352
|
+
private showSelectedFields;
|
|
353
|
+
/** The sections of the document, in order. */
|
|
354
|
+
private sections;
|
|
355
|
+
/** The page the selection's head is on. */
|
|
356
|
+
private selectionPage;
|
|
357
|
+
/**
|
|
358
|
+
* Opens the header or footer of page `at` (by default the selection's) for editing where it is;
|
|
359
|
+
* made first when the page has none. Whether it is open now.
|
|
360
|
+
*/
|
|
361
|
+
openStory(side: StorySide, at?: number, create?: boolean, focus?: boolean): boolean;
|
|
362
|
+
/**
|
|
363
|
+
* Opens note `id`, or the one whose reference is at the selection, in place: shown whole at its
|
|
364
|
+
* reference's page. Whether it is open now.
|
|
365
|
+
*/
|
|
366
|
+
openNote(id?: string, focus?: boolean): boolean;
|
|
367
|
+
/** From the note being edited back to its reference, the caret after it. */
|
|
368
|
+
private toReference;
|
|
369
|
+
/** Puts `editor`'s story on its page, in `place`, the body read-only and dimmed around it. */
|
|
370
|
+
private mountStory;
|
|
371
|
+
/** Finishes a running composition, its text going into the model. */
|
|
372
|
+
endComposition(): void;
|
|
373
|
+
/** Leaves the story being edited; `focus`: the body takes the focus, with its selection back. */
|
|
374
|
+
closeStory(focus?: boolean): void;
|
|
375
|
+
/** The page's own story, after what was open is shown nowhere any more. */
|
|
376
|
+
private reopenStory;
|
|
377
|
+
/** The margin of a page a mouse event is in, if it is on the page itself. */
|
|
378
|
+
private marginAt;
|
|
379
|
+
/**
|
|
380
|
+
* A press outside the story being edited leaves it. The second press of a double click in a
|
|
381
|
+
* page's margin opens its header or footer, the body's selection kept: on the press, since the
|
|
382
|
+
* first click may have scrolled the page (Firefox) and the double click would land elsewhere.
|
|
383
|
+
*/
|
|
384
|
+
private onPress;
|
|
385
|
+
/** Puts the caret at a point of the window, if it is on this view's content. */
|
|
386
|
+
placeCaret(x: number, y: number): void;
|
|
387
|
+
/** The model position at a point of the window, or null. */
|
|
388
|
+
private posAtPoint;
|
|
389
|
+
/**
|
|
390
|
+
* A floating picture reaches into the blocks after its paragraph (their lines go around it):
|
|
391
|
+
* a block that changed (new, drawn again or stale) on a page holding one has the blocks after
|
|
392
|
+
* it on that page and the next measured again. A new block counts on the page of the block
|
|
393
|
+
* before it, where `place` first puts it, and the next (it may have been that page's first);
|
|
394
|
+
* only blocks that changed reach on, not the ones this marks, so an edit re-measures three
|
|
395
|
+
* pages at most.
|
|
396
|
+
*/
|
|
397
|
+
private staleAroundFloats;
|
|
134
398
|
/** A font's normal line height ratio, measured outside the host (no input to read back). */
|
|
135
399
|
private lineRatio;
|
|
136
400
|
/**
|
|
137
401
|
* Puts each fragment of each block into its page (pages are non-decreasing in document
|
|
138
|
-
* order)
|
|
139
|
-
*
|
|
140
|
-
* or a page (stray DOM) is removed.
|
|
402
|
+
* order) and, on a page with several sections or columns, into its band's column, creating
|
|
403
|
+
* and removing pages as needed, and gives each page the page setup of its first section.
|
|
404
|
+
* Anything else in the host or a page (stray DOM) is removed.
|
|
141
405
|
*/
|
|
142
406
|
private place;
|
|
407
|
+
/**
|
|
408
|
+
* What a table's cell shows in one of its fragments: its blocks' elements that `takes` puts
|
|
409
|
+
* there, and nested tables whole (where their first block goes).
|
|
410
|
+
*/
|
|
411
|
+
private cellContent;
|
|
143
412
|
private createPage;
|
|
144
413
|
/** The last section's page setup (the envelope's), for an empty document. */
|
|
145
414
|
private lastSheet;
|
|
@@ -160,7 +429,10 @@ export declare class EditorView {
|
|
|
160
429
|
private scheduleRelayout;
|
|
161
430
|
/** The block element (a fragment of a rendered block) that contains `node`, or null. */
|
|
162
431
|
private blockElement;
|
|
163
|
-
/**
|
|
432
|
+
/**
|
|
433
|
+
* Whether `node` holds blocks rather than content: the host, a page, a band or column of one,
|
|
434
|
+
* or a table's wrapper, table, rows and cells.
|
|
435
|
+
*/
|
|
164
436
|
private holdsBlocks;
|
|
165
437
|
/** Index of the first block that starts at or after `pos` (the block count if none). */
|
|
166
438
|
private blockFrom;
|
|
@@ -172,6 +444,14 @@ export declare class EditorView {
|
|
|
172
444
|
private readSelection;
|
|
173
445
|
/** The rendered block a node selection selects, if it selects one. */
|
|
174
446
|
private selectedBlock;
|
|
447
|
+
/** The span of the picture a node selection selects, if it selects one. */
|
|
448
|
+
private pictureSpan;
|
|
449
|
+
/** Marks the selected picture and gives it a resize handle (when the document is editable). */
|
|
450
|
+
private showSelectedPicture;
|
|
451
|
+
/** Marks the cells of a cell selection (their table cell elements, on every page). */
|
|
452
|
+
private showSelectedCells;
|
|
453
|
+
/** The first wrapper of a node-selected table, if a table is selected. */
|
|
454
|
+
private selectedTable;
|
|
175
455
|
/** Marks the element of a node-selected block, for styling (the DOM selection is around it). */
|
|
176
456
|
private showSelectedNode;
|
|
177
457
|
/**
|
|
@@ -199,6 +479,61 @@ export declare class EditorView {
|
|
|
199
479
|
private onBeforeInput;
|
|
200
480
|
/** Runs the first command bound to `name` that applies, through the view's dispatch. */
|
|
201
481
|
private runKey;
|
|
482
|
+
/** A column border being dragged: its table and column, the column's width, the press, the guide. */
|
|
483
|
+
private drag;
|
|
484
|
+
/** Whether this view set the host's cursor (an embedder's own cursor is left alone). */
|
|
485
|
+
private resizeCursor;
|
|
486
|
+
/**
|
|
487
|
+
* The column border of a top-level table near the pointer (within 4 px): an edge of the cell
|
|
488
|
+
* under it (a grid line through a merged cell is no border), or the table's right edge from
|
|
489
|
+
* outside; as the grid column left of it, with the table's px per twip. None in read-only
|
|
490
|
+
* mode, during a composition, or while tracking (column widths do not change then).
|
|
491
|
+
*/
|
|
492
|
+
private columnBorder;
|
|
493
|
+
/** The pointer over a column border shows that it can be dragged. */
|
|
494
|
+
private onMouseMove;
|
|
495
|
+
/**
|
|
496
|
+
* A press on a column border (no Shift: Shift-click extends the selection) starts dragging it:
|
|
497
|
+
* a guide line follows the pointer and the release moves the border by as much as the pointer
|
|
498
|
+
* moved (`setColumnWidth`); a press without a move changes nothing; Escape, the button let go
|
|
499
|
+
* elsewhere or the window losing the focus cancel.
|
|
500
|
+
*/
|
|
501
|
+
private startColumnDrag;
|
|
502
|
+
private onDragMove;
|
|
503
|
+
private onDragEnd;
|
|
504
|
+
private onDragKey;
|
|
505
|
+
private onDragBlur;
|
|
506
|
+
/** Ends a drag (its guide and listeners gone) and returns it. */
|
|
507
|
+
private endDrag;
|
|
508
|
+
/**
|
|
509
|
+
* A press on a picture selects it (a node selection); on the selected picture's handle it
|
|
510
|
+
* starts a resize that keeps its aspect ratio (`setPictureSize` on release, Escape cancels).
|
|
511
|
+
*/
|
|
512
|
+
private pictureMouseDown;
|
|
513
|
+
/** The size (layout px) a resize gives at the pointer: the larger move, the ratio kept. */
|
|
514
|
+
private resizedTo;
|
|
515
|
+
private onResizeMove;
|
|
516
|
+
private onResizeEnd;
|
|
517
|
+
private onResizeKey;
|
|
518
|
+
private onResizeCancel;
|
|
519
|
+
/** Ends a resize (its listeners gone) and returns it. */
|
|
520
|
+
private endResize;
|
|
521
|
+
private textWidthEmu;
|
|
522
|
+
/** Image files in a transfer (paste or drop), when the app takes uploads. */
|
|
523
|
+
private imageFiles;
|
|
524
|
+
/** Whether a drag carries files (from outside the page). */
|
|
525
|
+
private static carriesFiles;
|
|
526
|
+
private onDragOver;
|
|
527
|
+
private onDrop;
|
|
528
|
+
/**
|
|
529
|
+
* Inserts image files where the selection is now, one picture each, in order: each measured
|
|
530
|
+
* first (one the browser cannot show is skipped, not uploaded), then given to the `upload`
|
|
531
|
+
* option, then inserted at its natural size (96 px per inch) no wider than the page's text,
|
|
532
|
+
* where the selection was, however the document changed meanwhile (after a composition that
|
|
533
|
+
* runs then). A file whose upload fails is skipped (reported on the console). Resolves to
|
|
534
|
+
* the number inserted (none without `upload`); never rejects.
|
|
535
|
+
*/
|
|
536
|
+
insertFiles(files: readonly File[]): Promise<number>;
|
|
202
537
|
/**
|
|
203
538
|
* Triple-click selects the clicked block's content. Chromium and WebKit natively extend the
|
|
204
539
|
* selection to the start of the next block, so typing over it would merge the two blocks.
|
|
@@ -212,6 +547,13 @@ export declare class EditorView {
|
|
|
212
547
|
/** The href of the link an `<a>` shows, read from the model (the DOM is never the truth). */
|
|
213
548
|
private linkHref;
|
|
214
549
|
private onKeyDown;
|
|
550
|
+
/** Word's keys for notes, and Shift+Alt+N from a reference to its note. */
|
|
551
|
+
private noteKey;
|
|
552
|
+
/**
|
|
553
|
+
* Ctrl+Home and Ctrl+End (with Shift, extending) on pages with headers and footers: the browser
|
|
554
|
+
* stops at the first or last place before what it cannot edit, so the model says where.
|
|
555
|
+
*/
|
|
556
|
+
private documentEdgeKey;
|
|
215
557
|
/**
|
|
216
558
|
* Whether the caret is on the first (`dir` -1) or last (1) line of its textblock, in the
|
|
217
559
|
* block's first or last fragment (a block split across pages has several).
|
|
@@ -275,10 +617,67 @@ export declare class EditorView {
|
|
|
275
617
|
paste(data: Pick<DataTransfer, "getData">, autolink?: boolean): boolean;
|
|
276
618
|
private onSelectionChange;
|
|
277
619
|
}
|
|
620
|
+
/** A block's measurement: border-box height across its fragments (layout px), margins, lines. */
|
|
621
|
+
export interface Measure {
|
|
622
|
+
height: number;
|
|
623
|
+
marginTop: number;
|
|
624
|
+
marginBottom: number;
|
|
625
|
+
/** Vertical padding and border, which every fragment of a split block repeats. */
|
|
626
|
+
box: number;
|
|
627
|
+
lines?: Lines;
|
|
628
|
+
/** At the widths of columns it may land in, when a section's columns differ. */
|
|
629
|
+
widths?: Map<number, WidthMeasure>;
|
|
630
|
+
/** A table's rows and blocks. */
|
|
631
|
+
table?: TableMeasure;
|
|
632
|
+
}
|
|
633
|
+
/** A block measured at a width other than where it is. */
|
|
634
|
+
interface WidthMeasure {
|
|
635
|
+
height: number;
|
|
636
|
+
lines(): readonly number[];
|
|
637
|
+
all(): Lines;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Where a table may break across pages (from its top, sorted): after each row, and inside a row
|
|
641
|
+
* at its cells' line ends, unless the row may not split (`cantSplit`, unless taller than a
|
|
642
|
+
* page), is part of a vertical merge or holds a nested table (shortcut: those split only
|
|
643
|
+
* between rows; a nested table stays whole within its row).
|
|
644
|
+
*/
|
|
645
|
+
export declare function breaksOf(frame: Frame, measure: Measure, blocks: readonly WordBlockDesc[], pageHeight: number, lines: (desc: BlockDesc) => Lines): number[];
|
|
646
|
+
/**
|
|
647
|
+
* A flowed table cut into its fragments: the rows each shows (a row split across pages in
|
|
648
|
+
* both), the header rows drawn again above a continuation, the fragment of the table each
|
|
649
|
+
* block's fragments go in, and where a block of a split row splits (content offsets).
|
|
650
|
+
*/
|
|
651
|
+
export declare function cutTable(frame: Frame, measure: Measure, fragments: readonly {
|
|
652
|
+
fromLine: number;
|
|
653
|
+
toLine: number;
|
|
654
|
+
}[], blocks: readonly WordBlockDesc[], lines: (desc: BlockDesc) => Lines): {
|
|
655
|
+
parts: TablePart[];
|
|
656
|
+
partOf: Map<number, number[]>;
|
|
657
|
+
splits: Map<number, number[]>;
|
|
658
|
+
};
|
|
659
|
+
export interface Lines {
|
|
660
|
+
/** Content offset where each line starts. */
|
|
661
|
+
starts: number[];
|
|
662
|
+
/** Bottom of each line box, in layout px from the block's top, as if it were not split. */
|
|
663
|
+
bottoms: number[];
|
|
664
|
+
}
|
|
278
665
|
/**
|
|
279
666
|
* Normalizes a key event to a keymap name: modifiers in the order `Mod-Ctrl-Meta-Alt-Shift-`,
|
|
280
667
|
* then the key (single characters lower-cased). `Mod` is Cmd on Apple platforms, Ctrl elsewhere.
|
|
281
668
|
*/
|
|
282
669
|
export declare function keyName(event: KeyboardEvent): string;
|
|
670
|
+
/**
|
|
671
|
+
* The text width of a document's (last) section in EMU (635 per twip; Word's Letter page and
|
|
672
|
+
* margins where it does not say): the widest a picture is inserted or resized.
|
|
673
|
+
* shortcut: the last section's, not the caret's section or table cell; use the caret's when
|
|
674
|
+
* documents mix page sizes.
|
|
675
|
+
*/
|
|
676
|
+
export declare function textWidthEmu(state: EditorState): number;
|
|
677
|
+
/** A file's image's natural size (CSS px) from a local object URL, before any upload. */
|
|
678
|
+
export declare function measureImageFile(file: File, doc: Document): Promise<{
|
|
679
|
+
width: number;
|
|
680
|
+
height: number;
|
|
681
|
+
} | null>;
|
|
283
682
|
export {};
|
|
284
683
|
//# sourceMappingURL=view.d.ts.map
|
package/dist/view.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../src/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,MAAM,EA+BZ,MAAM,cAAc,CAAC;AAuBtB,UAAU,QAAQ;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA6JD;;;;;;;;;;;GAWG;AACH,qBAAa,UAAU;IAmFnB,QAAQ,CAAC,IAAI,EAAE,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM;IAnFzB,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,MAAM,CAAuB;IACrC,wDAAwD;IACxD,OAAO,CAAC,MAAM,CAAgB;IAC9B,2CAA2C;IAC3C,OAAO,CAAC,OAAO,CAAgC;IAC/C,uDAAuD;IACvD,OAAO,CAAC,WAAW,CAA4B;IAC/C,+CAA+C;IAC/C,OAAO,CAAC,aAAa,CAA2C;IAChE,kDAAkD;IAClD,OAAO,CAAC,KAAK,CAA8B;IAC3C,6DAA6D;IAC7D,OAAO,CAAC,KAAK,CAAqB;IAClC,wEAAwE;IACxE,OAAO,CAAC,MAAM,CAAe;IAC7B,wDAAwD;IACxD,OAAO,CAAC,Q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