@sunertech/docx 10.0.6 → 10.0.8

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
@@ -6,6 +6,9 @@
6
6
  Easily generate and modify .docx files with JS/TS. Works for Node and on the Browser.
7
7
  </p>
8
8
 
9
+ <p align="center">
10
+ This fork supports Chart
11
+ </p>
9
12
  ---
10
13
 
11
14
  [![NPM version][npm-image]][npm-url]
@@ -20,6 +23,7 @@
20
23
  <img src="https://i.imgur.com/QeL1HuU.png" alt="drawing"/>
21
24
  </p>
22
25
 
26
+
23
27
  # Demo
24
28
 
25
29
  ## Browser
package/dist/index.cjs CHANGED
@@ -10254,7 +10254,7 @@ class Marker extends XmlComponent {
10254
10254
  constructor({ symbol, size, shape, extensionList }) {
10255
10255
  super("c:marker");
10256
10256
  if (symbol) {
10257
- this.root.push(new StringEnumValueElement("c:symbol", symbol));
10257
+ this.root.push(new StringEnumValueElement("c:symbol", symbol, ""));
10258
10258
  }
10259
10259
  if (size !== void 0) {
10260
10260
  this.root.push(new NumberValueElement("c:size", size, ""));
@@ -17436,8 +17436,8 @@ class LineSeries extends XmlComponent {
17436
17436
  value: LineSerieColors[options.index % LineSerieColors.length],
17437
17437
  outline: {
17438
17438
  type: "solidFill",
17439
- solidFillType: "rgb",
17440
- value: "3F6EC3",
17439
+ solidFillType: "scheme",
17440
+ value: LineSerieColors[options.index % LineSerieColors.length],
17441
17441
  width: 47625,
17442
17442
  cap: LineCap.FLAT,
17443
17443
  dash: { type: "preset", value: PresetLineDash.SOLID }
package/dist/index.d.cts CHANGED
@@ -1661,7 +1661,7 @@ export declare type IPageSizeAttributes = {
1661
1661
  };
1662
1662
 
1663
1663
  export declare type IParagraphOptions = {
1664
- readonly text?: string;
1664
+ readonly text?: string | IRunOptions;
1665
1665
  readonly children?: readonly ParagraphChild[];
1666
1666
  } & IParagraphPropertiesOptions;
1667
1667
 
package/dist/index.d.ts CHANGED
@@ -1661,7 +1661,7 @@ export declare type IPageSizeAttributes = {
1661
1661
  };
1662
1662
 
1663
1663
  export declare type IParagraphOptions = {
1664
- readonly text?: string;
1664
+ readonly text?: string | IRunOptions;
1665
1665
  readonly children?: readonly ParagraphChild[];
1666
1666
  } & IParagraphPropertiesOptions;
1667
1667
 
@@ -10254,7 +10254,7 @@ var docx = (function(exports) {
10254
10254
  constructor({ symbol, size, shape, extensionList }) {
10255
10255
  super("c:marker");
10256
10256
  if (symbol) {
10257
- this.root.push(new StringEnumValueElement("c:symbol", symbol));
10257
+ this.root.push(new StringEnumValueElement("c:symbol", symbol, ""));
10258
10258
  }
10259
10259
  if (size !== void 0) {
10260
10260
  this.root.push(new NumberValueElement("c:size", size, ""));
@@ -17436,8 +17436,8 @@ var docx = (function(exports) {
17436
17436
  value: LineSerieColors[options.index % LineSerieColors.length],
17437
17437
  outline: {
17438
17438
  type: "solidFill",
17439
- solidFillType: "rgb",
17440
- value: "3F6EC3",
17439
+ solidFillType: "scheme",
17440
+ value: LineSerieColors[options.index % LineSerieColors.length],
17441
17441
  width: 47625,
17442
17442
  cap: LineCap.FLAT,
17443
17443
  dash: { type: "preset", value: PresetLineDash.SOLID }
package/dist/index.mjs CHANGED
@@ -10252,7 +10252,7 @@ class Marker extends XmlComponent {
10252
10252
  constructor({ symbol, size, shape, extensionList }) {
10253
10253
  super("c:marker");
10254
10254
  if (symbol) {
10255
- this.root.push(new StringEnumValueElement("c:symbol", symbol));
10255
+ this.root.push(new StringEnumValueElement("c:symbol", symbol, ""));
10256
10256
  }
10257
10257
  if (size !== void 0) {
10258
10258
  this.root.push(new NumberValueElement("c:size", size, ""));
@@ -17434,8 +17434,8 @@ class LineSeries extends XmlComponent {
17434
17434
  value: LineSerieColors[options.index % LineSerieColors.length],
17435
17435
  outline: {
17436
17436
  type: "solidFill",
17437
- solidFillType: "rgb",
17438
- value: "3F6EC3",
17437
+ solidFillType: "scheme",
17438
+ value: LineSerieColors[options.index % LineSerieColors.length],
17439
17439
  width: 47625,
17440
17440
  cap: LineCap.FLAT,
17441
17441
  dash: { type: "preset", value: PresetLineDash.SOLID }
@@ -10256,7 +10256,7 @@ var __async = (__this, __arguments, generator) => {
10256
10256
  constructor({ symbol, size, shape, extensionList }) {
10257
10257
  super("c:marker");
10258
10258
  if (symbol) {
10259
- this.root.push(new StringEnumValueElement("c:symbol", symbol));
10259
+ this.root.push(new StringEnumValueElement("c:symbol", symbol, ""));
10260
10260
  }
10261
10261
  if (size !== void 0) {
10262
10262
  this.root.push(new NumberValueElement("c:size", size, ""));
@@ -17438,8 +17438,8 @@ var __async = (__this, __arguments, generator) => {
17438
17438
  value: LineSerieColors[options.index % LineSerieColors.length],
17439
17439
  outline: {
17440
17440
  type: "solidFill",
17441
- solidFillType: "rgb",
17442
- value: "3F6EC3",
17441
+ solidFillType: "scheme",
17442
+ value: LineSerieColors[options.index % LineSerieColors.length],
17443
17443
  width: 47625,
17444
17444
  cap: LineCap.FLAT,
17445
17445
  dash: { type: "preset", value: PresetLineDash.SOLID }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunertech/docx",
3
- "version": "10.0.6",
3
+ "version": "10.0.8",
4
4
  "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.cjs",