@embedpdf/engine-core 3.0.0-next.2 → 3.0.0-next.4
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/{AbortError-ByBflvEl.cjs → AbortError-BFwCIKC6.cjs} +2 -2
- package/dist/{AbortError-ByBflvEl.cjs.map → AbortError-BFwCIKC6.cjs.map} +1 -1
- package/dist/{AbortError-CjSasIlL.js → AbortError-D0w0N4pJ.js} +2 -2
- package/dist/{AbortError-CjSasIlL.js.map → AbortError-D0w0N4pJ.js.map} +1 -1
- package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-_Z600IzD.d.cts} +216 -20
- package/dist/{AnnotationListSnapshot-W0RCsyDE.d.ts → AnnotationListSnapshot-_Z600IzD.d.ts} +216 -20
- package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-BR4tesJK.d.ts} +2 -2
- package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-CoHQf0Ju.d.cts} +2 -2
- package/dist/{Engine-D9loFZc1.d.cts → Engine-LHgbW5z-.d.cts} +4 -4
- package/dist/{Engine-B7Oe7f5i.d.ts → Engine-h_6P4pjM.d.ts} +4 -4
- package/dist/{builders-C548U47M.js → builders-BWgXkLKd.js} +382 -167
- package/dist/builders-BWgXkLKd.js.map +1 -0
- package/dist/{builders-BvikWRuO.cjs → builders-CBK8k_cn.cjs} +423 -220
- package/dist/builders-CBK8k_cn.cjs.map +1 -0
- package/dist/conformance.cjs +303 -135
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +37 -3
- package/dist/conformance.d.ts +37 -3
- package/dist/conformance.js +303 -136
- package/dist/conformance.js.map +1 -1
- package/dist/{fold-CB4fAOOy.js → fold-D3_ZiKOg.js} +162 -3
- package/dist/fold-D3_ZiKOg.js.map +1 -0
- package/dist/{fold-IaMph3CO.cjs → fold-M6iEyY8X.cjs} +233 -2
- package/dist/fold-M6iEyY8X.cjs.map +1 -0
- package/dist/index.cjs +22 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/runtime.cjs +23 -13
- package/dist/runtime.d.cts +4 -4
- package/dist/runtime.d.ts +4 -4
- package/dist/runtime.js +5 -5
- package/dist/{schemas-9OpSSeM6.js → schemas-C32v81cE.js} +29 -4
- package/dist/schemas-C32v81cE.js.map +1 -0
- package/dist/{schemas-B_1VyFsm.cjs → schemas-CLByd6ze.cjs} +29 -4
- package/dist/schemas-CLByd6ze.cjs.map +1 -0
- package/dist/{subtype-qejjVr6h.cjs → subtype-C4XA7C16.cjs} +9 -1
- package/dist/subtype-C4XA7C16.cjs.map +1 -0
- package/dist/{subtype-BvAzLCGC.js → subtype-DsxZbJtP.js} +9 -1
- package/dist/subtype-DsxZbJtP.js.map +1 -0
- package/dist/wire.cjs +14 -1
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +13 -4
- package/dist/wire.d.ts +13 -4
- package/dist/wire.js +14 -2
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/builders-BvikWRuO.cjs.map +0 -1
- package/dist/builders-C548U47M.js.map +0 -1
- package/dist/fold-CB4fAOOy.js.map +0 -1
- package/dist/fold-IaMph3CO.cjs.map +0 -1
- package/dist/schemas-9OpSSeM6.js.map +0 -1
- package/dist/schemas-B_1VyFsm.cjs.map +0 -1
- package/dist/subtype-BvAzLCGC.js.map +0 -1
- package/dist/subtype-qejjVr6h.cjs.map +0 -1
|
@@ -932,9 +932,9 @@ interface OpenInputById {
|
|
|
932
932
|
* `GET /v1/docs/:docId/head`. The returned handle is bound to this
|
|
933
933
|
* token; subsequent operations on it carry that bearer.
|
|
934
934
|
*
|
|
935
|
-
* Use this
|
|
936
|
-
*
|
|
937
|
-
*
|
|
935
|
+
* Use this when your backend mints doc-scoped JWTs itself (e.g. a
|
|
936
|
+
* logged-in reviewer authorised for exactly one document). For the
|
|
937
|
+
* no-backend public-share flow, use `kind: 'share'` instead.
|
|
938
938
|
*
|
|
939
939
|
* Rejected by `@embedpdf/engine`.
|
|
940
940
|
*/
|
|
@@ -949,7 +949,31 @@ interface OpenInputToken {
|
|
|
949
949
|
token: TokenSource;
|
|
950
950
|
password?: string | null;
|
|
951
951
|
}
|
|
952
|
-
|
|
952
|
+
/**
|
|
953
|
+
* Cloud-engine: open via a public share token (`shr_…`) from the
|
|
954
|
+
* dashboard's embed snippet. A share token is a REFERENCE to a
|
|
955
|
+
* stored grant on the server, not a credential — the engine
|
|
956
|
+
* exchanges it for a short-lived doc-scoped session JWT and
|
|
957
|
+
* silently re-exchanges near expiry, so revoking or editing the
|
|
958
|
+
* share retargets every embedded copy at the next renewal. No
|
|
959
|
+
* backend required; the engine itself may be constructed with no
|
|
960
|
+
* engine-level token at all.
|
|
961
|
+
*
|
|
962
|
+
* Rejected by `@embedpdf/engine`.
|
|
963
|
+
*/
|
|
964
|
+
interface OpenInputShare {
|
|
965
|
+
kind: 'share';
|
|
966
|
+
/** Public share token (`shr_…`) identifying the grant. */
|
|
967
|
+
shareToken: string;
|
|
968
|
+
/**
|
|
969
|
+
* Passphrase for a protected grant. This is the SHARE passphrase,
|
|
970
|
+
* checked by the exchange endpoint — not the PDF's encryption
|
|
971
|
+
* password, which stays in `password` like every other kind.
|
|
972
|
+
*/
|
|
973
|
+
sharePassword?: string;
|
|
974
|
+
password?: string | null;
|
|
975
|
+
}
|
|
976
|
+
type OpenInput = OpenInputBytes | OpenInputLayerBytes | OpenInputById | OpenInputToken | OpenInputShare;
|
|
953
977
|
interface OpenOptions {
|
|
954
978
|
password?: string | null;
|
|
955
979
|
/**
|
|
@@ -1181,9 +1205,9 @@ interface PageTextSnapshot {
|
|
|
1181
1205
|
//#endregion
|
|
1182
1206
|
//#region src/dto/PageGeometrySnapshot.d.ts
|
|
1183
1207
|
/**
|
|
1184
|
-
* One glyph's geometry in PDF user space (y-up edges).
|
|
1208
|
+
* One upright glyph's geometry in PDF user space (y-up edges).
|
|
1185
1209
|
*
|
|
1186
|
-
* `looseBox` is the loose char
|
|
1210
|
+
* `looseBox` is the loose char cell (pdfium `FPDFText_GetLooseCharBox`): the
|
|
1187
1211
|
* font-metric box covering the full glyph cell without regard to the actual
|
|
1188
1212
|
* glyph shape. Always present (zeroed + flagged empty for degenerate glyphs);
|
|
1189
1213
|
* it's the box selection envelopes are built from.
|
|
@@ -1200,15 +1224,61 @@ interface PageGeometryGlyph {
|
|
|
1200
1224
|
tightBox?: PdfRect;
|
|
1201
1225
|
}
|
|
1202
1226
|
/**
|
|
1203
|
-
* One
|
|
1204
|
-
*
|
|
1227
|
+
* One non-upright glyph's geometry: the exact oriented cells, in PDF user
|
|
1228
|
+
* space (page coordinates — NOT a local frame). The corner SLOTS are
|
|
1229
|
+
* frame-geometric in the glyph's own upright frame:
|
|
1230
|
+
* `p1` = upper-start, `p2` = upper-end, `p3` = lower-start, `p4` = lower-end,
|
|
1231
|
+
* where "upper" is the ascent side and "start" is the frame's minimum-x side.
|
|
1232
|
+
* Deliberately NOT a bidi/reading-order statement — advance direction is a
|
|
1233
|
+
* glyph-sequence concern, carried separately where consumers need it.
|
|
1234
|
+
*
|
|
1235
|
+
* Degenerate glyphs carry a zeroed `looseQuad` plus the empty flag (bit 2),
|
|
1236
|
+
* mirroring the upright variant's zeroed-box convention. `flags` bits match
|
|
1237
|
+
* {@link PageGeometryGlyph.flags}.
|
|
1238
|
+
*/
|
|
1239
|
+
interface RotatedGeometryGlyph {
|
|
1240
|
+
looseQuad: PdfQuad;
|
|
1241
|
+
flags: number;
|
|
1242
|
+
tightQuad?: PdfQuad;
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* A run whose char matrix is upright — byte-identical to the wire shape that
|
|
1246
|
+
* predates orientation support, so upright documents never pay for it.
|
|
1205
1247
|
*/
|
|
1206
|
-
interface
|
|
1248
|
+
interface UprightGeometryRun {
|
|
1207
1249
|
rect: PdfRect;
|
|
1208
1250
|
charStart: number;
|
|
1209
1251
|
glyphs: PageGeometryGlyph[];
|
|
1210
1252
|
fontSize?: number;
|
|
1211
1253
|
}
|
|
1254
|
+
/**
|
|
1255
|
+
* A run whose char matrix is NOT upright (rotated, sheared, or mirrored).
|
|
1256
|
+
*
|
|
1257
|
+
* `rect` stays a page-space AABB (culling), like every other wire rect.
|
|
1258
|
+
* `rotation` is the baseline angle in radians, CCW in PDF y-up space
|
|
1259
|
+
* (`atan2(m.b, m.a)` of the run's char matrix). Note a shear-only run has
|
|
1260
|
+
* `rotation === 0` and still uses this variant — its cells are
|
|
1261
|
+
* parallelograms an AABB would misrepresent. `ascentFlip` is true when the
|
|
1262
|
+
* ascent vector maps opposite the rotated frame's +y (mirrored /
|
|
1263
|
+
* negative-determinant content).
|
|
1264
|
+
*/
|
|
1265
|
+
interface RotatedGeometryRun {
|
|
1266
|
+
rect: PdfRect;
|
|
1267
|
+
charStart: number;
|
|
1268
|
+
glyphs: RotatedGeometryGlyph[];
|
|
1269
|
+
rotation: number;
|
|
1270
|
+
ascentFlip: boolean;
|
|
1271
|
+
fontSize?: number;
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* One text run (contiguous glyphs sharing a text object and orientation).
|
|
1275
|
+
* A discriminated union so consumers CANNOT read axis-aligned boxes off
|
|
1276
|
+
* rotated text by accident — handling orientation is a compile-time
|
|
1277
|
+
* obligation, not a runtime discovery. Narrow with
|
|
1278
|
+
* {@link isRotatedGeometryRun}, or use the uniform {@link glyphLooseQuad} /
|
|
1279
|
+
* {@link glyphLooseBounds} views.
|
|
1280
|
+
*/
|
|
1281
|
+
type PageGeometryRun = UprightGeometryRun | RotatedGeometryRun;
|
|
1212
1282
|
/**
|
|
1213
1283
|
* Geometry-only text layout for one page, in PDF user space (y-up). The v3
|
|
1214
1284
|
* viewer converts to content/view space via the page geometry matrix.
|
|
@@ -1220,6 +1290,22 @@ interface PageGeometryRun {
|
|
|
1220
1290
|
interface PageGeometrySnapshot {
|
|
1221
1291
|
runs: PageGeometryRun[];
|
|
1222
1292
|
}
|
|
1293
|
+
/** Narrowing guard: is this run the rotated (non-upright) variant? */
|
|
1294
|
+
declare function isRotatedGeometryRun(run: PageGeometryRun): run is RotatedGeometryRun;
|
|
1295
|
+
/**
|
|
1296
|
+
* Uniform oriented-cell view over either run variant: the glyph's loose cell
|
|
1297
|
+
* as a quad (synthesized from the box corners when the run is upright, in
|
|
1298
|
+
* the same frame-geometric slot order).
|
|
1299
|
+
*/
|
|
1300
|
+
declare function glyphLooseQuad(run: PageGeometryRun, index: number): PdfQuad;
|
|
1301
|
+
/**
|
|
1302
|
+
* Uniform AABB view over either run variant: the glyph's loose box, or the
|
|
1303
|
+
* enclosing bounds of its oriented cell when the run is rotated. The
|
|
1304
|
+
* conservative envelope for consumers that genuinely want a box (culling,
|
|
1305
|
+
* scroll targets) — never a substitute for handling orientation in geometry
|
|
1306
|
+
* that gets DRAWN.
|
|
1307
|
+
*/
|
|
1308
|
+
declare function glyphLooseBounds(run: PageGeometryRun, index: number): PdfRect;
|
|
1223
1309
|
//#endregion
|
|
1224
1310
|
//#region src/dto/PageRender.d.ts
|
|
1225
1311
|
type PageRenderEncodedFormat = 'png' | 'webp' | 'bmp';
|
|
@@ -1426,8 +1512,8 @@ interface AnnotationAppearancesQuery {
|
|
|
1426
1512
|
* (y-up), so the consumer can place the bitmap without a second read.
|
|
1427
1513
|
*
|
|
1428
1514
|
* Rotation convention: for annotations whose rotation lives in the AP
|
|
1429
|
-
* `/Matrix` — box-family kinds (square/circle/free-text/stamp) whose
|
|
1430
|
-
* carries BOTH `rotation` and `unrotatedRect` — the raster renders
|
|
1515
|
+
* `/Matrix` — box-family kinds (square/circle/free-text/stamp/caret) whose
|
|
1516
|
+
* DTO carries BOTH `rotation` and `unrotatedRect` — the raster renders
|
|
1431
1517
|
* ROTATION-STRIPPED and `rect` is the logical `unrotatedRect`; the consumer
|
|
1432
1518
|
* re-applies the DTO's `rotation` as a view transform about the box centre
|
|
1433
1519
|
* (e.g. CSS `rotate`), which makes the raster rotation-invariant (rotating
|
|
@@ -1586,6 +1672,14 @@ declare const EngineErrorCode: {
|
|
|
1586
1672
|
readonly DocOpenFailed: "DocOpenFailed";
|
|
1587
1673
|
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
1588
1674
|
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
1675
|
+
/**
|
|
1676
|
+
* A share-token exchange (`open({ kind: 'share' })`) needs the grant's
|
|
1677
|
+
* passphrase: none was supplied, or the supplied one was rejected —
|
|
1678
|
+
* indistinguishable by design, mirroring the server. Prompt and retry
|
|
1679
|
+
* with `sharePassword`. Distinct from `DocPasswordRequired`, which is
|
|
1680
|
+
* about the PDF's own encryption password.
|
|
1681
|
+
*/
|
|
1682
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
1589
1683
|
readonly Aborted: "Aborted";
|
|
1590
1684
|
readonly Network: "Network";
|
|
1591
1685
|
readonly Unauthenticated: "Unauthenticated";
|
|
@@ -3438,6 +3532,85 @@ interface FormRepairResult {
|
|
|
3438
3532
|
meta: MutationMeta;
|
|
3439
3533
|
}
|
|
3440
3534
|
//#endregion
|
|
3535
|
+
//#region src/text/layout.d.ts
|
|
3536
|
+
/**
|
|
3537
|
+
* One merged visual line of a text range, in PDF user space. `quad` is the
|
|
3538
|
+
* geometric authority (frame-geometric slot order: `p1..p4` = upper-start,
|
|
3539
|
+
* upper-end, lower-start, lower-end — visual semantics, NOT reading order);
|
|
3540
|
+
* `rect` is its axis-aligned bounds, produced by the same constructor.
|
|
3541
|
+
* `advance` is the READING direction along the baseline, derived from the
|
|
3542
|
+
* glyph SEQUENCE (+1 = the frame's +x), never inferred from geometry.
|
|
3543
|
+
*/
|
|
3544
|
+
interface PdfTextSegment {
|
|
3545
|
+
quad: PdfQuad;
|
|
3546
|
+
rect: PdfRect;
|
|
3547
|
+
advance: 1 | -1;
|
|
3548
|
+
}
|
|
3549
|
+
/** One glyph in its frame's space. `loose` builds segments; `tight` hit-tests. */
|
|
3550
|
+
interface TextLayoutGlyph {
|
|
3551
|
+
loose: PdfRect;
|
|
3552
|
+
tight?: PdfRect;
|
|
3553
|
+
flags: number;
|
|
3554
|
+
}
|
|
3555
|
+
/** A contiguous run of glyphs (a text object) in one frame. */
|
|
3556
|
+
interface TextLayoutRun {
|
|
3557
|
+
/** First char index — identical to the flat glyph index (runs tile the page). */
|
|
3558
|
+
charStart: number;
|
|
3559
|
+
count: number;
|
|
3560
|
+
/** Frame-local loose box (page space itself in frame 0). */
|
|
3561
|
+
rect: PdfRect;
|
|
3562
|
+
fontSize?: number;
|
|
3563
|
+
/** Index into {@link PageTextLayout.frames}; 0 = page space (upright). */
|
|
3564
|
+
frame: number;
|
|
3565
|
+
}
|
|
3566
|
+
/** An orientation cluster's orthonormal basis in page space. */
|
|
3567
|
+
interface TextLayoutFrame {
|
|
3568
|
+
/** Unit vector along the reading baseline (+x of the frame). */
|
|
3569
|
+
baseline: PdfPoint;
|
|
3570
|
+
/** Unit vector toward the ascent side (+y of the frame), ⟂ baseline. */
|
|
3571
|
+
ascent: PdfPoint;
|
|
3572
|
+
}
|
|
3573
|
+
/**
|
|
3574
|
+
* A page's text laid out per-frame: a flat glyph list (index = text-page
|
|
3575
|
+
* char index), the run structure, and the orientation frames.
|
|
3576
|
+
*/
|
|
3577
|
+
interface PageTextLayout {
|
|
3578
|
+
glyphs: TextLayoutGlyph[];
|
|
3579
|
+
runs: TextLayoutRun[];
|
|
3580
|
+
frames: TextLayoutFrame[];
|
|
3581
|
+
}
|
|
3582
|
+
/**
|
|
3583
|
+
* Flatten a page's geometry snapshot into the canonical layout. Upright runs
|
|
3584
|
+
* copy their wire boxes verbatim (frame 0 — byte-identical to the
|
|
3585
|
+
* pre-orientation behavior, wire run rects included); rotated runs project
|
|
3586
|
+
* their glyph cells into their cluster's frame.
|
|
3587
|
+
*/
|
|
3588
|
+
declare function buildPageTextLayout(snapshot: PageGeometrySnapshot): PageTextLayout;
|
|
3589
|
+
/**
|
|
3590
|
+
* The glyph (char) index at a page-space point, or null when nothing is near
|
|
3591
|
+
* (so callers can show the pointer cursor off-text). PDFium `GetIndexAtPos`:
|
|
3592
|
+
* exact tight-box containment first, then a tolerance pass (closest by
|
|
3593
|
+
* Manhattan distance within `toleranceFactor × average glyph height`). Each
|
|
3594
|
+
* run tests the point in ITS OWN frame, so rotated text hit-tests exactly.
|
|
3595
|
+
*/
|
|
3596
|
+
declare function textGlyphAt(layout: PageTextLayout, point: PdfPoint, toleranceFactor?: number): number | null;
|
|
3597
|
+
/** Double-click: the word around `glyph` (walk to space/empty glyphs both ways). */
|
|
3598
|
+
declare function expandTextRangeToWord(layout: PageTextLayout, glyph: number): [number, number];
|
|
3599
|
+
/** Triple-click: the full visual line — SAME-FRAME runs whose vertical extent
|
|
3600
|
+
* overlaps the anchor run's. A differently-oriented run is a line boundary. */
|
|
3601
|
+
declare function expandTextRangeToLine(layout: PageTextLayout, glyph: number): [number, number];
|
|
3602
|
+
/**
|
|
3603
|
+
* A single glyph's oriented cell in page space, or null for degenerate
|
|
3604
|
+
* glyphs — the anchor for caret placement at a selection boundary.
|
|
3605
|
+
*/
|
|
3606
|
+
declare function textGlyphQuad(layout: PageTextLayout, glyph: number): PdfQuad | null;
|
|
3607
|
+
/**
|
|
3608
|
+
* Merged visual-line segments for the half-open char range
|
|
3609
|
+
* `[charStart, charStart + charCount)` — THE canonical segmentation. Chars
|
|
3610
|
+
* outside the layout are ignored.
|
|
3611
|
+
*/
|
|
3612
|
+
declare function textSegmentsForRange(layout: PageTextLayout, charStart: number, charCount: number): PdfTextSegment[];
|
|
3613
|
+
//#endregion
|
|
3441
3614
|
//#region src/search/types.d.ts
|
|
3442
3615
|
/**
|
|
3443
3616
|
* What to search for — THE one shape, engine → wire → plugin state →
|
|
@@ -3552,15 +3725,17 @@ interface SearchSnippet {
|
|
|
3552
3725
|
* space — the same space as `PageTextSnapshot.text` offsets and
|
|
3553
3726
|
* `PageGeometryRun.charStart` — so a match joins the selection subsystem
|
|
3554
3727
|
* (extend-selection-from-match, highlight annotations) without any
|
|
3555
|
-
* re-mapping. `
|
|
3556
|
-
*
|
|
3557
|
-
*
|
|
3728
|
+
* re-mapping. `segments` are the CANONICAL visual-line segments (the same
|
|
3729
|
+
* engine-core text layout selection uses) — a match highlights exactly like
|
|
3730
|
+
* a selection of the same characters, one oriented segment per visual line,
|
|
3731
|
+
* never per glyph. Each segment carries the exact quad, its AABB `rect`,
|
|
3732
|
+
* and the reading `advance`.
|
|
3558
3733
|
*/
|
|
3559
3734
|
interface SearchMatch {
|
|
3560
3735
|
pageObjectNumber: PageObjectNumber;
|
|
3561
3736
|
charStart: number;
|
|
3562
3737
|
charCount: number;
|
|
3563
|
-
|
|
3738
|
+
segments: PdfTextSegment[];
|
|
3564
3739
|
snippet?: SearchSnippet;
|
|
3565
3740
|
}
|
|
3566
3741
|
/**
|
|
@@ -3724,10 +3899,14 @@ declare function buildSnippet(text: string, range: SearchMatchRange, context?: n
|
|
|
3724
3899
|
//#endregion
|
|
3725
3900
|
//#region src/search/rects.d.ts
|
|
3726
3901
|
/**
|
|
3727
|
-
*
|
|
3728
|
-
*
|
|
3729
|
-
*
|
|
3902
|
+
* Match-range → canonical visual-line segments. Thin wrappers over the ONE
|
|
3903
|
+
* text layout (`src/text/layout.ts`) — search owns matching and cursors,
|
|
3904
|
+
* never segmentation, so a match highlights exactly like a selection of the
|
|
3905
|
+
* same characters. No frame or merge logic lives here.
|
|
3730
3906
|
*/
|
|
3907
|
+
/** Canonical segments for `[charStart, charStart + charCount)`. */
|
|
3908
|
+
declare function searchSegmentsForRange(snapshot: PageGeometrySnapshot, charStart: number, charCount: number): PdfTextSegment[];
|
|
3909
|
+
/** The segments' AABBs — for consumers that genuinely want boxes. */
|
|
3731
3910
|
declare function searchRectsForRange(snapshot: PageGeometrySnapshot, charStart: number, charCount: number): PdfRect[];
|
|
3732
3911
|
//#endregion
|
|
3733
3912
|
//#region src/search/epoch.d.ts
|
|
@@ -4558,6 +4737,9 @@ interface CaretDraft extends AnnotationDraftBase, ColorStyleDraftFields {
|
|
|
4558
4737
|
rect: PdfRect;
|
|
4559
4738
|
/** `/RD` inset of the drawn caret from `/Rect`. */
|
|
4560
4739
|
rectDifferences?: PdfRectDifferences | null;
|
|
4740
|
+
/** Tri-state box-rotation pair (see the DTO): omitted/`null` = upright. */
|
|
4741
|
+
rotation?: number | null;
|
|
4742
|
+
unrotatedRect?: PdfRect | null;
|
|
4561
4743
|
}
|
|
4562
4744
|
//#endregion
|
|
4563
4745
|
//#region src/annotation/kinds/caret/dto.d.ts
|
|
@@ -4565,6 +4747,12 @@ interface CaretDraft extends AnnotationDraftBase, ColorStyleDraftFields {
|
|
|
4565
4747
|
* Caret annotation — a visual marker for a proposed text insertion or edit
|
|
4566
4748
|
* point. It carries no geometry of its own beyond `/Rect`: just a `/C` color,
|
|
4567
4749
|
* `/CA` opacity, and an optional `/RD` inset of the drawn symbol from `/Rect`.
|
|
4750
|
+
*
|
|
4751
|
+
* A caret anchored to ROTATED text carries the box-family rotation pair:
|
|
4752
|
+
* `rotation` (`/EMBD_Metadata/Rotation`, PDF-convention degrees) tilts the
|
|
4753
|
+
* baked symbol to ride its text's baseline, `unrotatedRect` is the logical
|
|
4754
|
+
* box, and `/Rect` stays the rotated visual AABB — exactly the shape/free-text
|
|
4755
|
+
* contract, so the generic AP machinery bakes it.
|
|
4568
4756
|
*/
|
|
4569
4757
|
type CaretAnnotationDTO = AnnotationBase & ColorStyleFields & {
|
|
4570
4758
|
subtype: 'caret';
|
|
@@ -4572,6 +4760,10 @@ type CaretAnnotationDTO = AnnotationBase & ColorStyleFields & {
|
|
|
4572
4760
|
intent: CaretIntent | null;
|
|
4573
4761
|
/** `/RD` inset of the drawn caret from `/Rect`; `null` when absent. */
|
|
4574
4762
|
rectDifferences: PdfRectDifferences | null;
|
|
4763
|
+
/** `/EMBD_Metadata/Rotation` — degrees, normalized `[0,360)`. */
|
|
4764
|
+
rotation?: number;
|
|
4765
|
+
/** `/EMBD_Metadata/UnrotatedRect` — the logical box (required when rotation != 0). */
|
|
4766
|
+
unrotatedRect?: PdfRect;
|
|
4575
4767
|
};
|
|
4576
4768
|
//#endregion
|
|
4577
4769
|
//#region src/annotation/kinds/caret/patch.d.ts
|
|
@@ -4581,6 +4773,10 @@ interface CaretPatch extends AnnotationPatchBase, ColorStylePatchFields {
|
|
|
4581
4773
|
rect?: PdfRect;
|
|
4582
4774
|
/** Tri-state: omitted preserves, a value sets, `null` removes `/RD`. */
|
|
4583
4775
|
rectDifferences?: PdfRectDifferences | null;
|
|
4776
|
+
/** Tri-state: omitted preserves, `null`/`0` flattens, a value sets (needs the box). */
|
|
4777
|
+
rotation?: number | null;
|
|
4778
|
+
/** Tri-state: omitted preserves, `null` removes, a value sets. */
|
|
4779
|
+
unrotatedRect?: PdfRect | null;
|
|
4584
4780
|
}
|
|
4585
4781
|
//#endregion
|
|
4586
4782
|
//#region src/annotation/kinds/caret/schema.d.ts
|
|
@@ -5039,5 +5235,5 @@ interface AnnotationListPageSnapshot {
|
|
|
5039
5235
|
annotations: AnnotationDTO[];
|
|
5040
5236
|
}
|
|
5041
5237
|
//#endregion
|
|
5042
|
-
export { CaretDraftSchema as $, AnnotationIdentityQuality as $a, LayerScopes as $i, searchRectsForRange as $n, pdfQuadCorners as $o, ListBoxFieldDraft as $r, revisionTokensEqual as $s, CircleDraftSchema as $t, FileAttachmentWireDraftSchema as A, EmbeddedFileItem as Aa, PdfSize as Ac, AnnotationCreateResult as Ai, HighlightDraft as An, PageImageHandle as Ao, FormFieldDeleteResult as Ar, filterMatches as As, LineDraft as At, StampAnnotationDTO as B, BinarySource as Ba, PdfPageActions as Bc, changesAnnotationList as Bi, PageFlattenStatus as Bn, PageRenderOptions as Bo, FormFieldDisplay as Br, CollabEntity as Bs, PolygonPatch as Bt, RedactDraft as C, GeometryStyleDraftFields as Ca, InkList as Cc, ToggleFieldWidget as Ci, UnderlineAnnotationDTO as Cn, AnnotationAppearancesQuery as Co, SearchQuery as Cr, CollabTarget as Cs, LinkAnnotationDTO as Ct, FileAttachmentDTOSchema as D, AttachmentFileBase as Da, PdfQuad as Dc, FormWidgetRef as Di, HighlightPatchSchema as Dn, WeakAnnotationState as Do, SearchSnippet as Dr, checkSetGroup as Ds, LinePatchSchema as Dt, WidgetDraft as E, AttachmentContent as Ea, PdfPoint as Ec, FormFieldRef as Ei, HighlightDraftSchema as En, UNKNOWN_WEAK_ANNOTATION_STATE as Eo, SearchSliceBudget as Er, checkCollab as Es, LineDraftSchema as Et, StampDTOSchema as F, normalizeAnnotationPatch as Fa, PdfActionTree as Fc, AppearanceImpact as Fi, RedactionApplyScope as Fn, PageNetworkRenderFormat as Fo, FormWidgetLinkResult as Fr, validateScopeArray as Fs, PolylineAnnotationDTO as Ft, TextDTOSchema as G, ANNOTATION_SUBTYPES as Ga, CacheDelta as Gi, PageRotateResult as Gn, PageGeometryGlyph as Go, FormFieldPatch as Gr, ParsedCollab as Gs, VertexPatchFields as Gt, StampFit as H, WireResource as Ha, DocumentMetadataTrapped as Hc, shiftsExistingAnnotationIndices as Hi, PageInsertResult as Hn, PageRenderTarget as Ho, FormFieldValue as Hr, DocCapability as Hs, PolygonDraft as Ht, StampWireDraftSchema as I, BinaryMetadata as Ia, PdfActionType as Ic, AppearanceOutcome as Ii, RedactionApplyStatus as In, PageRaster as Io, FormEffect as Ir, PDF_BITS as Is, PolylineDraft as It, TextPatch as J, PDF_SUBTYPE_TO_CODE as Ja, PdfLinkTargetWritable as Ji, PageMoveResult as Jn, PageTextSnapshot as Jo, TextFieldPatch as Jr, ParsedWildcard as Js, SquarePatchSchema as Jt, TextDraftSchema as K, AnnotationSubtype as Ka, MutationMeta as Ki, PageRotateInput as Kn, PageGeometryRun as Ko, ListBoxFieldPatch as Kr, ParsedScope as Ks, SquareDTOSchema as Kt, StampWirePatchSchema as L, BinaryMimeType as La, PdfActionWarning as Lc, appearanceImpactOf as Li, PageFlattenInput as Ln, PageRenderBackground as Lo, FormEffectResult as Lr, decodePdfBits as Ls, PolygonDTOSchema as Lt, FileAttachmentPatch as M, NormalizedDraft as Ma, DocumentActionsSnapshot as Mc, AnnotationMoveResult as Mi, MetadataUpdateResult as Mn, PageImageOptions as Mo, FormImportResult as Mr, MissingIdentity as Ms, PolylineDraftSchema as Mt, FileAttachmentAnnotationDTO as N, NormalizedPatch as Na, NamedJavaScriptAction as Nc, AnnotationUpdateResult as Ni, RedactionApplyItemResult as Nn, PageImageResult as No, FormRepairResult as Nr, PermissionDenied as Ns, PolylinePatchSchema as Nt, FileAttachmentIconSchema as O, AttachmentFileInfo as Oa, PdfRect as Oc, decodeFieldRefKey as Oi, HighlightPatch as On, knownWeakAnnotationState as Oo, FormDataExport as Or, expandRawScope as Os, LinePatch as Ot, ResourceRefSchema as P, normalizeAnnotationDraft as Pa, PdfActionNode as Pc, AppearanceAction as Pi, RedactionApplyResult as Pn, PageImageSource as Po, FormSetValueResult as Pr, parseScope as Ps, PolylinePatch as Pt, CaretDTOSchema as Q, AnnotationBase as Qa, LayerScopePlane as Qi, searchContentEpoch as Qn, pdfQuadBounds as Qo, FormFieldOptionInput as Qr, RevisionToken as Qs, CircleDTOSchema as Qt, StampPatch as R, sniffBinaryMetadata as Ra, PdfAnnotationActions as Rc, semanticEqual as Ri, PageFlattenItemResult as Rn, PageRenderEncodedFormat as Ro, FormEffectStatus as Rr, AnnotationActor as Rs, PolygonDraftSchema as Rt, RedactAnnotationDTO as S, FilledStylePatchFields as Sa, CalloutLine as Sc, TextFieldDTO as Si, UnderlinePatch as Sn, AnnotationAppearanceRenderOptions as So, SearchMode as Sr, pdfPermissions as Ss, LinkPatch as St, WidgetAnnotationDTO as T, GeometryStylePatchFields as Ta, LinePoints as Tc, FormValueEntry as Ti, HighlightDTOSchema as Tn, PageState as To, SearchSlice as Tr, checkCapability as Ts, LineDTOSchema as Tt, StampWireDraft as U, WireResourceMap as Ua, AnnotationListMutationMeta as Ui, PageDeleteResult as Un, PageRenderViewport as Uo, CheckboxFieldPatch as Ur, IdentityClaims as Us, VertexAnnotationFields as Ut, StampDraft as V, ResourceRef as Va, DocumentMetadata as Vc, invalidatesWeakIndexRefs as Vi, PageFlattenUsage as Vn, PageRenderQuery as Vo, FormDataFormat as Vr, CollabFilter as Vs, PolygonAnnotationDTO as Vt, NoteIconSchema as W, resolveBinarySource as Wa, RefetchReason as Wi, PageDeleteInput as Wn, createPageImageHandle as Wo, ComboBoxFieldPatch as Wr, ParsedCapability as Ws, VertexDraftFields as Wt, NoteIcon as X, subtypeFromCode as Xa, DocumentManifest as Xi, PageMoveInput as Xn, PdfQuadCorners as Xo, ComboBoxFieldDraft as Xr, AnnotationDraftBase as Xs, SquareAnnotationDTO as Xt, TextAnnotationDTO as Y, PdfAnnotationSubtypeCode as Ya, PdfDestination as Yi, PageStructureCache as Yn, PdfOriginSize as Yo, CheckboxFieldDraft as Yr, PdfBits as Ys, SquarePatch as Yt, TextDraft as Z, AnnotationPatchBase as Za, ManifestPage as Zi, canonicalSearchQuery as Zn, normalizePdfRect as Zo, FormFieldDraft as Zr, AnnotationRef as Zs, SquareDraft as Zt, UnsupportedPatchSchema as _, ColorStyleDraftFields as _a, Rotation as _c, FormFieldOrigin as _i, SquigglyAnnotationDTO as _n, AnnotationAppearanceImagesResult as _o, SEARCH_FOLD_VERSION as _r, OpenOptions as _s, LinkDraftSchema as _t, AnnotationDTOSchema as a, AnnotationKindModule as aa, BlendMode as ac, WidgetAppearance as ai, ShapeDraftFields as an, SerializedEngineError as ao, SearchQueryValidation as ar, pdfRectWidth as as, FreeTextDraftSchema as at, UnsupportedAnnotationDTO as b, FilledStyleDraftFields as ba, StrikeoutIntent as bc, RadioFieldDTO as bi, UnderlineDraftSchema as bn, AnnotationAppearanceMode as bo, toOriginalRange as br, collab as bs, PdfLinkTargetSchema as bt, AnnotationKind as c, PatchOfKind as ca, FreeTextFont as cc, WidgetStyleFields as ci, StrikeoutDraftSchema as cn, EngineErrorCode as co, matchRegex as cr, PageLayout as cs, FreeTextAnnotationDTO as ct, AnnotationSubtypeOfKind as d, AttachmentsCache as da, LineEnding as dc, ComboBoxFieldDTO as di, StrikeoutAnnotationDTO as dn, FontSpec as do, foldOptionsFor as dr, OpenInput as ds, InkDraftSchema as dt, AnnotationRelationKind as ea, PageObjectNumber as ec, RadioFieldDraft as ei, CirclePatchSchema as en, AnnotationStableId as eo, SEARCH_SNIPPET_CONTEXT as er, pdfQuadFromCorners as es, CaretPatchSchema as et, KIND_BY_SUBTYPE as f, normalizeAttachmentFileSource as fa, LineEndings as fc, FormFieldBase as fi, StrikeoutDraft as fn, DEFAULT_PDF_SAVE_MODE as fo, matchLiteral as fr, OpenInputById as fs, InkPatchSchema as ft, UnsupportedDraftSchema as g, WireAttachmentFile as ga, Rect as gc, FormFieldOption as gi, SquigglyPatch as gn, AnnotationAppearanceImageOptions as go, FoldedText as gr, OpenInputToken as gs, LinkDTOSchema as gt, UnsupportedDTOSchema as h, FileAttachmentWireDraft as ha, Point as hc, FormFieldFlags as hi, SquigglyPatchSchema as hn, AnnotationAppearanceImage as ho, FoldOptions as hr, OpenInputLayerSource as hs, InkDraft as ht, AnnotationDTO as i, refKey as ia, AnnotationReplyType as ic, FormSnapshot as ii, ShapeAnnotationFields as in, EngineErrorOptions as io, SearchQueryIssue as ir, pdfRectToOriginSize as is, FreeTextDTOSchema as it, WireAttachmentFileSchema as j, EmbeddedFileRef as ja, ActionReadBudget as jc, AnnotationDeleteResult as ji, MetadataCache as jn, PageImageObjectUrl as jo, FormFieldUpdateResult as jr, InvalidScope as js, PolylineDTOSchema as jt, FileAttachmentPatchSchema as k, AttachmentFileSource as ka, PdfRotation as kc, encodeFieldRefKey as ki, HighlightAnnotationDTO as kn, PageImageBlobSource as ko, FormFieldCreateResult as kr, expandedCapabilities as ks, LineAnnotationDTO as kt, AnnotationPatch as l, AttachmentCreateResult as la, FreeTextIntent as lc, WidgetStylePatchFields as li, StrikeoutPatchSchema as ln, FontHandle as lo, validateSearchQuery as lr, PageRotation as ls, FreeTextDraft as lt, WireAnnotationPatch as m, FileAttachmentIcon as ma, PdfRectDifferences as mc, FormFieldFamily as mi, SquigglyDraftSchema as mn, CachePins as mo, wordBefore as mr, OpenInputLayerBytes as ms, InkAnnotationDTO as mt, AnnotationListSnapshotAllPages as n, buildThreads as na, AnnotationBorderStyle as nc, WidgetPlacement as ni, CircleAnnotationDTO as nn, encodeStableIdKey as no, matchPageText as nr, pdfRectHeight as ns, CaretAnnotationDTO as nt, AnnotationDraft as o, DTOOfKind as oa, CaretIntent as oc, WidgetAppearanceSchema as oi, ShapePatchFields as on, deserializeError as oo, SearchRegexIssue as or, PageListSnapshot as os, FreeTextPatchSchema as ot, WireAnnotationDraft as p, FileAttachmentDraft as pa, NO_ANNOTATION_FLAGS as pc, FormFieldDTO as pi, SquigglyDTOSchema as pn, PdfSaveMode as po, wordAt as pr, OpenInputBytes as ps, InkPatch as pt, TextPatchSchema as q, PDF_CODE_TO_SUBTYPE as qa, PdfLinkTarget as qi, PageMoveCache as qn, PageGeometrySnapshot as qo, RadioFieldPatch as qr, ParsedVirtual as qs, SquareDraftSchema as qt, ANNOTATION_KINDS as r, classifyRelation as ra, AnnotationFlags as rc, FormKind as ri, CircleDraft as rn, EngineError as ro, SEARCH_REGEX_MAX_LENGTH as rr, pdfRectSize as rs, CaretDraft as rt, AnnotationDraftSchema as s, DraftOfKind as sa, Color as sc, WidgetStyleDraftFields as si, StrikeoutDTOSchema as sn, serializeError as so, SearchRegexValidation as sr, PageBoxes as ss, FreeTextPatch as st, AnnotationListPageSnapshot as t, AnnotationThread as ta, isValidPageObjectNumber as tc, TextFieldDraft as ti, CirclePatch as tn, decodeStableIdKey as to, buildSnippet as tr, pdfRectFromOriginSize as ts, CaretPatch as tt, AnnotationPatchSchema as u, AttachmentDeleteResult as ua, InkIntent as uc, CheckboxFieldDTO as ui, StrikeoutPatch as un, FontKey as uo, validateSearchRegex as ur, MetadataPatch as us, InkDTOSchema as ut, UnsupportedPatch as v, ColorStyleFields as va, Size as vc, ListBoxFieldDTO as vi, SquigglyDraft as vn, AnnotationAppearanceManifest as vo, SearchMatchRange as vr, TokenSource as vs, LinkPatchSchema as vt, WidgetPatch as w, GeometryStyleFields as wa, InkStroke as wc, UnknownFieldDTO as wi, UnderlineDraft as wn, AnnotationAppearancesResult as wo, SearchRequest as wr, checkAnyCapability as ws, LinkDraft as wt, RedactPatch as x, FilledStyleFields as xa, TextAlignment as xc, SignatureFieldDTO as xi, UnderlinePatchSchema as xn, AnnotationAppearanceRaster as xo, SearchMatch as xr, materializePdfPermissions as xs, PdfLinkTargetWritableSchema as xt, UnsupportedDraft as y, ColorStylePatchFields as ya, StandardFont as yc, PushButtonFieldDTO as yi, UnderlineDTOSchema as yn, AnnotationAppearanceManifestEntry as yo, foldText as yr, caps as ys, PdfDestinationSchema as yt, StampWirePatch as z, BinaryPayload as za, PdfFieldActions as zc, AnnotationMutationKind as zi, PageFlattenResult as zn, PageRenderFormat as zo, FormEffectsResult as zr, CollabAction as zs, PolygonPatchSchema as zt };
|
|
5043
|
-
//# sourceMappingURL=AnnotationListSnapshot-
|
|
5238
|
+
export { CaretDraftSchema as $, ResourceRef as $a, PdfActionNode as $c, invalidatesWeakIndexRefs as $i, searchRectsForRange as $n, PageRenderQuery as $o, FormDataFormat as $r, parseScope as $s, CircleDraftSchema as $t, FileAttachmentWireDraftSchema as A, ColorStyleFields as Aa, LineEnding as Ac, ListBoxFieldDTO as Ai, HighlightDraft as An, AnnotationAppearanceManifest as Ao, PdfTextSegment as Ar, OpenInputById as As, LineDraft as At, StampAnnotationDTO as B, AttachmentFileInfo as Ba, TextAlignment as Bc, decodeFieldRefKey as Bi, PageFlattenStatus as Bn, knownWeakAnnotationState as Bo, FormDataExport as Br, materializePdfPermissions as Bs, PolygonPatch as Bt, RedactDraft as C, AttachmentsCache as Ca, AnnotationReplyType as Cc, ComboBoxFieldDTO as Ci, UnderlineAnnotationDTO as Cn, FontSpec as Co, SearchMode as Cr, pdfRectWidth as Cs, LinkAnnotationDTO as Ct, FileAttachmentDTOSchema as D, FileAttachmentWireDraft as Da, FreeTextFont as Dc, FormFieldFlags as Di, HighlightPatchSchema as Dn, AnnotationAppearanceImage as Do, SearchSliceBudget as Dr, PageRotation as Ds, LinePatchSchema as Dt, WidgetDraft as E, FileAttachmentIcon as Ea, Color as Ec, FormFieldFamily as Ei, HighlightDraftSchema as En, CachePins as Eo, SearchSlice as Er, PageLayout as Es, LineDraftSchema as Et, StampDTOSchema as F, GeometryStyleDraftFields as Fa, Rect as Fc, ToggleFieldWidget as Fi, RedactionApplyScope as Fn, AnnotationAppearancesQuery as Fo, expandTextRangeToLine as Fr, OpenInputToken as Fs, PolylineAnnotationDTO as Ft, TextDTOSchema as G, NormalizedPatch as Ga, PdfPoint as Gc, AnnotationUpdateResult as Gi, PageRotateResult as Gn, PageImageResult as Go, FormRepairResult as Gr, checkCollab as Gs, VertexPatchFields as Gt, StampFit as H, EmbeddedFileItem as Ha, InkList as Hc, AnnotationCreateResult as Hi, PageInsertResult as Hn, PageImageHandle as Ho, FormFieldDeleteResult as Hr, CollabTarget as Hs, PolygonDraft as Ht, StampWireDraftSchema as I, GeometryStyleFields as Ia, Rotation as Ic, UnknownFieldDTO as Ii, RedactionApplyStatus as In, AnnotationAppearancesResult as Io, expandTextRangeToWord as Ir, OpenOptions as Is, PolylineDraft as It, TextPatch as J, BinaryMetadata as Ja, PdfRotation as Jc, AppearanceOutcome as Ji, PageMoveResult as Jn, PageRaster as Jo, FormEffect as Jr, expandedCapabilities as Js, SquarePatchSchema as Jt, TextDraftSchema as K, normalizeAnnotationDraft as Ka, PdfQuad as Kc, AppearanceAction as Ki, PageRotateInput as Kn, PageImageSource as Ko, FormSetValueResult as Kr, checkSetGroup as Ks, SquareDTOSchema as Kt, StampWirePatchSchema as L, GeometryStylePatchFields as La, Size as Lc, FormValueEntry as Li, PageFlattenInput as Ln, PageState as Lo, textGlyphAt as Lr, TokenSource as Ls, PolygonDTOSchema as Lt, FileAttachmentPatch as M, FilledStyleDraftFields as Ma, NO_ANNOTATION_FLAGS as Mc, RadioFieldDTO as Mi, MetadataUpdateResult as Mn, AnnotationAppearanceMode as Mo, TextLayoutGlyph as Mr, OpenInputLayerBytes as Ms, PolylineDraftSchema as Mt, FileAttachmentAnnotationDTO as N, FilledStyleFields as Na, PdfRectDifferences as Nc, SignatureFieldDTO as Ni, RedactionApplyItemResult as Nn, AnnotationAppearanceRaster as No, TextLayoutRun as Nr, OpenInputLayerSource as Ns, PolylinePatchSchema as Nt, FileAttachmentIconSchema as O, WireAttachmentFile as Oa, FreeTextIntent as Oc, FormFieldOption as Oi, HighlightPatch as On, AnnotationAppearanceImageOptions as Oo, SearchSnippet as Or, MetadataPatch as Os, LinePatch as Ot, ResourceRefSchema as P, FilledStylePatchFields as Pa, Point as Pc, TextFieldDTO as Pi, RedactionApplyResult as Pn, AnnotationAppearanceRenderOptions as Po, buildPageTextLayout as Pr, OpenInputShare as Ps, PolylinePatch as Pt, CaretDTOSchema as Q, BinarySource as Qa, NamedJavaScriptAction as Qc, changesAnnotationList as Qi, searchContentEpoch as Qn, PageRenderOptions as Qo, FormFieldDisplay as Qr, PermissionDenied as Qs, CircleDTOSchema as Qt, StampPatch as R, AttachmentContent as Ra, StandardFont as Rc, FormFieldRef as Ri, PageFlattenItemResult as Rn, UNKNOWN_WEAK_ANNOTATION_STATE as Ro, textGlyphQuad as Rr, caps as Rs, PolygonDraftSchema as Rt, RedactAnnotationDTO as S, AttachmentDeleteResult as Sa, AnnotationFlags as Sc, CheckboxFieldDTO as Si, UnderlinePatch as Sn, FontKey as So, SearchMatch as Sr, pdfRectToOriginSize as Ss, LinkPatch as St, WidgetAnnotationDTO as T, FileAttachmentDraft as Ta, CaretIntent as Tc, FormFieldDTO as Ti, HighlightDTOSchema as Tn, PdfSaveMode as To, SearchRequest as Tr, PageBoxes as Ts, LineDTOSchema as Tt, StampWireDraft as U, EmbeddedFileRef as Ua, InkStroke as Uc, AnnotationDeleteResult as Ui, PageDeleteResult as Un, PageImageObjectUrl as Uo, FormFieldUpdateResult as Ur, checkAnyCapability as Us, VertexAnnotationFields as Ut, StampDraft as V, AttachmentFileSource as Va, CalloutLine as Vc, encodeFieldRefKey as Vi, PageFlattenUsage as Vn, PageImageBlobSource as Vo, FormFieldCreateResult as Vr, pdfPermissions as Vs, PolygonAnnotationDTO as Vt, NoteIconSchema as W, NormalizedDraft as Wa, LinePoints as Wc, AnnotationMoveResult as Wi, PageDeleteInput as Wn, PageImageOptions as Wo, FormImportResult as Wr, checkCapability as Ws, VertexDraftFields as Wt, NoteIcon as X, sniffBinaryMetadata as Xa, ActionReadBudget as Xc, semanticEqual as Xi, PageMoveInput as Xn, PageRenderEncodedFormat as Xo, FormEffectStatus as Xr, InvalidScope as Xs, SquareAnnotationDTO as Xt, TextAnnotationDTO as Y, BinaryMimeType as Ya, PdfSize as Yc, appearanceImpactOf as Yi, PageStructureCache as Yn, PageRenderBackground as Yo, FormEffectResult as Yr, filterMatches as Ys, SquarePatch as Yt, TextDraft as Z, BinaryPayload as Za, DocumentActionsSnapshot as Zc, AnnotationMutationKind as Zi, canonicalSearchQuery as Zn, PageRenderFormat as Zo, FormEffectsResult as Zr, MissingIdentity as Zs, SquareDraft as Zt, UnsupportedPatchSchema as _, AnnotationKindModule as _a, RevisionToken as _c, WidgetAppearance as _i, SquigglyAnnotationDTO as _n, SerializedEngineError as _o, FoldedText as _r, pdfQuadCorners as _s, LinkDraftSchema as _t, AnnotationDTOSchema as a, PdfLinkTarget as aa, CollabEntity as ac, RadioFieldPatch as ai, PdfPageActions as al, ShapeDraftFields as an, PDF_CODE_TO_SUBTYPE as ao, SearchQueryIssue as ar, PageGeometrySnapshot as as, FreeTextDraftSchema as at, UnsupportedAnnotationDTO as b, PatchOfKind as ba, isValidPageObjectNumber as bc, WidgetStyleFields as bi, UnderlineDraftSchema as bn, EngineErrorCode as bo, foldText as br, pdfRectHeight as bs, PdfLinkTargetSchema as bt, AnnotationKind as c, DocumentManifest as ca, IdentityClaims as cc, ComboBoxFieldDraft as ci, StrikeoutDraftSchema as cn, subtypeFromCode as co, SearchRegexValidation as cr, UprightGeometryRun as cs, FreeTextAnnotationDTO as ct, AnnotationSubtypeOfKind as d, LayerScopes as da, ParsedScope as dc, ListBoxFieldDraft as di, StrikeoutAnnotationDTO as dn, AnnotationIdentityQuality as do, validateSearchRegex as dr, isRotatedGeometryRun as ds, InkDraftSchema as dt, shiftsExistingAnnotationIndices as ea, validateScopeArray as ec, FormFieldValue as ei, PdfActionTree as el, CirclePatchSchema as en, WireResource as eo, searchSegmentsForRange as er, PageRenderTarget as es, CaretPatchSchema as et, KIND_BY_SUBTYPE as f, AnnotationRelationKind as fa, ParsedVirtual as fc, RadioFieldDraft as fi, StrikeoutDraft as fn, AnnotationStableId as fo, foldOptionsFor as fr, PageTextSnapshot as fs, InkPatchSchema as ft, UnsupportedDraftSchema as g, refKey as ga, AnnotationRef as gc, FormSnapshot as gi, SquigglyPatch as gn, EngineErrorOptions as go, FoldOptions as gr, pdfQuadBounds as gs, LinkDTOSchema as gt, UnsupportedDTOSchema as h, classifyRelation as ha, AnnotationDraftBase as hc, FormKind as hi, SquigglyPatchSchema as hn, EngineError as ho, wordBefore as hr, normalizePdfRect as hs, InkDraft as ht, AnnotationDTO as i, MutationMeta as ia, CollabAction as ic, ListBoxFieldPatch as ii, PdfFieldActions as il, ShapeAnnotationFields as in, AnnotationSubtype as io, SEARCH_REGEX_MAX_LENGTH as ir, PageGeometryRun as is, FreeTextDTOSchema as it, WireAttachmentFileSchema as j, ColorStylePatchFields as ja, LineEndings as jc, PushButtonFieldDTO as ji, MetadataCache as jn, AnnotationAppearanceManifestEntry as jo, TextLayoutFrame as jr, OpenInputBytes as js, PolylineDTOSchema as jt, FileAttachmentPatchSchema as k, ColorStyleDraftFields as ka, InkIntent as kc, FormFieldOrigin as ki, HighlightAnnotationDTO as kn, AnnotationAppearanceImagesResult as ko, PageTextLayout as kr, OpenInput as ks, LineAnnotationDTO as kt, AnnotationPatch as l, ManifestPage as la, ParsedCapability as lc, FormFieldDraft as li, StrikeoutPatchSchema as ln, AnnotationPatchBase as lo, matchRegex as lr, glyphLooseBounds as ls, FreeTextDraft as lt, WireAnnotationPatch as m, buildThreads as ma, PdfBits as mc, WidgetPlacement as mi, SquigglyDraftSchema as mn, encodeStableIdKey as mo, wordAt as mr, PdfQuadCorners as ms, InkAnnotationDTO as mt, AnnotationListSnapshotAllPages as n, RefetchReason as na, decodePdfBits as nc, ComboBoxFieldPatch as ni, PdfActionWarning as nl, CircleAnnotationDTO as nn, resolveBinarySource as no, buildSnippet as nr, createPageImageHandle as ns, CaretAnnotationDTO as nt, AnnotationDraft as o, PdfLinkTargetWritable as oa, CollabFilter as oc, TextFieldPatch as oi, DocumentMetadata as ol, ShapePatchFields as on, PDF_SUBTYPE_TO_CODE as oo, SearchQueryValidation as or, RotatedGeometryGlyph as os, FreeTextPatchSchema as ot, WireAnnotationDraft as p, AnnotationThread as pa, ParsedWildcard as pc, TextFieldDraft as pi, SquigglyDTOSchema as pn, decodeStableIdKey as po, matchLiteral as pr, PdfOriginSize as ps, InkPatch as pt, TextPatchSchema as q, normalizeAnnotationPatch as qa, PdfRect as qc, AppearanceImpact as qi, PageMoveCache as qn, PageNetworkRenderFormat as qo, FormWidgetLinkResult as qr, expandRawScope as qs, SquareDraftSchema as qt, ANNOTATION_KINDS as r, CacheDelta as ra, AnnotationActor as rc, FormFieldPatch as ri, PdfAnnotationActions as rl, CircleDraft as rn, ANNOTATION_SUBTYPES as ro, matchPageText as rr, PageGeometryGlyph as rs, CaretDraft as rt, AnnotationDraftSchema as s, PdfDestination as sa, DocCapability as sc, CheckboxFieldDraft as si, DocumentMetadataTrapped as sl, StrikeoutDTOSchema as sn, PdfAnnotationSubtypeCode as so, SearchRegexIssue as sr, RotatedGeometryRun as ss, FreeTextPatch as st, AnnotationListPageSnapshot as t, AnnotationListMutationMeta as ta, PDF_BITS as tc, CheckboxFieldPatch as ti, PdfActionType as tl, CirclePatch as tn, WireResourceMap as to, SEARCH_SNIPPET_CONTEXT as tr, PageRenderViewport as ts, CaretPatch as tt, AnnotationPatchSchema as u, LayerScopePlane as ua, ParsedCollab as uc, FormFieldOptionInput as ui, StrikeoutPatch as un, AnnotationBase as uo, validateSearchQuery as ur, glyphLooseQuad as us, InkDTOSchema as ut, UnsupportedPatch as v, DTOOfKind as va, revisionTokensEqual as vc, WidgetAppearanceSchema as vi, SquigglyDraft as vn, deserializeError as vo, SEARCH_FOLD_VERSION as vr, pdfQuadFromCorners as vs, LinkPatchSchema as vt, WidgetPatch as w, normalizeAttachmentFileSource as wa, BlendMode as wc, FormFieldBase as wi, UnderlineDraft as wn, DEFAULT_PDF_SAVE_MODE as wo, SearchQuery as wr, PageListSnapshot as ws, LinkDraft as wt, RedactPatch as x, AttachmentCreateResult as xa, AnnotationBorderStyle as xc, WidgetStylePatchFields as xi, UnderlinePatchSchema as xn, FontHandle as xo, toOriginalRange as xr, pdfRectSize as xs, PdfLinkTargetWritableSchema as xt, UnsupportedDraft as y, DraftOfKind as ya, PageObjectNumber as yc, WidgetStyleDraftFields as yi, UnderlineDTOSchema as yn, serializeError as yo, SearchMatchRange as yr, pdfRectFromOriginSize as ys, PdfDestinationSchema as yt, StampWirePatch as z, AttachmentFileBase as za, StrikeoutIntent as zc, FormWidgetRef as zi, PageFlattenResult as zn, WeakAnnotationState as zo, textSegmentsForRange as zr, collab as zs, PolygonPatchSchema as zt };
|
|
5239
|
+
//# sourceMappingURL=AnnotationListSnapshot-_Z600IzD.d.ts.map
|
package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-BR4tesJK.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cc as IdentityClaims, mc as PdfBits, sc as DocCapability } from "./AnnotationListSnapshot-_Z600IzD.js";
|
|
2
2
|
//#region src/promise/AbortablePromise.d.ts
|
|
3
3
|
type AbortableExecutor<T, P> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason: unknown) => void, progress: (p: P) => void, signal: AbortSignal) => void;
|
|
4
4
|
/**
|
|
@@ -329,4 +329,4 @@ interface DocumentSecurityService {
|
|
|
329
329
|
}
|
|
330
330
|
//#endregion
|
|
331
331
|
export { DocumentEncryptionState as a, DocumentSecurityState as c, PdfPermissionAdvisory as d, PdfPermissionInfo as f, AbortablePromise as g, AbortableExecutor as h, DocumentAccessReason as i, DocumentUnlockInput as l, passwordPromptFromState as m, CdnAdapter as n, DocumentOpenMode as o, PasswordPrompt as p, DocumentAccessInfo as r, DocumentSecurityService as s, CdnAccessInfo as t, DocumentUnlockResult as u };
|
|
332
|
-
//# sourceMappingURL=DocumentSecurityService-
|
|
332
|
+
//# sourceMappingURL=DocumentSecurityService-BR4tesJK.d.ts.map
|
package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-CoHQf0Ju.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cc as IdentityClaims, mc as PdfBits, sc as DocCapability } from "./AnnotationListSnapshot-_Z600IzD.cjs";
|
|
2
2
|
//#region src/promise/AbortablePromise.d.ts
|
|
3
3
|
type AbortableExecutor<T, P> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason: unknown) => void, progress: (p: P) => void, signal: AbortSignal) => void;
|
|
4
4
|
/**
|
|
@@ -329,4 +329,4 @@ interface DocumentSecurityService {
|
|
|
329
329
|
}
|
|
330
330
|
//#endregion
|
|
331
331
|
export { DocumentEncryptionState as a, DocumentSecurityState as c, PdfPermissionAdvisory as d, PdfPermissionInfo as f, AbortablePromise as g, AbortableExecutor as h, DocumentAccessReason as i, DocumentUnlockInput as l, passwordPromptFromState as m, CdnAdapter as n, DocumentOpenMode as o, PasswordPrompt as p, DocumentAccessInfo as r, DocumentSecurityService as s, CdnAccessInfo as t, DocumentUnlockResult as u };
|
|
332
|
-
//# sourceMappingURL=DocumentSecurityService-
|
|
332
|
+
//# sourceMappingURL=DocumentSecurityService-CoHQf0Ju.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as AbortablePromise, s as DocumentSecurityService } from "./DocumentSecurityService-
|
|
1
|
+
import { $r as FormDataFormat, Br as FormDataExport, Co as FontSpec, Er as SearchSlice, Fn as RedactionApplyScope, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Gr as FormRepairResult, Ha as EmbeddedFileItem, Hi as AnnotationCreateResult, Hn as PageInsertResult, Ho as PageImageHandle, Hr as FormFieldDeleteResult, Io as AnnotationAppearancesResult, Is as OpenOptions, Jc as PdfRotation, Jn as PageMoveResult, Jo as PageRaster, Jr as FormEffect, Kr as FormSetValueResult, Mn as MetadataUpdateResult, Oo as AnnotationAppearanceImageOptions, Os as MetadataPatch, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Qo as PageRenderOptions, Ra as AttachmentContent, Ri as FormFieldRef, Sa as AttachmentDeleteResult, So as FontKey, Ti as FormFieldDTO, To as PdfSaveMode, Tr as SearchRequest, Ua as EmbeddedFileRef, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Ur as FormFieldUpdateResult, Va as AttachmentFileSource, Vn as PageFlattenUsage, Vr as FormFieldCreateResult, Wi as AnnotationMoveResult, Wo as PageImageOptions, Wr as FormImportResult, Zc as DocumentActionsSnapshot, Zr as FormEffectsResult, as as PageGeometrySnapshot, ei as FormFieldValue, fs as PageTextSnapshot, gc as AnnotationRef, gi as FormSnapshot, ko as AnnotationAppearanceImagesResult, ks as OpenInput, l as AnnotationPatch, li as FormFieldDraft, n as AnnotationListSnapshotAllPages, o as AnnotationDraft, ol as DocumentMetadata, qr as FormWidgetLinkResult, ri as FormFieldPatch, t as AnnotationListPageSnapshot, ts as PageRenderViewport, ws as PageListSnapshot, xa as AttachmentCreateResult, xo as FontHandle, yc as PageObjectNumber, zi as FormWidgetRef, zn as PageFlattenResult } from "./AnnotationListSnapshot-_Z600IzD.cjs";
|
|
2
|
+
import { g as AbortablePromise, s as DocumentSecurityService } from "./DocumentSecurityService-CoHQf0Ju.cjs";
|
|
3
3
|
//#region src/engine/DocumentActionsService.d.ts
|
|
4
4
|
/** Lazy, catalog-owned PDF action read. This API extracts; it never executes. */
|
|
5
5
|
interface DocumentActionsService {
|
|
@@ -439,7 +439,7 @@ declare function snapTileScale(policy: EngineRenderPolicy, scale: number): numbe
|
|
|
439
439
|
* layer is unfindable, and a cursor issued before a content mutation is
|
|
440
440
|
* rejected rather than resumed over stale pages.
|
|
441
441
|
*
|
|
442
|
-
* Matches carry
|
|
442
|
+
* Matches carry canonical visual-line segments from the same layout as text
|
|
443
443
|
* selection (never per-glyph boxes) and text-page character offsets that
|
|
444
444
|
* join the selection/geometry subsystem directly.
|
|
445
445
|
*/
|
|
@@ -1010,4 +1010,4 @@ interface Engine {
|
|
|
1010
1010
|
type EngineFactory = () => Engine;
|
|
1011
1011
|
//#endregion
|
|
1012
1012
|
export { DocumentPagesService as A, CONTINUOUS_RENDER_POLICY as C, snapFullPageViewport as D, snapAppearanceScale as E, WeakAnnotationEditSession as F, DocumentActionsService as I, FormRepairOptions as M, DocumentAttachmentsService as N, snapTileScale as O, DocumentAnnotationsService as P, DocumentSearchService as S, EngineRenderPolicy as T, PageTextService as _, DocumentHandle as a, PageAnnotationsService as b, DocumentEventInit as c, PageHandle as d, PieceInfoService as f, PieceInfoSnapshot as g, PieceInfoPatchValue as h, DocumentCapabilities as i, DocumentFormsService as j, DocumentRedactionService as k, DocumentEventType as l, PieceInfoPatch as m, EngineFactory as n, DocumentEventStream as o, PieceInfoEntry as p, FontService as r, DocumentEvent as s, Engine as t, EventOrigin as u, PageRenderService as v, DocumentRenderService as w, MetadataService as x, PageGeometryService as y };
|
|
1013
|
-
//# sourceMappingURL=Engine-
|
|
1013
|
+
//# sourceMappingURL=Engine-LHgbW5z-.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as AbortablePromise, s as DocumentSecurityService } from "./DocumentSecurityService-
|
|
1
|
+
import { $r as FormDataFormat, Br as FormDataExport, Co as FontSpec, Er as SearchSlice, Fn as RedactionApplyScope, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Gr as FormRepairResult, Ha as EmbeddedFileItem, Hi as AnnotationCreateResult, Hn as PageInsertResult, Ho as PageImageHandle, Hr as FormFieldDeleteResult, Io as AnnotationAppearancesResult, Is as OpenOptions, Jc as PdfRotation, Jn as PageMoveResult, Jo as PageRaster, Jr as FormEffect, Kr as FormSetValueResult, Mn as MetadataUpdateResult, Oo as AnnotationAppearanceImageOptions, Os as MetadataPatch, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Qo as PageRenderOptions, Ra as AttachmentContent, Ri as FormFieldRef, Sa as AttachmentDeleteResult, So as FontKey, Ti as FormFieldDTO, To as PdfSaveMode, Tr as SearchRequest, Ua as EmbeddedFileRef, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Ur as FormFieldUpdateResult, Va as AttachmentFileSource, Vn as PageFlattenUsage, Vr as FormFieldCreateResult, Wi as AnnotationMoveResult, Wo as PageImageOptions, Wr as FormImportResult, Zc as DocumentActionsSnapshot, Zr as FormEffectsResult, as as PageGeometrySnapshot, ei as FormFieldValue, fs as PageTextSnapshot, gc as AnnotationRef, gi as FormSnapshot, ko as AnnotationAppearanceImagesResult, ks as OpenInput, l as AnnotationPatch, li as FormFieldDraft, n as AnnotationListSnapshotAllPages, o as AnnotationDraft, ol as DocumentMetadata, qr as FormWidgetLinkResult, ri as FormFieldPatch, t as AnnotationListPageSnapshot, ts as PageRenderViewport, ws as PageListSnapshot, xa as AttachmentCreateResult, xo as FontHandle, yc as PageObjectNumber, zi as FormWidgetRef, zn as PageFlattenResult } from "./AnnotationListSnapshot-_Z600IzD.js";
|
|
2
|
+
import { g as AbortablePromise, s as DocumentSecurityService } from "./DocumentSecurityService-BR4tesJK.js";
|
|
3
3
|
//#region src/engine/DocumentActionsService.d.ts
|
|
4
4
|
/** Lazy, catalog-owned PDF action read. This API extracts; it never executes. */
|
|
5
5
|
interface DocumentActionsService {
|
|
@@ -439,7 +439,7 @@ declare function snapTileScale(policy: EngineRenderPolicy, scale: number): numbe
|
|
|
439
439
|
* layer is unfindable, and a cursor issued before a content mutation is
|
|
440
440
|
* rejected rather than resumed over stale pages.
|
|
441
441
|
*
|
|
442
|
-
* Matches carry
|
|
442
|
+
* Matches carry canonical visual-line segments from the same layout as text
|
|
443
443
|
* selection (never per-glyph boxes) and text-page character offsets that
|
|
444
444
|
* join the selection/geometry subsystem directly.
|
|
445
445
|
*/
|
|
@@ -1010,4 +1010,4 @@ interface Engine {
|
|
|
1010
1010
|
type EngineFactory = () => Engine;
|
|
1011
1011
|
//#endregion
|
|
1012
1012
|
export { DocumentPagesService as A, CONTINUOUS_RENDER_POLICY as C, snapFullPageViewport as D, snapAppearanceScale as E, WeakAnnotationEditSession as F, DocumentActionsService as I, FormRepairOptions as M, DocumentAttachmentsService as N, snapTileScale as O, DocumentAnnotationsService as P, DocumentSearchService as S, EngineRenderPolicy as T, PageTextService as _, DocumentHandle as a, PageAnnotationsService as b, DocumentEventInit as c, PageHandle as d, PieceInfoService as f, PieceInfoSnapshot as g, PieceInfoPatchValue as h, DocumentCapabilities as i, DocumentFormsService as j, DocumentRedactionService as k, DocumentEventType as l, PieceInfoPatch as m, EngineFactory as n, DocumentEventStream as o, PieceInfoEntry as p, FontService as r, DocumentEvent as s, Engine as t, EventOrigin as u, PageRenderService as v, DocumentRenderService as w, MetadataService as x, PageGeometryService as y };
|
|
1013
|
-
//# sourceMappingURL=Engine-
|
|
1013
|
+
//# sourceMappingURL=Engine-h_6P4pjM.d.ts.map
|