use hexColorValue in borders and underlines

This commit is contained in:
Tom Hunkapiller
2021-05-24 08:42:34 +03:00
parent ee105cdb83
commit 097c6a5962
16 changed files with 59 additions and 52 deletions

View File

@ -24,7 +24,7 @@ const doc = new Document({
size: 28,
bold: true,
italics: true,
color: "red",
color: "FF0000",
},
paragraph: {
spacing: {

View File

@ -36,17 +36,17 @@ const doc = new Document({
top: {
style: BorderStyle.DASH_DOT_STROKED,
size: 3,
color: "red",
color: "FF0000",
},
bottom: {
style: BorderStyle.DOUBLE,
size: 3,
color: "blue",
color: "0000FF",
},
left: {
style: BorderStyle.DASH_DOT_STROKED,
size: 3,
color: "green",
color: "00FF00",
},
right: {
style: BorderStyle.DASH_DOT_STROKED,

View File

@ -224,22 +224,22 @@ const borders = {
top: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "FF0000",
},
bottom: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "FF0000",
},
left: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "FF0000",
},
right: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "FF0000",
},
};

View File

@ -14,7 +14,7 @@ const doc = new Document({
children: [
new TextRun({
text: "Hello World",
color: "red",
color: "FF0000",
bold: true,
size: 24,
font: {

View File

@ -14,7 +14,7 @@ const doc = new Document({
children: [
new TextRun({
text: "Hello World",
color: "red",
color: "FF0000",
bold: true,
size: 24,
font: {

View File

@ -24,22 +24,22 @@ const table = new Table({
top: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "ff0000",
},
bottom: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "ff0000",
},
left: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "ff0000",
},
right: {
style: BorderStyle.DASH_SMALL_GAP,
size: 1,
color: "red",
color: "ff0000",
},
},
children: [new Paragraph("Hello")],

View File

@ -85,7 +85,7 @@ const doc = new Document({
new DeletedTextRun({
break: 1,
text: "in order",
color: "red",
color: "ff0000",
bold: true,
size: 24,
font: {