@docx-editor.dev/core 2.11.0 → 2.12.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/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +5 -5
- package/dist/automation.d.ts +5 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +8 -8
- package/dist/binding.d.ts +8 -8
- package/dist/binding.js +1 -1
- package/dist/{chunk-EJATEGJZ.cjs → chunk-3JON7JMD.cjs} +1 -1
- package/dist/{chunk-GRDFEH5Q.cjs → chunk-5V6FNKBE.cjs} +1 -1
- package/dist/chunk-BXRVGHTY.cjs +18 -0
- package/dist/chunk-BXTTPJSH.js +5 -0
- package/dist/chunk-ILTZTY3K.cjs +10 -0
- package/dist/chunk-IUM7FZPA.js +2 -0
- package/dist/chunk-JWZG4QJ5.cjs +2 -0
- package/dist/chunk-JXZYDBKU.cjs +19 -0
- package/dist/chunk-KBOOIC2Q.js +19 -0
- package/dist/chunk-L6XZTLPS.js +10 -0
- package/dist/chunk-L7OR5TJK.cjs +5 -0
- package/dist/chunk-MHQNR2OU.js +2 -0
- package/dist/chunk-MLGPISGH.js +1 -0
- package/dist/chunk-NJXQABQU.js +18 -0
- package/dist/chunk-TKEGK4GQ.cjs +2 -0
- package/dist/chunk-VGFMPWND.js +2 -0
- package/dist/{chunk-BP7ANXGA.js → chunk-W77HJGYX.js} +1 -1
- package/dist/{chunk-WPQMPHNR.cjs → chunk-XCFM3G5L.cjs} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.cts +3 -3
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.cts +3 -3
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/editor.d.cts +7 -7
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.cts +7 -7
- package/dist/contracts/interaction.d.ts +7 -7
- package/dist/contracts/modules.d.cts +7 -7
- package/dist/contracts/modules.d.ts +7 -7
- package/dist/{custom-node-writes-JfTn-Sy6.d.ts → custom-node-writes-CcNeHH5C.d.ts} +2 -2
- package/dist/{custom-node-writes-CwkYRw3V.d.cts → custom-node-writes-D4rMJIES.d.cts} +2 -2
- package/dist/{editor-C8edZgy5.d.cts → editor-B76SEMZw.d.cts} +3 -3
- package/dist/{editor-BogcVHXk.d.ts → editor-BcdsPdbY.d.ts} +3 -3
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.cts +56 -23
- package/dist/editor.d.ts +56 -23
- package/dist/editor.js +1 -1
- package/dist/{index-BNv-ZLQP.d.ts → index-BYTvklN5.d.ts} +12 -12
- package/dist/{index-Dn0lOp9Z.d.cts → index-CDGhPib1.d.cts} +12 -12
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +29 -18
- package/dist/layout.d.ts +29 -18
- package/dist/layout.js +1 -1
- package/dist/{note-properties-BmoSdyKS.d.ts → note-properties-Bx7rXruA.d.ts} +1 -1
- package/dist/{note-properties-BvGfHk5e.d.cts → note-properties-zQ8w04en.d.cts} +1 -1
- package/dist/{omml-equation-Ciq5rgb7.d.ts → omml-equation-69O1Pd8G.d.ts} +1 -1
- package/dist/{omml-equation-CqQOt_dD.d.cts → omml-equation-BmV51rim.d.cts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -6
- package/dist/output.d.ts +6 -6
- package/dist/output.js +1 -1
- package/dist/{protocol-Ckl7hWsv.d.ts → protocol-DC7ueVuo.d.ts} +2 -2
- package/dist/{protocol-BB-WP3zk.d.cts → protocol-FTXtrAIT.d.cts} +2 -2
- package/dist/{review-items-CkYyXhXM.d.ts → review-items-B78OsJU2.d.ts} +1 -1
- package/dist/{review-items-BdeLNRi2.d.cts → review-items-C-2WQdEb.d.cts} +1 -1
- package/dist/{review-reads-BOLSBm5w.d.cts → review-reads-CbBQlb-n.d.cts} +2 -2
- package/dist/{review-reads-Crf0Xn42.d.ts → review-reads-UexYBp-m.d.ts} +2 -2
- package/dist/{revision-projection-C2S8PSQm.d.cts → revision-projection-6u8lae9J.d.cts} +1 -1
- package/dist/{revision-projection-Ae2CWa8E.d.ts → revision-projection-B2v9U3qx.d.ts} +1 -1
- package/dist/{semantic-cell-selection-DdmoxC-y.d.ts → semantic-cell-selection-DsYz2Vg3.d.ts} +4 -4
- package/dist/{semantic-cell-selection-C0OFD4D9.d.cts → semantic-cell-selection-nEE7E3Z8.d.cts} +4 -4
- package/dist/{semantic-interaction-COyhZ9WH.d.ts → semantic-interaction-C00BpIyC.d.ts} +1 -1
- package/dist/{semantic-interaction-Cs2jErnt.d.cts → semantic-interaction-DiOX0FIH.d.cts} +1 -1
- package/dist/{semantic-paint-UHaj3sBY.d.cts → semantic-paint-Cc11nrDL.d.cts} +2 -2
- package/dist/{semantic-paint-vA-oLSdV.d.ts → semantic-paint-ofuoBsYo.d.ts} +2 -2
- package/dist/{semantic-records-5AOQJmLX.d.cts → semantic-records-CRG1r6-a.d.cts} +3 -3
- package/dist/{semantic-records-9xhwbJ23.d.ts → semantic-records-CzI0ZEuR.d.ts} +3 -3
- package/dist/{shaped-measurer-vzsY88oK.d.ts → shaped-measurer-CkOGZQn9.d.ts} +1 -1
- package/dist/{shaped-measurer-NeF2mPSu.d.cts → shaped-measurer-CneACGcP.d.cts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +19 -13
- package/dist/store.d.ts +19 -13
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-BPyXNxyL.d.cts → tree-op-types-CA7qgAUF.d.cts} +42 -9
- package/dist/{tree-op-types-DnzAOnc9.d.ts → tree-op-types-HKfUzt_-.d.ts} +42 -9
- package/dist/{tree-package-fragment-BjZ3RWAS.d.cts → tree-package-fragment-Cz-v-0B3.d.cts} +2 -2
- package/dist/{tree-package-fragment-CDER0G3B.d.ts → tree-package-fragment-oJZX_5iN.d.ts} +2 -2
- package/dist/{tree-session-contract-DhdsFT_z.d.ts → tree-session-contract-BPDLrEPX.d.ts} +5 -5
- package/dist/{tree-session-contract-BF2FVBOM.d.cts → tree-session-contract-Cbl87xa8.d.cts} +5 -5
- package/dist/{tree-store-CNZ3O83s.d.ts → tree-store-B7hd6cEa.d.ts} +1 -1
- package/dist/{tree-store-DfZi7FqY.d.cts → tree-store-BenW0Mg_.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-34BNQUD4.js +0 -10
- package/dist/chunk-5AVHO75P.cjs +0 -19
- package/dist/chunk-6HMSC7UV.js +0 -2
- package/dist/chunk-76Y3Y45J.cjs +0 -2
- package/dist/chunk-CRZR6K5Z.js +0 -19
- package/dist/chunk-GWV65NQW.cjs +0 -10
- package/dist/chunk-GXLZCXEH.js +0 -2
- package/dist/chunk-JUQOPVSK.cjs +0 -2
- package/dist/chunk-LAETEBHD.js +0 -1
- package/dist/chunk-M6Z3KFXM.cjs +0 -5
- package/dist/chunk-UQFOYZJO.cjs +0 -18
- package/dist/chunk-WXQ245MQ.js +0 -18
- package/dist/chunk-WZHIFNSU.js +0 -5
- package/dist/chunk-X7A5XART.js +0 -2
|
@@ -1281,11 +1281,15 @@ interface DrawingDiagnostic {
|
|
|
1281
1281
|
readonly detail: string | null;
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
+
type ShapeSchemeColorResolver = (scheme: string) => string | null;
|
|
1285
|
+
type ShapeStyleMatrixResolver = (kind: 'fill' | 'line', index: number) => OoxmlElement | null;
|
|
1284
1286
|
/**
|
|
1285
|
-
* The renderable subset of a `wps:wsp` non-picture graphic
|
|
1286
|
-
* (`a:custGeom` with move/line/close
|
|
1287
|
-
* solid
|
|
1288
|
-
*
|
|
1287
|
+
* The renderable subset of a `wps:wsp` non-picture graphic, or of one bounded `wpg:wgp`
|
|
1288
|
+
* group of them: closed polygon subpaths (`a:custGeom` with move/line/close/cubicBezTo
|
|
1289
|
+
* verbs, or a supported `a:prstGeom`) with a solid fill and/or stroke. The colour may come
|
|
1290
|
+
* from `a:srgbClr` or from the theme, through `a:schemeClr` or a `wps:style` matrix
|
|
1291
|
+
* reference. Anything richer (gradient and picture fills, text bodies, rotation, a nested
|
|
1292
|
+
* group) projects as `null` and paints the labelled placeholder instead.
|
|
1289
1293
|
*/
|
|
1290
1294
|
interface VectorShapeProjection {
|
|
1291
1295
|
/** The drawing extent that frames the subpath coordinate space. */
|
|
@@ -1293,16 +1297,39 @@ interface VectorShapeProjection {
|
|
|
1293
1297
|
cx: number;
|
|
1294
1298
|
cy: number;
|
|
1295
1299
|
}>;
|
|
1296
|
-
/**
|
|
1300
|
+
/**
|
|
1301
|
+
* Every component's subpath polygons, flattened, in extent-EMU space; fill rule is
|
|
1302
|
+
* even-odd. Painting reads `components`, which keeps each polygon with its own colours;
|
|
1303
|
+
* this stays the geometry summary (bounds, hit tests, wrap holes).
|
|
1304
|
+
*/
|
|
1305
|
+
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1306
|
+
x: number;
|
|
1307
|
+
y: number;
|
|
1308
|
+
}>[])[];
|
|
1309
|
+
/**
|
|
1310
|
+
* Validated 6-digit sRGB hex (no `#`) of the one component, or null. A group of two or
|
|
1311
|
+
* more components has no single fill, so this is null there as well: null means "no one
|
|
1312
|
+
* fill to name", not "nothing is filled". Read `components` to paint.
|
|
1313
|
+
*/
|
|
1314
|
+
readonly fillHex: string | null;
|
|
1315
|
+
readonly fillAlpha?: number;
|
|
1316
|
+
/** As `fillHex`, for the stroke: the one component's stroke, else null. */
|
|
1317
|
+
readonly strokeHex: string | null;
|
|
1318
|
+
readonly strokeAlpha?: number;
|
|
1319
|
+
/** The one component's stroke width in EMU; 0 when absent or when grouped. */
|
|
1320
|
+
readonly strokeWidthEmu: number;
|
|
1321
|
+
/** Independently styled paths, always non-empty. A direct shape has one component. */
|
|
1322
|
+
readonly components: readonly VectorShapeComponent[];
|
|
1323
|
+
}
|
|
1324
|
+
interface VectorShapeComponent {
|
|
1297
1325
|
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1298
1326
|
x: number;
|
|
1299
1327
|
y: number;
|
|
1300
1328
|
}>[])[];
|
|
1301
|
-
/** Validated 6-digit sRGB hex (no `#`), or null for no fill. */
|
|
1302
1329
|
readonly fillHex: string | null;
|
|
1303
|
-
|
|
1330
|
+
readonly fillAlpha: number;
|
|
1304
1331
|
readonly strokeHex: string | null;
|
|
1305
|
-
|
|
1332
|
+
readonly strokeAlpha: number;
|
|
1306
1333
|
readonly strokeWidthEmu: number;
|
|
1307
1334
|
}
|
|
1308
1335
|
/**
|
|
@@ -1512,6 +1539,8 @@ declare function projectDrawing(drawing: OoxmlDrawingNode, context: Readonly<{
|
|
|
1512
1539
|
limits: DrawingProjectionLimits;
|
|
1513
1540
|
namespaceScope?: ReadonlyMap<string, string>;
|
|
1514
1541
|
resolveRelationship?: RelationshipTargetResolver;
|
|
1542
|
+
resolveSchemeColor?: ShapeSchemeColorResolver;
|
|
1543
|
+
resolveStyleMatrixReference?: ShapeStyleMatrixResolver;
|
|
1515
1544
|
}>): DrawingProjection | null;
|
|
1516
1545
|
|
|
1517
1546
|
/** Opaque handle — bytes are reachable only through {@link mintValidatedImageBytes}. */
|
|
@@ -1615,6 +1644,10 @@ declare const MAX_SVG_SNIFF_BYTES = 512;
|
|
|
1615
1644
|
interface ValidatedRasterHeader {
|
|
1616
1645
|
readonly pixelWidth: number;
|
|
1617
1646
|
readonly pixelHeight: number;
|
|
1647
|
+
/** Horizontal physical density when bounded header metadata supplies it. */
|
|
1648
|
+
readonly dpiX?: number;
|
|
1649
|
+
/** Vertical physical density when bounded header metadata supplies it. */
|
|
1650
|
+
readonly dpiY?: number;
|
|
1618
1651
|
}
|
|
1619
1652
|
/** Bounded scan for an `<svg` document root (optional `<?xml` prolog only). */
|
|
1620
1653
|
declare function hasBoundedSvgRoot(bytes: Uint8Array): boolean;
|
|
@@ -3050,4 +3083,4 @@ type TreeOpResult = {
|
|
|
3050
3083
|
readonly detail?: string;
|
|
3051
3084
|
};
|
|
3052
3085
|
|
|
3053
|
-
export { type ContentControlKind as $, type DrawingVerticalReferenceFrame as A, type VectorImageMime as B, type ImageDecodePort as C, type DrawingKind as D, type RevisionAttributionInput as E, type DrawingTreeDocOp as F, type
|
|
3086
|
+
export { type ContentControlKind as $, type DrawingVerticalReferenceFrame as A, type VectorImageMime as B, type ImageDecodePort as C, type DrawingKind as D, type RevisionAttributionInput as E, type DrawingTreeDocOp as F, type DrawingAccessibility as G, type DrawingTransform as H, type ImpactClass as I, type VectorShapeProjection as J, type DrawingProjection as K, type OoxmlDrawingNode as L, type TableBorderStyle as M, type TreeDocColorValue as N, type OoxmlPart as O, type PreservedImageMime as P, DEFAULT_IMAGE_RESOURCE_LIMITS as Q, type RevisionAddress as R, type SourceCrop as S, type TreeDocOp as T, IMAGE_WRAP_TARGETS as U, type ValidatedImageBytesHandle as V, type ImageResourceLimits as W, resolveImageResourceLimits as X, resolveSvgIntrinsicSize as Y, sniffImageMime as Z, validateRasterHeader as _, type OoxmlNode as a, type OoxmlContentControlStoreMappedDataAsNode as a$, type ContentControlLevel as a0, type ContentControlLock as a1, type ContentControlDataBinding as a2, type ResourceLimits as a3, type OoxmlInvariantResult as a4, type RelationshipRecord as a5, type OoxmlInvariantIssue as a6, type OoxmlHardBreakNode as a7, type OoxmlFldCharNode as a8, type OoxmlFldSimpleNode as a9, IMAGE_RESOURCE_HARD_CEILINGS as aA, type ImageRelationshipResolution as aB, type ImageResourceLookup as aC, type IndexResult as aD, MAX_CONTENT_CONTROLS_PER_PART as aE, MAX_CONTENT_CONTROL_NESTING as aF, MAX_SVG_SNIFF_BYTES as aG, type NameRejection as aH, type NameResult as aI, OFFICE_RELATIONSHIP_NAMESPACE_URI as aJ, OOXML_NODE_IDENTITY_RULES as aK, type OoxmlBodyNode as aL, type OoxmlBookmarkEndNode as aM, type OoxmlBookmarkStartNode as aN, type OoxmlContentControlCalendarNode as aO, type OoxmlContentControlCheckboxNode as aP, type OoxmlContentControlCheckedNode as aQ, type OoxmlContentControlCheckedStateNode as aR, type OoxmlContentControlComboBoxNode as aS, type OoxmlContentControlDataBindingNode as aT, type OoxmlContentControlDateFormatNode as aU, type OoxmlContentControlDateNode as aV, type OoxmlContentControlDropDownListNode as aW, type OoxmlContentControlEndPropertiesNode as aX, type OoxmlContentControlLidNode as aY, type OoxmlContentControlListItemNode as aZ, type OoxmlContentControlPropertiesNode as a_, type OoxmlInstrTextNode as aa, type OoxmlAttribute as ab, type TreeOpResult as ac, ACCEPTED_PARAGRAPH_PROPERTIES as ad, ACCEPTED_RUN_PROPERTIES as ae, CONTENT_CONTROL_ID_MAX as af, CONTENT_CONTROL_PROPERTY_ORDER as ag, type ContentControlCheckbox as ah, type ContentControlCheckboxState as ai, type ContentControlDateFormat as aj, type ContentControlEntry as ak, type ContentControlListItem as al, type ContentControlProperties as am, type ContentTypeError as an, type ContentTypeIndex as ao, type ContentTypeRecords as ap, type CreateImageResourceCacheOptions as aq, DEFAULT_LIMITS as ar, DEFAULT_OOXML_PACKAGE_LIMITS as as, DEFAULT_ZIP_LIMITS as at, type DefaultRecord as au, HARD_CEILINGS as av, HYPERLINK_RELATIONSHIP_TYPE as aw, type HyperlinkKind as ax, type HyperlinkTarget as ay, IMAGE_RELATIONSHIP_TYPE as az, type OoxmlPackage as b, flattenContentControls as b$, type OoxmlContentControlTextNode as b0, type OoxmlContentControlUncheckedStateNode as b1, type OoxmlDocumentNode as b2, type OoxmlExternalTarget as b3, type OoxmlGenericExtensionAttribute as b4, type OoxmlHyperlinkNode as b5, type OoxmlInvariantIssueCode as b6, type OoxmlKnownNodeAttribute as b7, type OoxmlNamespaceBinding as b8, type OoxmlNodeIdentityRules as b9, XMLNS_NAMESPACE_URI as bA, XML_NAMESPACE_URI as bB, type XmlLimits as bC, type XmlNode as bD, type XmlRejection as bE, type XmlResult as bF, type ZipLimits as bG, type ZipReadResult as bH, type ZipRejection as bI, allocateContentControlId as bJ, asciiFold as bK, buildContentTypeIndex as bL, buildRelationshipSet as bM, childElements as bN, contentControlContentChildren as bO, contentControlContentNodeOf as bP, contentControlEndPropertiesNodeOf as bQ, contentControlLevelOf as bR, contentControlPropertiesNodeOf as bS, contentControlPropertiesOf as bT, contentControlTextOf as bU, contentControlsIn as bV, createImageResourceCache as bW, detectDuplicateNames as bX, extensionKey as bY, findContentControl as bZ, findElement as b_, type OoxmlPackageResult as ba, type OoxmlParagraphPropertiesNode as bb, type OoxmlPartMetadata as bc, type OoxmlReadRejection as bd, type OoxmlReadResult as be, type OoxmlRunNode as bf, type OoxmlRunPropertiesNode as bg, type OoxmlTabNode as bh, type OoxmlTextElementNode as bi, type OoxmlTextNode as bj, type OoxmlWmlValAttribute as bk, type OoxmlXmlSpaceAttribute as bl, type OverrideRecord as bm, type RelationshipError as bn, type RelationshipSetResult as bo, type RelationshipTargetResolver as bp, type ResolveResult as bq, type ResolvedRelationship as br, TABLE_BORDER_STYLES as bs, TREE_DOC_OP_KINDS as bt, type TabStopWrite as bu, type TargetMode as bv, type TreeDocOpKind as bw, type TreeOpEffect as bx, type ValidatedRasterHeader as by, WML_NAMESPACE_URI as bz, type OoxmlNodeId as c, hasBoundedSvgRoot as c0, hyperlinkAnchorOf as c1, hyperlinkRelationshipIdOf as c2, hyperlinkTargetOf as c3, imageResourceLookupFor as c4, isContentControlContentNode as c5, isContentControlNode as c6, isContentControlWrapper as c7, isContentRevisionKind as c8, isHyperlinkNode as c9, withPart as cA, writeOoxmlPackage as cB, writeZip as cC, isRangeMarkerKind as ca, isValidMime as cb, liveDrawingReferenceCount as cc, lockForbidsEdit as cd, lockForbidsRemoval as ce, normalizePartName as cf, orderedContentControlProperties as cg, parseContentControlId as ch, partNameKey as ci, projectDrawing as cj, readOnOffChild as ck, readOoxmlPackage as cl, readOoxmlPart as cm, readXml as cn, readZip as co, resolveContentControlLock as cp, resolveContentType as cq, resolveImageRelationship as cr, resolveInternalTarget as cs, resolveLimits as ct, resolveRelationship as cu, textContent as cv, validateExternalTarget as cw, validateGifHeader as cx, validateJpegHeader as cy, validatePngHeader as cz, type OoxmlGenericElementNode as d, type OoxmlPackageLimits as e, type OoxmlPackageRejection as f, type OoxmlElement as g, type OoxmlContentControlNode as h, type OoxmlContentControlContentNode as i, type OoxmlParagraphNode as j, type OoxmlNoteNode as k, type OoxmlContinuationSeparatorNode as l, type OoxmlEndnotesNode as m, type OoxmlFootnotesNode as n, type OoxmlNoteRefNode as o, type OoxmlNoteReferenceNode as p, type OoxmlSeparatorNode as q, type TreeOpRejection as r, type OoxmlProperty as s, type RenderableImageMime as t, type ImageWrapTarget as u, type DrawingPositionInput as v, type DrawingLocks as w, type ImageResourceState as x, type SupportedImageMime as y, type DrawingHorizontalReferenceFrame as z };
|
|
@@ -1281,11 +1281,15 @@ interface DrawingDiagnostic {
|
|
|
1281
1281
|
readonly detail: string | null;
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
+
type ShapeSchemeColorResolver = (scheme: string) => string | null;
|
|
1285
|
+
type ShapeStyleMatrixResolver = (kind: 'fill' | 'line', index: number) => OoxmlElement | null;
|
|
1284
1286
|
/**
|
|
1285
|
-
* The renderable subset of a `wps:wsp` non-picture graphic
|
|
1286
|
-
* (`a:custGeom` with move/line/close
|
|
1287
|
-
* solid
|
|
1288
|
-
*
|
|
1287
|
+
* The renderable subset of a `wps:wsp` non-picture graphic, or of one bounded `wpg:wgp`
|
|
1288
|
+
* group of them: closed polygon subpaths (`a:custGeom` with move/line/close/cubicBezTo
|
|
1289
|
+
* verbs, or a supported `a:prstGeom`) with a solid fill and/or stroke. The colour may come
|
|
1290
|
+
* from `a:srgbClr` or from the theme, through `a:schemeClr` or a `wps:style` matrix
|
|
1291
|
+
* reference. Anything richer (gradient and picture fills, text bodies, rotation, a nested
|
|
1292
|
+
* group) projects as `null` and paints the labelled placeholder instead.
|
|
1289
1293
|
*/
|
|
1290
1294
|
interface VectorShapeProjection {
|
|
1291
1295
|
/** The drawing extent that frames the subpath coordinate space. */
|
|
@@ -1293,16 +1297,39 @@ interface VectorShapeProjection {
|
|
|
1293
1297
|
cx: number;
|
|
1294
1298
|
cy: number;
|
|
1295
1299
|
}>;
|
|
1296
|
-
/**
|
|
1300
|
+
/**
|
|
1301
|
+
* Every component's subpath polygons, flattened, in extent-EMU space; fill rule is
|
|
1302
|
+
* even-odd. Painting reads `components`, which keeps each polygon with its own colours;
|
|
1303
|
+
* this stays the geometry summary (bounds, hit tests, wrap holes).
|
|
1304
|
+
*/
|
|
1305
|
+
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1306
|
+
x: number;
|
|
1307
|
+
y: number;
|
|
1308
|
+
}>[])[];
|
|
1309
|
+
/**
|
|
1310
|
+
* Validated 6-digit sRGB hex (no `#`) of the one component, or null. A group of two or
|
|
1311
|
+
* more components has no single fill, so this is null there as well: null means "no one
|
|
1312
|
+
* fill to name", not "nothing is filled". Read `components` to paint.
|
|
1313
|
+
*/
|
|
1314
|
+
readonly fillHex: string | null;
|
|
1315
|
+
readonly fillAlpha?: number;
|
|
1316
|
+
/** As `fillHex`, for the stroke: the one component's stroke, else null. */
|
|
1317
|
+
readonly strokeHex: string | null;
|
|
1318
|
+
readonly strokeAlpha?: number;
|
|
1319
|
+
/** The one component's stroke width in EMU; 0 when absent or when grouped. */
|
|
1320
|
+
readonly strokeWidthEmu: number;
|
|
1321
|
+
/** Independently styled paths, always non-empty. A direct shape has one component. */
|
|
1322
|
+
readonly components: readonly VectorShapeComponent[];
|
|
1323
|
+
}
|
|
1324
|
+
interface VectorShapeComponent {
|
|
1297
1325
|
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1298
1326
|
x: number;
|
|
1299
1327
|
y: number;
|
|
1300
1328
|
}>[])[];
|
|
1301
|
-
/** Validated 6-digit sRGB hex (no `#`), or null for no fill. */
|
|
1302
1329
|
readonly fillHex: string | null;
|
|
1303
|
-
|
|
1330
|
+
readonly fillAlpha: number;
|
|
1304
1331
|
readonly strokeHex: string | null;
|
|
1305
|
-
|
|
1332
|
+
readonly strokeAlpha: number;
|
|
1306
1333
|
readonly strokeWidthEmu: number;
|
|
1307
1334
|
}
|
|
1308
1335
|
/**
|
|
@@ -1512,6 +1539,8 @@ declare function projectDrawing(drawing: OoxmlDrawingNode, context: Readonly<{
|
|
|
1512
1539
|
limits: DrawingProjectionLimits;
|
|
1513
1540
|
namespaceScope?: ReadonlyMap<string, string>;
|
|
1514
1541
|
resolveRelationship?: RelationshipTargetResolver;
|
|
1542
|
+
resolveSchemeColor?: ShapeSchemeColorResolver;
|
|
1543
|
+
resolveStyleMatrixReference?: ShapeStyleMatrixResolver;
|
|
1515
1544
|
}>): DrawingProjection | null;
|
|
1516
1545
|
|
|
1517
1546
|
/** Opaque handle — bytes are reachable only through {@link mintValidatedImageBytes}. */
|
|
@@ -1615,6 +1644,10 @@ declare const MAX_SVG_SNIFF_BYTES = 512;
|
|
|
1615
1644
|
interface ValidatedRasterHeader {
|
|
1616
1645
|
readonly pixelWidth: number;
|
|
1617
1646
|
readonly pixelHeight: number;
|
|
1647
|
+
/** Horizontal physical density when bounded header metadata supplies it. */
|
|
1648
|
+
readonly dpiX?: number;
|
|
1649
|
+
/** Vertical physical density when bounded header metadata supplies it. */
|
|
1650
|
+
readonly dpiY?: number;
|
|
1618
1651
|
}
|
|
1619
1652
|
/** Bounded scan for an `<svg` document root (optional `<?xml` prolog only). */
|
|
1620
1653
|
declare function hasBoundedSvgRoot(bytes: Uint8Array): boolean;
|
|
@@ -3050,4 +3083,4 @@ type TreeOpResult = {
|
|
|
3050
3083
|
readonly detail?: string;
|
|
3051
3084
|
};
|
|
3052
3085
|
|
|
3053
|
-
export { type ContentControlKind as $, type DrawingVerticalReferenceFrame as A, type VectorImageMime as B, type ImageDecodePort as C, type DrawingKind as D, type RevisionAttributionInput as E, type DrawingTreeDocOp as F, type
|
|
3086
|
+
export { type ContentControlKind as $, type DrawingVerticalReferenceFrame as A, type VectorImageMime as B, type ImageDecodePort as C, type DrawingKind as D, type RevisionAttributionInput as E, type DrawingTreeDocOp as F, type DrawingAccessibility as G, type DrawingTransform as H, type ImpactClass as I, type VectorShapeProjection as J, type DrawingProjection as K, type OoxmlDrawingNode as L, type TableBorderStyle as M, type TreeDocColorValue as N, type OoxmlPart as O, type PreservedImageMime as P, DEFAULT_IMAGE_RESOURCE_LIMITS as Q, type RevisionAddress as R, type SourceCrop as S, type TreeDocOp as T, IMAGE_WRAP_TARGETS as U, type ValidatedImageBytesHandle as V, type ImageResourceLimits as W, resolveImageResourceLimits as X, resolveSvgIntrinsicSize as Y, sniffImageMime as Z, validateRasterHeader as _, type OoxmlNode as a, type OoxmlContentControlStoreMappedDataAsNode as a$, type ContentControlLevel as a0, type ContentControlLock as a1, type ContentControlDataBinding as a2, type ResourceLimits as a3, type OoxmlInvariantResult as a4, type RelationshipRecord as a5, type OoxmlInvariantIssue as a6, type OoxmlHardBreakNode as a7, type OoxmlFldCharNode as a8, type OoxmlFldSimpleNode as a9, IMAGE_RESOURCE_HARD_CEILINGS as aA, type ImageRelationshipResolution as aB, type ImageResourceLookup as aC, type IndexResult as aD, MAX_CONTENT_CONTROLS_PER_PART as aE, MAX_CONTENT_CONTROL_NESTING as aF, MAX_SVG_SNIFF_BYTES as aG, type NameRejection as aH, type NameResult as aI, OFFICE_RELATIONSHIP_NAMESPACE_URI as aJ, OOXML_NODE_IDENTITY_RULES as aK, type OoxmlBodyNode as aL, type OoxmlBookmarkEndNode as aM, type OoxmlBookmarkStartNode as aN, type OoxmlContentControlCalendarNode as aO, type OoxmlContentControlCheckboxNode as aP, type OoxmlContentControlCheckedNode as aQ, type OoxmlContentControlCheckedStateNode as aR, type OoxmlContentControlComboBoxNode as aS, type OoxmlContentControlDataBindingNode as aT, type OoxmlContentControlDateFormatNode as aU, type OoxmlContentControlDateNode as aV, type OoxmlContentControlDropDownListNode as aW, type OoxmlContentControlEndPropertiesNode as aX, type OoxmlContentControlLidNode as aY, type OoxmlContentControlListItemNode as aZ, type OoxmlContentControlPropertiesNode as a_, type OoxmlInstrTextNode as aa, type OoxmlAttribute as ab, type TreeOpResult as ac, ACCEPTED_PARAGRAPH_PROPERTIES as ad, ACCEPTED_RUN_PROPERTIES as ae, CONTENT_CONTROL_ID_MAX as af, CONTENT_CONTROL_PROPERTY_ORDER as ag, type ContentControlCheckbox as ah, type ContentControlCheckboxState as ai, type ContentControlDateFormat as aj, type ContentControlEntry as ak, type ContentControlListItem as al, type ContentControlProperties as am, type ContentTypeError as an, type ContentTypeIndex as ao, type ContentTypeRecords as ap, type CreateImageResourceCacheOptions as aq, DEFAULT_LIMITS as ar, DEFAULT_OOXML_PACKAGE_LIMITS as as, DEFAULT_ZIP_LIMITS as at, type DefaultRecord as au, HARD_CEILINGS as av, HYPERLINK_RELATIONSHIP_TYPE as aw, type HyperlinkKind as ax, type HyperlinkTarget as ay, IMAGE_RELATIONSHIP_TYPE as az, type OoxmlPackage as b, flattenContentControls as b$, type OoxmlContentControlTextNode as b0, type OoxmlContentControlUncheckedStateNode as b1, type OoxmlDocumentNode as b2, type OoxmlExternalTarget as b3, type OoxmlGenericExtensionAttribute as b4, type OoxmlHyperlinkNode as b5, type OoxmlInvariantIssueCode as b6, type OoxmlKnownNodeAttribute as b7, type OoxmlNamespaceBinding as b8, type OoxmlNodeIdentityRules as b9, XMLNS_NAMESPACE_URI as bA, XML_NAMESPACE_URI as bB, type XmlLimits as bC, type XmlNode as bD, type XmlRejection as bE, type XmlResult as bF, type ZipLimits as bG, type ZipReadResult as bH, type ZipRejection as bI, allocateContentControlId as bJ, asciiFold as bK, buildContentTypeIndex as bL, buildRelationshipSet as bM, childElements as bN, contentControlContentChildren as bO, contentControlContentNodeOf as bP, contentControlEndPropertiesNodeOf as bQ, contentControlLevelOf as bR, contentControlPropertiesNodeOf as bS, contentControlPropertiesOf as bT, contentControlTextOf as bU, contentControlsIn as bV, createImageResourceCache as bW, detectDuplicateNames as bX, extensionKey as bY, findContentControl as bZ, findElement as b_, type OoxmlPackageResult as ba, type OoxmlParagraphPropertiesNode as bb, type OoxmlPartMetadata as bc, type OoxmlReadRejection as bd, type OoxmlReadResult as be, type OoxmlRunNode as bf, type OoxmlRunPropertiesNode as bg, type OoxmlTabNode as bh, type OoxmlTextElementNode as bi, type OoxmlTextNode as bj, type OoxmlWmlValAttribute as bk, type OoxmlXmlSpaceAttribute as bl, type OverrideRecord as bm, type RelationshipError as bn, type RelationshipSetResult as bo, type RelationshipTargetResolver as bp, type ResolveResult as bq, type ResolvedRelationship as br, TABLE_BORDER_STYLES as bs, TREE_DOC_OP_KINDS as bt, type TabStopWrite as bu, type TargetMode as bv, type TreeDocOpKind as bw, type TreeOpEffect as bx, type ValidatedRasterHeader as by, WML_NAMESPACE_URI as bz, type OoxmlNodeId as c, hasBoundedSvgRoot as c0, hyperlinkAnchorOf as c1, hyperlinkRelationshipIdOf as c2, hyperlinkTargetOf as c3, imageResourceLookupFor as c4, isContentControlContentNode as c5, isContentControlNode as c6, isContentControlWrapper as c7, isContentRevisionKind as c8, isHyperlinkNode as c9, withPart as cA, writeOoxmlPackage as cB, writeZip as cC, isRangeMarkerKind as ca, isValidMime as cb, liveDrawingReferenceCount as cc, lockForbidsEdit as cd, lockForbidsRemoval as ce, normalizePartName as cf, orderedContentControlProperties as cg, parseContentControlId as ch, partNameKey as ci, projectDrawing as cj, readOnOffChild as ck, readOoxmlPackage as cl, readOoxmlPart as cm, readXml as cn, readZip as co, resolveContentControlLock as cp, resolveContentType as cq, resolveImageRelationship as cr, resolveInternalTarget as cs, resolveLimits as ct, resolveRelationship as cu, textContent as cv, validateExternalTarget as cw, validateGifHeader as cx, validateJpegHeader as cy, validatePngHeader as cz, type OoxmlGenericElementNode as d, type OoxmlPackageLimits as e, type OoxmlPackageRejection as f, type OoxmlElement as g, type OoxmlContentControlNode as h, type OoxmlContentControlContentNode as i, type OoxmlParagraphNode as j, type OoxmlNoteNode as k, type OoxmlContinuationSeparatorNode as l, type OoxmlEndnotesNode as m, type OoxmlFootnotesNode as n, type OoxmlNoteRefNode as o, type OoxmlNoteReferenceNode as p, type OoxmlSeparatorNode as q, type TreeOpRejection as r, type OoxmlProperty as s, type RenderableImageMime as t, type ImageWrapTarget as u, type DrawingPositionInput as v, type DrawingLocks as w, type ImageResourceState as x, type SupportedImageMime as y, type DrawingHorizontalReferenceFrame as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as OoxmlPackage, y as SupportedImageMime, O as OoxmlPart, a as OoxmlNode, g as OoxmlElement, E as RevisionAttributionInput, C as ImageDecodePort, F as DrawingTreeDocOp, r as TreeOpRejection, T as TreeDocOp } from './tree-op-types-
|
|
2
|
-
import { N as NoteKind, T as TreeModelChange, a as TreeDocumentStore, c as TreeStoryRef, d as TransactionContext, b as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-
|
|
1
|
+
import { b as OoxmlPackage, y as SupportedImageMime, O as OoxmlPart, a as OoxmlNode, g as OoxmlElement, E as RevisionAttributionInput, C as ImageDecodePort, F as DrawingTreeDocOp, r as TreeOpRejection, T as TreeDocOp } from './tree-op-types-CA7qgAUF.cjs';
|
|
2
|
+
import { N as NoteKind, T as TreeModelChange, a as TreeDocumentStore, c as TreeStoryRef, d as TransactionContext, b as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-BenW0Mg_.cjs';
|
|
3
3
|
|
|
4
4
|
/** A freshly allocated drawing property id, or the reason one could not be minted. */
|
|
5
5
|
type DrawingPropertyIdResult = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as OoxmlPackage, y as SupportedImageMime, O as OoxmlPart, a as OoxmlNode, g as OoxmlElement, E as RevisionAttributionInput, C as ImageDecodePort, F as DrawingTreeDocOp, r as TreeOpRejection, T as TreeDocOp } from './tree-op-types-
|
|
2
|
-
import { N as NoteKind, T as TreeModelChange, a as TreeDocumentStore, c as TreeStoryRef, d as TransactionContext, b as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-
|
|
1
|
+
import { b as OoxmlPackage, y as SupportedImageMime, O as OoxmlPart, a as OoxmlNode, g as OoxmlElement, E as RevisionAttributionInput, C as ImageDecodePort, F as DrawingTreeDocOp, r as TreeOpRejection, T as TreeDocOp } from './tree-op-types-HKfUzt_-.js';
|
|
2
|
+
import { N as NoteKind, T as TreeModelChange, a as TreeDocumentStore, c as TreeStoryRef, d as TransactionContext, b as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-B7hd6cEa.js';
|
|
3
3
|
|
|
4
4
|
/** A freshly allocated drawing property id, or the reason one could not be minted. */
|
|
5
5
|
type DrawingPropertyIdResult = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as StoryScope, a as StoryTargetRejection, b as HeaderFooterParts, c as HeaderFooterSectionResolution, I as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, e as FragmentPasteResult } from './tree-package-fragment-
|
|
2
|
-
import { T as TreeDocOp, O as OoxmlPart, a as OoxmlNode, b as OoxmlPackage, g as OoxmlElement, y as SupportedImageMime, C as ImageDecodePort, E as RevisionAttributionInput } from './tree-op-types-
|
|
3
|
-
import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-
|
|
1
|
+
import { S as StoryScope, a as StoryTargetRejection, b as HeaderFooterParts, c as HeaderFooterSectionResolution, I as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, e as FragmentPasteResult } from './tree-package-fragment-oJZX_5iN.js';
|
|
2
|
+
import { T as TreeDocOp, O as OoxmlPart, a as OoxmlNode, b as OoxmlPackage, g as OoxmlElement, y as SupportedImageMime, C as ImageDecodePort, E as RevisionAttributionInput } from './tree-op-types-HKfUzt_-.js';
|
|
3
|
+
import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-CcNeHH5C.js';
|
|
4
4
|
import { D as DocumentProperties } from './document-properties-D6Ahr8D6.js';
|
|
5
|
-
import { S as SelectionMark, b as TransactOptions, T as TreeModelChange } from './tree-store-
|
|
6
|
-
import { a as ReviewItem } from './review-items-
|
|
5
|
+
import { S as SelectionMark, b as TransactOptions, T as TreeModelChange } from './tree-store-B7hd6cEa.js';
|
|
6
|
+
import { a as ReviewItem } from './review-items-B78OsJU2.js';
|
|
7
7
|
import { Node } from 'prosemirror-model';
|
|
8
8
|
import { CollaborationDocumentPort } from './collaboration/replication.js';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as StoryScope, a as StoryTargetRejection, b as HeaderFooterParts, c as HeaderFooterSectionResolution, I as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, e as FragmentPasteResult } from './tree-package-fragment-
|
|
2
|
-
import { T as TreeDocOp, O as OoxmlPart, a as OoxmlNode, b as OoxmlPackage, g as OoxmlElement, y as SupportedImageMime, C as ImageDecodePort, E as RevisionAttributionInput } from './tree-op-types-
|
|
3
|
-
import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-
|
|
1
|
+
import { S as StoryScope, a as StoryTargetRejection, b as HeaderFooterParts, c as HeaderFooterSectionResolution, I as InsertImageInput, d as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, e as FragmentPasteResult } from './tree-package-fragment-Cz-v-0B3.cjs';
|
|
2
|
+
import { T as TreeDocOp, O as OoxmlPart, a as OoxmlNode, b as OoxmlPackage, g as OoxmlElement, y as SupportedImageMime, C as ImageDecodePort, E as RevisionAttributionInput } from './tree-op-types-CA7qgAUF.cjs';
|
|
3
|
+
import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-D4rMJIES.cjs';
|
|
4
4
|
import { D as DocumentProperties } from './document-properties-D6Ahr8D6.cjs';
|
|
5
|
-
import { S as SelectionMark, b as TransactOptions, T as TreeModelChange } from './tree-store-
|
|
6
|
-
import { a as ReviewItem } from './review-items-
|
|
5
|
+
import { S as SelectionMark, b as TransactOptions, T as TreeModelChange } from './tree-store-BenW0Mg_.cjs';
|
|
6
|
+
import { a as ReviewItem } from './review-items-C-2WQdEb.cjs';
|
|
7
7
|
import { Node } from 'prosemirror-model';
|
|
8
8
|
import { CollaborationDocumentPort } from './collaboration/replication.cjs';
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OoxmlNode, j as OoxmlParagraphNode, k as OoxmlNoteNode, l as OoxmlContinuationSeparatorNode, m as OoxmlEndnotesNode, n as OoxmlFootnotesNode, o as OoxmlNoteRefNode, p as OoxmlNoteReferenceNode, q as OoxmlSeparatorNode, I as ImpactClass, O as OoxmlPart, b as OoxmlPackage, T as TreeDocOp, r as TreeOpRejection } from './tree-op-types-
|
|
1
|
+
import { a as OoxmlNode, j as OoxmlParagraphNode, k as OoxmlNoteNode, l as OoxmlContinuationSeparatorNode, m as OoxmlEndnotesNode, n as OoxmlFootnotesNode, o as OoxmlNoteRefNode, p as OoxmlNoteReferenceNode, q as OoxmlSeparatorNode, I as ImpactClass, O as OoxmlPart, b as OoxmlPackage, T as TreeDocOp, r as TreeOpRejection } from './tree-op-types-HKfUzt_-.js';
|
|
2
2
|
|
|
3
3
|
/** UTF-16 placeholder for one atomic note unit in `paragraphTextOf` / segments. */
|
|
4
4
|
declare const NOTE_ATOM_CHAR = "\uFFFC";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OoxmlNode, j as OoxmlParagraphNode, k as OoxmlNoteNode, l as OoxmlContinuationSeparatorNode, m as OoxmlEndnotesNode, n as OoxmlFootnotesNode, o as OoxmlNoteRefNode, p as OoxmlNoteReferenceNode, q as OoxmlSeparatorNode, I as ImpactClass, O as OoxmlPart, b as OoxmlPackage, T as TreeDocOp, r as TreeOpRejection } from './tree-op-types-
|
|
1
|
+
import { a as OoxmlNode, j as OoxmlParagraphNode, k as OoxmlNoteNode, l as OoxmlContinuationSeparatorNode, m as OoxmlEndnotesNode, n as OoxmlFootnotesNode, o as OoxmlNoteRefNode, p as OoxmlNoteReferenceNode, q as OoxmlSeparatorNode, I as ImpactClass, O as OoxmlPart, b as OoxmlPackage, T as TreeDocOp, r as TreeOpRejection } from './tree-op-types-CA7qgAUF.cjs';
|
|
2
2
|
|
|
3
3
|
/** UTF-16 placeholder for one atomic note unit in `paragraphTextOf` / segments. */
|
|
4
4
|
declare const NOTE_ATOM_CHAR = "\uFFFC";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docx-editor.dev/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Framework-agnostic core for docx-editor.dev: OOXML parse/serialize, the canonical document tree, layout and paint, and the Editor contract the adapters render.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"directory": "packages/core"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@docx-editor.dev/i18n": "^2.
|
|
100
|
+
"@docx-editor.dev/i18n": "^2.12.0",
|
|
101
101
|
"bidi-js": "1.0.3",
|
|
102
102
|
"emf-converter": "2.0.2",
|
|
103
103
|
"fast-xml-parser": "^5.10.1",
|