docx 7.2.0 → 7.3.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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img alt="clippy the assistant" src="https://i.imgur.com/37uBGhO.gif">
2
+ <img src="./logo/logo-animate.svg" width="100%" height="300" alt="clippy the assistant">
3
3
  </p>
4
4
 
5
5
  <p align="center">
@@ -85,8 +85,9 @@ Read the contribution guidelines [here](https://docx.js.org/#/contribution-guide
85
85
  [<img src="https://i.imgur.com/QEZXU5b.png" alt="drawing" height="50"/>](https://www.beekast.com/)
86
86
  [<img src="https://i.imgur.com/XVU6aoi.png" alt="drawing" height="50"/>](https://herraizsoto.com/)
87
87
  [<img src="https://i.imgur.com/fn1xccG.png" alt="drawing" height="50"/>](http://www.ativer.com.br/)
88
- [<img src="https://i.imgur.com/cmykN7c.png" alt="drawing" />](https://www.arity.co/)
88
+ [<img src="https://i.imgur.com/cmykN7c.png" alt="drawing"/>](https://www.arity.co/)
89
89
  [<img src="https://i.imgur.com/PXo25um.png" alt="drawing" height="50"/>](https://www.circadianrisk.com/)
90
+ [<img src="https://i.imgur.com/AKGhtlh.png" alt="drawing"/>](https://lexense.com/)
90
91
 
91
92
 
92
93
  ...and many more!
@@ -1,12 +1,22 @@
1
1
  import { XmlAttributeComponent, XmlComponent } from "../../../../../file/xml-components";
2
+ export declare enum DocumentGridType {
3
+ DEFAULT = "default",
4
+ LINES = "lines",
5
+ LINES_AND_CHARS = "linesAndChars",
6
+ SNAP_TO_CHARS = "snapToChars"
7
+ }
2
8
  export interface IDocGridAttributesProperties {
9
+ readonly type?: DocumentGridType;
3
10
  readonly linePitch?: number;
11
+ readonly charSpace?: number;
4
12
  }
5
13
  export declare class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesProperties> {
6
14
  protected readonly xmlKeys: {
15
+ type: string;
7
16
  linePitch: string;
17
+ charSpace: string;
8
18
  };
9
19
  }
10
20
  export declare class DocumentGrid extends XmlComponent {
11
- constructor(linePitch: number);
21
+ constructor(linePitch: number, charSpace?: number, type?: DocumentGridType);
12
22
  }
@@ -48,6 +48,6 @@ export declare const sectionPageSizeDefaults: {
48
48
  ORIENTATION: PageOrientation;
49
49
  };
50
50
  export declare class SectionProperties extends XmlComponent {
51
- constructor({ page: { size: { width, height, orientation, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, }?: ISectionPropertiesOptions);
51
+ constructor({ page: { size: { width, height, orientation, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch, charSpace, type: gridType }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, }?: ISectionPropertiesOptions);
52
52
  private addHeaderFooterGroup;
53
53
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ import { IChangedAttributesProperties } from "../../track-revision/track-revision";
1
2
  import { IShadingAttributesProperties } from "../../../file/shading";
2
3
  import { IgnoreIfEmptyXmlComponent, XmlComponent } from "../../../file/xml-components";
3
4
  import { EmphasisMarkType } from "./emphasis-mark";
@@ -36,12 +37,18 @@ export interface IRunStylePropertiesOptions {
36
37
  readonly shading?: IShadingAttributesProperties;
37
38
  readonly emboss?: boolean;
38
39
  readonly imprint?: boolean;
40
+ readonly revision?: IRunPropertiesChangeOptions;
39
41
  }
40
42
  export interface IRunPropertiesOptions extends IRunStylePropertiesOptions {
41
43
  readonly style?: string;
42
44
  }
45
+ export interface IRunPropertiesChangeOptions extends IRunPropertiesOptions, IChangedAttributesProperties {
46
+ }
43
47
  export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
44
48
  constructor(options?: IRunPropertiesOptions);
45
49
  push(item: XmlComponent): void;
46
50
  }
51
+ export declare class RunPropertiesChange extends XmlComponent {
52
+ constructor(options: IRunPropertiesChangeOptions);
53
+ }
47
54
  export {};