@js-ak/excel-toolbox 1.8.3 → 1.9.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.
Files changed (207) hide show
  1. package/build/cjs/lib/template/template-fs.js +2 -1
  2. package/build/cjs/lib/template/template-memory.js +2 -1
  3. package/build/cjs/lib/template/utils/column-letter-to-index.js +15 -0
  4. package/build/cjs/lib/template/utils/index.js +1 -1
  5. package/build/cjs/lib/template/utils/prepare-row-to-cells.js +2 -2
  6. package/build/cjs/lib/template/utils/validate-worksheet-xml.js +19 -9
  7. package/build/cjs/lib/utils/index.js +2 -0
  8. package/build/cjs/lib/utils/trim-and-join-multiline.js +32 -0
  9. package/build/cjs/lib/workbook-builder/default/border.js +18 -0
  10. package/build/cjs/lib/workbook-builder/default/cell-xf.js +15 -0
  11. package/build/cjs/lib/workbook-builder/default/fill.js +18 -0
  12. package/build/cjs/lib/workbook-builder/default/font.js +19 -0
  13. package/build/cjs/lib/workbook-builder/default/index.js +21 -0
  14. package/build/cjs/lib/workbook-builder/default/sheet-name.js +10 -0
  15. package/build/cjs/lib/workbook-builder/index.js +18 -0
  16. package/build/cjs/lib/workbook-builder/merge-cells/add.js +72 -0
  17. package/build/cjs/lib/workbook-builder/merge-cells/helpers/index.js +18 -0
  18. package/build/cjs/lib/workbook-builder/merge-cells/helpers/ranges-equal.js +17 -0
  19. package/build/cjs/lib/workbook-builder/merge-cells/helpers/ranges-intersect.js +17 -0
  20. package/build/cjs/lib/workbook-builder/merge-cells/index.js +18 -0
  21. package/build/cjs/lib/workbook-builder/merge-cells/remove.js +60 -0
  22. package/build/cjs/lib/workbook-builder/shared-string-ref/add.js +24 -0
  23. package/build/cjs/lib/workbook-builder/shared-string-ref/index.js +19 -0
  24. package/build/cjs/lib/workbook-builder/shared-string-ref/remove-all-from-sheet.js +66 -0
  25. package/build/cjs/lib/workbook-builder/shared-string-ref/remove.js +66 -0
  26. package/build/cjs/lib/workbook-builder/style-ref/add-or-get.js +94 -0
  27. package/build/cjs/lib/workbook-builder/style-ref/helpers/add-num-fmt.js +25 -0
  28. package/build/cjs/lib/workbook-builder/style-ref/helpers/border-to-xml.js +49 -0
  29. package/build/cjs/lib/workbook-builder/style-ref/helpers/fill-to-xml.js +51 -0
  30. package/build/cjs/lib/workbook-builder/style-ref/helpers/font-to-xml.js +112 -0
  31. package/build/cjs/lib/workbook-builder/style-ref/helpers/index.js +21 -0
  32. package/build/cjs/lib/workbook-builder/style-ref/helpers/reindex-style-map-after-removal.js +30 -0
  33. package/build/cjs/lib/workbook-builder/style-ref/index.js +19 -0
  34. package/build/cjs/lib/workbook-builder/style-ref/remove-all-from-sheet.js +26 -0
  35. package/build/cjs/lib/workbook-builder/style-ref/remove.js +52 -0
  36. package/build/cjs/lib/workbook-builder/types/app-xml-options.js +2 -0
  37. package/build/cjs/lib/workbook-builder/types/border-style.js +2 -0
  38. package/build/cjs/lib/workbook-builder/types/cell-data.js +2 -0
  39. package/build/cjs/lib/workbook-builder/types/cell-style.js +2 -0
  40. package/build/cjs/lib/workbook-builder/types/cell-type.js +2 -0
  41. package/build/cjs/lib/workbook-builder/types/cell-value.js +2 -0
  42. package/build/cjs/lib/workbook-builder/types/cell-xf.js +2 -0
  43. package/build/cjs/lib/workbook-builder/types/index.js +27 -0
  44. package/build/cjs/lib/workbook-builder/types/merge-cell.js +2 -0
  45. package/build/cjs/lib/workbook-builder/types/row-data.js +2 -0
  46. package/build/cjs/lib/workbook-builder/types/sheet-data.js +2 -0
  47. package/build/cjs/lib/workbook-builder/types/xml-node.js +2 -0
  48. package/build/cjs/lib/workbook-builder/utils/build-app-xml.js +51 -0
  49. package/build/cjs/lib/workbook-builder/utils/build-cell-children.js +59 -0
  50. package/build/cjs/lib/workbook-builder/utils/build-content-types-xml.js +42 -0
  51. package/build/cjs/lib/workbook-builder/utils/build-core-xml.js +27 -0
  52. package/build/cjs/lib/workbook-builder/utils/build-rels-xml.js +19 -0
  53. package/build/cjs/lib/workbook-builder/utils/build-shared-strings-xml.js +39 -0
  54. package/build/cjs/lib/workbook-builder/utils/build-styles-xml.js +178 -0
  55. package/build/cjs/lib/workbook-builder/utils/build-theme-xml.js +609 -0
  56. package/build/cjs/lib/workbook-builder/utils/build-workbook-rels-xml.js +58 -0
  57. package/build/cjs/lib/workbook-builder/utils/build-workbook-xml.js +26 -0
  58. package/build/cjs/lib/workbook-builder/utils/build-worksheet-xml.js +66 -0
  59. package/build/cjs/lib/workbook-builder/utils/build-xml.js +72 -0
  60. package/build/cjs/lib/workbook-builder/utils/constants.js +55 -0
  61. package/build/cjs/lib/workbook-builder/utils/date-to-excel-serial.js +16 -0
  62. package/build/cjs/lib/workbook-builder/utils/index.js +34 -0
  63. package/build/cjs/lib/workbook-builder/utils/initialize-files.js +40 -0
  64. package/build/cjs/lib/workbook-builder/utils/sheet.js +144 -0
  65. package/build/cjs/lib/workbook-builder/utils/write-shared-strings-xml.js +49 -0
  66. package/build/cjs/lib/workbook-builder/utils/write-styles-xml.js +196 -0
  67. package/build/cjs/lib/workbook-builder/utils/write-worksheet-xml.js +209 -0
  68. package/build/cjs/lib/workbook-builder/utils/write-xml.js +37 -0
  69. package/build/cjs/lib/workbook-builder/workbook-builder.js +414 -0
  70. package/build/esm/lib/template/template-fs.js +2 -1
  71. package/build/esm/lib/template/template-memory.js +2 -1
  72. package/build/esm/lib/template/utils/column-letter-to-index.js +12 -0
  73. package/build/esm/lib/template/utils/index.js +1 -1
  74. package/build/esm/lib/template/utils/prepare-row-to-cells.js +1 -1
  75. package/build/esm/lib/template/utils/validate-worksheet-xml.js +19 -9
  76. package/build/esm/lib/utils/index.js +2 -0
  77. package/build/esm/lib/utils/trim-and-join-multiline.js +29 -0
  78. package/build/esm/lib/workbook-builder/default/border.js +14 -0
  79. package/build/esm/lib/workbook-builder/default/cell-xf.js +11 -0
  80. package/build/esm/lib/workbook-builder/default/fill.js +14 -0
  81. package/build/esm/lib/workbook-builder/default/font.js +15 -0
  82. package/build/esm/lib/workbook-builder/default/index.js +5 -0
  83. package/build/esm/lib/workbook-builder/default/sheet-name.js +6 -0
  84. package/build/esm/lib/workbook-builder/index.js +2 -0
  85. package/build/esm/lib/workbook-builder/merge-cells/add.js +36 -0
  86. package/build/esm/lib/workbook-builder/merge-cells/helpers/index.js +2 -0
  87. package/build/esm/lib/workbook-builder/merge-cells/helpers/ranges-equal.js +14 -0
  88. package/build/esm/lib/workbook-builder/merge-cells/helpers/ranges-intersect.js +14 -0
  89. package/build/esm/lib/workbook-builder/merge-cells/index.js +2 -0
  90. package/build/esm/lib/workbook-builder/merge-cells/remove.js +24 -0
  91. package/build/esm/lib/workbook-builder/shared-string-ref/add.js +21 -0
  92. package/build/esm/lib/workbook-builder/shared-string-ref/index.js +3 -0
  93. package/build/esm/lib/workbook-builder/shared-string-ref/remove-all-from-sheet.js +63 -0
  94. package/build/esm/lib/workbook-builder/shared-string-ref/remove.js +63 -0
  95. package/build/esm/lib/workbook-builder/style-ref/add-or-get.js +58 -0
  96. package/build/esm/lib/workbook-builder/style-ref/helpers/add-num-fmt.js +21 -0
  97. package/build/esm/lib/workbook-builder/style-ref/helpers/border-to-xml.js +45 -0
  98. package/build/esm/lib/workbook-builder/style-ref/helpers/fill-to-xml.js +47 -0
  99. package/build/esm/lib/workbook-builder/style-ref/helpers/font-to-xml.js +75 -0
  100. package/build/esm/lib/workbook-builder/style-ref/helpers/index.js +5 -0
  101. package/build/esm/lib/workbook-builder/style-ref/helpers/reindex-style-map-after-removal.js +26 -0
  102. package/build/esm/lib/workbook-builder/style-ref/index.js +3 -0
  103. package/build/esm/lib/workbook-builder/style-ref/remove-all-from-sheet.js +23 -0
  104. package/build/esm/lib/workbook-builder/style-ref/remove.js +49 -0
  105. package/build/esm/lib/workbook-builder/types/app-xml-options.js +1 -0
  106. package/build/esm/lib/workbook-builder/types/border-style.js +1 -0
  107. package/build/esm/lib/workbook-builder/types/cell-data.js +1 -0
  108. package/build/esm/lib/workbook-builder/types/cell-style.js +1 -0
  109. package/build/esm/lib/workbook-builder/types/cell-type.js +1 -0
  110. package/build/esm/lib/workbook-builder/types/cell-value.js +1 -0
  111. package/build/esm/lib/workbook-builder/types/cell-xf.js +1 -0
  112. package/build/esm/lib/workbook-builder/types/index.js +11 -0
  113. package/build/esm/lib/workbook-builder/types/merge-cell.js +1 -0
  114. package/build/esm/lib/workbook-builder/types/row-data.js +1 -0
  115. package/build/esm/lib/workbook-builder/types/sheet-data.js +1 -0
  116. package/build/esm/lib/workbook-builder/types/xml-node.js +1 -0
  117. package/build/esm/lib/workbook-builder/utils/build-app-xml.js +48 -0
  118. package/build/esm/lib/workbook-builder/utils/build-cell-children.js +56 -0
  119. package/build/esm/lib/workbook-builder/utils/build-content-types-xml.js +39 -0
  120. package/build/esm/lib/workbook-builder/utils/build-core-xml.js +24 -0
  121. package/build/esm/lib/workbook-builder/utils/build-rels-xml.js +16 -0
  122. package/build/esm/lib/workbook-builder/utils/build-shared-strings-xml.js +36 -0
  123. package/build/esm/lib/workbook-builder/utils/build-styles-xml.js +142 -0
  124. package/build/esm/lib/workbook-builder/utils/build-theme-xml.js +606 -0
  125. package/build/esm/lib/workbook-builder/utils/build-workbook-rels-xml.js +55 -0
  126. package/build/esm/lib/workbook-builder/utils/build-workbook-xml.js +23 -0
  127. package/build/esm/lib/workbook-builder/utils/build-worksheet-xml.js +63 -0
  128. package/build/esm/lib/workbook-builder/utils/build-xml.js +69 -0
  129. package/build/esm/lib/workbook-builder/utils/constants.js +52 -0
  130. package/build/esm/lib/workbook-builder/utils/date-to-excel-serial.js +13 -0
  131. package/build/esm/lib/workbook-builder/utils/index.js +18 -0
  132. package/build/esm/lib/workbook-builder/utils/initialize-files.js +36 -0
  133. package/build/esm/lib/workbook-builder/utils/sheet.js +141 -0
  134. package/build/esm/lib/workbook-builder/utils/write-shared-strings-xml.js +43 -0
  135. package/build/esm/lib/workbook-builder/utils/write-styles-xml.js +157 -0
  136. package/build/esm/lib/workbook-builder/utils/write-worksheet-xml.js +203 -0
  137. package/build/esm/lib/workbook-builder/utils/write-xml.js +34 -0
  138. package/build/esm/lib/workbook-builder/workbook-builder.js +374 -0
  139. package/build/types/lib/template/utils/column-letter-to-index.d.ts +1 -0
  140. package/build/types/lib/template/utils/index.d.ts +1 -1
  141. package/build/types/lib/utils/index.d.ts +2 -0
  142. package/build/types/lib/utils/trim-and-join-multiline.d.ts +23 -0
  143. package/build/types/lib/workbook-builder/default/border.d.ts +7 -0
  144. package/build/types/lib/workbook-builder/default/cell-xf.d.ts +7 -0
  145. package/build/types/lib/workbook-builder/default/fill.d.ts +7 -0
  146. package/build/types/lib/workbook-builder/default/font.d.ts +21 -0
  147. package/build/types/lib/workbook-builder/default/index.d.ts +5 -0
  148. package/build/types/lib/workbook-builder/default/sheet-name.d.ts +6 -0
  149. package/build/types/lib/workbook-builder/index.d.ts +2 -0
  150. package/build/types/lib/workbook-builder/merge-cells/add.d.ts +15 -0
  151. package/build/types/lib/workbook-builder/merge-cells/helpers/index.d.ts +2 -0
  152. package/build/types/lib/workbook-builder/merge-cells/helpers/ranges-equal.d.ts +10 -0
  153. package/build/types/lib/workbook-builder/merge-cells/helpers/ranges-intersect.d.ts +10 -0
  154. package/build/types/lib/workbook-builder/merge-cells/index.d.ts +2 -0
  155. package/build/types/lib/workbook-builder/merge-cells/remove.d.ts +15 -0
  156. package/build/types/lib/workbook-builder/shared-string-ref/add.d.ts +13 -0
  157. package/build/types/lib/workbook-builder/shared-string-ref/index.d.ts +3 -0
  158. package/build/types/lib/workbook-builder/shared-string-ref/remove-all-from-sheet.d.ts +10 -0
  159. package/build/types/lib/workbook-builder/shared-string-ref/remove.d.ts +13 -0
  160. package/build/types/lib/workbook-builder/style-ref/add-or-get.d.ts +16 -0
  161. package/build/types/lib/workbook-builder/style-ref/helpers/add-num-fmt.d.ts +17 -0
  162. package/build/types/lib/workbook-builder/style-ref/helpers/border-to-xml.d.ts +16 -0
  163. package/build/types/lib/workbook-builder/style-ref/helpers/fill-to-xml.d.ts +17 -0
  164. package/build/types/lib/workbook-builder/style-ref/helpers/font-to-xml.d.ts +18 -0
  165. package/build/types/lib/workbook-builder/style-ref/helpers/index.d.ts +5 -0
  166. package/build/types/lib/workbook-builder/style-ref/helpers/reindex-style-map-after-removal.d.ts +15 -0
  167. package/build/types/lib/workbook-builder/style-ref/index.d.ts +3 -0
  168. package/build/types/lib/workbook-builder/style-ref/remove-all-from-sheet.d.ts +4 -0
  169. package/build/types/lib/workbook-builder/style-ref/remove.d.ts +18 -0
  170. package/build/types/lib/workbook-builder/types/app-xml-options.d.ts +9 -0
  171. package/build/types/lib/workbook-builder/types/border-style.d.ts +5 -0
  172. package/build/types/lib/workbook-builder/types/cell-data.d.ts +10 -0
  173. package/build/types/lib/workbook-builder/types/cell-style.d.ts +32 -0
  174. package/build/types/lib/workbook-builder/types/cell-type.d.ts +11 -0
  175. package/build/types/lib/workbook-builder/types/cell-value.d.ts +2 -0
  176. package/build/types/lib/workbook-builder/types/cell-xf.d.ts +13 -0
  177. package/build/types/lib/workbook-builder/types/index.d.ts +11 -0
  178. package/build/types/lib/workbook-builder/types/merge-cell.d.ts +6 -0
  179. package/build/types/lib/workbook-builder/types/row-data.d.ts +5 -0
  180. package/build/types/lib/workbook-builder/types/sheet-data.d.ts +13 -0
  181. package/build/types/lib/workbook-builder/types/xml-node.d.ts +11 -0
  182. package/build/types/lib/workbook-builder/utils/build-app-xml.d.ts +2 -0
  183. package/build/types/lib/workbook-builder/utils/build-cell-children.d.ts +9 -0
  184. package/build/types/lib/workbook-builder/utils/build-content-types-xml.d.ts +1 -0
  185. package/build/types/lib/workbook-builder/utils/build-core-xml.d.ts +1 -0
  186. package/build/types/lib/workbook-builder/utils/build-rels-xml.d.ts +1 -0
  187. package/build/types/lib/workbook-builder/utils/build-shared-strings-xml.d.ts +10 -0
  188. package/build/types/lib/workbook-builder/utils/build-styles-xml.d.ts +23 -0
  189. package/build/types/lib/workbook-builder/utils/build-theme-xml.d.ts +1 -0
  190. package/build/types/lib/workbook-builder/utils/build-workbook-rels-xml.d.ts +9 -0
  191. package/build/types/lib/workbook-builder/utils/build-workbook-xml.d.ts +3 -0
  192. package/build/types/lib/workbook-builder/utils/build-worksheet-xml.d.ts +2 -0
  193. package/build/types/lib/workbook-builder/utils/build-xml.d.ts +50 -0
  194. package/build/types/lib/workbook-builder/utils/constants.d.ts +47 -0
  195. package/build/types/lib/workbook-builder/utils/date-to-excel-serial.d.ts +9 -0
  196. package/build/types/lib/workbook-builder/utils/index.d.ts +18 -0
  197. package/build/types/lib/workbook-builder/utils/initialize-files.d.ts +13 -0
  198. package/build/types/lib/workbook-builder/utils/sheet.d.ts +21 -0
  199. package/build/types/lib/workbook-builder/utils/write-shared-strings-xml.d.ts +11 -0
  200. package/build/types/lib/workbook-builder/utils/write-styles-xml.d.ts +24 -0
  201. package/build/types/lib/workbook-builder/utils/write-worksheet-xml.d.ts +14 -0
  202. package/build/types/lib/workbook-builder/utils/write-xml.d.ts +3 -0
  203. package/build/types/lib/workbook-builder/workbook-builder.d.ts +110 -0
  204. package/package.json +1 -1
  205. /package/build/cjs/lib/{template/utils → utils}/escape-xml.js +0 -0
  206. /package/build/esm/lib/{template/utils → utils}/escape-xml.js +0 -0
  207. /package/build/types/lib/{template/utils → utils}/escape-xml.d.ts +0 -0
@@ -0,0 +1,606 @@
1
+ import { XML_DECLARATION, XML_NAMESPACES } from "./constants.js";
2
+ import { buildXml } from "./build-xml.js";
3
+ export function buildThemeXml() {
4
+ const theme = {
5
+ attrs: {
6
+ name: "Office Theme",
7
+ "xmlns:a": XML_NAMESPACES.DRAWINGML,
8
+ },
9
+ children: [
10
+ {
11
+ children: [
12
+ {
13
+ attrs: { name: "Office" },
14
+ children: [
15
+ {
16
+ children: [{ attrs: { lastClr: "000000", val: "windowText" }, tag: "a:sysClr" }],
17
+ tag: "a:dk1",
18
+ },
19
+ {
20
+ children: [{ attrs: { lastClr: "FFFFFF", val: "window" }, tag: "a:sysClr" }],
21
+ tag: "a:lt1",
22
+ },
23
+ {
24
+ children: [{ attrs: { val: "1F497D" }, tag: "a:srgbClr" }],
25
+ tag: "a:dk2",
26
+ },
27
+ {
28
+ children: [{ attrs: { val: "EEECE1" }, tag: "a:srgbClr" }],
29
+ tag: "a:lt2",
30
+ },
31
+ {
32
+ children: [{ attrs: { val: "4F81BD" }, tag: "a:srgbClr" }],
33
+ tag: "a:accent1",
34
+ },
35
+ {
36
+ children: [{ attrs: { val: "C0504D" }, tag: "a:srgbClr" }],
37
+ tag: "a:accent2",
38
+ },
39
+ {
40
+ children: [{ attrs: { val: "9BBB59" }, tag: "a:srgbClr" }],
41
+ tag: "a:accent3",
42
+ },
43
+ {
44
+ children: [{ attrs: { val: "8064A2" }, tag: "a:srgbClr" }],
45
+ tag: "a:accent4",
46
+ },
47
+ {
48
+ children: [{ attrs: { val: "4BACC6" }, tag: "a:srgbClr" }],
49
+ tag: "a:accent5",
50
+ },
51
+ {
52
+ children: [{ attrs: { val: "F79646" }, tag: "a:srgbClr" }],
53
+ tag: "a:accent6",
54
+ },
55
+ {
56
+ children: [{ attrs: { val: "0000FF" }, tag: "a:srgbClr" }],
57
+ tag: "a:hlink",
58
+ },
59
+ {
60
+ children: [{ attrs: { val: "800080" }, tag: "a:srgbClr" }],
61
+ tag: "a:folHlink",
62
+ },
63
+ ],
64
+ tag: "a:clrScheme",
65
+ },
66
+ {
67
+ attrs: { name: "Office" },
68
+ children: [
69
+ {
70
+ children: [
71
+ { attrs: { typeface: "Calibri Light" }, tag: "a:latin" },
72
+ { attrs: { typeface: "" }, tag: "a:ea" },
73
+ { attrs: { typeface: "" }, tag: "a:cs" },
74
+ { attrs: { script: "Jpan", typeface: "游ゴシック Light" }, tag: "a:font" },
75
+ { attrs: { script: "Hang", typeface: "맑은 고딕" }, tag: "a:font" },
76
+ { attrs: { script: "Hans", typeface: "等线 Light" }, tag: "a:font" },
77
+ { attrs: { script: "Hant", typeface: "新細明體" }, tag: "a:font" },
78
+ { attrs: { script: "Arab", typeface: "Times New Roman" }, tag: "a:font" },
79
+ { attrs: { script: "Hebr", typeface: "Times New Roman" }, tag: "a:font" },
80
+ { attrs: { script: "Thai", typeface: "Tahoma" }, tag: "a:font" },
81
+ { attrs: { script: "Ethi", typeface: "Nyala" }, tag: "a:font" },
82
+ { attrs: { script: "Beng", typeface: "Vrinda" }, tag: "a:font" },
83
+ { attrs: { script: "Gujr", typeface: "Shruti" }, tag: "a:font" },
84
+ { attrs: { script: "Khmr", typeface: "MoolBoran" }, tag: "a:font" },
85
+ { attrs: { script: "Knda", typeface: "Tunga" }, tag: "a:font" },
86
+ { attrs: { script: "Guru", typeface: "Raavi" }, tag: "a:font" },
87
+ { attrs: { script: "Cans", typeface: "Euphemia" }, tag: "a:font" },
88
+ { attrs: { script: "Cher", typeface: "Plantagenet Cherokee" }, tag: "a:font" },
89
+ { attrs: { script: "Yiii", typeface: "Microsoft Yi Baiti" }, tag: "a:font" },
90
+ { attrs: { script: "Tibt", typeface: "Microsoft Himalaya" }, tag: "a:font" },
91
+ { attrs: { script: "Thaa", typeface: "MV Boli" }, tag: "a:font" },
92
+ { attrs: { script: "Deva", typeface: "Mangal" }, tag: "a:font" },
93
+ { attrs: { script: "Telu", typeface: "Gautami" }, tag: "a:font" },
94
+ { attrs: { script: "Taml", typeface: "Latha" }, tag: "a:font" },
95
+ { attrs: { script: "Syrc", typeface: "Estrangelo Edessa" }, tag: "a:font" },
96
+ { attrs: { script: "Orya", typeface: "Kalinga" }, tag: "a:font" },
97
+ { attrs: { script: "Mlym", typeface: "Kartika" }, tag: "a:font" },
98
+ { attrs: { script: "Laoo", typeface: "DokChampa" }, tag: "a:font" },
99
+ { attrs: { script: "Sinh", typeface: "Iskoola Pota" }, tag: "a:font" },
100
+ { attrs: { script: "Mong", typeface: "Mongolian Baiti" }, tag: "a:font" },
101
+ { attrs: { script: "Viet", typeface: "Times New Roman" }, tag: "a:font" },
102
+ { attrs: { script: "Uigh", typeface: "Microsoft Uighur" }, tag: "a:font" },
103
+ { attrs: { script: "Geor", typeface: "Sylfaen" }, tag: "a:font" },
104
+ ],
105
+ tag: "a:majorFont",
106
+ },
107
+ {
108
+ children: [
109
+ { attrs: { typeface: "Calibri" }, tag: "a:latin" },
110
+ { attrs: { typeface: "" }, tag: "a:ea" },
111
+ { attrs: { typeface: "" }, tag: "a:cs" },
112
+ { attrs: { script: "Jpan", typeface: "游ゴシック" }, tag: "a:font" },
113
+ { attrs: { script: "Hang", typeface: "맑은 고딕" }, tag: "a:font" },
114
+ { attrs: { script: "Hans", typeface: "等线" }, tag: "a:font" },
115
+ { attrs: { script: "Hant", typeface: "新細明體" }, tag: "a:font" },
116
+ { attrs: { script: "Arab", typeface: "Arial" }, tag: "a:font" },
117
+ { attrs: { script: "Hebr", typeface: "Arial" }, tag: "a:font" },
118
+ { attrs: { script: "Thai", typeface: "Tahoma" }, tag: "a:font" },
119
+ { attrs: { script: "Ethi", typeface: "Nyala" }, tag: "a:font" },
120
+ { attrs: { script: "Beng", typeface: "Vrinda" }, tag: "a:font" },
121
+ { attrs: { script: "Gujr", typeface: "Shruti" }, tag: "a:font" },
122
+ { attrs: { script: "Khmr", typeface: "DaunPenh" }, tag: "a:font" },
123
+ { attrs: { script: "Knda", typeface: "Tunga" }, tag: "a:font" },
124
+ { attrs: { script: "Guru", typeface: "Raavi" }, tag: "a:font" },
125
+ { attrs: { script: "Cans", typeface: "Euphemia" }, tag: "a:font" },
126
+ { attrs: { script: "Cher", typeface: "Plantagenet Cherokee" }, tag: "a:font" },
127
+ { attrs: { script: "Yiii", typeface: "Microsoft Yi Baiti" }, tag: "a:font" },
128
+ { attrs: { script: "Tibt", typeface: "Microsoft Himalaya" }, tag: "a:font" },
129
+ { attrs: { script: "Thaa", typeface: "MV Boli" }, tag: "a:font" },
130
+ { attrs: { script: "Deva", typeface: "Mangal" }, tag: "a:font" },
131
+ { attrs: { script: "Telu", typeface: "Gautami" }, tag: "a:font" },
132
+ { attrs: { script: "Taml", typeface: "Latha" }, tag: "a:font" },
133
+ { attrs: { script: "Syrc", typeface: "Estrangelo Edessa" }, tag: "a:font" },
134
+ { attrs: { script: "Orya", typeface: "Kalinga" }, tag: "a:font" },
135
+ { attrs: { script: "Mlym", typeface: "Kartika" }, tag: "a:font" },
136
+ { attrs: { script: "Laoo", typeface: "DokChampa" }, tag: "a:font" },
137
+ { attrs: { script: "Sinh", typeface: "Iskoola Pota" }, tag: "a:font" },
138
+ { attrs: { script: "Mong", typeface: "Mongolian Baiti" }, tag: "a:font" },
139
+ { attrs: { script: "Viet", typeface: "Arial" }, tag: "a:font" },
140
+ { attrs: { script: "Uigh", typeface: "Microsoft Uighur" }, tag: "a:font" },
141
+ { attrs: { script: "Geor", typeface: "Sylfaen" }, tag: "a:font" },
142
+ ],
143
+ tag: "a:minorFont",
144
+ },
145
+ ],
146
+ tag: "a:fontScheme",
147
+ },
148
+ {
149
+ attrs: { name: "Office" },
150
+ children: [
151
+ {
152
+ children: [
153
+ {
154
+ children: [{ attrs: { val: "phClr" }, tag: "a:schemeClr" }],
155
+ tag: "a:solidFill",
156
+ },
157
+ {
158
+ attrs: { rotWithShape: "1" },
159
+ children: [
160
+ {
161
+ children: [
162
+ {
163
+ attrs: { pos: "0" },
164
+ children: [
165
+ {
166
+ attrs: { val: "phClr" },
167
+ children: [
168
+ {
169
+ attrs: { val: "50000" },
170
+ tag: "a:tint",
171
+ },
172
+ {
173
+ attrs: { val: "300000" },
174
+ tag: "a:satMod",
175
+ },
176
+ ],
177
+ tag: "a:schemeClr",
178
+ },
179
+ ],
180
+ tag: "a:gs",
181
+ },
182
+ {
183
+ attrs: { pos: "35000" },
184
+ children: [
185
+ {
186
+ attrs: { val: "phClr" },
187
+ children: [
188
+ {
189
+ attrs: { val: "37000" },
190
+ tag: "a:tint",
191
+ },
192
+ {
193
+ attrs: { val: "300000" },
194
+ tag: "a:satMod",
195
+ },
196
+ ],
197
+ tag: "a:schemeClr",
198
+ },
199
+ ],
200
+ tag: "a:gs",
201
+ },
202
+ {
203
+ attrs: { pos: "100000" },
204
+ children: [
205
+ {
206
+ attrs: { val: "phClr" },
207
+ children: [
208
+ {
209
+ attrs: { val: "15000" },
210
+ tag: "a:tint",
211
+ },
212
+ {
213
+ attrs: { val: "350000" },
214
+ tag: "a:satMod",
215
+ },
216
+ ],
217
+ tag: "a:schemeClr",
218
+ },
219
+ ],
220
+ tag: "a:gs",
221
+ },
222
+ ],
223
+ tag: "a:gsLst",
224
+ },
225
+ {
226
+ attrs: { ang: "16200000", scaled: "1" },
227
+ tag: "a:lin",
228
+ },
229
+ ],
230
+ tag: "a:gradFill",
231
+ },
232
+ {
233
+ attrs: { rotWithShape: "1" },
234
+ children: [
235
+ {
236
+ children: [
237
+ {
238
+ attrs: { pos: "0" },
239
+ children: [
240
+ {
241
+ attrs: { val: "phClr" },
242
+ children: [
243
+ {
244
+ attrs: { val: "51000" },
245
+ tag: "a:shade",
246
+ },
247
+ {
248
+ attrs: { val: "130000" },
249
+ tag: "a:satMod",
250
+ },
251
+ ],
252
+ tag: "a:schemeClr",
253
+ },
254
+ ],
255
+ tag: "a:gs",
256
+ },
257
+ {
258
+ attrs: { pos: "80000" },
259
+ children: [
260
+ {
261
+ attrs: { val: "phClr" },
262
+ children: [
263
+ {
264
+ attrs: { val: "93000" },
265
+ tag: "a:shade",
266
+ },
267
+ {
268
+ attrs: { val: "130000" },
269
+ tag: "a:satMod",
270
+ },
271
+ ],
272
+ tag: "a:schemeClr",
273
+ },
274
+ ],
275
+ tag: "a:gs",
276
+ },
277
+ {
278
+ attrs: { pos: "100000" },
279
+ children: [
280
+ {
281
+ attrs: { val: "phClr" },
282
+ children: [
283
+ {
284
+ attrs: { val: "94000" },
285
+ tag: "a:shade",
286
+ },
287
+ {
288
+ attrs: { val: "135000" },
289
+ tag: "a:satMod",
290
+ },
291
+ ],
292
+ tag: "a:schemeClr",
293
+ },
294
+ ],
295
+ tag: "a:gs",
296
+ },
297
+ ],
298
+ tag: "a:gsLst",
299
+ },
300
+ {
301
+ attrs: { ang: "16200000", scaled: "0" },
302
+ tag: "a:lin",
303
+ },
304
+ ],
305
+ tag: "a:gradFill",
306
+ },
307
+ ],
308
+ tag: "a:fillStyleLst",
309
+ },
310
+ {
311
+ children: [
312
+ {
313
+ attrs: { algn: "ctr", cap: "flat", cmpd: "sng", w: "9525" },
314
+ children: [
315
+ {
316
+ children: [
317
+ {
318
+ attrs: { val: "phClr" },
319
+ children: [
320
+ { attrs: { val: "95000" }, tag: "a:shade" },
321
+ { attrs: { val: "105000" }, tag: "a:satMod" },
322
+ ],
323
+ tag: "a:schemeClr",
324
+ },
325
+ ],
326
+ tag: "a:solidFill",
327
+ },
328
+ {
329
+ attrs: { val: "solid" },
330
+ tag: "a:prstDash",
331
+ },
332
+ ],
333
+ tag: "a:ln",
334
+ },
335
+ {
336
+ attrs: { algn: "ctr", cap: "flat", cmpd: "sng", w: "25400" },
337
+ children: [
338
+ {
339
+ children: [
340
+ {
341
+ attrs: { val: "phClr" },
342
+ tag: "a:schemeClr",
343
+ },
344
+ ],
345
+ tag: "a:solidFill",
346
+ },
347
+ {
348
+ attrs: { val: "solid" },
349
+ tag: "a:prstDash",
350
+ },
351
+ ],
352
+ tag: "a:ln",
353
+ },
354
+ {
355
+ attrs: { algn: "ctr", cap: "flat", cmpd: "sng", w: "38100" },
356
+ children: [
357
+ {
358
+ children: [
359
+ {
360
+ attrs: { val: "phClr" },
361
+ tag: "a:schemeClr",
362
+ },
363
+ ],
364
+ tag: "a:solidFill",
365
+ },
366
+ {
367
+ attrs: { val: "solid" },
368
+ tag: "a:prstDash",
369
+ },
370
+ ],
371
+ tag: "a:ln",
372
+ },
373
+ ],
374
+ tag: "a:lnStyleLst",
375
+ },
376
+ {
377
+ children: [
378
+ {
379
+ children: [
380
+ {
381
+ children: [
382
+ {
383
+ attrs: { blurRad: "40000", dir: "5400000", dist: "20000", rotWithShape: "0" },
384
+ children: [
385
+ {
386
+ attrs: { val: "000000" },
387
+ children: [{ attrs: { val: "38000" }, tag: "a:alpha" }],
388
+ tag: "a:srgbClr",
389
+ },
390
+ ],
391
+ tag: "a:outerShdw",
392
+ },
393
+ ],
394
+ tag: "a:effectLst",
395
+ },
396
+ ],
397
+ tag: "a:effectStyle",
398
+ },
399
+ {
400
+ children: [
401
+ {
402
+ children: [
403
+ {
404
+ attrs: { blurRad: "40000", dir: "5400000", dist: "23000", rotWithShape: "0" },
405
+ children: [
406
+ {
407
+ attrs: { val: "000000" },
408
+ children: [{ attrs: { val: "35000" }, tag: "a:alpha" }],
409
+ tag: "a:srgbClr",
410
+ },
411
+ ],
412
+ tag: "a:outerShdw",
413
+ },
414
+ ],
415
+ tag: "a:effectLst",
416
+ },
417
+ ],
418
+ tag: "a:effectStyle",
419
+ },
420
+ {
421
+ children: [
422
+ {
423
+ children: [
424
+ {
425
+ attrs: { blurRad: "40000", dir: "5400000", dist: "23000", rotWithShape: "0" },
426
+ children: [
427
+ {
428
+ attrs: { val: "000000" },
429
+ children: [{ attrs: { val: "35000" }, tag: "a:alpha" }],
430
+ tag: "a:srgbClr",
431
+ },
432
+ ],
433
+ tag: "a:outerShdw",
434
+ },
435
+ ],
436
+ tag: "a:effectLst",
437
+ },
438
+ {
439
+ children: [
440
+ {
441
+ attrs: { prst: "orthographicFront" },
442
+ children: [{ attrs: { lat: "0", lon: "0", rev: "0" }, tag: "a:rot" }],
443
+ tag: "a:camera",
444
+ },
445
+ {
446
+ attrs: { dir: "t", rig: "threePt" },
447
+ children: [{ attrs: { lat: "0", lon: "0", rev: "0" }, tag: "a:rot" }],
448
+ tag: "a:lightRig",
449
+ },
450
+ ],
451
+ tag: "a:scene3d",
452
+ },
453
+ {
454
+ children: [{ attrs: { h: "25400", w: "63500" }, tag: "a:bevelT" }],
455
+ tag: "a:sp3d",
456
+ },
457
+ ],
458
+ tag: "a:effectStyle",
459
+ },
460
+ ],
461
+ tag: "a:effectStyleLst",
462
+ },
463
+ {
464
+ children: [
465
+ {
466
+ children: [{ attrs: { val: "phClr" }, tag: "a:schemeClr" }],
467
+ tag: "a:solidFill",
468
+ },
469
+ {
470
+ attrs: { rotWithShape: "1" },
471
+ children: [
472
+ {
473
+ children: [
474
+ {
475
+ attrs: { pos: "0" },
476
+ children: [
477
+ {
478
+ attrs: { val: "phClr" },
479
+ children: [
480
+ { attrs: { val: "40000" }, tag: "a:tint" },
481
+ { attrs: { val: "350000" }, tag: "a:satMod" },
482
+ ],
483
+ tag: "a:schemeClr",
484
+ },
485
+ ],
486
+ tag: "a:gs",
487
+ },
488
+ {
489
+ attrs: { pos: "40000" },
490
+ children: [
491
+ {
492
+ attrs: { val: "phClr" },
493
+ children: [
494
+ { attrs: { val: "45000" }, tag: "a:tint" },
495
+ { attrs: { val: "99000" }, tag: "a:shade" },
496
+ { attrs: { val: "350000" }, tag: "a:satMod" },
497
+ ],
498
+ tag: "a:schemeClr",
499
+ },
500
+ ],
501
+ tag: "a:gs",
502
+ },
503
+ {
504
+ attrs: { pos: "100000" },
505
+ children: [
506
+ {
507
+ attrs: { val: "phClr" },
508
+ children: [
509
+ { attrs: { val: "20000" }, tag: "a:shade" },
510
+ { attrs: { val: "255000" }, tag: "a:satMod" },
511
+ ],
512
+ tag: "a:schemeClr",
513
+ },
514
+ ],
515
+ tag: "a:gs",
516
+ },
517
+ ],
518
+ tag: "a:gsLst",
519
+ },
520
+ {
521
+ attrs: { path: "circle" },
522
+ children: [
523
+ {
524
+ attrs: { b: "180000", l: "50000", r: "50000", t: "-80000" },
525
+ tag: "a:fillToRect",
526
+ },
527
+ ],
528
+ tag: "a:path",
529
+ },
530
+ ],
531
+ tag: "a:gradFill",
532
+ },
533
+ {
534
+ attrs: { rotWithShape: "1" },
535
+ children: [
536
+ {
537
+ children: [
538
+ {
539
+ attrs: { pos: "0" },
540
+ children: [
541
+ {
542
+ attrs: { val: "phClr" },
543
+ children: [
544
+ { attrs: { val: "80000" }, tag: "a:tint" },
545
+ { attrs: { val: "300000" }, tag: "a:satMod" },
546
+ ],
547
+ tag: "a:schemeClr",
548
+ },
549
+ ],
550
+ tag: "a:gs",
551
+ },
552
+ {
553
+ attrs: { pos: "100000" },
554
+ children: [
555
+ {
556
+ attrs: { val: "phClr" },
557
+ children: [
558
+ { attrs: { val: "30000" }, tag: "a:shade" },
559
+ { attrs: { val: "200000" }, tag: "a:satMod" },
560
+ ],
561
+ tag: "a:schemeClr",
562
+ },
563
+ ],
564
+ tag: "a:gs",
565
+ },
566
+ ],
567
+ tag: "a:gsLst",
568
+ },
569
+ {
570
+ attrs: { path: "circle" },
571
+ children: [
572
+ {
573
+ attrs: { b: "50000", l: "50000", r: "50000", t: "50000" },
574
+ tag: "a:fillToRect",
575
+ },
576
+ ],
577
+ tag: "a:path",
578
+ },
579
+ ],
580
+ tag: "a:gradFill",
581
+ },
582
+ ],
583
+ tag: "a:bgFillStyleLst",
584
+ },
585
+ ],
586
+ tag: "a:fmtScheme",
587
+ },
588
+ ],
589
+ tag: "a:themeElements",
590
+ },
591
+ {
592
+ children: [],
593
+ tag: "a:objectDefaults",
594
+ },
595
+ {
596
+ children: [],
597
+ tag: "a:extraClrSchemeLst",
598
+ },
599
+ ],
600
+ tag: "a:theme",
601
+ };
602
+ return [
603
+ XML_DECLARATION,
604
+ buildXml(theme),
605
+ ].join("\n");
606
+ }