abstract-document 6.10.3 → 6.11.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/CHANGELOG.md +11 -1
- package/lib/abstract-document/atoms/atom.d.ts +2 -1
- package/lib/abstract-document/atoms/atom.d.ts.map +1 -1
- package/lib/abstract-document/atoms/line-break.d.ts +7 -0
- package/lib/abstract-document/atoms/line-break.d.ts.map +1 -0
- package/lib/abstract-document/atoms/line-break.js +10 -0
- package/lib/abstract-document/atoms/line-break.js.map +1 -0
- package/lib/abstract-document/index.d.ts +2 -1
- package/lib/abstract-document/index.d.ts.map +1 -1
- package/lib/abstract-document/index.js +3 -1
- package/lib/abstract-document/index.js.map +1 -1
- package/lib/abstract-document/markdown/markdown.d.ts.map +1 -1
- package/lib/abstract-document/markdown/markdown.js +5 -2
- package/lib/abstract-document/markdown/markdown.js.map +1 -1
- package/lib/abstract-document/markdown/types.d.ts +4 -1
- package/lib/abstract-document/markdown/types.d.ts.map +1 -1
- package/lib/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break-empty-lines.d.ts +3 -0
- package/lib/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break-empty-lines.d.ts.map +1 -0
- package/lib/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break-empty-lines.js +76 -0
- package/lib/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break-empty-lines.js.map +1 -0
- package/lib/{abstract-document-xml/__tests__/layer/test-defs/simple-document.d.ts → abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break.d.ts} +1 -1
- package/lib/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break.d.ts.map +1 -0
- package/lib/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break.js +73 -0
- package/lib/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break.js.map +1 -0
- package/lib/abstract-document-exporters/pdf/measure.d.ts.map +1 -1
- package/lib/abstract-document-exporters/pdf/measure.js +54 -30
- package/lib/abstract-document-exporters/pdf/measure.js.map +1 -1
- package/lib/abstract-document-exporters/pdf/render.js +10 -1
- package/lib/abstract-document-exporters/pdf/render.js.map +1 -1
- package/lib/abstract-document-jsx/index.d.ts +2 -1
- package/lib/abstract-document-jsx/index.d.ts.map +1 -1
- package/lib/abstract-document-jsx/index.js +3 -1
- package/lib/abstract-document-jsx/index.js.map +1 -1
- package/package.json +3 -3
- package/src/abstract-document/atoms/atom.ts +2 -7
- package/src/abstract-document/atoms/line-break.ts +11 -0
- package/src/abstract-document/index.ts +2 -0
- package/src/abstract-document/markdown/markdown.ts +4 -2
- package/src/abstract-document/markdown/types.ts +6 -1
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Group.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Header and footer.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Header → footer.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink and textrun.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed hyperlink → textrun.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun and images.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Mixed textrun → images.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple images.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple tables.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Center alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with End alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Multiple textrun with Start alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Page numbering.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan and rowSpan.docx and b/package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table colSpan → rowSpan.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table without rows.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Simple table.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single hyperlink.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single image.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Center alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with End alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment that linebreaks.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun with Start alignment.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/Single textrun.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/hello with Arial font.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/hello.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/letter-dimensions.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-landscape.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/page-orientation-portrait.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/tocSeparator.docx +0 -0
- package/src/abstract-document-exporters/__tests__/docx2/tmp/world.docx +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break-empty-lines.tsx +77 -0
- package/src/abstract-document-exporters/__tests__/pdf/test-defs/manual-line-break.tsx +73 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position group.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position header and footer.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position paragraph.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in group.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position section in table.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Absolute position table.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Paragraphs.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group Tables.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group no keeptogether.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Group too big for one page.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Header and footer.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal linktarget.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Hyperlink internal.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Manual line break.pdf +123 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Manual line breaks empty lines.pdf +123 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Margins header body footer.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun no underline.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun with underline.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed hyperlink and textrun.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun and images.pdf and b/package/src/abstract-document-exporters/__tests__/pdf/tmp/Mixed textrun → images.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images overflow.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple images.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Center alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with End alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Multiple textrun with Start alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Page numbering.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table row that doesnt fit page.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table single row.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with group.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header 2.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with header.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin bottom.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top single table.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with margin top.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan multipages.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Pagebreak table with rowSpan.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all auto.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table all fix.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table background.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of image.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table cell padding of text.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table center alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table colSpan and rowSpan.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table minimal row height.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table mix auto fix.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table padding.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table right alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table row alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell with wrapping.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table text alignment in cell.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with default colored borders.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with header.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with multi colored borders.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Simple table with single colored borders.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single date.pdf +14 -14
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single figure.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink centered.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink no underline.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink right aligned.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single hyperlink.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image from URL.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color hex.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color name.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg color url.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image svg dasharray.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single image.pdf +0 -0
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline alphabetic.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline bottom.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline hanging.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline middle.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline top.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Justify alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment that linebreaks.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with super and subscripts.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/Table of content separator.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/hello with roman font.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/hello.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/pagebreak.pdf +2 -2
- package/src/abstract-document-exporters/__tests__/pdf/tmp/world.pdf +2 -2
- package/src/abstract-document-exporters/pdf/measure.ts +68 -37
- package/src/abstract-document-exporters/pdf/render.ts +10 -1
- package/src/abstract-document-jsx/index.ts +2 -0
- package/lib/abstract-document-xml/__tests__/layer/export-test-def.d.ts +0 -13
- package/lib/abstract-document-xml/__tests__/layer/export-test-def.d.ts.map +0 -1
- package/lib/abstract-document-xml/__tests__/layer/export-test-def.js +0 -3
- package/lib/abstract-document-xml/__tests__/layer/export-test-def.js.map +0 -1
- package/lib/abstract-document-xml/__tests__/layer/export.test.d.ts +0 -3
- package/lib/abstract-document-xml/__tests__/layer/export.test.d.ts.map +0 -1
- package/lib/abstract-document-xml/__tests__/layer/export.test.js +0 -41
- package/lib/abstract-document-xml/__tests__/layer/export.test.js.map +0 -1
- package/lib/abstract-document-xml/__tests__/layer/test-defs/simple-document.d.ts.map +0 -1
- package/lib/abstract-document-xml/__tests__/layer/test-defs/simple-document.js +0 -361
- package/lib/abstract-document-xml/__tests__/layer/test-defs/simple-document.js.map +0 -1
package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline bottom.pdf
CHANGED
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<6fb638e74cd6ab478f56121e9ba1b0b8> <6fb638e74cd6ab478f56121e9ba1b0b8>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
824
|
package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline hanging.pdf
CHANGED
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<c38ed3206e814911bd40454ecccc5abe> <c38ed3206e814911bd40454ecccc5abe>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
825
|
package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun baseline middle.pdf
CHANGED
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<a8b875164b69f1b76da597e45f353d9f> <a8b875164b69f1b76da597e45f353d9f>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
825
|
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<df8ff007c54139828c0e6e4a2195d199> <df8ff007c54139828c0e6e4a2195d199>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
824
|
|
@@ -51,7 +51,7 @@ endobj
|
|
|
51
51
|
(PDFKit)
|
|
52
52
|
endobj
|
|
53
53
|
12 0 obj
|
|
54
|
-
(D:
|
|
54
|
+
(D:20230608065812Z)
|
|
55
55
|
endobj
|
|
56
56
|
9 0 obj
|
|
57
57
|
<<
|
|
@@ -114,7 +114,7 @@ trailer
|
|
|
114
114
|
/Size 13
|
|
115
115
|
/Root 3 0 R
|
|
116
116
|
/Info 9 0 R
|
|
117
|
-
/ID [<
|
|
117
|
+
/ID [<5aa8c31db49da96a882ad12308004bce> <5aa8c31db49da96a882ad12308004bce>]
|
|
118
118
|
>>
|
|
119
119
|
startxref
|
|
120
120
|
1427
|
package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Center alignment.pdf
CHANGED
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<e9d4f28e7d854cb346d3e6ba388f946c> <e9d4f28e7d854cb346d3e6ba388f946c>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
854
|
|
@@ -51,7 +51,7 @@ endobj
|
|
|
51
51
|
(PDFKit)
|
|
52
52
|
endobj
|
|
53
53
|
12 0 obj
|
|
54
|
-
(D:
|
|
54
|
+
(D:20230608065812Z)
|
|
55
55
|
endobj
|
|
56
56
|
9 0 obj
|
|
57
57
|
<<
|
|
@@ -114,7 +114,7 @@ trailer
|
|
|
114
114
|
/Size 13
|
|
115
115
|
/Root 3 0 R
|
|
116
116
|
/Info 9 0 R
|
|
117
|
-
/ID [<
|
|
117
|
+
/ID [<93d9a8db60abda27b0487774741b48a5> <93d9a8db60abda27b0487774741b48a5>]
|
|
118
118
|
>>
|
|
119
119
|
startxref
|
|
120
120
|
1427
|
package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with End alignment.pdf
CHANGED
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<d97f18a85e933a40e5e66524c283a493> <d97f18a85e933a40e5e66524c283a493>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
853
|
package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Justify alignment.pdf
CHANGED
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<0e6de0384d1fc397480213f663476d17> <0e6de0384d1fc397480213f663476d17>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
848
|
|
@@ -51,7 +51,7 @@ endobj
|
|
|
51
51
|
(PDFKit)
|
|
52
52
|
endobj
|
|
53
53
|
12 0 obj
|
|
54
|
-
(D:
|
|
54
|
+
(D:20230608065812Z)
|
|
55
55
|
endobj
|
|
56
56
|
9 0 obj
|
|
57
57
|
<<
|
|
@@ -114,7 +114,7 @@ trailer
|
|
|
114
114
|
/Size 13
|
|
115
115
|
/Root 3 0 R
|
|
116
116
|
/Info 9 0 R
|
|
117
|
-
/ID [<
|
|
117
|
+
/ID [<d727fcc1be4b0b5c5335cba92fe3e6b2> <d727fcc1be4b0b5c5335cba92fe3e6b2>]
|
|
118
118
|
>>
|
|
119
119
|
startxref
|
|
120
120
|
1418
|
package/src/abstract-document-exporters/__tests__/pdf/tmp/Single textrun with Start alignment.pdf
CHANGED
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<b4e937497ce7da3cf087843f1dd36485> <b4e937497ce7da3cf087843f1dd36485>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
848
|
|
@@ -63,7 +63,7 @@ endobj
|
|
|
63
63
|
(PDFKit)
|
|
64
64
|
endobj
|
|
65
65
|
12 0 obj
|
|
66
|
-
(D:
|
|
66
|
+
(D:20230608065812Z)
|
|
67
67
|
endobj
|
|
68
68
|
9 0 obj
|
|
69
69
|
<<
|
|
@@ -126,7 +126,7 @@ trailer
|
|
|
126
126
|
/Size 13
|
|
127
127
|
/Root 3 0 R
|
|
128
128
|
/Info 9 0 R
|
|
129
|
-
/ID [<
|
|
129
|
+
/ID [<c947cc1fbc46d25a2ca6e0998ca880fb> <c947cc1fbc46d25a2ca6e0998ca880fb>]
|
|
130
130
|
>>
|
|
131
131
|
startxref
|
|
132
132
|
1076
|
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<ff6e69619150df3b6db0d42e3e69ecb0> <ff6e69619150df3b6db0d42e3e69ecb0>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
824
|
|
@@ -71,7 +71,7 @@ endobj
|
|
|
71
71
|
(PDFKit)
|
|
72
72
|
endobj
|
|
73
73
|
14 0 obj
|
|
74
|
-
(D:
|
|
74
|
+
(D:20230608065812Z)
|
|
75
75
|
endobj
|
|
76
76
|
11 0 obj
|
|
77
77
|
<<
|
|
@@ -136,7 +136,7 @@ trailer
|
|
|
136
136
|
/Size 15
|
|
137
137
|
/Root 3 0 R
|
|
138
138
|
/Info 11 0 R
|
|
139
|
-
/ID [<
|
|
139
|
+
/ID [<3e87d7be7742d4546833e51d430b2636> <3e87d7be7742d4546833e51d430b2636>]
|
|
140
140
|
>>
|
|
141
141
|
startxref
|
|
142
142
|
1232
|
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065810Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<934112d90e67c46dbc73bdd5306c4e9d> <934112d90e67c46dbc73bdd5306c4e9d>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
894
|
|
@@ -79,7 +79,7 @@ endobj
|
|
|
79
79
|
(PDFKit)
|
|
80
80
|
endobj
|
|
81
81
|
15 0 obj
|
|
82
|
-
(D:
|
|
82
|
+
(D:20230608065811Z)
|
|
83
83
|
endobj
|
|
84
84
|
12 0 obj
|
|
85
85
|
<<
|
|
@@ -145,7 +145,7 @@ trailer
|
|
|
145
145
|
/Size 16
|
|
146
146
|
/Root 3 0 R
|
|
147
147
|
/Info 12 0 R
|
|
148
|
-
/ID [<
|
|
148
|
+
/ID [<f9cc22232a65c37d0c256468909cf644> <f9cc22232a65c37d0c256468909cf644>]
|
|
149
149
|
>>
|
|
150
150
|
startxref
|
|
151
151
|
1212
|
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065810Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<04e05e7e8ee47a45ab26c110b7d0e49b> <04e05e7e8ee47a45ab26c110b7d0e49b>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
824
|
|
@@ -43,7 +43,7 @@ endobj
|
|
|
43
43
|
(PDFKit)
|
|
44
44
|
endobj
|
|
45
45
|
12 0 obj
|
|
46
|
-
(D:
|
|
46
|
+
(D:20230608065812Z)
|
|
47
47
|
endobj
|
|
48
48
|
9 0 obj
|
|
49
49
|
<<
|
|
@@ -106,7 +106,7 @@ trailer
|
|
|
106
106
|
/Size 13
|
|
107
107
|
/Root 3 0 R
|
|
108
108
|
/Info 9 0 R
|
|
109
|
-
/ID [<
|
|
109
|
+
/ID [<2d39a98aa94d3e77acb70ef84bf204f7> <2d39a98aa94d3e77acb70ef84bf204f7>]
|
|
110
110
|
>>
|
|
111
111
|
startxref
|
|
112
112
|
837
|
|
@@ -102,51 +102,67 @@ function measureParagraph(
|
|
|
102
102
|
const contentAvailableHeight = availableSize.height - (style.margins.top + style.margins.bottom);
|
|
103
103
|
const contentAvailableSize = AD.Size.create(contentAvailableWidth, contentAvailableHeight);
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
let desiredHeight = initialHeight;
|
|
107
|
-
let currentRowWidth = 0;
|
|
108
|
-
let currentRowHeight = 0;
|
|
105
|
+
let paragraphHeight = style.margins.top + style.margins.bottom;
|
|
109
106
|
let desiredSizes = new Map<any, AD.Size.Size>();
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
let
|
|
113
|
-
for (
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
pdf,
|
|
119
|
-
resources,
|
|
120
|
-
style.textStyle,
|
|
121
|
-
contentAvailableSize,
|
|
122
|
-
contentAvailableSize.width - currentRowWidth,
|
|
123
|
-
atom
|
|
124
|
-
);
|
|
125
|
-
if (atom.type === "TextRun" || atom.type === "TextField" || atom.type === "HyperLink") {
|
|
126
|
-
concatenatedText += atom.text;
|
|
127
|
-
textOptions = getBiggestStyle(atom, style, resources, textOptions);
|
|
128
|
-
}
|
|
129
|
-
desiredSizes.set(atom, atomSize);
|
|
130
|
-
currentRowWidth += atomSize.width;
|
|
131
|
-
currentRowHeight = Math.max(atomSize.height, currentRowHeight);
|
|
132
|
-
if (currentRowWidth > contentAvailableSize.width) {
|
|
133
|
-
desiredHeight += currentRowHeight;
|
|
134
|
-
currentRowWidth = 0;
|
|
135
|
-
currentRowHeight = 0;
|
|
107
|
+
|
|
108
|
+
const rows: Array<Array<AD.Atom.Atom>> = [];
|
|
109
|
+
let currentRow: Array<AD.Atom.Atom> = [];
|
|
110
|
+
for (const atom of paragraph.children) {
|
|
111
|
+
currentRow.push(atom);
|
|
112
|
+
if (atom.type === "LineBreak") {
|
|
113
|
+
rows.push(currentRow);
|
|
114
|
+
currentRow = [];
|
|
136
115
|
}
|
|
137
116
|
}
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
117
|
+
if (currentRow.length > 0) {
|
|
118
|
+
rows.push(currentRow);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
for (const row of rows) {
|
|
122
|
+
let desiredHeight = 0;
|
|
123
|
+
let currentRowWidth = 0;
|
|
124
|
+
let currentRowHeight = 0;
|
|
125
|
+
let concatenatedText = "";
|
|
126
|
+
let hasAtomImage = false;
|
|
127
|
+
let textOptions;
|
|
128
|
+
for (const atom of row) {
|
|
129
|
+
if (atom.type === "Image") {
|
|
130
|
+
hasAtomImage = true;
|
|
131
|
+
}
|
|
132
|
+
const atomSize = measureAtom(
|
|
133
|
+
pdf,
|
|
134
|
+
resources,
|
|
135
|
+
style.textStyle,
|
|
136
|
+
contentAvailableSize,
|
|
137
|
+
contentAvailableSize.width - currentRowWidth,
|
|
138
|
+
atom
|
|
139
|
+
);
|
|
140
|
+
if (atom.type === "TextRun" || atom.type === "TextField" || atom.type === "HyperLink") {
|
|
141
|
+
concatenatedText += atom.text;
|
|
142
|
+
textOptions = getBiggestStyle(atom, style, resources, textOptions);
|
|
143
|
+
}
|
|
144
|
+
desiredSizes.set(atom, atomSize);
|
|
145
|
+
currentRowWidth += atomSize.width;
|
|
146
|
+
currentRowHeight = Math.max(atomSize.height, currentRowHeight);
|
|
147
|
+
if (currentRowWidth > contentAvailableSize.width) {
|
|
148
|
+
desiredHeight += currentRowHeight;
|
|
149
|
+
currentRowWidth = 0;
|
|
150
|
+
currentRowHeight = 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (row.length === 1 && row[0].type === "LineBreak") {
|
|
154
|
+
paragraphHeight += currentRowHeight;
|
|
155
|
+
} else if (hasAtomImage) {
|
|
156
|
+
paragraphHeight += desiredHeight + currentRowHeight;
|
|
157
|
+
} else {
|
|
158
|
+
paragraphHeight += pdf.heightOfString(concatenatedText, {
|
|
144
159
|
width: textOptions && textOptions.lineBreak === false ? Infinity : availableSize.width,
|
|
145
160
|
...textOptions,
|
|
146
161
|
});
|
|
162
|
+
}
|
|
147
163
|
}
|
|
148
164
|
|
|
149
|
-
desiredSizes.set(paragraph, AD.Size.create(availableSize.width,
|
|
165
|
+
desiredSizes.set(paragraph, AD.Size.create(availableSize.width, paragraphHeight));
|
|
150
166
|
|
|
151
167
|
return desiredSizes;
|
|
152
168
|
}
|
|
@@ -313,6 +329,8 @@ function measureAtom(
|
|
|
313
329
|
return measureHyperLink(pdf, resources, textStyle, atom, availableSize);
|
|
314
330
|
case "TocSeparator":
|
|
315
331
|
return measureTocSeparator(pdf, textStyle, availableSize, availableRowSpace);
|
|
332
|
+
case "LineBreak":
|
|
333
|
+
return measureLineBreak(pdf, resources, textStyle, availableSize);
|
|
316
334
|
case "LinkTarget":
|
|
317
335
|
return {
|
|
318
336
|
width: availableSize.width,
|
|
@@ -323,6 +341,19 @@ function measureAtom(
|
|
|
323
341
|
}
|
|
324
342
|
}
|
|
325
343
|
|
|
344
|
+
function measureLineBreak(
|
|
345
|
+
pdf: any,
|
|
346
|
+
resources: AD.Resources.Resources,
|
|
347
|
+
textStyle: AD.TextStyle.TextStyle,
|
|
348
|
+
availableSize: AD.Size.Size
|
|
349
|
+
): AD.Size.Size {
|
|
350
|
+
const textSize = measureText(pdf, "A", textStyle, availableSize);
|
|
351
|
+
return {
|
|
352
|
+
height: textSize.height,
|
|
353
|
+
width: 0,
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
|
|
326
357
|
function measureTextRun(
|
|
327
358
|
pdf: any,
|
|
328
359
|
resources: AD.Resources.Resources,
|
|
@@ -241,6 +241,13 @@ function renderParagraph(
|
|
|
241
241
|
let currentWidth = 0;
|
|
242
242
|
let previousAtomType: string | undefined;
|
|
243
243
|
for (const atom of paragraph.children) {
|
|
244
|
+
if (atom.type === "LineBreak") {
|
|
245
|
+
currentRow.push(atom);
|
|
246
|
+
rows.push(currentRow);
|
|
247
|
+
currentRow = [];
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
|
|
244
251
|
if (!previousAtomType) {
|
|
245
252
|
// First atom
|
|
246
253
|
previousAtomType = atom.type;
|
|
@@ -320,7 +327,7 @@ function renderParagraph(
|
|
|
320
327
|
|
|
321
328
|
let rowHeight = 0;
|
|
322
329
|
|
|
323
|
-
const lastIndex = row.length - 1;
|
|
330
|
+
const lastIndex = row[row.length - 1]?.type === "LineBreak" ? row.length - 2 : row.length - 1;
|
|
324
331
|
for (const [i, atom] of row.entries()) {
|
|
325
332
|
const atomSize = getDesiredSize(atom, desiredSizes);
|
|
326
333
|
renderAtom(
|
|
@@ -387,6 +394,8 @@ function renderAtom(
|
|
|
387
394
|
return;
|
|
388
395
|
case "LinkTarget":
|
|
389
396
|
return;
|
|
397
|
+
case "LineBreak":
|
|
398
|
+
return;
|
|
390
399
|
}
|
|
391
400
|
}
|
|
392
401
|
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
TextField as TextField1,
|
|
17
17
|
TextRun as TextRun1,
|
|
18
18
|
PageBreak as PageBreak1,
|
|
19
|
+
LineBreak as LineBreak1,
|
|
19
20
|
//Resources,
|
|
20
21
|
//MasterPage,
|
|
21
22
|
//ParagraphStyle,
|
|
@@ -54,6 +55,7 @@ export const Markdown = (props: Markdown1.MarkdownProps): JSX.Element => Markdow
|
|
|
54
55
|
export const TextField = (props: TextField1.TextFieldProps): JSX.Element => TextField1.create(props) as any;
|
|
55
56
|
export const TextRun = (props: TextRun1.TextRunProps): JSX.Element => TextRun1.create(props) as any;
|
|
56
57
|
export const PageBreak = (props: PageBreak1.PageBreakProps): JSX.Element => PageBreak1.create(props) as any;
|
|
58
|
+
export const LineBreak = (props: LineBreak1.LineBreakProps): JSX.Element => LineBreak1.create(props) as any;
|
|
57
59
|
|
|
58
60
|
export function render(element: any): any {
|
|
59
61
|
if (typeof element.type !== "function") {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines a data-type that represents a single test.
|
|
3
|
-
*/
|
|
4
|
-
export declare type ExportTestDef = {
|
|
5
|
-
readonly name: string;
|
|
6
|
-
readonly only?: boolean;
|
|
7
|
-
readonly skip?: boolean;
|
|
8
|
-
readonly abstractDocXML: string;
|
|
9
|
-
readonly images: {};
|
|
10
|
-
readonly fonts: {};
|
|
11
|
-
readonly expectedPdfJson: {};
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=export-test-def.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export-test-def.d.ts","sourceRoot":"","sources":["../../../../src/abstract-document-xml/__tests__/layer/export-test-def.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;IACnB,QAAQ,CAAC,eAAe,EAAE,EAAE,CAAC;CAC9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export-test-def.js","sourceRoot":"","sources":["../../../../src/abstract-document-xml/__tests__/layer/export-test-def.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.test.d.ts","sourceRoot":"","sources":["../../../../src/abstract-document-xml/__tests__/layer/export.test.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMlD,eAAO,MAAM,KAAK,0BAA+D,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.tests = void 0;
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const test_utils_1 = require("@abstract-visuals/test-utils");
|
|
9
|
-
const parse_xml_1 = require("../../parse-xml");
|
|
10
|
-
const abstract_doc_of_xml_1 = require("../../abstract-doc-of-xml/abstract-doc-of-xml");
|
|
11
|
-
const creator_1 = require("../../abstract-doc-of-xml/creator");
|
|
12
|
-
exports.tests = (0, test_utils_1.loadTests)(path_1.default.join(__dirname, "test-defs/"));
|
|
13
|
-
describe("abstract-doc-xml", () => {
|
|
14
|
-
(0, test_utils_1.onlySkip)(exports.tests).forEach((item) => {
|
|
15
|
-
test(item.name, async () => {
|
|
16
|
-
const xml = (0, parse_xml_1.parseXml)(item.abstractDocXML, {
|
|
17
|
-
preserveOrder: true,
|
|
18
|
-
ignoreAttributes: false,
|
|
19
|
-
attributeNamePrefix: "",
|
|
20
|
-
allowBooleanAttributes: true,
|
|
21
|
-
trimValues: false,
|
|
22
|
-
ignoreDeclaration: true,
|
|
23
|
-
processEntities: true,
|
|
24
|
-
htmlEntities: true,
|
|
25
|
-
attributeValueProcessor: (_name, value) => {
|
|
26
|
-
if (!(value === null || value === void 0 ? void 0 : value.trim())) {
|
|
27
|
-
return value;
|
|
28
|
-
}
|
|
29
|
-
const nValue = Number(value);
|
|
30
|
-
if (!Number.isNaN(nValue)) {
|
|
31
|
-
return nValue;
|
|
32
|
-
}
|
|
33
|
-
return value;
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
const doc = (0, abstract_doc_of_xml_1.abstractDocOfXml)((0, creator_1.creators)(item.images, item.fonts, (0, abstract_doc_of_xml_1.extractImageFontsStyleNames)(xml)[2]), xml[0]);
|
|
37
|
-
expect(JSON.stringify(doc, undefined, 2)).toEqual(item.expectedPdfJson);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=export.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.test.js","sourceRoot":"","sources":["../../../../src/abstract-document-xml/__tests__/layer/export.test.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,6DAAmE;AAEnE,+CAA2C;AAC3C,uFAA8G;AAC9G,+DAA6D;AAGhD,QAAA,KAAK,GAAG,IAAA,sBAAS,EAAgB,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AAElF,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAA,qBAAQ,EAAC,aAAK,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC/B,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE;YACzB,MAAM,GAAG,GAAG,IAAA,oBAAQ,EAAC,IAAI,CAAC,cAAc,EAAE;gBACxC,aAAa,EAAE,IAAI;gBACnB,gBAAgB,EAAE,KAAK;gBACvB,mBAAmB,EAAE,EAAE;gBACvB,sBAAsB,EAAE,IAAI;gBAC5B,UAAU,EAAE,KAAK;gBACjB,iBAAiB,EAAE,IAAI;gBACvB,eAAe,EAAE,IAAI;gBACrB,YAAY,EAAE,IAAI;gBAClB,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;oBACxC,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,CAAA,EAAE;wBAClB,OAAO,KAAK,CAAC;qBACd;oBACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;oBAC7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;wBACzB,OAAO,MAAM,CAAC;qBACf;oBACD,OAAO,KAAK,CAAC;gBACf,CAAC;aACF,CAAC,CAAC;YAEH,MAAM,GAAG,GAAG,IAAA,sCAAgB,EAC1B,IAAA,kBAAQ,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAA,iDAA2B,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EACtE,GAAG,CAAC,CAAC,CAAE,CAC8B,CAAC;YAExC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-document.d.ts","sourceRoot":"","sources":["../../../../../src/abstract-document-xml/__tests__/layer/test-defs/simple-document.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,IAAI,EAAE,aAoWlB,CAAC"}
|