theseus/bundled-addons/pdf-editor/lib
Local Dev 62460cd3aa feat(pdf-editor): select an area, and treat what it caught as one thing
Drag on empty page and a rubber band gathers every mark it sweeps over.
Touching counts rather than enclosing: a band you have to draw right
around a long arrow is a band you draw twice. Shift-click adds or removes
one, Ctrl+A takes the page.

What the group can then do is move, restyle, duplicate and delete, each as
a single undo step — six marks deleted is one thing the user did, so it
has to be one thing to undo. The selection bar offers only what is true of
every member: a group of shapes gets Fill, a group of stamps gets size and
weight, a mixed group gets neither, and none of them gets Edit, which
needs one mark to put a caret in.

No resize handles on a group. Stretching a mixed selection means deciding
what a stretch does to text, which scales by font size, and to a line,
which has no box at all; until there is an answer worth defending,
offering the grip would promise something this cannot keep.

Each member is outlined as well as the group, because a band that caught
one more mark than you meant is worth seeing before you press Delete.

A group lives on one page. A mark carries its page, and PDF user space
means nothing across two of them, so a band selects within the page it
was drawn on.

One trap found on the way: starting the band on a press means calling
preventDefault, which is also what gives a form field its caret — so the
band now keeps its hands off the annotation layer, and typing into a PDF
form still works.
2026-09-27 13:45:04 +02:00
..
create.js feat(pdf-editor): the dock opens the editor, and the editor offers more than one way in 2026-09-23 00:51:45 +02:00
docx.js feat(pdf-editor): convert a PDF to Word, and say what that costs 2026-09-22 22:06:54 +02:00
inline.js feat(pdf-editor): type on the page, keep more than one signature, move what you drew 2026-09-27 13:16:07 +02:00
model.js feat(pdf-editor): select an area, and treat what it caught as one thing 2026-09-27 13:45:04 +02:00
overlay.js feat(pdf-editor): select an area, and treat what it caught as one thing 2026-09-27 13:45:04 +02:00
rail.js feat(pdf-editor): read, mark up and reshape a PDF without leaving the browser 2026-09-20 20:58:21 +02:00
reflow.js feat(pdf-editor): convert a PDF to Word, and say what that costs 2026-09-22 22:06:54 +02:00
save.js feat(pdf-editor): replace the document's own text, on its own baseline 2026-09-22 21:49:37 +02:00
shape.js feat(pdf-editor): select an area, and treat what it caught as one thing 2026-09-27 13:45:04 +02:00
signature.js feat(pdf-editor): type on the page, keep more than one signature, move what you drew 2026-09-27 13:16:07 +02:00
tools.js feat(pdf-editor): select an area, and treat what it caught as one thing 2026-09-27 13:45:04 +02:00
view.js feat(pdf-editor): read, mark up and reshape a PDF without leaving the browser 2026-09-20 20:58:21 +02:00