@office-open/docx 0.9.1 → 0.9.2
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/{context-DkABanLH.mjs → context-CERMOUn0.mjs} +4 -4
- package/dist/context-CERMOUn0.mjs.map +1 -0
- package/dist/{core-properties-C79Z-ZPE.d.mts → core-properties-Bh8_D5Kh.d.mts} +775 -775
- package/dist/core-properties-Bh8_D5Kh.d.mts.map +1 -0
- package/dist/{document-Ch4dyBB4.mjs → document-CeM-U6J3.mjs} +15 -7
- package/dist/document-CeM-U6J3.mjs.map +1 -0
- package/dist/{generate-DQ6qeP58.mjs → generate-DiDgl0bc.mjs} +3 -3
- package/dist/{generate-DQ6qeP58.mjs.map → generate-DiDgl0bc.mjs.map} +1 -1
- package/dist/generate.d.mts +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/index.d.mts +3 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{parse-0XGa3h9q.mjs → parse-BIJM6_8Y.mjs} +3 -3
- package/dist/parse-BIJM6_8Y.mjs.map +1 -0
- package/dist/parse.d.mts +1 -1
- package/dist/parse.mjs +1 -1
- package/dist/patch/index.d.mts +1 -1
- package/dist/patch/index.d.mts.map +1 -1
- package/dist/patch/index.mjs +2 -2
- package/dist/patch/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/context-DkABanLH.mjs.map +0 -1
- package/dist/core-properties-C79Z-ZPE.d.mts.map +0 -1
- package/dist/document-Ch4dyBB4.mjs.map +0 -1
- package/dist/parse-0XGa3h9q.mjs.map +0 -1
|
@@ -359,18 +359,140 @@ declare const TabStopPosition: {
|
|
|
359
359
|
readonly MAX: 9026;
|
|
360
360
|
};
|
|
361
361
|
//#endregion
|
|
362
|
-
//#region src/parts/
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
hyperlink?: HyperlinkOptions;
|
|
362
|
+
//#region src/parts/paragraph/math.d.ts
|
|
363
|
+
type MathScriptType = "roman" | "script" | "fraktur" | "double-struck" | "sans-serif" | "monospace";
|
|
364
|
+
type MathStyleType = "p" | "b" | "i" | "bi";
|
|
365
|
+
interface MathRunPropertiesOptions {
|
|
366
|
+
lit?: boolean;
|
|
367
|
+
normal?: boolean;
|
|
368
|
+
script?: MathScriptType;
|
|
369
|
+
style?: MathStyleType;
|
|
370
|
+
breakAlignment?: number;
|
|
371
|
+
align?: boolean;
|
|
373
372
|
}
|
|
373
|
+
type MathInput = string | {
|
|
374
|
+
text: string;
|
|
375
|
+
properties?: MathRunPropertiesOptions;
|
|
376
|
+
} | {
|
|
377
|
+
fraction: {
|
|
378
|
+
numerator: MathInput[];
|
|
379
|
+
denominator: MathInput[];
|
|
380
|
+
fractionType?: string;
|
|
381
|
+
};
|
|
382
|
+
} | {
|
|
383
|
+
superScript: {
|
|
384
|
+
children: MathInput[];
|
|
385
|
+
superScript: MathInput[];
|
|
386
|
+
};
|
|
387
|
+
} | {
|
|
388
|
+
subScript: {
|
|
389
|
+
children: MathInput[];
|
|
390
|
+
subScript: MathInput[];
|
|
391
|
+
};
|
|
392
|
+
} | {
|
|
393
|
+
subSuperScript: {
|
|
394
|
+
children: MathInput[];
|
|
395
|
+
subScript: MathInput[];
|
|
396
|
+
superScript: MathInput[];
|
|
397
|
+
};
|
|
398
|
+
} | {
|
|
399
|
+
preSubSuperScript: {
|
|
400
|
+
children: MathInput[];
|
|
401
|
+
subScript: MathInput[];
|
|
402
|
+
superScript: MathInput[];
|
|
403
|
+
};
|
|
404
|
+
} | {
|
|
405
|
+
radical: {
|
|
406
|
+
children: MathInput[];
|
|
407
|
+
degree?: MathInput[];
|
|
408
|
+
};
|
|
409
|
+
} | {
|
|
410
|
+
sum: {
|
|
411
|
+
children: MathInput[];
|
|
412
|
+
subScript?: MathInput[];
|
|
413
|
+
superScript?: MathInput[];
|
|
414
|
+
};
|
|
415
|
+
} | {
|
|
416
|
+
integral: {
|
|
417
|
+
children: MathInput[];
|
|
418
|
+
subScript?: MathInput[];
|
|
419
|
+
superScript?: MathInput[];
|
|
420
|
+
};
|
|
421
|
+
} | {
|
|
422
|
+
limitLower: {
|
|
423
|
+
children: MathInput[];
|
|
424
|
+
limit: MathInput[];
|
|
425
|
+
properties?: Record<string, unknown>;
|
|
426
|
+
};
|
|
427
|
+
} | {
|
|
428
|
+
limitUpper: {
|
|
429
|
+
children: MathInput[];
|
|
430
|
+
limit: MathInput[];
|
|
431
|
+
properties?: Record<string, unknown>;
|
|
432
|
+
};
|
|
433
|
+
} | {
|
|
434
|
+
function: {
|
|
435
|
+
children: MathInput[];
|
|
436
|
+
name: MathInput[];
|
|
437
|
+
properties?: Record<string, unknown>;
|
|
438
|
+
};
|
|
439
|
+
} | {
|
|
440
|
+
matrix: {
|
|
441
|
+
rows: MathInput[][];
|
|
442
|
+
properties?: Record<string, unknown>;
|
|
443
|
+
};
|
|
444
|
+
} | {
|
|
445
|
+
roundBrackets: MathInput[] | {
|
|
446
|
+
children: MathInput[];
|
|
447
|
+
};
|
|
448
|
+
} | {
|
|
449
|
+
curlyBrackets: MathInput[] | {
|
|
450
|
+
children: MathInput[];
|
|
451
|
+
};
|
|
452
|
+
} | {
|
|
453
|
+
angledBrackets: MathInput[] | {
|
|
454
|
+
children: MathInput[];
|
|
455
|
+
};
|
|
456
|
+
} | {
|
|
457
|
+
squareBrackets: MathInput[] | {
|
|
458
|
+
children: MathInput[];
|
|
459
|
+
};
|
|
460
|
+
} | {
|
|
461
|
+
borderBox: {
|
|
462
|
+
children: MathInput[];
|
|
463
|
+
properties?: Record<string, unknown>;
|
|
464
|
+
};
|
|
465
|
+
} | {
|
|
466
|
+
box: {
|
|
467
|
+
children: MathInput[];
|
|
468
|
+
properties?: Record<string, unknown>;
|
|
469
|
+
};
|
|
470
|
+
} | {
|
|
471
|
+
groupChr: {
|
|
472
|
+
children: MathInput[];
|
|
473
|
+
properties?: Record<string, unknown>;
|
|
474
|
+
};
|
|
475
|
+
} | {
|
|
476
|
+
phant: {
|
|
477
|
+
children: MathInput[];
|
|
478
|
+
properties?: Record<string, unknown>;
|
|
479
|
+
};
|
|
480
|
+
} | {
|
|
481
|
+
eqArr: {
|
|
482
|
+
rows: MathInput[][];
|
|
483
|
+
properties?: Record<string, unknown>;
|
|
484
|
+
};
|
|
485
|
+
} | {
|
|
486
|
+
accent: {
|
|
487
|
+
children: MathInput[];
|
|
488
|
+
accentCharacter?: string;
|
|
489
|
+
};
|
|
490
|
+
} | {
|
|
491
|
+
bar: {
|
|
492
|
+
children: MathInput[];
|
|
493
|
+
type: "top" | "bot";
|
|
494
|
+
};
|
|
495
|
+
};
|
|
374
496
|
//#endregion
|
|
375
497
|
//#region src/shared/constants.d.ts
|
|
376
498
|
declare const HorizontalPositionAlign: {
|
|
@@ -456,279 +578,460 @@ declare const SpaceType: {
|
|
|
456
578
|
readonly PRESERVE: "preserve";
|
|
457
579
|
};
|
|
458
580
|
//#endregion
|
|
459
|
-
//#region src/parts/
|
|
460
|
-
declare const
|
|
461
|
-
readonly NONE:
|
|
462
|
-
readonly
|
|
463
|
-
readonly TIGHT: 2;
|
|
464
|
-
readonly TOP_AND_BOTTOM: 3;
|
|
465
|
-
readonly THROUGH: 4;
|
|
466
|
-
};
|
|
467
|
-
declare const TextWrappingSide: {
|
|
468
|
-
readonly BOTH_SIDES: "bothSides";
|
|
469
|
-
readonly LEFT: "left";
|
|
470
|
-
readonly RIGHT: "right";
|
|
471
|
-
readonly LARGEST: "largest";
|
|
472
|
-
};
|
|
473
|
-
interface TextWrapping {
|
|
474
|
-
type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
475
|
-
side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
476
|
-
margins?: Distance;
|
|
477
|
-
}
|
|
478
|
-
//#endregion
|
|
479
|
-
//#region src/parts/drawing/text-wrap/wrap-tight.d.ts
|
|
480
|
-
declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
481
|
-
x: number;
|
|
482
|
-
y: number;
|
|
483
|
-
}) => string;
|
|
484
|
-
//#endregion
|
|
485
|
-
//#region src/parts/drawing/text-wrap/wrap-through.d.ts
|
|
486
|
-
declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
487
|
-
x: number;
|
|
488
|
-
y: number;
|
|
489
|
-
}) => string;
|
|
490
|
-
//#endregion
|
|
491
|
-
//#region src/parts/drawing/floating/floating-position.d.ts
|
|
492
|
-
declare const HorizontalPositionRelativeFrom: {
|
|
493
|
-
readonly CHARACTER: "character";
|
|
494
|
-
readonly COLUMN: "column";
|
|
495
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
496
|
-
readonly LEFT_MARGIN: "leftMargin";
|
|
581
|
+
//#region src/parts/paragraph/frame/frame-properties.d.ts
|
|
582
|
+
declare const DropCapType: {
|
|
583
|
+
readonly NONE: "none";
|
|
584
|
+
readonly DROP: "drop";
|
|
497
585
|
readonly MARGIN: "margin";
|
|
498
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
499
|
-
readonly PAGE: "page";
|
|
500
|
-
readonly RIGHT_MARGIN: "rightMargin";
|
|
501
586
|
};
|
|
502
|
-
declare const
|
|
503
|
-
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
504
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
505
|
-
readonly LINE: "line";
|
|
587
|
+
declare const FrameAnchorType: {
|
|
506
588
|
readonly MARGIN: "margin";
|
|
507
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
508
589
|
readonly PAGE: "page";
|
|
509
|
-
readonly
|
|
510
|
-
readonly TOP_MARGIN: "topMargin";
|
|
590
|
+
readonly TEXT: "text";
|
|
511
591
|
};
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
592
|
+
declare const FrameWrap: {
|
|
593
|
+
readonly AROUND: "around";
|
|
594
|
+
readonly AUTO: "auto";
|
|
595
|
+
readonly NONE: "none";
|
|
596
|
+
readonly NOT_BESIDE: "notBeside";
|
|
597
|
+
readonly THROUGH: "through";
|
|
598
|
+
readonly TIGHT: "tight";
|
|
599
|
+
};
|
|
600
|
+
interface BaseFrameOptions {
|
|
601
|
+
anchorLock?: boolean;
|
|
602
|
+
dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
603
|
+
width: number;
|
|
604
|
+
height: number;
|
|
605
|
+
wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
|
|
606
|
+
lines?: number;
|
|
607
|
+
anchor: {
|
|
608
|
+
horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
609
|
+
vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
610
|
+
};
|
|
611
|
+
space?: {
|
|
612
|
+
horizontal: number;
|
|
613
|
+
vertical: number;
|
|
614
|
+
};
|
|
615
|
+
rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
516
616
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
617
|
+
type XYFrameOptions = {
|
|
618
|
+
type: "absolute";
|
|
619
|
+
position: {
|
|
620
|
+
x: number;
|
|
621
|
+
y: number;
|
|
622
|
+
};
|
|
623
|
+
} & BaseFrameOptions;
|
|
624
|
+
type AlignmentFrameOptions = {
|
|
625
|
+
type: "alignment";
|
|
626
|
+
alignment: {
|
|
627
|
+
x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
628
|
+
y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
629
|
+
};
|
|
630
|
+
} & BaseFrameOptions;
|
|
631
|
+
type FrameOptions$1 = XYFrameOptions | AlignmentFrameOptions;
|
|
632
|
+
//#endregion
|
|
633
|
+
//#region src/parts/paragraph/run/empty-children.d.ts
|
|
634
|
+
interface NoBreakHyphen {
|
|
635
|
+
noBreakHyphen: true;
|
|
521
636
|
}
|
|
522
|
-
interface
|
|
523
|
-
|
|
524
|
-
bottom?: number | UniversalMeasure;
|
|
525
|
-
top?: number | UniversalMeasure;
|
|
526
|
-
right?: number | UniversalMeasure;
|
|
637
|
+
interface SoftHyphen {
|
|
638
|
+
softHyphen: true;
|
|
527
639
|
}
|
|
528
|
-
interface
|
|
529
|
-
|
|
530
|
-
verticalPosition: VerticalPositionOptions;
|
|
531
|
-
allowOverlap?: boolean;
|
|
532
|
-
lockAnchor?: boolean;
|
|
533
|
-
behindDocument?: boolean;
|
|
534
|
-
layoutInCell?: boolean;
|
|
535
|
-
margins?: Margins;
|
|
536
|
-
wrap?: TextWrapping;
|
|
537
|
-
zIndex?: number;
|
|
640
|
+
interface DayShort {
|
|
641
|
+
dayShort: true;
|
|
538
642
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
declare const createHorizontalPosition: ({
|
|
542
|
-
relative,
|
|
543
|
-
align,
|
|
544
|
-
offset
|
|
545
|
-
}: HorizontalPositionOptions) => string;
|
|
546
|
-
//#endregion
|
|
547
|
-
//#region src/parts/drawing/floating/vertical-position.d.ts
|
|
548
|
-
declare const createVerticalPosition: ({
|
|
549
|
-
relative,
|
|
550
|
-
align,
|
|
551
|
-
offset
|
|
552
|
-
}: VerticalPositionOptions) => string;
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region src/parts/drawing/drawing.d.ts
|
|
555
|
-
interface Distance {
|
|
556
|
-
distT?: number;
|
|
557
|
-
distB?: number;
|
|
558
|
-
distL?: number;
|
|
559
|
-
distR?: number;
|
|
643
|
+
interface MonthShort {
|
|
644
|
+
monthShort: true;
|
|
560
645
|
}
|
|
561
|
-
interface
|
|
562
|
-
|
|
563
|
-
docProperties?: DocPropertiesOptions;
|
|
564
|
-
outline?: OutlineOptions;
|
|
565
|
-
fill?: FillOptions;
|
|
566
|
-
effects?: EffectListOptions;
|
|
567
|
-
blipEffects?: BlipEffectsOptions;
|
|
568
|
-
tile?: TileOptions;
|
|
646
|
+
interface YearShort {
|
|
647
|
+
yearShort: true;
|
|
569
648
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
type GroupChild = unknown;
|
|
573
|
-
interface ChildOffset {
|
|
574
|
-
x: number;
|
|
575
|
-
y: number;
|
|
649
|
+
interface DayLong {
|
|
650
|
+
dayLong: true;
|
|
576
651
|
}
|
|
577
|
-
interface
|
|
578
|
-
|
|
579
|
-
cy: number;
|
|
652
|
+
interface MonthLong {
|
|
653
|
+
monthLong: true;
|
|
580
654
|
}
|
|
581
|
-
interface
|
|
582
|
-
|
|
655
|
+
interface YearLong {
|
|
656
|
+
yearLong: true;
|
|
583
657
|
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
chOff?: ChildOffset;
|
|
587
|
-
chExt?: ChildExtent;
|
|
588
|
-
fill?: FillOptions;
|
|
589
|
-
effects?: EffectListOptions;
|
|
590
|
-
};
|
|
591
|
-
//#endregion
|
|
592
|
-
//#region src/shared/media/data.d.ts
|
|
593
|
-
interface MediaDataTransformation {
|
|
594
|
-
offset?: {
|
|
595
|
-
pixels: {
|
|
596
|
-
x: number;
|
|
597
|
-
y: number;
|
|
598
|
-
};
|
|
599
|
-
emus?: {
|
|
600
|
-
x: number;
|
|
601
|
-
y: number;
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
pixels: {
|
|
605
|
-
x: number;
|
|
606
|
-
y: number;
|
|
607
|
-
};
|
|
608
|
-
emus: {
|
|
609
|
-
x: number;
|
|
610
|
-
y: number;
|
|
611
|
-
};
|
|
612
|
-
flip?: {
|
|
613
|
-
vertical?: boolean;
|
|
614
|
-
horizontal?: boolean;
|
|
615
|
-
};
|
|
616
|
-
rotation?: number;
|
|
658
|
+
interface AnnotationReference {
|
|
659
|
+
annotationRef: true;
|
|
617
660
|
}
|
|
618
|
-
interface
|
|
619
|
-
|
|
620
|
-
transformation: MediaDataTransformation;
|
|
621
|
-
data: Uint8Array;
|
|
622
|
-
srcRect?: SourceRectangleOptions;
|
|
661
|
+
interface FootnoteReferenceElement {
|
|
662
|
+
footnoteRef: true;
|
|
623
663
|
}
|
|
624
|
-
interface
|
|
625
|
-
|
|
664
|
+
interface EndnoteReference {
|
|
665
|
+
endnoteRef: true;
|
|
626
666
|
}
|
|
627
|
-
interface
|
|
628
|
-
|
|
629
|
-
fallback: RegularMediaData & CoreMediaData;
|
|
667
|
+
interface Separator {
|
|
668
|
+
separator: true;
|
|
630
669
|
}
|
|
631
|
-
interface
|
|
632
|
-
|
|
633
|
-
transformation: MediaDataTransformation;
|
|
634
|
-
data: WpsShapeCoreOptions;
|
|
670
|
+
interface ContinuationSeparator {
|
|
671
|
+
continuationSeparator: true;
|
|
635
672
|
}
|
|
636
|
-
interface
|
|
637
|
-
|
|
638
|
-
fill?: FillOptions;
|
|
673
|
+
interface PageNumberElement {
|
|
674
|
+
pgNum: true;
|
|
639
675
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
type: "wpg";
|
|
643
|
-
transformation: MediaDataTransformation;
|
|
644
|
-
children: GroupChildMediaData[];
|
|
645
|
-
chOff?: ChildOffset;
|
|
646
|
-
chExt?: ChildExtent;
|
|
647
|
-
fill?: FillOptions;
|
|
648
|
-
effects?: EffectListOptions;
|
|
676
|
+
interface CarriageReturn {
|
|
677
|
+
carriageReturn: true;
|
|
649
678
|
}
|
|
650
|
-
interface
|
|
651
|
-
|
|
652
|
-
transformation: MediaDataTransformation;
|
|
653
|
-
chartKey: string;
|
|
679
|
+
interface Tab {
|
|
680
|
+
tab: true;
|
|
654
681
|
}
|
|
655
|
-
interface
|
|
656
|
-
|
|
657
|
-
transformation: MediaDataTransformation;
|
|
658
|
-
smartArtKey: string;
|
|
682
|
+
interface LastRenderedPageBreak {
|
|
683
|
+
lastRenderedPageBreak: true;
|
|
659
684
|
}
|
|
660
|
-
type ExtendedMediaData = MediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
|
|
661
|
-
type MediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
662
|
-
declare const WORKAROUND2 = "";
|
|
663
685
|
//#endregion
|
|
664
|
-
//#region src/
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
679
|
-
declare class Media {
|
|
680
|
-
private map;
|
|
681
|
-
constructor();
|
|
682
|
-
addImage(key: string, mediaData: MediaData): void;
|
|
683
|
-
get array(): MediaData[];
|
|
686
|
+
//#region src/parts/paragraph/run/east-asian-layout.d.ts
|
|
687
|
+
declare const CombineBracketsType: {
|
|
688
|
+
readonly NONE: "none";
|
|
689
|
+
readonly ROUND: "round";
|
|
690
|
+
readonly SQUARE: "square";
|
|
691
|
+
readonly ANGLE: "angle";
|
|
692
|
+
readonly CURLY: "curly";
|
|
693
|
+
};
|
|
694
|
+
interface EastAsianLayoutOptions {
|
|
695
|
+
id?: number;
|
|
696
|
+
combine?: boolean;
|
|
697
|
+
combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
698
|
+
vert?: boolean;
|
|
699
|
+
vertCompress?: boolean;
|
|
684
700
|
}
|
|
685
701
|
//#endregion
|
|
686
|
-
//#region src/parts/
|
|
687
|
-
declare
|
|
688
|
-
TOP = "t",
|
|
689
|
-
CENTER = "ctr",
|
|
690
|
-
BOTTOM = "b",
|
|
691
|
-
JUSTIFY = "just",
|
|
692
|
-
DISTRIBUTED = "dist"
|
|
693
|
-
}
|
|
694
|
-
declare const TextVertOverflowType: {
|
|
695
|
-
readonly OVERFLOW: "overflow";
|
|
696
|
-
readonly ELLIPSIS: "ellipsis";
|
|
697
|
-
readonly CLIP: "clip";
|
|
698
|
-
};
|
|
699
|
-
declare const TextHorzOverflowType: {
|
|
700
|
-
readonly OVERFLOW: "overflow";
|
|
701
|
-
readonly CLIP: "clip";
|
|
702
|
-
};
|
|
703
|
-
declare const TextVerticalType: {
|
|
704
|
-
readonly HORIZONTAL: "horz";
|
|
705
|
-
readonly VERTICAL: "vert";
|
|
706
|
-
readonly VERTICAL_270: "vert270";
|
|
707
|
-
readonly WORD_ART_VERTICAL: "wordArtVert";
|
|
708
|
-
readonly EAST_ASIAN_VERTICAL: "eaVert";
|
|
709
|
-
readonly MONGOLIAN_VERTICAL: "mongolianVert";
|
|
710
|
-
readonly WORD_ART_VERTICAL_RTL: "wordArtVertRtl";
|
|
711
|
-
};
|
|
712
|
-
declare const TextBodyWrappingType: {
|
|
702
|
+
//#region src/parts/paragraph/run/emphasis-mark.d.ts
|
|
703
|
+
declare const EmphasisMarkType: {
|
|
713
704
|
readonly NONE: "none";
|
|
714
|
-
readonly
|
|
705
|
+
readonly COMMA: "comma";
|
|
706
|
+
readonly CIRCLE: "circle";
|
|
707
|
+
readonly DOT: "dot";
|
|
708
|
+
readonly UNDER_DOT: "underDot";
|
|
715
709
|
};
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region src/parts/paragraph/run/formatting.d.ts
|
|
712
|
+
interface ColorOptions {
|
|
713
|
+
val?: string;
|
|
714
|
+
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
715
|
+
themeTint?: string;
|
|
716
|
+
themeShade?: string;
|
|
719
717
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
718
|
+
//#endregion
|
|
719
|
+
//#region src/parts/paragraph/run/language.d.ts
|
|
720
|
+
interface LanguageOptions {
|
|
721
|
+
value?: string;
|
|
722
|
+
eastAsia?: string;
|
|
723
|
+
bidirectional?: string;
|
|
726
724
|
}
|
|
727
|
-
|
|
728
|
-
|
|
725
|
+
//#endregion
|
|
726
|
+
//#region src/parts/paragraph/run/run-fonts.d.ts
|
|
727
|
+
interface FontAttributesProperties {
|
|
728
|
+
ascii?: string;
|
|
729
|
+
cs?: string;
|
|
730
|
+
eastAsia?: string;
|
|
731
|
+
hAnsi?: string;
|
|
732
|
+
hint?: string;
|
|
733
|
+
asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
734
|
+
hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
735
|
+
eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
736
|
+
cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
729
737
|
}
|
|
730
|
-
|
|
731
|
-
|
|
738
|
+
//#endregion
|
|
739
|
+
//#region src/parts/paragraph/run/underline.d.ts
|
|
740
|
+
declare const UnderlineType: {
|
|
741
|
+
readonly SINGLE: "single";
|
|
742
|
+
readonly WORDS: "words";
|
|
743
|
+
readonly DOUBLE: "double";
|
|
744
|
+
readonly THICK: "thick";
|
|
745
|
+
readonly DOTTED: "dotted";
|
|
746
|
+
readonly DOTTEDHEAVY: "dottedHeavy";
|
|
747
|
+
readonly DASH: "dash";
|
|
748
|
+
readonly DASHEDHEAVY: "dashedHeavy";
|
|
749
|
+
readonly DASHLONG: "dashLong";
|
|
750
|
+
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
751
|
+
readonly DOTDASH: "dotDash";
|
|
752
|
+
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
753
|
+
readonly DOTDOTDASH: "dotDotDash";
|
|
754
|
+
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
755
|
+
readonly WAVE: "wave";
|
|
756
|
+
readonly WAVYHEAVY: "wavyHeavy";
|
|
757
|
+
readonly WAVYDOUBLE: "wavyDouble";
|
|
758
|
+
readonly NONE: "none";
|
|
759
|
+
};
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region src/parts/paragraph/run/properties.d.ts
|
|
762
|
+
interface RunFontReference {
|
|
763
|
+
name: string;
|
|
764
|
+
hint?: string;
|
|
765
|
+
}
|
|
766
|
+
declare const TextEffect: {
|
|
767
|
+
readonly BLINK_BACKGROUND: "blinkBackground";
|
|
768
|
+
readonly LIGHTS: "lights";
|
|
769
|
+
readonly ANTS_BLACK: "antsBlack";
|
|
770
|
+
readonly ANTS_RED: "antsRed";
|
|
771
|
+
readonly SHIMMER: "shimmer";
|
|
772
|
+
readonly SPARKLE: "sparkle";
|
|
773
|
+
readonly NONE: "none";
|
|
774
|
+
};
|
|
775
|
+
declare const HighlightColor: {
|
|
776
|
+
readonly BLACK: "black";
|
|
777
|
+
readonly BLUE: "blue";
|
|
778
|
+
readonly CYAN: "cyan";
|
|
779
|
+
readonly DARK_BLUE: "darkBlue";
|
|
780
|
+
readonly DARK_CYAN: "darkCyan";
|
|
781
|
+
readonly DARK_GRAY: "darkGray";
|
|
782
|
+
readonly DARK_GREEN: "darkGreen";
|
|
783
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
784
|
+
readonly DARK_RED: "darkRed";
|
|
785
|
+
readonly DARK_YELLOW: "darkYellow";
|
|
786
|
+
readonly GREEN: "green";
|
|
787
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
788
|
+
readonly MAGENTA: "magenta";
|
|
789
|
+
readonly NONE: "none";
|
|
790
|
+
readonly RED: "red";
|
|
791
|
+
readonly WHITE: "white";
|
|
792
|
+
readonly YELLOW: "yellow";
|
|
793
|
+
};
|
|
794
|
+
interface RunStylePropertiesOptions {
|
|
795
|
+
noProof?: boolean;
|
|
796
|
+
bold?: boolean;
|
|
797
|
+
boldComplexScript?: boolean;
|
|
798
|
+
italic?: boolean;
|
|
799
|
+
italicComplexScript?: boolean;
|
|
800
|
+
underline?: {
|
|
801
|
+
color?: string;
|
|
802
|
+
type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
803
|
+
};
|
|
804
|
+
effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
805
|
+
emphasisMark?: {
|
|
806
|
+
type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
807
|
+
};
|
|
808
|
+
color?: string | ColorOptions;
|
|
809
|
+
kern?: number;
|
|
810
|
+
position?: string;
|
|
811
|
+
size?: number;
|
|
812
|
+
sizeComplexScript?: boolean | number;
|
|
813
|
+
rightToLeft?: boolean;
|
|
814
|
+
smallCaps?: boolean;
|
|
815
|
+
allCaps?: boolean;
|
|
816
|
+
strike?: boolean;
|
|
817
|
+
doubleStrike?: boolean;
|
|
818
|
+
subScript?: boolean;
|
|
819
|
+
superScript?: boolean;
|
|
820
|
+
font?: string | RunFontReference | FontAttributesProperties;
|
|
821
|
+
highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
822
|
+
highlightComplexScript?: boolean | string;
|
|
823
|
+
characterSpacing?: number;
|
|
824
|
+
shading?: ShadingAttributesProperties;
|
|
825
|
+
emboss?: boolean;
|
|
826
|
+
imprint?: boolean;
|
|
827
|
+
revision?: RunPropertiesChangeOptions;
|
|
828
|
+
language?: LanguageOptions;
|
|
829
|
+
border?: BorderOptions;
|
|
830
|
+
snapToGrid?: boolean;
|
|
831
|
+
vanish?: boolean;
|
|
832
|
+
specVanish?: boolean;
|
|
833
|
+
scale?: number;
|
|
834
|
+
math?: boolean;
|
|
835
|
+
outline?: boolean;
|
|
836
|
+
shadow?: boolean;
|
|
837
|
+
webHidden?: boolean;
|
|
838
|
+
fitText?: number;
|
|
839
|
+
complexScript?: boolean;
|
|
840
|
+
eastAsianLayout?: EastAsianLayoutOptions;
|
|
841
|
+
contentPartRId?: string;
|
|
842
|
+
}
|
|
843
|
+
type RunPropertiesOptions = {
|
|
844
|
+
style?: string;
|
|
845
|
+
} & RunStylePropertiesOptions;
|
|
846
|
+
type RunPropertiesChangeOptions = {} & RunPropertiesOptions & ChangedAttributesProperties;
|
|
847
|
+
type ParagraphRunPropertiesOptions = {
|
|
848
|
+
insertion?: ChangedAttributesProperties;
|
|
849
|
+
deletion?: ChangedAttributesProperties;
|
|
850
|
+
} & RunPropertiesOptions;
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region src/parts/paragraph/run/run.d.ts
|
|
853
|
+
interface RunOptionsBase {
|
|
854
|
+
children?: ((typeof PageNumber)[keyof typeof PageNumber] | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | Record<string, unknown>)[];
|
|
855
|
+
break?: number;
|
|
856
|
+
text?: string;
|
|
857
|
+
}
|
|
858
|
+
type RunOptions = RunOptionsBase & RunPropertiesOptions & {
|
|
859
|
+
rsidRPr?: string;
|
|
860
|
+
rsidDel?: string;
|
|
861
|
+
};
|
|
862
|
+
type ParagraphRunOptions = RunOptionsBase & ParagraphRunPropertiesOptions;
|
|
863
|
+
declare const PageNumber: {
|
|
864
|
+
readonly CURRENT: "CURRENT";
|
|
865
|
+
readonly TOTAL_PAGES: "TOTAL_PAGES";
|
|
866
|
+
readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
|
|
867
|
+
readonly CURRENT_SECTION: "SECTION";
|
|
868
|
+
};
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region src/parts/paragraph/properties.d.ts
|
|
871
|
+
declare const TextAlignmentType: {
|
|
872
|
+
readonly TOP: "top";
|
|
873
|
+
readonly CENTER: "center";
|
|
874
|
+
readonly BASELINE: "baseline";
|
|
875
|
+
readonly BOTTOM: "bottom";
|
|
876
|
+
readonly AUTO: "auto";
|
|
877
|
+
};
|
|
878
|
+
declare const TextboxTightWrapType: {
|
|
879
|
+
readonly NONE: "none";
|
|
880
|
+
readonly ALL_LINES: "allLines";
|
|
881
|
+
readonly FIRST_AND_LAST_LINE: "firstAndLastLine";
|
|
882
|
+
readonly FIRST_LINE_ONLY: "firstLineOnly";
|
|
883
|
+
readonly LAST_LINE_ONLY: "lastLineOnly";
|
|
884
|
+
};
|
|
885
|
+
interface LevelParagraphStylePropertiesOptions {
|
|
886
|
+
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
887
|
+
bidirectional?: boolean;
|
|
888
|
+
pageBreakBefore?: boolean;
|
|
889
|
+
tabStops?: TabStopDefinition[];
|
|
890
|
+
thematicBreak?: boolean;
|
|
891
|
+
widowControl?: boolean;
|
|
892
|
+
contextualSpacing?: boolean;
|
|
893
|
+
rightTabStop?: number;
|
|
894
|
+
leftTabStop?: number;
|
|
895
|
+
indent?: IndentAttributesProperties;
|
|
896
|
+
spacing?: SpacingProperties;
|
|
897
|
+
keepNext?: boolean;
|
|
898
|
+
keepLines?: boolean;
|
|
899
|
+
frame?: FrameOptions$1;
|
|
900
|
+
suppressLineNumbers?: boolean;
|
|
901
|
+
wordWrap?: boolean;
|
|
902
|
+
overflowPunctuation?: boolean;
|
|
903
|
+
autoSpaceEastAsianText?: boolean;
|
|
904
|
+
suppressOverlap?: boolean;
|
|
905
|
+
suppressAutoHyphens?: boolean;
|
|
906
|
+
adjustRightInd?: boolean;
|
|
907
|
+
snapToGrid?: boolean;
|
|
908
|
+
mirrorIndents?: boolean;
|
|
909
|
+
kinsoku?: boolean;
|
|
910
|
+
topLinePunct?: boolean;
|
|
911
|
+
autoSpaceDE?: boolean;
|
|
912
|
+
textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
913
|
+
textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
914
|
+
textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
915
|
+
outlineLevel?: number;
|
|
916
|
+
divId?: number;
|
|
917
|
+
cnfStyle?: CnfConditionalOptions;
|
|
918
|
+
}
|
|
919
|
+
type ParagraphStylePropertiesOptions = {
|
|
920
|
+
border?: BordersOptions;
|
|
921
|
+
shading?: ShadingAttributesProperties;
|
|
922
|
+
numbering?: {
|
|
923
|
+
reference: string;
|
|
924
|
+
level: number;
|
|
925
|
+
instance?: number;
|
|
926
|
+
custom?: boolean;
|
|
927
|
+
numberingChange?: {
|
|
928
|
+
original: string;
|
|
929
|
+
id: string;
|
|
930
|
+
author: string;
|
|
931
|
+
date?: string;
|
|
932
|
+
};
|
|
933
|
+
} | false;
|
|
934
|
+
} & LevelParagraphStylePropertiesOptions;
|
|
935
|
+
type ParagraphPropertiesOptionsBase = {
|
|
936
|
+
heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
937
|
+
style?: string;
|
|
938
|
+
bullet?: {
|
|
939
|
+
level: number;
|
|
940
|
+
};
|
|
941
|
+
run?: ParagraphRunOptions;
|
|
942
|
+
} & ParagraphStylePropertiesOptions;
|
|
943
|
+
type ParagraphPropertiesChangeOptions = ChangedAttributesProperties & ParagraphPropertiesOptionsBase;
|
|
944
|
+
type ParagraphPropertiesOptions = {
|
|
945
|
+
revision?: ParagraphPropertiesChangeOptions;
|
|
946
|
+
includeIfEmpty?: boolean;
|
|
947
|
+
} & ParagraphPropertiesOptionsBase;
|
|
948
|
+
//#endregion
|
|
949
|
+
//#region src/parts/paragraph/run/symbol-run.d.ts
|
|
950
|
+
type SymbolRunOptions = {
|
|
951
|
+
char: string;
|
|
952
|
+
symbolfont?: string;
|
|
953
|
+
} & RunOptions;
|
|
954
|
+
//#endregion
|
|
955
|
+
//#region src/parts/drawing/doc-properties/doc-properties.d.ts
|
|
956
|
+
interface HyperlinkOptions {
|
|
957
|
+
click?: string;
|
|
958
|
+
hover?: string;
|
|
959
|
+
}
|
|
960
|
+
interface DocPropertiesOptions {
|
|
961
|
+
name: string;
|
|
962
|
+
description?: string;
|
|
963
|
+
title?: string;
|
|
964
|
+
id?: string;
|
|
965
|
+
hyperlink?: HyperlinkOptions;
|
|
966
|
+
}
|
|
967
|
+
//#endregion
|
|
968
|
+
//#region src/parts/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
969
|
+
type GroupChild = unknown;
|
|
970
|
+
interface ChildOffset {
|
|
971
|
+
x: number;
|
|
972
|
+
y: number;
|
|
973
|
+
}
|
|
974
|
+
interface ChildExtent {
|
|
975
|
+
cx: number;
|
|
976
|
+
cy: number;
|
|
977
|
+
}
|
|
978
|
+
interface WpgGroupCoreOptions {
|
|
979
|
+
children: GroupChild[];
|
|
980
|
+
}
|
|
981
|
+
type WpgGroupOptions = WpgGroupCoreOptions & {
|
|
982
|
+
transformation: MediaDataTransformation;
|
|
983
|
+
chOff?: ChildOffset;
|
|
984
|
+
chExt?: ChildExtent;
|
|
985
|
+
fill?: FillOptions;
|
|
986
|
+
effects?: EffectListOptions;
|
|
987
|
+
};
|
|
988
|
+
//#endregion
|
|
989
|
+
//#region src/parts/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
|
|
990
|
+
declare enum VerticalAnchor {
|
|
991
|
+
TOP = "t",
|
|
992
|
+
CENTER = "ctr",
|
|
993
|
+
BOTTOM = "b",
|
|
994
|
+
JUSTIFY = "just",
|
|
995
|
+
DISTRIBUTED = "dist"
|
|
996
|
+
}
|
|
997
|
+
declare const TextVertOverflowType: {
|
|
998
|
+
readonly OVERFLOW: "overflow";
|
|
999
|
+
readonly ELLIPSIS: "ellipsis";
|
|
1000
|
+
readonly CLIP: "clip";
|
|
1001
|
+
};
|
|
1002
|
+
declare const TextHorzOverflowType: {
|
|
1003
|
+
readonly OVERFLOW: "overflow";
|
|
1004
|
+
readonly CLIP: "clip";
|
|
1005
|
+
};
|
|
1006
|
+
declare const TextVerticalType: {
|
|
1007
|
+
readonly HORIZONTAL: "horz";
|
|
1008
|
+
readonly VERTICAL: "vert";
|
|
1009
|
+
readonly VERTICAL_270: "vert270";
|
|
1010
|
+
readonly WORD_ART_VERTICAL: "wordArtVert";
|
|
1011
|
+
readonly EAST_ASIAN_VERTICAL: "eaVert";
|
|
1012
|
+
readonly MONGOLIAN_VERTICAL: "mongolianVert";
|
|
1013
|
+
readonly WORD_ART_VERTICAL_RTL: "wordArtVertRtl";
|
|
1014
|
+
};
|
|
1015
|
+
declare const TextBodyWrappingType: {
|
|
1016
|
+
readonly NONE: "none";
|
|
1017
|
+
readonly SQUARE: "square";
|
|
1018
|
+
};
|
|
1019
|
+
interface NormalAutofitOptions {
|
|
1020
|
+
fontScale?: number;
|
|
1021
|
+
lnSpcReduction?: number;
|
|
1022
|
+
}
|
|
1023
|
+
interface PresetTextShapeOptions {
|
|
1024
|
+
preset: string;
|
|
1025
|
+
adjustments?: {
|
|
1026
|
+
name: string;
|
|
1027
|
+
formula: string;
|
|
1028
|
+
}[];
|
|
1029
|
+
}
|
|
1030
|
+
interface FlatTextOptions {
|
|
1031
|
+
z?: number;
|
|
1032
|
+
}
|
|
1033
|
+
interface BodyPropertiesOptions {
|
|
1034
|
+
rotation?: number;
|
|
732
1035
|
spcFirstLastPara?: boolean;
|
|
733
1036
|
vertOverflow?: (typeof TextVertOverflowType)[keyof typeof TextVertOverflowType];
|
|
734
1037
|
horzOverflow?: (typeof TextHorzOverflowType)[keyof typeof TextHorzOverflowType];
|
|
@@ -786,545 +1089,225 @@ type WpsShapeOptions = WpsShapeCoreOptions & {
|
|
|
786
1089
|
transformation: MediaDataTransformation;
|
|
787
1090
|
};
|
|
788
1091
|
//#endregion
|
|
789
|
-
//#region src/
|
|
790
|
-
interface
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
800
|
-
declare const resetDrawingIdGen: () => void;
|
|
801
|
-
declare const drawingDesc: CustomDescriptor<DrawingDescriptorOptions, BodyContext>;
|
|
802
|
-
//#endregion
|
|
803
|
-
//#region src/parts/paragraph/run/smartart-run.d.ts
|
|
804
|
-
interface SmartArtNode {
|
|
805
|
-
text: string;
|
|
806
|
-
children?: SmartArtNode[];
|
|
807
|
-
}
|
|
808
|
-
interface SmartArtOptions {
|
|
809
|
-
data: {
|
|
810
|
-
nodes: SmartArtNode[];
|
|
811
|
-
};
|
|
812
|
-
transformation: MediaTransformation;
|
|
813
|
-
floating?: Floating;
|
|
814
|
-
altText?: DocPropertiesOptions;
|
|
815
|
-
layout?: string;
|
|
816
|
-
style?: string;
|
|
817
|
-
color?: string;
|
|
818
|
-
}
|
|
819
|
-
//#endregion
|
|
820
|
-
//#region src/parts/paragraph/math.d.ts
|
|
821
|
-
type MathScriptType = "roman" | "script" | "fraktur" | "double-struck" | "sans-serif" | "monospace";
|
|
822
|
-
type MathStyleType = "p" | "b" | "i" | "bi";
|
|
823
|
-
interface MathRunPropertiesOptions {
|
|
824
|
-
lit?: boolean;
|
|
825
|
-
normal?: boolean;
|
|
826
|
-
script?: MathScriptType;
|
|
827
|
-
style?: MathStyleType;
|
|
828
|
-
breakAlignment?: number;
|
|
829
|
-
align?: boolean;
|
|
830
|
-
}
|
|
831
|
-
type MathInput = string | {
|
|
832
|
-
text: string;
|
|
833
|
-
properties?: MathRunPropertiesOptions;
|
|
834
|
-
} | {
|
|
835
|
-
fraction: {
|
|
836
|
-
numerator: MathInput[];
|
|
837
|
-
denominator: MathInput[];
|
|
838
|
-
fractionType?: string;
|
|
839
|
-
};
|
|
840
|
-
} | {
|
|
841
|
-
superScript: {
|
|
842
|
-
children: MathInput[];
|
|
843
|
-
superScript: MathInput[];
|
|
844
|
-
};
|
|
845
|
-
} | {
|
|
846
|
-
subScript: {
|
|
847
|
-
children: MathInput[];
|
|
848
|
-
subScript: MathInput[];
|
|
849
|
-
};
|
|
850
|
-
} | {
|
|
851
|
-
subSuperScript: {
|
|
852
|
-
children: MathInput[];
|
|
853
|
-
subScript: MathInput[];
|
|
854
|
-
superScript: MathInput[];
|
|
855
|
-
};
|
|
856
|
-
} | {
|
|
857
|
-
preSubSuperScript: {
|
|
858
|
-
children: MathInput[];
|
|
859
|
-
subScript: MathInput[];
|
|
860
|
-
superScript: MathInput[];
|
|
861
|
-
};
|
|
862
|
-
} | {
|
|
863
|
-
radical: {
|
|
864
|
-
children: MathInput[];
|
|
865
|
-
degree?: MathInput[];
|
|
866
|
-
};
|
|
867
|
-
} | {
|
|
868
|
-
sum: {
|
|
869
|
-
children: MathInput[];
|
|
870
|
-
subScript?: MathInput[];
|
|
871
|
-
superScript?: MathInput[];
|
|
872
|
-
};
|
|
873
|
-
} | {
|
|
874
|
-
integral: {
|
|
875
|
-
children: MathInput[];
|
|
876
|
-
subScript?: MathInput[];
|
|
877
|
-
superScript?: MathInput[];
|
|
878
|
-
};
|
|
879
|
-
} | {
|
|
880
|
-
limitLower: {
|
|
881
|
-
children: MathInput[];
|
|
882
|
-
limit: MathInput[];
|
|
883
|
-
properties?: Record<string, unknown>;
|
|
884
|
-
};
|
|
885
|
-
} | {
|
|
886
|
-
limitUpper: {
|
|
887
|
-
children: MathInput[];
|
|
888
|
-
limit: MathInput[];
|
|
889
|
-
properties?: Record<string, unknown>;
|
|
890
|
-
};
|
|
891
|
-
} | {
|
|
892
|
-
function: {
|
|
893
|
-
children: MathInput[];
|
|
894
|
-
name: MathInput[];
|
|
895
|
-
properties?: Record<string, unknown>;
|
|
896
|
-
};
|
|
897
|
-
} | {
|
|
898
|
-
matrix: {
|
|
899
|
-
rows: MathInput[][];
|
|
900
|
-
properties?: Record<string, unknown>;
|
|
901
|
-
};
|
|
902
|
-
} | {
|
|
903
|
-
roundBrackets: MathInput[] | {
|
|
904
|
-
children: MathInput[];
|
|
905
|
-
};
|
|
906
|
-
} | {
|
|
907
|
-
curlyBrackets: MathInput[] | {
|
|
908
|
-
children: MathInput[];
|
|
909
|
-
};
|
|
910
|
-
} | {
|
|
911
|
-
angledBrackets: MathInput[] | {
|
|
912
|
-
children: MathInput[];
|
|
913
|
-
};
|
|
914
|
-
} | {
|
|
915
|
-
squareBrackets: MathInput[] | {
|
|
916
|
-
children: MathInput[];
|
|
917
|
-
};
|
|
918
|
-
} | {
|
|
919
|
-
borderBox: {
|
|
920
|
-
children: MathInput[];
|
|
921
|
-
properties?: Record<string, unknown>;
|
|
922
|
-
};
|
|
923
|
-
} | {
|
|
924
|
-
box: {
|
|
925
|
-
children: MathInput[];
|
|
926
|
-
properties?: Record<string, unknown>;
|
|
927
|
-
};
|
|
928
|
-
} | {
|
|
929
|
-
groupChr: {
|
|
930
|
-
children: MathInput[];
|
|
931
|
-
properties?: Record<string, unknown>;
|
|
932
|
-
};
|
|
933
|
-
} | {
|
|
934
|
-
phant: {
|
|
935
|
-
children: MathInput[];
|
|
936
|
-
properties?: Record<string, unknown>;
|
|
937
|
-
};
|
|
938
|
-
} | {
|
|
939
|
-
eqArr: {
|
|
940
|
-
rows: MathInput[][];
|
|
941
|
-
properties?: Record<string, unknown>;
|
|
942
|
-
};
|
|
943
|
-
} | {
|
|
944
|
-
accent: {
|
|
945
|
-
children: MathInput[];
|
|
946
|
-
accentCharacter?: string;
|
|
947
|
-
};
|
|
948
|
-
} | {
|
|
949
|
-
bar: {
|
|
950
|
-
children: MathInput[];
|
|
951
|
-
type: "top" | "bot";
|
|
952
|
-
};
|
|
953
|
-
};
|
|
954
|
-
//#endregion
|
|
955
|
-
//#region src/parts/paragraph/frame/frame-properties.d.ts
|
|
956
|
-
declare const DropCapType: {
|
|
957
|
-
readonly NONE: "none";
|
|
958
|
-
readonly DROP: "drop";
|
|
959
|
-
readonly MARGIN: "margin";
|
|
960
|
-
};
|
|
961
|
-
declare const FrameAnchorType: {
|
|
962
|
-
readonly MARGIN: "margin";
|
|
963
|
-
readonly PAGE: "page";
|
|
964
|
-
readonly TEXT: "text";
|
|
965
|
-
};
|
|
966
|
-
declare const FrameWrap: {
|
|
967
|
-
readonly AROUND: "around";
|
|
968
|
-
readonly AUTO: "auto";
|
|
969
|
-
readonly NONE: "none";
|
|
970
|
-
readonly NOT_BESIDE: "notBeside";
|
|
971
|
-
readonly THROUGH: "through";
|
|
972
|
-
readonly TIGHT: "tight";
|
|
973
|
-
};
|
|
974
|
-
interface BaseFrameOptions {
|
|
975
|
-
anchorLock?: boolean;
|
|
976
|
-
dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
977
|
-
width: number;
|
|
978
|
-
height: number;
|
|
979
|
-
wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
|
|
980
|
-
lines?: number;
|
|
981
|
-
anchor: {
|
|
982
|
-
horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
983
|
-
vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
1092
|
+
//#region src/shared/media/data.d.ts
|
|
1093
|
+
interface MediaDataTransformation {
|
|
1094
|
+
offset?: {
|
|
1095
|
+
pixels: {
|
|
1096
|
+
x: number;
|
|
1097
|
+
y: number;
|
|
1098
|
+
};
|
|
1099
|
+
emus?: {
|
|
1100
|
+
x: number;
|
|
1101
|
+
y: number;
|
|
1102
|
+
};
|
|
984
1103
|
};
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1104
|
+
pixels: {
|
|
1105
|
+
x: number;
|
|
1106
|
+
y: number;
|
|
988
1107
|
};
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
type XYFrameOptions = {
|
|
992
|
-
type: "absolute";
|
|
993
|
-
position: {
|
|
1108
|
+
emus: {
|
|
994
1109
|
x: number;
|
|
995
1110
|
y: number;
|
|
996
1111
|
};
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
alignment: {
|
|
1001
|
-
x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1002
|
-
y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1112
|
+
flip?: {
|
|
1113
|
+
vertical?: boolean;
|
|
1114
|
+
horizontal?: boolean;
|
|
1003
1115
|
};
|
|
1004
|
-
|
|
1005
|
-
type FrameOptions$1 = XYFrameOptions | AlignmentFrameOptions;
|
|
1006
|
-
//#endregion
|
|
1007
|
-
//#region src/parts/paragraph/run/empty-children.d.ts
|
|
1008
|
-
interface NoBreakHyphen {
|
|
1009
|
-
noBreakHyphen: true;
|
|
1010
|
-
}
|
|
1011
|
-
interface SoftHyphen {
|
|
1012
|
-
softHyphen: true;
|
|
1013
|
-
}
|
|
1014
|
-
interface DayShort {
|
|
1015
|
-
dayShort: true;
|
|
1016
|
-
}
|
|
1017
|
-
interface MonthShort {
|
|
1018
|
-
monthShort: true;
|
|
1019
|
-
}
|
|
1020
|
-
interface YearShort {
|
|
1021
|
-
yearShort: true;
|
|
1022
|
-
}
|
|
1023
|
-
interface DayLong {
|
|
1024
|
-
dayLong: true;
|
|
1025
|
-
}
|
|
1026
|
-
interface MonthLong {
|
|
1027
|
-
monthLong: true;
|
|
1028
|
-
}
|
|
1029
|
-
interface YearLong {
|
|
1030
|
-
yearLong: true;
|
|
1031
|
-
}
|
|
1032
|
-
interface AnnotationReference {
|
|
1033
|
-
annotationRef: true;
|
|
1034
|
-
}
|
|
1035
|
-
interface FootnoteReferenceElement {
|
|
1036
|
-
footnoteRef: true;
|
|
1037
|
-
}
|
|
1038
|
-
interface EndnoteReference {
|
|
1039
|
-
endnoteRef: true;
|
|
1040
|
-
}
|
|
1041
|
-
interface Separator {
|
|
1042
|
-
separator: true;
|
|
1043
|
-
}
|
|
1044
|
-
interface ContinuationSeparator {
|
|
1045
|
-
continuationSeparator: true;
|
|
1046
|
-
}
|
|
1047
|
-
interface PageNumberElement {
|
|
1048
|
-
pgNum: true;
|
|
1049
|
-
}
|
|
1050
|
-
interface CarriageReturn {
|
|
1051
|
-
carriageReturn: true;
|
|
1052
|
-
}
|
|
1053
|
-
interface Tab {
|
|
1054
|
-
tab: true;
|
|
1116
|
+
rotation?: number;
|
|
1055
1117
|
}
|
|
1056
|
-
interface
|
|
1057
|
-
|
|
1118
|
+
interface CoreMediaData {
|
|
1119
|
+
fileName: string;
|
|
1120
|
+
transformation: MediaDataTransformation;
|
|
1121
|
+
data: Uint8Array;
|
|
1122
|
+
srcRect?: SourceRectangleOptions;
|
|
1058
1123
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
declare const CombineBracketsType: {
|
|
1062
|
-
readonly NONE: "none";
|
|
1063
|
-
readonly ROUND: "round";
|
|
1064
|
-
readonly SQUARE: "square";
|
|
1065
|
-
readonly ANGLE: "angle";
|
|
1066
|
-
readonly CURLY: "curly";
|
|
1067
|
-
};
|
|
1068
|
-
interface EastAsianLayoutOptions {
|
|
1069
|
-
id?: number;
|
|
1070
|
-
combine?: boolean;
|
|
1071
|
-
combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
1072
|
-
vert?: boolean;
|
|
1073
|
-
vertCompress?: boolean;
|
|
1124
|
+
interface RegularMediaData {
|
|
1125
|
+
type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
|
|
1074
1126
|
}
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
readonly NONE: "none";
|
|
1079
|
-
readonly COMMA: "comma";
|
|
1080
|
-
readonly CIRCLE: "circle";
|
|
1081
|
-
readonly DOT: "dot";
|
|
1082
|
-
readonly UNDER_DOT: "underDot";
|
|
1083
|
-
};
|
|
1084
|
-
//#endregion
|
|
1085
|
-
//#region src/parts/paragraph/run/formatting.d.ts
|
|
1086
|
-
interface ColorOptions {
|
|
1087
|
-
val?: string;
|
|
1088
|
-
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
1089
|
-
themeTint?: string;
|
|
1090
|
-
themeShade?: string;
|
|
1127
|
+
interface SvgMediaData {
|
|
1128
|
+
type: "svg";
|
|
1129
|
+
fallback: RegularMediaData & CoreMediaData;
|
|
1091
1130
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
eastAsia?: string;
|
|
1097
|
-
bidirectional?: string;
|
|
1131
|
+
interface WpsMediaData {
|
|
1132
|
+
type: "wps";
|
|
1133
|
+
transformation: MediaDataTransformation;
|
|
1134
|
+
data: WpsShapeCoreOptions;
|
|
1098
1135
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
ascii?: string;
|
|
1103
|
-
cs?: string;
|
|
1104
|
-
eastAsia?: string;
|
|
1105
|
-
hAnsi?: string;
|
|
1106
|
-
hint?: string;
|
|
1107
|
-
asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
1108
|
-
hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
1109
|
-
eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
1110
|
-
cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
1136
|
+
interface WpgCommonMediaData {
|
|
1137
|
+
outline?: OutlineOptions;
|
|
1138
|
+
fill?: FillOptions;
|
|
1111
1139
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
readonly DASH: "dash";
|
|
1122
|
-
readonly DASHEDHEAVY: "dashedHeavy";
|
|
1123
|
-
readonly DASHLONG: "dashLong";
|
|
1124
|
-
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
1125
|
-
readonly DOTDASH: "dotDash";
|
|
1126
|
-
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
1127
|
-
readonly DOTDOTDASH: "dotDotDash";
|
|
1128
|
-
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
1129
|
-
readonly WAVE: "wave";
|
|
1130
|
-
readonly WAVYHEAVY: "wavyHeavy";
|
|
1131
|
-
readonly WAVYDOUBLE: "wavyDouble";
|
|
1132
|
-
readonly NONE: "none";
|
|
1133
|
-
};
|
|
1134
|
-
//#endregion
|
|
1135
|
-
//#region src/parts/paragraph/run/properties.d.ts
|
|
1136
|
-
interface RunFontReference {
|
|
1137
|
-
name: string;
|
|
1138
|
-
hint?: string;
|
|
1140
|
+
type GroupChildMediaData = (WpsMediaData | MediaData) & WpgCommonMediaData;
|
|
1141
|
+
interface WpgMediaData {
|
|
1142
|
+
type: "wpg";
|
|
1143
|
+
transformation: MediaDataTransformation;
|
|
1144
|
+
children: GroupChildMediaData[];
|
|
1145
|
+
chOff?: ChildOffset;
|
|
1146
|
+
chExt?: ChildExtent;
|
|
1147
|
+
fill?: FillOptions;
|
|
1148
|
+
effects?: EffectListOptions;
|
|
1139
1149
|
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
readonly ANTS_RED: "antsRed";
|
|
1145
|
-
readonly SHIMMER: "shimmer";
|
|
1146
|
-
readonly SPARKLE: "sparkle";
|
|
1147
|
-
readonly NONE: "none";
|
|
1148
|
-
};
|
|
1149
|
-
declare const HighlightColor: {
|
|
1150
|
-
readonly BLACK: "black";
|
|
1151
|
-
readonly BLUE: "blue";
|
|
1152
|
-
readonly CYAN: "cyan";
|
|
1153
|
-
readonly DARK_BLUE: "darkBlue";
|
|
1154
|
-
readonly DARK_CYAN: "darkCyan";
|
|
1155
|
-
readonly DARK_GRAY: "darkGray";
|
|
1156
|
-
readonly DARK_GREEN: "darkGreen";
|
|
1157
|
-
readonly DARK_MAGENTA: "darkMagenta";
|
|
1158
|
-
readonly DARK_RED: "darkRed";
|
|
1159
|
-
readonly DARK_YELLOW: "darkYellow";
|
|
1160
|
-
readonly GREEN: "green";
|
|
1161
|
-
readonly LIGHT_GRAY: "lightGray";
|
|
1162
|
-
readonly MAGENTA: "magenta";
|
|
1163
|
-
readonly NONE: "none";
|
|
1164
|
-
readonly RED: "red";
|
|
1165
|
-
readonly WHITE: "white";
|
|
1166
|
-
readonly YELLOW: "yellow";
|
|
1167
|
-
};
|
|
1168
|
-
interface RunStylePropertiesOptions {
|
|
1169
|
-
noProof?: boolean;
|
|
1170
|
-
bold?: boolean;
|
|
1171
|
-
boldComplexScript?: boolean;
|
|
1172
|
-
italic?: boolean;
|
|
1173
|
-
italicComplexScript?: boolean;
|
|
1174
|
-
underline?: {
|
|
1175
|
-
color?: string;
|
|
1176
|
-
type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
1177
|
-
};
|
|
1178
|
-
effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
1179
|
-
emphasisMark?: {
|
|
1180
|
-
type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
1181
|
-
};
|
|
1182
|
-
color?: string | ColorOptions;
|
|
1183
|
-
kern?: number;
|
|
1184
|
-
position?: string;
|
|
1185
|
-
size?: number;
|
|
1186
|
-
sizeComplexScript?: boolean | number;
|
|
1187
|
-
rightToLeft?: boolean;
|
|
1188
|
-
smallCaps?: boolean;
|
|
1189
|
-
allCaps?: boolean;
|
|
1190
|
-
strike?: boolean;
|
|
1191
|
-
doubleStrike?: boolean;
|
|
1192
|
-
subScript?: boolean;
|
|
1193
|
-
superScript?: boolean;
|
|
1194
|
-
font?: string | RunFontReference | FontAttributesProperties;
|
|
1195
|
-
highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
1196
|
-
highlightComplexScript?: boolean | string;
|
|
1197
|
-
characterSpacing?: number;
|
|
1198
|
-
shading?: ShadingAttributesProperties;
|
|
1199
|
-
emboss?: boolean;
|
|
1200
|
-
imprint?: boolean;
|
|
1201
|
-
revision?: RunPropertiesChangeOptions;
|
|
1202
|
-
language?: LanguageOptions;
|
|
1203
|
-
border?: BorderOptions;
|
|
1204
|
-
snapToGrid?: boolean;
|
|
1205
|
-
vanish?: boolean;
|
|
1206
|
-
specVanish?: boolean;
|
|
1207
|
-
scale?: number;
|
|
1208
|
-
math?: boolean;
|
|
1209
|
-
outline?: boolean;
|
|
1210
|
-
shadow?: boolean;
|
|
1211
|
-
webHidden?: boolean;
|
|
1212
|
-
fitText?: number;
|
|
1213
|
-
complexScript?: boolean;
|
|
1214
|
-
eastAsianLayout?: EastAsianLayoutOptions;
|
|
1215
|
-
contentPartRId?: string;
|
|
1150
|
+
interface ChartMediaData {
|
|
1151
|
+
type: "chart";
|
|
1152
|
+
transformation: MediaDataTransformation;
|
|
1153
|
+
chartKey: string;
|
|
1216
1154
|
}
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1155
|
+
interface SmartArtMediaData {
|
|
1156
|
+
type: "smartart";
|
|
1157
|
+
transformation: MediaDataTransformation;
|
|
1158
|
+
smartArtKey: string;
|
|
1159
|
+
}
|
|
1160
|
+
type ExtendedMediaData = MediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
|
|
1161
|
+
type MediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
1162
|
+
declare const WORKAROUND2 = "";
|
|
1225
1163
|
//#endregion
|
|
1226
|
-
//#region src/
|
|
1227
|
-
interface
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1164
|
+
//#region src/shared/media/media.d.ts
|
|
1165
|
+
interface MediaTransformation {
|
|
1166
|
+
offset?: {
|
|
1167
|
+
top?: number | UniversalMeasure;
|
|
1168
|
+
left?: number | UniversalMeasure;
|
|
1169
|
+
};
|
|
1170
|
+
width: number | UniversalMeasure;
|
|
1171
|
+
height: number | UniversalMeasure;
|
|
1172
|
+
flip?: {
|
|
1173
|
+
vertical?: boolean;
|
|
1174
|
+
horizontal?: boolean;
|
|
1175
|
+
};
|
|
1176
|
+
rotation?: number;
|
|
1231
1177
|
}
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1178
|
+
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
1179
|
+
declare class Media {
|
|
1180
|
+
private map;
|
|
1181
|
+
constructor();
|
|
1182
|
+
addImage(key: string, mediaData: MediaData): void;
|
|
1183
|
+
get array(): MediaData[];
|
|
1184
|
+
}
|
|
1185
|
+
//#endregion
|
|
1186
|
+
//#region src/parts/drawing/text-wrap/text-wrapping.d.ts
|
|
1187
|
+
declare const TextWrappingType: {
|
|
1188
|
+
readonly NONE: 0;
|
|
1189
|
+
readonly SQUARE: 1;
|
|
1190
|
+
readonly TIGHT: 2;
|
|
1191
|
+
readonly TOP_AND_BOTTOM: 3;
|
|
1192
|
+
readonly THROUGH: 4;
|
|
1235
1193
|
};
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
readonly
|
|
1239
|
-
readonly
|
|
1240
|
-
readonly
|
|
1241
|
-
readonly CURRENT_SECTION: "SECTION";
|
|
1194
|
+
declare const TextWrappingSide: {
|
|
1195
|
+
readonly BOTH_SIDES: "bothSides";
|
|
1196
|
+
readonly LEFT: "left";
|
|
1197
|
+
readonly RIGHT: "right";
|
|
1198
|
+
readonly LARGEST: "largest";
|
|
1242
1199
|
};
|
|
1200
|
+
interface TextWrapping {
|
|
1201
|
+
type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
1202
|
+
side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
1203
|
+
margins?: Distance;
|
|
1204
|
+
}
|
|
1243
1205
|
//#endregion
|
|
1244
|
-
//#region src/parts/
|
|
1245
|
-
declare const
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1206
|
+
//#region src/parts/drawing/text-wrap/wrap-tight.d.ts
|
|
1207
|
+
declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
1208
|
+
x: number;
|
|
1209
|
+
y: number;
|
|
1210
|
+
}) => string;
|
|
1211
|
+
//#endregion
|
|
1212
|
+
//#region src/parts/drawing/text-wrap/wrap-through.d.ts
|
|
1213
|
+
declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
1214
|
+
x: number;
|
|
1215
|
+
y: number;
|
|
1216
|
+
}) => string;
|
|
1217
|
+
//#endregion
|
|
1218
|
+
//#region src/parts/drawing/floating/floating-position.d.ts
|
|
1219
|
+
declare const HorizontalPositionRelativeFrom: {
|
|
1220
|
+
readonly CHARACTER: "character";
|
|
1221
|
+
readonly COLUMN: "column";
|
|
1222
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
1223
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
1224
|
+
readonly MARGIN: "margin";
|
|
1225
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1226
|
+
readonly PAGE: "page";
|
|
1227
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
1251
1228
|
};
|
|
1252
|
-
declare const
|
|
1253
|
-
readonly
|
|
1254
|
-
readonly
|
|
1255
|
-
readonly
|
|
1256
|
-
readonly
|
|
1257
|
-
readonly
|
|
1229
|
+
declare const VerticalPositionRelativeFrom: {
|
|
1230
|
+
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
1231
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
1232
|
+
readonly LINE: "line";
|
|
1233
|
+
readonly MARGIN: "margin";
|
|
1234
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1235
|
+
readonly PAGE: "page";
|
|
1236
|
+
readonly PARAGRAPH: "paragraph";
|
|
1237
|
+
readonly TOP_MARGIN: "topMargin";
|
|
1258
1238
|
};
|
|
1259
|
-
interface
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
autoSpaceDE?: boolean;
|
|
1286
|
-
textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
1287
|
-
textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
1288
|
-
textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
1289
|
-
outlineLevel?: number;
|
|
1290
|
-
divId?: number;
|
|
1291
|
-
cnfStyle?: CnfConditionalOptions;
|
|
1239
|
+
interface HorizontalPositionOptions {
|
|
1240
|
+
relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
1241
|
+
align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1242
|
+
offset?: number | UniversalMeasure;
|
|
1243
|
+
}
|
|
1244
|
+
interface VerticalPositionOptions {
|
|
1245
|
+
relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
1246
|
+
align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1247
|
+
offset?: number | UniversalMeasure;
|
|
1248
|
+
}
|
|
1249
|
+
interface Margins {
|
|
1250
|
+
left?: number | UniversalMeasure;
|
|
1251
|
+
bottom?: number | UniversalMeasure;
|
|
1252
|
+
top?: number | UniversalMeasure;
|
|
1253
|
+
right?: number | UniversalMeasure;
|
|
1254
|
+
}
|
|
1255
|
+
interface Floating {
|
|
1256
|
+
horizontalPosition: HorizontalPositionOptions;
|
|
1257
|
+
verticalPosition: VerticalPositionOptions;
|
|
1258
|
+
allowOverlap?: boolean;
|
|
1259
|
+
lockAnchor?: boolean;
|
|
1260
|
+
behindDocument?: boolean;
|
|
1261
|
+
layoutInCell?: boolean;
|
|
1262
|
+
margins?: Margins;
|
|
1263
|
+
wrap?: TextWrapping;
|
|
1264
|
+
zIndex?: number;
|
|
1292
1265
|
}
|
|
1293
|
-
type ParagraphStylePropertiesOptions = {
|
|
1294
|
-
border?: BordersOptions;
|
|
1295
|
-
shading?: ShadingAttributesProperties;
|
|
1296
|
-
numbering?: {
|
|
1297
|
-
reference: string;
|
|
1298
|
-
level: number;
|
|
1299
|
-
instance?: number;
|
|
1300
|
-
custom?: boolean;
|
|
1301
|
-
numberingChange?: {
|
|
1302
|
-
original: string;
|
|
1303
|
-
id: string;
|
|
1304
|
-
author: string;
|
|
1305
|
-
date?: string;
|
|
1306
|
-
};
|
|
1307
|
-
} | false;
|
|
1308
|
-
} & LevelParagraphStylePropertiesOptions;
|
|
1309
|
-
type ParagraphPropertiesOptionsBase = {
|
|
1310
|
-
heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
1311
|
-
style?: string;
|
|
1312
|
-
bullet?: {
|
|
1313
|
-
level: number;
|
|
1314
|
-
};
|
|
1315
|
-
run?: ParagraphRunOptions;
|
|
1316
|
-
} & ParagraphStylePropertiesOptions;
|
|
1317
|
-
type ParagraphPropertiesChangeOptions = ChangedAttributesProperties & ParagraphPropertiesOptionsBase;
|
|
1318
|
-
type ParagraphPropertiesOptions = {
|
|
1319
|
-
revision?: ParagraphPropertiesChangeOptions;
|
|
1320
|
-
includeIfEmpty?: boolean;
|
|
1321
|
-
} & ParagraphPropertiesOptionsBase;
|
|
1322
1266
|
//#endregion
|
|
1323
|
-
//#region src/parts/
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1267
|
+
//#region src/parts/drawing/floating/horizontal-position.d.ts
|
|
1268
|
+
declare const createHorizontalPosition: ({
|
|
1269
|
+
relative,
|
|
1270
|
+
align,
|
|
1271
|
+
offset
|
|
1272
|
+
}: HorizontalPositionOptions) => string;
|
|
1273
|
+
//#endregion
|
|
1274
|
+
//#region src/parts/drawing/floating/vertical-position.d.ts
|
|
1275
|
+
declare const createVerticalPosition: ({
|
|
1276
|
+
relative,
|
|
1277
|
+
align,
|
|
1278
|
+
offset
|
|
1279
|
+
}: VerticalPositionOptions) => string;
|
|
1280
|
+
//#endregion
|
|
1281
|
+
//#region src/parts/drawing/drawing.d.ts
|
|
1282
|
+
interface Distance {
|
|
1283
|
+
distT?: number;
|
|
1284
|
+
distB?: number;
|
|
1285
|
+
distL?: number;
|
|
1286
|
+
distR?: number;
|
|
1287
|
+
}
|
|
1288
|
+
interface DrawingOptions {
|
|
1289
|
+
floating?: Floating;
|
|
1290
|
+
docProperties?: DocPropertiesOptions;
|
|
1291
|
+
outline?: OutlineOptions;
|
|
1292
|
+
fill?: FillOptions;
|
|
1293
|
+
effects?: EffectListOptions;
|
|
1294
|
+
blipEffects?: BlipEffectsOptions;
|
|
1295
|
+
tile?: TileOptions;
|
|
1296
|
+
}
|
|
1297
|
+
//#endregion
|
|
1298
|
+
//#region src/parts/drawing/descriptor.d.ts
|
|
1299
|
+
interface DrawingDescriptorOptions {
|
|
1300
|
+
mediaData: ExtendedMediaData;
|
|
1301
|
+
docProperties?: DocPropertiesOptions;
|
|
1302
|
+
floating?: Floating;
|
|
1303
|
+
outline?: OutlineOptions;
|
|
1304
|
+
fill?: FillOptions;
|
|
1305
|
+
effects?: EffectListOptions;
|
|
1306
|
+
blipEffects?: BlipEffectsOptions;
|
|
1307
|
+
tile?: TileOptions;
|
|
1308
|
+
}
|
|
1309
|
+
declare const resetDrawingIdGen: () => void;
|
|
1310
|
+
declare const drawingDesc: CustomDescriptor<DrawingDescriptorOptions, BodyContext>;
|
|
1328
1311
|
//#endregion
|
|
1329
1312
|
//#region src/parts/paragraph/run/image-run.d.ts
|
|
1330
1313
|
interface CoreImageOptions {
|
|
@@ -1357,6 +1340,23 @@ interface ChartOptions extends ChartSpaceOptions {
|
|
|
1357
1340
|
altText?: DocPropertiesOptions;
|
|
1358
1341
|
}
|
|
1359
1342
|
//#endregion
|
|
1343
|
+
//#region src/parts/paragraph/run/smartart-run.d.ts
|
|
1344
|
+
interface SmartArtNode {
|
|
1345
|
+
text: string;
|
|
1346
|
+
children?: SmartArtNode[];
|
|
1347
|
+
}
|
|
1348
|
+
interface SmartArtOptions {
|
|
1349
|
+
data: {
|
|
1350
|
+
nodes: SmartArtNode[];
|
|
1351
|
+
};
|
|
1352
|
+
transformation: MediaTransformation;
|
|
1353
|
+
floating?: Floating;
|
|
1354
|
+
altText?: DocPropertiesOptions;
|
|
1355
|
+
layout?: string;
|
|
1356
|
+
style?: string;
|
|
1357
|
+
color?: string;
|
|
1358
|
+
}
|
|
1359
|
+
//#endregion
|
|
1360
1360
|
//#region src/parts/paragraph/run/wps-shape-run.d.ts
|
|
1361
1361
|
interface CoreShapeOptions {
|
|
1362
1362
|
transformation: MediaTransformation;
|
|
@@ -1522,7 +1522,7 @@ interface MathChild {
|
|
|
1522
1522
|
children?: MathInput[];
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
|
-
type
|
|
1525
|
+
type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
1526
1526
|
symbolRun: SymbolRunOptions;
|
|
1527
1527
|
} | {
|
|
1528
1528
|
footnoteReference: number;
|
|
@@ -1678,12 +1678,12 @@ type ParagraphJsonChild = ChartChild | SmartArtChild | ImageChild | MathChild |
|
|
|
1678
1678
|
uri?: string;
|
|
1679
1679
|
}>;
|
|
1680
1680
|
};
|
|
1681
|
-
children?: (
|
|
1681
|
+
children?: (ParagraphChild | string)[];
|
|
1682
1682
|
};
|
|
1683
|
-
};
|
|
1683
|
+
} | RunOptions;
|
|
1684
1684
|
type ParagraphOptions = {
|
|
1685
1685
|
text?: string;
|
|
1686
|
-
children?: (
|
|
1686
|
+
children?: (ParagraphChild | string)[];
|
|
1687
1687
|
rsidR?: string;
|
|
1688
1688
|
rsidRPr?: string;
|
|
1689
1689
|
rsidRDefault?: string;
|
|
@@ -3507,5 +3507,5 @@ interface CorePropertiesInput {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesInput>;
|
|
3509
3509
|
//#endregion
|
|
3510
|
-
export { SettingsOptions as $, buildContentTypes as $a,
|
|
3511
|
-
//# sourceMappingURL=core-properties-
|
|
3510
|
+
export { SettingsOptions as $, buildContentTypes as $a, MonthLong as $i, ImageChild as $n, ExtendedMediaData as $r, PageTextDirectionType as $t, StylesOptions as A, BreakTypeValue as Aa, ParagraphStylePropertiesOptions as Ai, TableRowPropertiesChangeOptions as An, createImageData as Ar, SdtDataBindingOptions as At, HyphenationOptions as B, VerticalAlignTable as Ba, RunStylePropertiesOptions as Bi, TablePropertiesOptionsBase as Bn, HorizontalPositionRelativeFrom as Br, SubDocOptions as Bt, WebSettingsOptions as C, TabStopDefinition as Ca, WpgGroupCoreOptions as Ci, CustomXmlRunOptions as Cn, SimpleFieldOptions as Cr, DocumentAttributeNamespaces as Ct, SubDocCollection as D, LineRuleType as Da, ParagraphPropertiesChangeOptions as Di, TableOptions as Dn, SmartArtOptions as Dr, stringifyTableOfContents as Dt, webSettingsDesc as E, HeadingLevel as Ea, LevelParagraphStylePropertiesOptions as Ei, tableDesc as En, SmartArtNode as Er, VmlShapeStyle as Et, CaptionOptions as F, BorderStyle as Fa, RunOptions as Fi, TextDirection as Fn, DrawingOptions as Fr, SdtLock as Ft, MailMergeSourceType as G, ShadingType as Ga, AnnotationReference as Gi, RelativeVerticalPosition as Gn, createWrapTight as Gr, HeaderFooterReferenceType as Gt, MailMergeDest as H, CellMergeAttributes as Ha, UnderlineType as Hi, TableLayoutType as Hn, VerticalPositionOptions as Hr, sectionPropertiesDesc as Ht, CaptionsOptions as I, AlignmentType as Ia, HighlightColor as Ii, VerticalMergeType as In, createVerticalPosition as Ir, SdtPropertiesOptions as It, OdsoFieldType as J, AltChunkData as Ja, DayLong as Ji, TABLE_BORDERS_NONE as Jn, TextWrappingType as Jr, SectionType as Jt, MathPropertiesOptions as K, AltChunkOptions as Ka, CarriageReturn as Ki, TableAnchorType as Kn, TextWrapping as Kr, HeaderFooterType as Kt, DocumentProtectionOptions as L, SectionVerticalAlign as La, ParagraphRunPropertiesOptions as Li, TablePropertyExOptions as Ln, createHorizontalPosition as Lr, SdtTextOptions as Lt, buildStyleCache as M, CnfConditionalOptions as Ma, TextboxTightWrapType as Mi, TableRowPropertiesOptionsBase as Mn, drawingDesc as Mr, SdtDateOptions as Mt, parseStyleDefinitions as N, BordersOptions as Na, PageNumber as Ni, HeightRule as Nn, resetDrawingIdGen as Nr, SdtDropDownListOptions as Nt, SubDocData as O, SpacingProperties as Oa, ParagraphPropertiesOptions as Oi, TableRowOptions as On, ChartOptions as Or, parseToc as Ot, AutoCaptionOptions as P, BorderOptions as Pa, ParagraphRunOptions as Pi, TableCellBordersOptions as Pn, Distance as Pr, SdtListItem as Pt, RsidsOptions as Q, ContentTypesInput as Qa, LastRenderedPageBreak as Qi, ChartChild as Qn, ChartMediaData as Qr, createLineNumberType as Qt, EndnotePropertiesOptions as R, TableVerticalAlign as Ra, RunPropertiesChangeOptions as Ri, TablePropertiesChangeOptions as Rn, Floating as Rr, StyleLevel as Rt, WebSettingsInput as S, LeaderType as Sa, GroupChild as Si, CustomXmlRowOptions as Sn, CommentsOptions as Sr, DocumentAttributeNamespace as St, framesetXml as T, TabStopType as Ta, SymbolRunOptions as Ti, setTableParseChild as Tn, WpsShapeRunOptions as Tr, SectionOptions as Tt, MailMergeDocType as U, VerticalMergeRevisionType as Ua, FontAttributesProperties as Ui, OverlapType as Un, VerticalPositionRelativeFrom as Ur, stringifySectionPropertiesXml as Ut, MailMergeDataType as V, createVerticalAlign as Va, TextEffect as Vi, TableLookOptions as Vn, Margins as Vr, parseSectionPropertiesEl as Vt, MailMergeOptions as W, ShadingAttributesProperties as Wa, EmphasisMarkType as Wi, RelativeHorizontalPosition as Wn, createWrapThrough as Wr, HeaderFooterReferenceOptions as Wt, ReadModeInkLockDownOptions as X, ContentTypeDefault as Xa, EndnoteReference as Xi, TableWidthProperties as Xn, MediaTransformation as Xr, LineNumberAttributes as Xt, OdsoOptions as Y, CharacterSet as Ya, DayShort as Yi, TableBordersOptions as Yn, Media as Yr, createSectionType as Yt, RevisionViewOptions as Z, ContentTypeOverride as Za, FootnoteReferenceElement as Zi, WidthType as Zn, createTransformation as Zr, LineNumberRestartFormat as Zt, parseDocument as _, VerticalPositionAlign as _a, TextVerticalType as _i, CustomXmlAttributeOptions as _n, PositionalTabAlignment as _r, SectionPropertiesChangeOptions as _t, DocumentBackgroundOptions as a, Tab as aa, WpgCommonMediaData as ai, PageBordersOptions as an, ProofErrorTypeValue as ar, NumberingOptions as at, DivOptions as b, MathScriptType as ba, ChildExtent as bi, CustomXmlDataBindingOptions as bn, PositionalTabRelativeTo as br, sectionMarginDefaults as bt, customPropertiesDesc as c, AlignmentFrameOptions as ca, WpsShapeCoreOptions as ci, createPageNumberType as cn, DropDownListOptions as cr, LevelSuffix as ct, BodyContext as d, FrameOptions$1 as da, FlatTextOptions as di, createPageSize as dn, FormFieldTextOptions as dr, DocPartGallery as dt, MonthShort as ea, GroupChildMediaData as ei, PageMarginAttributes as en, contentTypesDesc as eo, MathChild as er, WriteProtectionOptions as et, DocxReadContext as f, FrameWrap as fa, NormalAutofitOptions as fi, DocGridAttributesProperties as fn, FormFieldTextType as fr, DocPartOptions as ft, parseArchive as g, SpaceType as ga, TextVertOverflowType as gi, ColumnAttributes as gn, RubyOptions as gr, HeaderFooterGroup as gt, DocxPartRefs as h, NumberFormat as ha, TextHorzOverflowType as hi, ColumnsAttributes as hn, RubyAlign as hr, glossaryDesc as ht, BackgroundImageOptions as i, SoftHyphen as ia, WORKAROUND2 as ii, PageBorderZOrder as in, ProofErrorType as ir, Numbering as it, buildNumberingCache as j, IndentAttributesProperties as ja, TextAlignmentType as ji, TableRowPropertiesOptions as jn, DrawingDescriptorOptions as jr, SdtDateMappingType as jt, Styles as k, BreakType as ka, ParagraphPropertiesOptionsBase as ki, CnfStyleOptions as kn, ImageOptions as kr, SdtComboBoxOptions as kt, settingsDesc as l, DropCapType as la, WpsShapeOptions as li, PageOrientation as ln, FormFieldCommonOptions as lr, LevelsOptions as lt, DocxDocument as m, HorizontalPositionAlign as ma, TextBodyWrappingType as mi, createDocumentGrid as mn, createFormFieldData as mr, GlossaryDocumentOptions as mt, DocumentOptions as n, PageNumberElement as na, MediaDataTransformation as ni, PageBorderDisplay as nn, SourceTypeOptions as no, ParagraphOptions as nr, ConcreteNumberingOptions as nt, CustomPropertiesInput as o, YearLong as oa, WpgMediaData as oi, PageNumberSeparator as on, SmartTagRunOptions as or, parseNumberingDefinitions as ot, DocxWriteContext as p, XYFrameOptions as pa, PresetTextShapeOptions as pi, DocumentGridType as pn, TextInputOptions as pr, DocPartType as pt, OdsoFieldMapDataOptions as q, AltChunkCollection as qa, ContinuationSeparator as qi, TableFloatOptions as qn, TextWrappingSide as qr, createHeaderFooterReference as qt, corePropertiesDesc as r, Separator as ra, SmartArtMediaData as ri, PageBorderOffsetFrom as rn, bibliographyDesc as ro, SmartArtChild as rr, AbstractNumberingOptions as rt, CustomPropertyOptions as s, YearShort as sa, WpsMediaData as si, PageNumberTypeAttributes as sn, CheckBoxOptions as sr, LevelFormat as st, CorePropertiesInput as t, NoBreakHyphen as ta, MediaData as ti, createPageMargin as tn, BibliographyOptions as to, ParagraphChild as tr, CompatibilityOptions as tt, EmbeddedFontOptionsWithKey as u, FrameAnchorType as ua, BodyPropertiesOptions as ui, PageSizeAttributes as un, FormFieldOptions as ur, DocPartBehavior as ut, parseDocx as v, MathInput as va, VerticalAnchor as vi, CustomXmlBlockOptions as vn, PositionalTabLeader as vr, SectionPropertiesOptions as vt, frameXml as w, TabStopPosition as wa, WpgGroupOptions as wi, TableCellOptions as wn, WpgGroupRunOptions as wr, SectionChild as wt, TargetScreenSize as x, MathStyleType as xa, ChildOffset as xi, CustomXmlPrOptions as xn, CommentOptions as xr, sectionPageSizeDefaults as xt, DivBorderOptions as y, MathRunPropertiesOptions as ya, createBodyProperties as yi, CustomXmlCellOptions as yn, PositionalTabOptions as yr, SectionPropertiesOptionsBase as yt, FootnotePropertiesOptions as z, VerticalAlignSection as za, RunPropertiesOptions as zi, TablePropertiesOptions as zn, HorizontalPositionOptions as zr, TableOfContentsOptions as zt };
|
|
3511
|
+
//# sourceMappingURL=core-properties-Bh8_D5Kh.d.mts.map
|