@syncfusion/ej2-docx 35.1.39 → 35.1.40
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/.gitleaksignore +35 -0
- package/README.md +1 -1
- package/dist/ej2-docx.umd.min.js +9 -0
- package/dist/global/ej2-docx.min.js +9 -0
- package/dist/global/index.d.ts +9 -0
- package/package.json +31 -31
- package/src/features/document/alt-chunk.d.ts +1 -1
- package/src/features/document/alt-chunk.js +1 -1
- package/src/features/document/augmentations.d.ts +2 -2
- package/src/features/document/entity-type.d.ts +8 -8
- package/src/features/document/entity-type.js +8 -8
- package/src/features/document/length.d.ts +14 -14
- package/src/features/document/length.js +12 -12
- package/src/features/document/text-range.d.ts +11 -11
- package/src/features/document/text-range.js +2 -2
- package/src/features/drawing/drawing-shape.d.ts +1 -1
- package/src/features/drawing/drawing-shape.js +1 -1
- package/src/features/editable-ranges/index.d.ts +1 -1
- package/src/features/editable-ranges/index.js +1 -1
- package/src/features/headers-footers/index.d.ts +8 -8
- package/src/features/headers-footers/index.js +8 -8
- package/src/features/images/caption-authoring-api.d.ts +3 -3
- package/src/features/images/caption-authoring-api.js +2 -2
- package/src/features/images/captions.d.ts +1 -1
- package/src/features/images/captions.js +1 -1
- package/src/features/images/index.d.ts +10 -10
- package/src/features/images/index.js +7 -7
- package/src/features/numbering/index.js +1 -1
- package/src/features/numbering/list-format.d.ts +1 -1
- package/src/features/sections/page-setup.d.ts +1 -1
|
@@ -133,7 +133,7 @@ export function addCaptionToPicture(picture, captionName, numberingFormat, posit
|
|
|
133
133
|
return caption;
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
* @private
|
|
138
138
|
*/
|
|
139
139
|
export function addCaptionToImage(image, captionName, numberingFormat, position) {
|
|
@@ -83,7 +83,7 @@ export interface ImageOptions {
|
|
|
83
83
|
*/
|
|
84
84
|
readonly textWrappingStyle?: TextWrappingStyleType;
|
|
85
85
|
/**
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
*/
|
|
88
88
|
readonly wrapping?: TextWrappingStyleType;
|
|
89
89
|
/** `wp:positionH/@relativeFrom` (`ST_RelFromH`). Meaningful on anchored hosts. */
|
|
@@ -111,7 +111,7 @@ export interface ImageOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
readonly verticalAlignment?: VerticalAlignmentType;
|
|
113
113
|
}
|
|
114
|
-
/**
|
|
114
|
+
/** */
|
|
115
115
|
export declare type InsertImageOptions = ImageOptions;
|
|
116
116
|
interface ImagePartEntry {
|
|
117
117
|
readonly partName: PartName;
|
|
@@ -281,10 +281,10 @@ export declare class Picture implements FeatureRunLeaf {
|
|
|
281
281
|
*/
|
|
282
282
|
textWrappingStyle: TextWrappingStyleType;
|
|
283
283
|
/**
|
|
284
|
-
|
|
284
|
+
|
|
285
285
|
*/
|
|
286
286
|
/**
|
|
287
|
-
|
|
287
|
+
|
|
288
288
|
*/
|
|
289
289
|
wrapping: TextWrappingStyleType;
|
|
290
290
|
/** Horizontal origin (`wp:positionH/@relativeFrom`). */
|
|
@@ -450,7 +450,7 @@ export declare function imagesFor(document: WordDocument): ImagesCatalog;
|
|
|
450
450
|
*/
|
|
451
451
|
export declare function picturesInParagraph(paragraph: Paragraph): ReadonlyArray<Picture>;
|
|
452
452
|
/**
|
|
453
|
-
|
|
453
|
+
|
|
454
454
|
* @private
|
|
455
455
|
*/
|
|
456
456
|
export declare function imagesInParagraph(paragraph: Paragraph): ReadonlyArray<Picture>;
|
|
@@ -460,7 +460,7 @@ export declare function imagesInParagraph(paragraph: Paragraph): ReadonlyArray<P
|
|
|
460
460
|
*/
|
|
461
461
|
export declare function inlinePictureBytes(document: WordDocument, picture: Picture): Uint8Array | undefined;
|
|
462
462
|
/**
|
|
463
|
-
|
|
463
|
+
|
|
464
464
|
* @private
|
|
465
465
|
*/
|
|
466
466
|
export declare function inlineImageBytes(document: WordDocument, image: Picture): Uint8Array | undefined;
|
|
@@ -470,7 +470,7 @@ export declare function inlineImageBytes(document: WordDocument, image: Picture)
|
|
|
470
470
|
*/
|
|
471
471
|
export declare function replaceInlinePictureBytes(document: WordDocument, picture: Picture, bytes: Uint8Array): void;
|
|
472
472
|
/**
|
|
473
|
-
|
|
473
|
+
|
|
474
474
|
* @private
|
|
475
475
|
*/
|
|
476
476
|
export declare function replaceInlineImageBytes(document: WordDocument, image: Picture, bytes: Uint8Array): void;
|
|
@@ -480,7 +480,7 @@ export declare function replaceInlineImageBytes(document: WordDocument, image: P
|
|
|
480
480
|
*/
|
|
481
481
|
export declare function removeInlinePicture(document: WordDocument, paragraph: Paragraph, picture: Picture): void;
|
|
482
482
|
/**
|
|
483
|
-
|
|
483
|
+
|
|
484
484
|
* @private
|
|
485
485
|
*/
|
|
486
486
|
export declare function removeInlineImage(document: WordDocument, paragraph: Paragraph, image: Picture): void;
|
|
@@ -493,14 +493,14 @@ export declare function isPictureLeaf(item: ParagraphItem | Picture): item is (F
|
|
|
493
493
|
value: Picture;
|
|
494
494
|
}) | Picture;
|
|
495
495
|
/**
|
|
496
|
-
|
|
496
|
+
|
|
497
497
|
* @private
|
|
498
498
|
*/
|
|
499
499
|
export declare function isImageLeaf(item: ParagraphItem | Picture): item is (FeatureRunParagraphItem & {
|
|
500
500
|
value: Picture;
|
|
501
501
|
}) | Picture;
|
|
502
502
|
/**
|
|
503
|
-
|
|
503
|
+
|
|
504
504
|
* @public
|
|
505
505
|
*/
|
|
506
506
|
export declare type Image = Picture;
|
|
@@ -479,13 +479,13 @@ var Picture = /** @class */ (function () {
|
|
|
479
479
|
});
|
|
480
480
|
Object.defineProperty(Picture.prototype, "wrapping", {
|
|
481
481
|
/**
|
|
482
|
-
|
|
482
|
+
|
|
483
483
|
*/
|
|
484
484
|
get: function () {
|
|
485
485
|
return this.textWrappingStyle;
|
|
486
486
|
},
|
|
487
487
|
/**
|
|
488
|
-
|
|
488
|
+
|
|
489
489
|
*/
|
|
490
490
|
set: function (value) {
|
|
491
491
|
this.textWrappingStyle = value;
|
|
@@ -1210,7 +1210,7 @@ export function picturesInParagraph(paragraph) {
|
|
|
1210
1210
|
return found;
|
|
1211
1211
|
}
|
|
1212
1212
|
/**
|
|
1213
|
-
|
|
1213
|
+
|
|
1214
1214
|
* @private
|
|
1215
1215
|
*/
|
|
1216
1216
|
export function imagesInParagraph(paragraph) {
|
|
@@ -1302,7 +1302,7 @@ export function inlinePictureBytes(document, picture) {
|
|
|
1302
1302
|
return catalog.bytesForRelationship(picture.relationshipId);
|
|
1303
1303
|
}
|
|
1304
1304
|
/**
|
|
1305
|
-
|
|
1305
|
+
|
|
1306
1306
|
* @private
|
|
1307
1307
|
*/
|
|
1308
1308
|
export function inlineImageBytes(document, image) {
|
|
@@ -1321,7 +1321,7 @@ export function replaceInlinePictureBytes(document, picture, bytes) {
|
|
|
1321
1321
|
catalog.replaceBytes(picture.relationshipId, bytes);
|
|
1322
1322
|
}
|
|
1323
1323
|
/**
|
|
1324
|
-
|
|
1324
|
+
|
|
1325
1325
|
* @private
|
|
1326
1326
|
*/
|
|
1327
1327
|
export function replaceInlineImageBytes(document, image, bytes) {
|
|
@@ -1368,7 +1368,7 @@ export function removeInlinePicture(document, paragraph, picture) {
|
|
|
1368
1368
|
throw new DocxError('content/unknown-image', 'Inline picture is not in this paragraph');
|
|
1369
1369
|
}
|
|
1370
1370
|
/**
|
|
1371
|
-
|
|
1371
|
+
|
|
1372
1372
|
* @private
|
|
1373
1373
|
*/
|
|
1374
1374
|
export function removeInlineImage(document, paragraph, image) {
|
|
@@ -1386,7 +1386,7 @@ export function isPictureLeaf(item) {
|
|
|
1386
1386
|
return item instanceof FeatureRunParagraphItem && item.featureId === IMAGES && item.value instanceof Picture;
|
|
1387
1387
|
}
|
|
1388
1388
|
/**
|
|
1389
|
-
|
|
1389
|
+
|
|
1390
1390
|
* @private
|
|
1391
1391
|
*/
|
|
1392
1392
|
export function isImageLeaf(item) {
|
|
@@ -629,7 +629,7 @@ export function numberingFor(document) {
|
|
|
629
629
|
}
|
|
630
630
|
/**
|
|
631
631
|
* @private Helper to apply numbering to a paragraph via the legacy numbering property.
|
|
632
|
-
|
|
632
|
+
* methods instead; the numbering property remains
|
|
633
633
|
* for backward compatibility but is not the canonical public API.
|
|
634
634
|
*/
|
|
635
635
|
function applyParagraphNumbering(paragraph, value) {
|
|
@@ -6,7 +6,7 @@ import { NumberingLevel } from './numbering-level';
|
|
|
6
6
|
import { ListType } from './list-style';
|
|
7
7
|
import { NumberingPart } from './index';
|
|
8
8
|
/**
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
export declare type ListFormatType = 'bullet' | 'decimal';
|
|
@@ -6,7 +6,7 @@ import { ColumnCollection } from './column-collection';
|
|
|
6
6
|
import { Margins } from './margins';
|
|
7
7
|
import { SectionBreakCode } from './section-break-code';
|
|
8
8
|
export { BorderStyle, LineNumberingMode, PageBorderOffsetFrom, PageBordersApplyType, PageOrientation, PageNumberStyle, PrinterPaperTray, SizeF, VerticalAlignment, };
|
|
9
|
-
/**
|
|
9
|
+
/** */
|
|
10
10
|
export declare type SectionVerticalAlignment = VerticalAlignment | 'top' | 'center' | 'both' | 'bottom';
|
|
11
11
|
/** Header or footer reference type (`ST_HdrFtr`) — wire tokens until odd rename. */
|
|
12
12
|
export declare type HeaderFooterReferenceType = 'default' | 'first' | 'even';
|