abstract-image 10.0.2 → 10.0.4

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 (380) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/lib/__stories__/react-svg-export/example-1.stories.js +40 -4
  3. package/lib/__stories__/react-svg-export/example-1.stories.js.map +1 -1
  4. package/lib/__stories__/svg-export/example-1.stories.js +40 -4
  5. package/lib/__stories__/svg-export/example-1.stories.js.map +1 -1
  6. package/lib/exporters/dxf2d-export-image.js +38 -2
  7. package/lib/exporters/dxf2d-export-image.js.map +1 -1
  8. package/lib/exporters/eps-export-image.js +4 -1
  9. package/lib/exporters/eps-export-image.js.map +1 -1
  10. package/lib/exporters/index.js +19 -3
  11. package/lib/exporters/index.js.map +1 -1
  12. package/lib/exporters/png-export-image.js +4 -1
  13. package/lib/exporters/png-export-image.js.map +1 -1
  14. package/lib/exporters/react-svg-export-image.js +40 -4
  15. package/lib/exporters/react-svg-export-image.js.map +1 -1
  16. package/lib/exporters/svg-export-image.js +38 -2
  17. package/lib/exporters/svg-export-image.js.map +1 -1
  18. package/lib/index.js +27 -11
  19. package/lib/index.js.map +1 -1
  20. package/lib/model/abstract-image.js +4 -1
  21. package/lib/model/abstract-image.js.map +1 -1
  22. package/lib/model/color.js +25 -19
  23. package/lib/model/color.js.map +1 -1
  24. package/lib/model/component.js +59 -13
  25. package/lib/model/component.js.map +1 -1
  26. package/lib/model/dash-style.js +6 -2
  27. package/lib/model/dash-style.js.map +1 -1
  28. package/lib/model/index.js +22 -6
  29. package/lib/model/index.js.map +1 -1
  30. package/lib/model/point.js +4 -1
  31. package/lib/model/point.js.map +1 -1
  32. package/lib/model/size.js +4 -1
  33. package/lib/model/size.js.map +1 -1
  34. package/package.json +5 -4
  35. package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts +0 -2
  36. package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts.map +0 -1
  37. package/lib/exporters/__tests__/dxf2d-export-image.test.js +0 -26
  38. package/lib/exporters/__tests__/dxf2d-export-image.test.js.map +0 -1
  39. package/lib/exporters/__tests__/eps-export-image.test.d.ts +0 -2
  40. package/lib/exporters/__tests__/eps-export-image.test.d.ts.map +0 -1
  41. package/lib/exporters/__tests__/eps-export-image.test.js +0 -30
  42. package/lib/exporters/__tests__/eps-export-image.test.js.map +0 -1
  43. package/lib/exporters/__tests__/png-export-image.test.d.ts +0 -2
  44. package/lib/exporters/__tests__/png-export-image.test.d.ts.map +0 -1
  45. package/lib/exporters/__tests__/png-export-image.test.js +0 -10
  46. package/lib/exporters/__tests__/png-export-image.test.js.map +0 -1
  47. package/lib/exporters/__tests__/react-svg-export-image.test.d.ts +0 -2
  48. package/lib/exporters/__tests__/react-svg-export-image.test.d.ts.map +0 -1
  49. package/lib/exporters/__tests__/react-svg-export-image.test.js +0 -44
  50. package/lib/exporters/__tests__/react-svg-export-image.test.js.map +0 -1
  51. package/lib/exporters/__tests__/svg-export-image.test.d.ts +0 -2
  52. package/lib/exporters/__tests__/svg-export-image.test.d.ts.map +0 -1
  53. package/lib/exporters/__tests__/svg-export-image.test.js +0 -37
  54. package/lib/exporters/__tests__/svg-export-image.test.js.map +0 -1
  55. package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.d.ts +0 -9
  56. package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.d.ts.map +0 -1
  57. package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js +0 -5
  58. package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js.map +0 -1
  59. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts +0 -3
  60. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts.map +0 -1
  61. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.js +0 -391
  62. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.js.map +0 -1
  63. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts +0 -3
  64. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts.map +0 -1
  65. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js +0 -138
  66. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js.map +0 -1
  67. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts +0 -3
  68. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts.map +0 -1
  69. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js +0 -67
  70. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js.map +0 -1
  71. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts +0 -3
  72. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts.map +0 -1
  73. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js +0 -101
  74. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js.map +0 -1
  75. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts +0 -3
  76. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts.map +0 -1
  77. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js +0 -91
  78. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js.map +0 -1
  79. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts +0 -3
  80. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts.map +0 -1
  81. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js +0 -111
  82. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js.map +0 -1
  83. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts +0 -3
  84. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts.map +0 -1
  85. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js +0 -150
  86. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js.map +0 -1
  87. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts +0 -3
  88. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts.map +0 -1
  89. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js +0 -75
  90. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js.map +0 -1
  91. package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.d.ts +0 -9
  92. package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.d.ts.map +0 -1
  93. package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js +0 -5
  94. package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js.map +0 -1
  95. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts +0 -3
  96. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts.map +0 -1
  97. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js +0 -36
  98. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js.map +0 -1
  99. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts +0 -3
  100. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts.map +0 -1
  101. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js +0 -38
  102. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js.map +0 -1
  103. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts +0 -3
  104. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts.map +0 -1
  105. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js +0 -46
  106. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js.map +0 -1
  107. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts +0 -3
  108. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts.map +0 -1
  109. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js +0 -32
  110. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js.map +0 -1
  111. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts +0 -3
  112. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts.map +0 -1
  113. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js +0 -52
  114. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js.map +0 -1
  115. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts +0 -3
  116. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts.map +0 -1
  117. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js +0 -46
  118. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js.map +0 -1
  119. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts +0 -3
  120. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts.map +0 -1
  121. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js +0 -32
  122. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js.map +0 -1
  123. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts +0 -3
  124. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts.map +0 -1
  125. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.js +0 -74
  126. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.js.map +0 -1
  127. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts +0 -3
  128. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts.map +0 -1
  129. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js +0 -49
  130. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js.map +0 -1
  131. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts +0 -3
  132. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts.map +0 -1
  133. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js +0 -38
  134. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js.map +0 -1
  135. package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.d.ts +0 -9
  136. package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.d.ts.map +0 -1
  137. package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js +0 -5
  138. package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js.map +0 -1
  139. package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts +0 -3
  140. package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts.map +0 -1
  141. package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.js +0 -11
  142. package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.js.map +0 -1
  143. package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.d.ts +0 -2
  144. package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.d.ts.map +0 -1
  145. package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.js +0 -26
  146. package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.js.map +0 -1
  147. package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.d.ts +0 -10
  148. package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.d.ts.map +0 -1
  149. package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js +0 -5
  150. package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js.map +0 -1
  151. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts +0 -3
  152. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts.map +0 -1
  153. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.js +0 -11
  154. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.js.map +0 -1
  155. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts +0 -3
  156. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts.map +0 -1
  157. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.js +0 -11
  158. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.js.map +0 -1
  159. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts +0 -3
  160. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts.map +0 -1
  161. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.js +0 -11
  162. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.js.map +0 -1
  163. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts +0 -3
  164. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts.map +0 -1
  165. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js +0 -34
  166. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js.map +0 -1
  167. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts +0 -3
  168. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts.map +0 -1
  169. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js +0 -12
  170. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js.map +0 -1
  171. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.d.ts +0 -2
  172. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.d.ts.map +0 -1
  173. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.js +0 -60
  174. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.js.map +0 -1
  175. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts +0 -3
  176. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts.map +0 -1
  177. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js +0 -12
  178. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js.map +0 -1
  179. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts +0 -3
  180. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts.map +0 -1
  181. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js +0 -12
  182. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js.map +0 -1
  183. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts +0 -3
  184. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts.map +0 -1
  185. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js +0 -15
  186. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js.map +0 -1
  187. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts +0 -3
  188. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts.map +0 -1
  189. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js +0 -12
  190. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js.map +0 -1
  191. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts +0 -3
  192. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts.map +0 -1
  193. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js +0 -18
  194. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js.map +0 -1
  195. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts +0 -3
  196. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts.map +0 -1
  197. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js +0 -20
  198. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js.map +0 -1
  199. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts +0 -3
  200. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts.map +0 -1
  201. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js +0 -12
  202. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js.map +0 -1
  203. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts +0 -3
  204. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts.map +0 -1
  205. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js +0 -11
  206. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js.map +0 -1
  207. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts +0 -3
  208. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts.map +0 -1
  209. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.js +0 -13
  210. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.js.map +0 -1
  211. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts +0 -3
  212. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts.map +0 -1
  213. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.js +0 -15
  214. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.js.map +0 -1
  215. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts +0 -3
  216. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts.map +0 -1
  217. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.js +0 -14
  218. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.js.map +0 -1
  219. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts +0 -3
  220. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts.map +0 -1
  221. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js +0 -12
  222. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js.map +0 -1
  223. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts +0 -3
  224. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts.map +0 -1
  225. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js +0 -12
  226. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js.map +0 -1
  227. package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.d.ts +0 -9
  228. package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.d.ts.map +0 -1
  229. package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js +0 -5
  230. package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js.map +0 -1
  231. package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts +0 -3
  232. package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts.map +0 -1
  233. package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.js +0 -12
  234. package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.js.map +0 -1
  235. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts +0 -3
  236. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts.map +0 -1
  237. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js +0 -12
  238. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js.map +0 -1
  239. package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.d.ts +0 -2
  240. package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.d.ts.map +0 -1
  241. package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.js +0 -65
  242. package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.js.map +0 -1
  243. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts +0 -3
  244. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts.map +0 -1
  245. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js +0 -12
  246. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js.map +0 -1
  247. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts +0 -3
  248. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts.map +0 -1
  249. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js +0 -12
  250. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js.map +0 -1
  251. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts +0 -3
  252. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts.map +0 -1
  253. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js +0 -15
  254. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js.map +0 -1
  255. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts +0 -3
  256. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts.map +0 -1
  257. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js +0 -12
  258. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js.map +0 -1
  259. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts +0 -3
  260. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts.map +0 -1
  261. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js +0 -18
  262. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js.map +0 -1
  263. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts +0 -3
  264. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts.map +0 -1
  265. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js +0 -20
  266. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js.map +0 -1
  267. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts +0 -3
  268. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts.map +0 -1
  269. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js +0 -12
  270. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js.map +0 -1
  271. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts +0 -3
  272. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts.map +0 -1
  273. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.js +0 -13
  274. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.js.map +0 -1
  275. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts +0 -3
  276. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts.map +0 -1
  277. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.js +0 -15
  278. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.js.map +0 -1
  279. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts +0 -3
  280. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts.map +0 -1
  281. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.js +0 -14
  282. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.js.map +0 -1
  283. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts +0 -3
  284. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts.map +0 -1
  285. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js +0 -12
  286. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js.map +0 -1
  287. package/lib/model/__tests__/color/export-test-def.d.ts +0 -10
  288. package/lib/model/__tests__/color/export-test-def.d.ts.map +0 -1
  289. package/lib/model/__tests__/color/export-test-def.js +0 -5
  290. package/lib/model/__tests__/color/export-test-def.js.map +0 -1
  291. package/lib/model/__tests__/color/export.test.d.ts +0 -2
  292. package/lib/model/__tests__/color/export.test.d.ts.map +0 -1
  293. package/lib/model/__tests__/color/export.test.js +0 -13
  294. package/lib/model/__tests__/color/export.test.js.map +0 -1
  295. package/lib/model/__tests__/color/test-defs/color-from-string.d.ts +0 -3
  296. package/lib/model/__tests__/color/test-defs/color-from-string.d.ts.map +0 -1
  297. package/lib/model/__tests__/color/test-defs/color-from-string.js +0 -43
  298. package/lib/model/__tests__/color/test-defs/color-from-string.js.map +0 -1
  299. package/lib/model/__tests__/color/test-defs/color-to-string.d.ts +0 -3
  300. package/lib/model/__tests__/color/test-defs/color-to-string.d.ts.map +0 -1
  301. package/lib/model/__tests__/color/test-defs/color-to-string.js +0 -32
  302. package/lib/model/__tests__/color/test-defs/color-to-string.js.map +0 -1
  303. package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts +0 -3
  304. package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts.map +0 -1
  305. package/lib/model/__tests__/color/test-defs/color-undefined-2.js +0 -7
  306. package/lib/model/__tests__/color/test-defs/color-undefined-2.js.map +0 -1
  307. package/lib/model/__tests__/color/test-defs/color-undefined.d.ts +0 -3
  308. package/lib/model/__tests__/color/test-defs/color-undefined.d.ts.map +0 -1
  309. package/lib/model/__tests__/color/test-defs/color-undefined.js +0 -7
  310. package/lib/model/__tests__/color/test-defs/color-undefined.js.map +0 -1
  311. package/src/exporters/__tests__/dxf2d-export-image.test.tsx +0 -26
  312. package/src/exporters/__tests__/eps-export-image.test.tsx +0 -30
  313. package/src/exporters/__tests__/images/diffusers.png +0 -0
  314. package/src/exporters/__tests__/png-export-image.test.tsx +0 -10
  315. package/src/exporters/__tests__/react-svg-export-image.test.tsx +0 -44
  316. package/src/exporters/__tests__/svg-export-image.test.tsx +0 -37
  317. package/src/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.ts +0 -9
  318. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.ts +0 -405
  319. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.ts +0 -166
  320. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.ts +0 -80
  321. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.ts +0 -114
  322. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.ts +0 -103
  323. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.ts +0 -125
  324. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.ts +0 -214
  325. package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.ts +0 -97
  326. package/src/exporters/__tests__/tests-eps-export-image/_export-test-def.ts +0 -9
  327. package/src/exporters/__tests__/tests-eps-export-image/eps-ellipse.ts +0 -50
  328. package/src/exporters/__tests__/tests-eps-export-image/eps-empty-text.ts +0 -60
  329. package/src/exporters/__tests__/tests-eps-export-image/eps-group.ts +0 -74
  330. package/src/exporters/__tests__/tests-eps-export-image/eps-line.ts +0 -45
  331. package/src/exporters/__tests__/tests-eps-export-image/eps-polygon.ts +0 -65
  332. package/src/exporters/__tests__/tests-eps-export-image/eps-polyline.ts +0 -58
  333. package/src/exporters/__tests__/tests-eps-export-image/eps-rectangle.ts +0 -46
  334. package/src/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.ts +0 -138
  335. package/src/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.ts +0 -71
  336. package/src/exporters/__tests__/tests-eps-export-image/eps-text.ts +0 -60
  337. package/src/exporters/__tests__/tests-png-export-image/_export-test-def.ts +0 -9
  338. package/src/exporters/__tests__/tests-png-export-image/png-createPNG.tsx +0 -26
  339. package/src/exporters/__tests__/tests-png-export-image/png-unsupported.test.tsx +0 -30
  340. package/src/exporters/__tests__/tests-react-svg-export-image/_export-test-def.tsx +0 -11
  341. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.tsx +0 -27
  342. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.tsx +0 -27
  343. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.tsx +0 -26
  344. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.tsx +0 -61
  345. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.tsx +0 -28
  346. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.tsx +0 -69
  347. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.tsx +0 -28
  348. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.tsx +0 -35
  349. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-group.tsx +0 -44
  350. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-line.tsx +0 -26
  351. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.tsx +0 -32
  352. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.tsx +0 -33
  353. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.tsx +0 -27
  354. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.tsx +0 -36
  355. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.tsx +0 -50
  356. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.tsx +0 -80
  357. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.tsx +0 -65
  358. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.tsx +0 -35
  359. package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text.tsx +0 -35
  360. package/src/exporters/__tests__/tests-svg-export-image/_export-test-def.ts +0 -9
  361. package/src/exporters/__tests__/tests-svg-export-image/svg-binary.tsx +0 -25
  362. package/src/exporters/__tests__/tests-svg-export-image/svg-dashed-line.ts +0 -28
  363. package/src/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.tsx +0 -68
  364. package/src/exporters/__tests__/tests-svg-export-image/svg-ellipse.ts +0 -27
  365. package/src/exporters/__tests__/tests-svg-export-image/svg-empty-text.ts +0 -34
  366. package/src/exporters/__tests__/tests-svg-export-image/svg-group.ts +0 -44
  367. package/src/exporters/__tests__/tests-svg-export-image/svg-line.ts +0 -26
  368. package/src/exporters/__tests__/tests-svg-export-image/svg-polygon.ts +0 -32
  369. package/src/exporters/__tests__/tests-svg-export-image/svg-polyline.ts +0 -33
  370. package/src/exporters/__tests__/tests-svg-export-image/svg-rectangle.ts +0 -27
  371. package/src/exporters/__tests__/tests-svg-export-image/svg-text-bold.ts +0 -50
  372. package/src/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.ts +0 -80
  373. package/src/exporters/__tests__/tests-svg-export-image/svg-text-italic.ts +0 -65
  374. package/src/exporters/__tests__/tests-svg-export-image/svg-text.ts +0 -35
  375. package/src/model/__tests__/color/export-test-def.ts +0 -11
  376. package/src/model/__tests__/color/export.test.tsx +0 -13
  377. package/src/model/__tests__/color/test-defs/color-from-string.ts +0 -46
  378. package/src/model/__tests__/color/test-defs/color-to-string.ts +0 -35
  379. package/src/model/__tests__/color/test-defs/color-undefined-2.ts +0 -8
  380. package/src/model/__tests__/color/test-defs/color-undefined.ts +0 -8
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-ellipse.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-ellipse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,aAAa,CACzB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EACnC,aAAa,CAAC,KAAK,EACnB,CAAC,EACD,aAAa,CAAC,MAAM,CACrB;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAkB;IAC3C,IAAI,EAAE,aAAa;IACnB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,2PAA2P;CAC9P,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgEmptyText: ExportTestDef;
3
- //# sourceMappingURL=svg-empty-text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-empty-text.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-empty-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA6BtD,eAAO,MAAM,gBAAgB,EAAE,aAI9B,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createText(AbstractImage.createPoint(10, 10), "", "Arial", 12, AbstractImage.black, "bold", 0, "center", "right", "down", 2, AbstractImage.red, false),
4
- ];
5
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
6
- const svg = AbstractImage.createSVG(image);
7
- export const testSvgEmptyText = {
8
- name: "svg empty text",
9
- abstractImage: svg,
10
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"></svg>',
11
- };
12
- //# sourceMappingURL=svg-empty-text.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-empty-text.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-empty-text.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,EAAE,EACF,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,QAAQ,EACR,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAkB;IAC7C,IAAI,EAAE,gBAAgB;IACtB,aAAa,EAAE,GAAG;IAClB,aAAa,EAAE,mGAAmG;CACnH,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgGroup: ExportTestDef;
3
- //# sourceMappingURL=svg-group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-group.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAsCtD,eAAO,MAAM,YAAY,EAAE,aAK1B,CAAC"}
@@ -1,15 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createGroup("group", [
4
- AbstractImage.createText(AbstractImage.createPoint(200, 200), "Test", "Helvetica", 12, AbstractImage.black, "normal", 0, "center", "uniform", "uniform", 0, AbstractImage.black, false),
5
- AbstractImage.createRectangle(AbstractImage.createPoint(10, 50), AbstractImage.createPoint(50, 60), AbstractImage.blue, 2, AbstractImage.red),
6
- ]),
7
- ];
8
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
9
- const svg = AbstractImage.createSVG(image);
10
- export const testSvgGroup = {
11
- name: "svg group",
12
- abstractImage: svg,
13
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><g name="group"><text style="text-anchor:middle;font-size:12px;font-weight:normal;font-family:Helvetica;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 200 200)"><tspan x="200" y="200" height="12px"><tspan alignment-baseline="central">Test</tspan></tspan></text><rect x="10" y="50" width="40" height="10" stroke="rgb(0, 0, 255)" stroke-opacity="1" stroke-width="2" fill="rgb(255, 0, 0)" fill-opacity="1"></rect></g></svg>',
14
- };
15
- //# sourceMappingURL=svg-group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-group.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-group.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,WAAW,CAAC,OAAO,EAAE;QACjC,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EACnC,MAAM,EACN,WAAW,EACX,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,QAAQ,EACR,CAAC,EACD,QAAQ,EACR,SAAS,EACT,SAAS,EACT,CAAC,EACD,aAAa,CAAC,KAAK,EACnB,KAAK,CACN;QACD,aAAa,CAAC,eAAe,CAC3B,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,IAAI,EAClB,CAAC,EACD,aAAa,CAAC,GAAG,CAClB;KACF,CAAC;CACH,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAkB;IACzC,IAAI,EAAE,WAAW;IACjB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,ygBAAygB;CAC5gB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgLine: ExportTestDef;
3
- //# sourceMappingURL=svg-line.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-line.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAoBtD,eAAO,MAAM,WAAW,EAAE,aAKzB,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createLine(AbstractImage.createPoint(10, 100), AbstractImage.createPoint(40, 70), AbstractImage.black, 2),
4
- ];
5
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
6
- const svg = AbstractImage.createSVG(image);
7
- export const testSvgLine = {
8
- name: "svg line",
9
- abstractImage: svg,
10
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><line x1="10" y1="100" x2="40" y2="70" stroke="rgb(0, 0, 0)" stroke-opacity="1" stroke-width="2"></line></svg>',
11
- };
12
- //# sourceMappingURL=svg-line.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-line.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-line.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,KAAK,EACnB,CAAC,CACF;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAkB;IACxC,IAAI,EAAE,UAAU;IAChB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,2MAA2M;CAC9M,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgPolygon: ExportTestDef;
3
- //# sourceMappingURL=svg-polygon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-polygon.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA0BtD,eAAO,MAAM,cAAc,EAAE,aAK5B,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createPolygon([
4
- AbstractImage.createPoint(110, 10),
5
- AbstractImage.createPoint(100, 20),
6
- AbstractImage.createPoint(110, 30),
7
- AbstractImage.createPoint(100, 40),
8
- AbstractImage.createPoint(110, 50),
9
- ], AbstractImage.blue, 2, AbstractImage.red),
10
- ];
11
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
12
- const svg = AbstractImage.createSVG(image);
13
- export const testSvgPolygon = {
14
- name: "svg polygon",
15
- abstractImage: svg,
16
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><polygon points="110,10 100,20 110,30 100,40 110,50" stroke="rgb(0, 0, 255)" stroke-opacity="1" stroke-width="2" fill="rgb(255, 0, 0)" fill-opacity="1"></polygon></svg>',
17
- };
18
- //# sourceMappingURL=svg-polygon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-polygon.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-polygon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,aAAa,CACzB;QACE,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC;QAClC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC;QAClC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC;QAClC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC;QAClC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC;KACnC,EACD,aAAa,CAAC,IAAI,EAClB,CAAC,EACD,aAAa,CAAC,GAAG,CAClB;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAkB;IAC3C,IAAI,EAAE,aAAa;IACnB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,qQAAqQ;CACxQ,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgPolyline: ExportTestDef;
3
- //# sourceMappingURL=svg-polyline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-polyline.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA2BtD,eAAO,MAAM,eAAe,EAAE,aAK7B,CAAC"}
@@ -1,20 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createPolyLine([
4
- AbstractImage.createPoint(10, 40),
5
- AbstractImage.createPoint(20, 30),
6
- AbstractImage.createPoint(30, 40),
7
- AbstractImage.createPoint(40, 30),
8
- AbstractImage.createPoint(50, 40),
9
- AbstractImage.createPoint(60, 30),
10
- AbstractImage.createPoint(70, 40),
11
- ], AbstractImage.black, 2),
12
- ];
13
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
14
- const svg = AbstractImage.createSVG(image);
15
- export const testSvgPolyline = {
16
- name: "svg polyline",
17
- abstractImage: svg,
18
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><polyline fill="none" points="10,40 20,30 30,40 40,30 50,40 60,30 70,40" stroke="rgb(0, 0, 0)" stroke-opacity="1" stroke-width="2"></polyline></svg>',
19
- };
20
- //# sourceMappingURL=svg-polyline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-polyline.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-polyline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,cAAc,CAC1B;QACE,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC;QACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC;QACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC;QACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC;QACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC;QACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC;QACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC;KAClC,EACD,aAAa,CAAC,KAAK,EACnB,CAAC,CACF;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAkB;IAC5C,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,iPAAiP;CACpP,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgRectangle: ExportTestDef;
3
- //# sourceMappingURL=svg-rectangle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-rectangle.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAqBtD,eAAO,MAAM,gBAAgB,EAAE,aAK9B,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createRectangle(AbstractImage.createPoint(10, 50), AbstractImage.createPoint(50, 60), AbstractImage.blue, 2, AbstractImage.red),
4
- ];
5
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
6
- const svg = AbstractImage.createSVG(image);
7
- export const testSvgRectangle = {
8
- name: "svg rectangle",
9
- abstractImage: svg,
10
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><rect x="10" y="50" width="40" height="10" stroke="rgb(0, 0, 255)" stroke-opacity="1" stroke-width="2" fill="rgb(255, 0, 0)" fill-opacity="1"></rect></svg>',
11
- };
12
- //# sourceMappingURL=svg-rectangle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-rectangle.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-rectangle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,eAAe,CAC3B,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,IAAI,EAClB,CAAC,EACD,aAAa,CAAC,GAAG,CAClB;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAkB;IAC7C,IAAI,EAAE,eAAe;IACrB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,wPAAwP;CAC3P,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgTextBold: ExportTestDef;
3
- //# sourceMappingURL=svg-text-bold.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text-bold.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text-bold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA4CtD,eAAO,MAAM,eAAe,EAAE,aAK7B,CAAC"}
@@ -1,13 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createText(AbstractImage.createPoint(10, 10), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "center", "right", "down", 2, AbstractImage.red, false),
4
- AbstractImage.createText(AbstractImage.createPoint(40, 40), "Hello World", "Arial", 12, AbstractImage.black, "mediumBold", 0, "center", "right", "down", 2, AbstractImage.red, false),
5
- ];
6
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
7
- const svg = AbstractImage.createSVG(image);
8
- export const testSvgTextBold = {
9
- name: "svg text bold",
10
- abstractImage: svg,
11
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text><text style="text-anchor:start;font-size:12px;font-weight:mediumBold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 40 40)"><tspan x="40" y="40" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:mediumBold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 40 40)"><tspan x="40" y="40" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text></svg>',
12
- };
13
- //# sourceMappingURL=svg-text-bold.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text-bold.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text-bold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,QAAQ,EACR,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,YAAY,EACZ,CAAC,EACD,QAAQ,EACR,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAkB;IAC5C,IAAI,EAAE,eAAe;IACrB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,moCAAmoC;CACtoC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgTextGrowthDirections: ExportTestDef;
3
- //# sourceMappingURL=svg-text-growth-directions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text-growth-directions.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA0EtD,eAAO,MAAM,2BAA2B,EAAE,aAKzC,CAAC"}
@@ -1,15 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createText(AbstractImage.createPoint(10, 10), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "center", "left", "up", 2, AbstractImage.red, false),
4
- AbstractImage.createText(AbstractImage.createPoint(10, 30), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "center", "uniform", "uniform", 2, AbstractImage.red, false),
5
- AbstractImage.createText(AbstractImage.createPoint(10, 50), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "left", "right", "down", 2, AbstractImage.red, false),
6
- AbstractImage.createText(AbstractImage.createPoint(10, 70), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "right", "right", "down", 2, AbstractImage.red, false),
7
- ];
8
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
9
- const svg = AbstractImage.createSVG(image);
10
- export const testSvgTextGrowthDirections = {
11
- name: "svg text growth directions",
12
- abstractImage: svg,
13
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><text style="text-anchor:end;font-size:12px;font-weight:bold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="baseline">Hello World</tspan></tspan></text>,<text style="text-anchor:end;font-size:12px;font-weight:bold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="baseline">Hello World</tspan></tspan></text><text style="text-anchor:middle;font-size:12px;font-weight:bold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 10 30)"><tspan x="10" y="30" height="12px"><tspan alignment-baseline="central">Hello World</tspan></tspan></text>,<text style="text-anchor:middle;font-size:12px;font-weight:bold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 10 30)"><tspan x="10" y="30" height="12px"><tspan alignment-baseline="central">Hello World</tspan></tspan></text><text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 10 50)"><tspan x="10" y="50" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 10 50)"><tspan x="10" y="50" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text><text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 10 70)"><tspan x="10" y="70" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 10 70)"><tspan x="10" y="70" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text></svg>',
14
- };
15
- //# sourceMappingURL=svg-text-growth-directions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text-growth-directions.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,QAAQ,EACR,SAAS,EACT,SAAS,EACT,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,MAAM,EACN,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,OAAO,EACP,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,2BAA2B,GAAkB;IACxD,IAAI,EAAE,4BAA4B;IAClC,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,2oEAA2oE;CAC9oE,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgTextItalic: ExportTestDef;
3
- //# sourceMappingURL=svg-text-italic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text-italic.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text-italic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA2DtD,eAAO,MAAM,iBAAiB,EAAE,aAK/B,CAAC"}
@@ -1,14 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createText(AbstractImage.createPoint(10, 10), "Hello World", "Arial", 12, AbstractImage.black, "normal", 0, "center", "right", "down", 2, AbstractImage.red, true),
4
- AbstractImage.createText(AbstractImage.createPoint(20, 20), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "center", "right", "down", 2, AbstractImage.red, true),
5
- AbstractImage.createText(AbstractImage.createPoint(30, 30), "Hello World", "Arial", 12, AbstractImage.black, "mediumBold", 0, "center", "right", "down", 2, AbstractImage.red, true),
6
- ];
7
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
8
- const svg = AbstractImage.createSVG(image);
9
- export const testSvgTextItalic = {
10
- name: "svg text italic",
11
- abstractImage: svg,
12
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><text style="text-anchor:start;font-size:12px;font-weight:normal;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:normal;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text><text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 20 20)"><tspan x="20" y="20" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:bold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 20 20)"><tspan x="20" y="20" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text><text style="text-anchor:start;font-size:12px;font-weight:mediumBold;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 30 30)"><tspan x="30" y="30" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:mediumBold;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 30 30)"><tspan x="30" y="30" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text></svg>',
13
- };
14
- //# sourceMappingURL=svg-text-italic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text-italic.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text-italic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,QAAQ,EACR,CAAC,EACD,QAAQ,EACR,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,IAAI,CACL;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,QAAQ,EACR,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,IAAI,CACL;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,YAAY,EACZ,CAAC,EACD,QAAQ,EACR,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,IAAI,CACL;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAkB;IAC9C,IAAI,EAAE,iBAAiB;IACvB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,ipDAAipD;CACppD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "./_export-test-def.js";
2
- export declare const testSvgText: ExportTestDef;
3
- //# sourceMappingURL=svg-text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA6BtD,eAAO,MAAM,WAAW,EAAE,aAKzB,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as AbstractImage from "../../../index.js";
2
- const components = [
3
- AbstractImage.createText(AbstractImage.createPoint(10, 10), "Hello World", "Arial", 12, AbstractImage.black, "normal", 0, "center", "right", "down", 2, AbstractImage.red, false),
4
- ];
5
- const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
6
- const svg = AbstractImage.createSVG(image);
7
- export const testSvgText = {
8
- name: "svg text",
9
- abstractImage: svg,
10
- expectedImage: '<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 400 400"><text style="text-anchor:start;font-size:12px;font-weight:normal;font-family:Arial;stroke:rgb(255, 0, 0);stroke-opacity:1;stroke-width:2px;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text>,<text style="text-anchor:start;font-size:12px;font-weight:normal;font-family:Arial;fill:rgb(0, 0, 0);fill-opacity:1;" transform="rotate(0 10 10)"><tspan x="10" y="10" height="12px"><tspan alignment-baseline="hanging">Hello World</tspan></tspan></text></svg>',
11
- };
12
- //# sourceMappingURL=svg-text.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-text.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-svg-export-image/svg-text.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,QAAQ,EACR,CAAC,EACD,QAAQ,EACR,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAkB;IACxC,IAAI,EAAE,UAAU;IAChB,aAAa,EAAE,GAAG;IAClB,aAAa,EACX,inBAAinB;CACpnB,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Defines a data-type that represents a single test for the Docx render function
3
- */
4
- import * as AbstractImage from "../../../../src/index.js";
5
- export type ExportTestDef = {
6
- readonly name: string;
7
- readonly abstractColor: {} | AbstractImage.Color | undefined;
8
- readonly expectedColor: {} | undefined;
9
- };
10
- //# sourceMappingURL=export-test-def.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export-test-def.d.ts","sourceRoot":"","sources":["../../../../src/model/__tests__/color/export-test-def.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,aAAa,EAAE,EAAE,GAAG,aAAa,CAAC,KAAK,GAAG,SAAS,CAAC;IAC7D,QAAQ,CAAC,aAAa,EAAE,EAAE,GAAG,SAAS,CAAC;CACxC,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Defines a data-type that represents a single test for the Docx render function
3
- */
4
- export {};
5
- //# sourceMappingURL=export-test-def.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export-test-def.js","sourceRoot":"","sources":["../../../../src/model/__tests__/color/export-test-def.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=export.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export.test.d.ts","sourceRoot":"","sources":["../../../../src/model/__tests__/color/export.test.tsx"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- import { describe, test, expect } from "vitest";
2
- import { testColorFromString } from "./test-defs/color-from-string.js";
3
- import { testColorToString } from "./test-defs/color-to-string.js";
4
- import { testColorUndefined2 } from "./test-defs/color-undefined-2.js";
5
- import { testColorUndefined } from "./test-defs/color-undefined.js";
6
- describe("color", () => {
7
- [testColorFromString, testColorToString, testColorUndefined2, testColorUndefined].forEach((item) => {
8
- test(item.name, () => {
9
- expect(item.abstractColor).toEqual(item.expectedColor);
10
- });
11
- });
12
- });
13
- //# sourceMappingURL=export.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export.test.js","sourceRoot":"","sources":["../../../../src/model/__tests__/color/export.test.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACrB,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACjG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;YACnB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "../export-test-def.js";
2
- export declare const testColorFromString: ExportTestDef;
3
- //# sourceMappingURL=color-from-string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-from-string.d.ts","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-from-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAwBtD,eAAO,MAAM,mBAAmB,EAAE,aAqBjC,CAAC"}
@@ -1,43 +0,0 @@
1
- import * as AbstractImage from "../../../../../src/index.js";
2
- const colorStrings = [
3
- "#ff000000",
4
- "#ff0000ff",
5
- "#ffa52a2a",
6
- "#ff00ffff",
7
- "#ffa9a9a9",
8
- "#ff808080",
9
- "#ff008000",
10
- "#ffd3d3d3",
11
- "#ffff00ff",
12
- "#ffffa500",
13
- "#ff800080",
14
- "#ffff0000",
15
- "#ffffffff",
16
- "#ffffffff",
17
- "#ffffff00",
18
- "#ffadd8e6",
19
- ];
20
- const fromColor = colorStrings.map((color) => AbstractImage.fromString(color));
21
- export const testColorFromString = {
22
- name: "color from string",
23
- abstractColor: fromColor,
24
- expectedColor: [
25
- { a: 255, b: 0, g: 0, r: 0 },
26
- { a: 255, b: 255, g: 0, r: 0 },
27
- { a: 255, b: 42, g: 42, r: 165 },
28
- { a: 255, b: 255, g: 255, r: 0 },
29
- { a: 255, b: 169, g: 169, r: 169 },
30
- { a: 255, b: 128, g: 128, r: 128 },
31
- { a: 255, b: 0, g: 128, r: 0 },
32
- { a: 255, b: 211, g: 211, r: 211 },
33
- { a: 255, b: 255, g: 0, r: 255 },
34
- { a: 255, b: 0, g: 165, r: 255 },
35
- { a: 255, b: 128, g: 0, r: 128 },
36
- { a: 255, b: 0, g: 0, r: 255 },
37
- { a: 255, b: 255, g: 255, r: 255 },
38
- { a: 255, b: 255, g: 255, r: 255 },
39
- { a: 255, b: 0, g: 255, r: 255 },
40
- { a: 255, b: 230, g: 216, r: 173 },
41
- ],
42
- };
43
- //# sourceMappingURL=color-from-string.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-from-string.js","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-from-string.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,6BAA6B,CAAC;AAE7D,MAAM,YAAY,GAAG;IACnB,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACZ,CAAC;AAEF,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,mBAAmB,GAAkB;IAChD,IAAI,EAAE,mBAAmB;IACzB,aAAa,EAAE,SAAS;IACxB,aAAa,EAAE;QACb,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;QAC9B,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;QAChC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;QAC9B,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE;QAC9B,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;KACnC;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "../export-test-def.js";
2
- export declare const testColorToString: ExportTestDef;
3
- //# sourceMappingURL=color-to-string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-to-string.d.ts","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-to-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA8BtD,eAAO,MAAM,iBAAiB,EAAE,aAI/B,CAAC"}
@@ -1,32 +0,0 @@
1
- import * as AbstractImage from "../../../../../src/index.js";
2
- const colors = [
3
- AbstractImage.black,
4
- AbstractImage.blue,
5
- AbstractImage.brown,
6
- AbstractImage.cyan,
7
- AbstractImage.darkGray,
8
- AbstractImage.gray,
9
- AbstractImage.green,
10
- AbstractImage.lightGray,
11
- AbstractImage.magenta,
12
- AbstractImage.orange,
13
- AbstractImage.purple,
14
- AbstractImage.red,
15
- AbstractImage.transparent,
16
- AbstractImage.white,
17
- AbstractImage.yellow,
18
- AbstractImage.lightBlue,
19
- ];
20
- const colorString = colors
21
- .map((color) => AbstractImage.toString6Hex(color))
22
- .reduce((acc, color) => {
23
- acc += `${color} `;
24
- return acc;
25
- }, "")
26
- .slice(0, -1);
27
- export const testColorToString = {
28
- name: "color to string",
29
- abstractColor: colorString,
30
- expectedColor: `000000 0000ff a52a2a 00ffff a9a9a9 808080 008000 d3d3d3 ff00ff ffa500 800080 ff0000 ffffff ffffff ffff00 add8e6`,
31
- };
32
- //# sourceMappingURL=color-to-string.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-to-string.js","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-to-string.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,6BAA6B,CAAC;AAE7D,MAAM,MAAM,GAAG;IACb,aAAa,CAAC,KAAK;IACnB,aAAa,CAAC,IAAI;IAClB,aAAa,CAAC,KAAK;IACnB,aAAa,CAAC,IAAI;IAClB,aAAa,CAAC,QAAQ;IACtB,aAAa,CAAC,IAAI;IAClB,aAAa,CAAC,KAAK;IACnB,aAAa,CAAC,SAAS;IACvB,aAAa,CAAC,OAAO;IACrB,aAAa,CAAC,MAAM;IACpB,aAAa,CAAC,MAAM;IACpB,aAAa,CAAC,GAAG;IACjB,aAAa,CAAC,WAAW;IACzB,aAAa,CAAC,KAAK;IACnB,aAAa,CAAC,MAAM;IACpB,aAAa,CAAC,SAAS;CACxB,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM;KACvB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;KACjD,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IACrB,GAAG,IAAI,GAAG,KAAK,GAAG,CAAC;IACnB,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,EAAE,CAAC;KACL,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,CAAC,MAAM,iBAAiB,GAAkB;IAC9C,IAAI,EAAE,iBAAiB;IACvB,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,iHAAiH;CACjI,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "../export-test-def.js";
2
- export declare const testColorUndefined2: ExportTestDef;
3
- //# sourceMappingURL=color-undefined-2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-undefined-2.d.ts","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-undefined-2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,eAAO,MAAM,mBAAmB,EAAE,aAIjC,CAAC"}
@@ -1,7 +0,0 @@
1
- import * as AbstractImage from "../../../../../src/index.js";
2
- export const testColorUndefined2 = {
3
- name: "color undefined 2",
4
- abstractColor: AbstractImage.fromString("#########"),
5
- expectedColor: undefined,
6
- };
7
- //# sourceMappingURL=color-undefined-2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-undefined-2.js","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-undefined-2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,6BAA6B,CAAC;AAE7D,MAAM,CAAC,MAAM,mBAAmB,GAAkB;IAChD,IAAI,EAAE,mBAAmB;IACzB,aAAa,EAAE,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC;IACpD,aAAa,EAAE,SAAS;CACzB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExportTestDef } from "../export-test-def.js";
2
- export declare const testColorUndefined: ExportTestDef;
3
- //# sourceMappingURL=color-undefined.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-undefined.d.ts","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-undefined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,aAIhC,CAAC"}
@@ -1,7 +0,0 @@
1
- import * as AbstractImage from "../../../../../src/index.js";
2
- export const testColorUndefined = {
3
- name: "color undefined",
4
- abstractColor: AbstractImage.fromString("#fff"),
5
- expectedColor: undefined,
6
- };
7
- //# sourceMappingURL=color-undefined.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-undefined.js","sourceRoot":"","sources":["../../../../../src/model/__tests__/color/test-defs/color-undefined.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,6BAA6B,CAAC;AAE7D,MAAM,CAAC,MAAM,kBAAkB,GAAkB;IAC/C,IAAI,EAAE,iBAAiB;IACvB,aAAa,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC;IAC/C,aAAa,EAAE,SAAS;CACzB,CAAC"}
@@ -1,26 +0,0 @@
1
- import { describe, test, expect } from "vitest";
2
- import { testDxf2dPolyline } from "./tests-dxf2d-export-image/dxf2d-polyline.js";
3
- import { testDxf2dRectangle } from "./tests-dxf2d-export-image/dxf2d-rectangle.js";
4
- import { testDxf2dEllipse } from "./tests-dxf2d-export-image/dxf2d-ellipse.js";
5
- import { testDxf2dGroup } from "./tests-dxf2d-export-image/dxf2d-group.js";
6
- import { testDxf2dTextGrowthDirections } from "./tests-dxf2d-export-image/dxf2d-text-growth-directions.js";
7
- import { testDxf2dLine } from "./tests-dxf2d-export-image/dxf2d-line.js";
8
- import { testDxf2dPolygon } from "./tests-dxf2d-export-image/dxf2d-polygon.js";
9
- import { testDxf2dText } from "./tests-dxf2d-export-image/dxf2d-text.js";
10
-
11
- describe("dxf2d-export-image", () => {
12
- [
13
- testDxf2dEllipse,
14
- testDxf2dGroup,
15
- testDxf2dLine,
16
- testDxf2dPolygon,
17
- testDxf2dPolyline,
18
- testDxf2dRectangle,
19
- testDxf2dTextGrowthDirections,
20
- testDxf2dText,
21
- ].forEach((item) => {
22
- test(item.name, () => {
23
- expect(item.abstractImage).toEqual(item.expectedImage);
24
- });
25
- });
26
- });
@@ -1,30 +0,0 @@
1
- import { describe, test, expect } from "vitest";
2
- import { testEpsEllipse } from "./tests-eps-export-image/eps-ellipse.js";
3
- import { testEpsEmptyText } from "./tests-eps-export-image/eps-empty-text.js";
4
- import { testEpsGroup } from "./tests-eps-export-image/eps-group.js";
5
- import { testEpsIsoLatin1Encoding } from "./tests-eps-export-image/eps-text-iso-latin1-encoding.js";
6
- import { testEpsTextGrowthDirections } from "./tests-eps-export-image/eps-text-growth-directions.js";
7
- import { testEpsText } from "./tests-eps-export-image/eps-text.js";
8
- import { testEpsLine } from "./tests-eps-export-image/eps-line.js";
9
- import { testEpsPolygon } from "./tests-eps-export-image/eps-polygon.js";
10
- import { testEpsRectangle } from "./tests-eps-export-image/eps-rectangle.js";
11
- import { testEpsPolyline } from "./tests-eps-export-image/eps-polyline.js";
12
-
13
- describe("eps-export-image", () => {
14
- [
15
- testEpsEllipse,
16
- testEpsEmptyText,
17
- testEpsGroup,
18
- testEpsLine,
19
- testEpsPolygon,
20
- testEpsPolyline,
21
- testEpsRectangle,
22
- testEpsTextGrowthDirections,
23
- testEpsIsoLatin1Encoding,
24
- testEpsText,
25
- ].forEach((item) => {
26
- test(item.name, () => {
27
- expect(item.abstractImage).toEqual(item.expectedImage);
28
- });
29
- });
30
- });