abstract-image 9.0.2 → 10.0.2

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 (643) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/__stories__/react-svg-export/example-1.stories.js +4 -40
  3. package/lib/__stories__/react-svg-export/example-1.stories.js.map +1 -1
  4. package/lib/__stories__/svg-export/example-1.stories.js +4 -40
  5. package/lib/__stories__/svg-export/example-1.stories.js.map +1 -1
  6. package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts +2 -0
  7. package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts.map +1 -0
  8. package/lib/exporters/__tests__/dxf2d-export-image.test.js +26 -0
  9. package/lib/exporters/__tests__/dxf2d-export-image.test.js.map +1 -0
  10. package/lib/exporters/__tests__/eps-export-image.test.d.ts +2 -0
  11. package/lib/exporters/__tests__/eps-export-image.test.d.ts.map +1 -0
  12. package/lib/exporters/__tests__/eps-export-image.test.js +30 -0
  13. package/lib/exporters/__tests__/eps-export-image.test.js.map +1 -0
  14. package/lib/exporters/__tests__/png-export-image.test.d.ts +2 -0
  15. package/lib/exporters/__tests__/png-export-image.test.d.ts.map +1 -0
  16. package/lib/exporters/__tests__/png-export-image.test.js +10 -0
  17. package/lib/exporters/__tests__/png-export-image.test.js.map +1 -0
  18. package/lib/exporters/__tests__/react-svg-export-image.test.d.ts +2 -0
  19. package/lib/exporters/__tests__/react-svg-export-image.test.d.ts.map +1 -0
  20. package/lib/exporters/__tests__/react-svg-export-image.test.js +44 -0
  21. package/lib/exporters/__tests__/react-svg-export-image.test.js.map +1 -0
  22. package/lib/exporters/__tests__/svg-export-image.test.d.ts +2 -0
  23. package/lib/exporters/__tests__/svg-export-image.test.d.ts.map +1 -0
  24. package/lib/exporters/__tests__/svg-export-image.test.js +37 -0
  25. package/lib/exporters/__tests__/svg-export-image.test.js.map +1 -0
  26. package/lib/exporters/__tests__/{dxf2d-export-image/export-test-def.d.ts → tests-dxf2d-export-image/_export-test-def.d.ts} +1 -3
  27. package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.d.ts.map +1 -0
  28. package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js +5 -0
  29. package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js.map +1 -0
  30. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts +3 -0
  31. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts.map +1 -0
  32. package/lib/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-ellipse.js +2 -38
  33. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.js.map +1 -0
  34. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts +3 -0
  35. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts.map +1 -0
  36. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js +138 -0
  37. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js.map +1 -0
  38. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts +3 -0
  39. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts.map +1 -0
  40. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js +67 -0
  41. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js.map +1 -0
  42. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts +3 -0
  43. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts.map +1 -0
  44. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js +101 -0
  45. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js.map +1 -0
  46. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts +3 -0
  47. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts.map +1 -0
  48. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js +91 -0
  49. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js.map +1 -0
  50. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts +3 -0
  51. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts.map +1 -0
  52. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js +111 -0
  53. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js.map +1 -0
  54. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts +3 -0
  55. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts.map +1 -0
  56. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js +150 -0
  57. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js.map +1 -0
  58. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts +3 -0
  59. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts.map +1 -0
  60. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js +75 -0
  61. package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js.map +1 -0
  62. package/lib/exporters/__tests__/{eps-export-image/export-test-def.d.ts → tests-eps-export-image/_export-test-def.d.ts} +1 -3
  63. package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.d.ts.map +1 -0
  64. package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js +5 -0
  65. package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js.map +1 -0
  66. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts +3 -0
  67. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts.map +1 -0
  68. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js +36 -0
  69. package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js.map +1 -0
  70. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts +3 -0
  71. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts.map +1 -0
  72. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js +38 -0
  73. package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js.map +1 -0
  74. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts +3 -0
  75. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts.map +1 -0
  76. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js +46 -0
  77. package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js.map +1 -0
  78. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts +3 -0
  79. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts.map +1 -0
  80. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js +32 -0
  81. package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js.map +1 -0
  82. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts +3 -0
  83. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts.map +1 -0
  84. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js +52 -0
  85. package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js.map +1 -0
  86. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts +3 -0
  87. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts.map +1 -0
  88. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js +46 -0
  89. package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js.map +1 -0
  90. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts +3 -0
  91. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts.map +1 -0
  92. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js +32 -0
  93. package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js.map +1 -0
  94. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts +3 -0
  95. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts.map +1 -0
  96. package/lib/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text-growth-directions.js +2 -38
  97. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.js.map +1 -0
  98. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts +3 -0
  99. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts.map +1 -0
  100. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js +49 -0
  101. package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js.map +1 -0
  102. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts +3 -0
  103. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts.map +1 -0
  104. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js +38 -0
  105. package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js.map +1 -0
  106. package/lib/exporters/__tests__/{png-export-image/export-test-def.d.ts → tests-png-export-image/_export-test-def.d.ts} +1 -3
  107. package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.d.ts.map +1 -0
  108. package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js +5 -0
  109. package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js.map +1 -0
  110. package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts +3 -0
  111. package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts.map +1 -0
  112. package/lib/exporters/__tests__/{png-export-image/test-defs → tests-png-export-image}/png-createPNG.js +2 -38
  113. package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.js.map +1 -0
  114. package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.d.ts.map +1 -0
  115. package/lib/exporters/__tests__/{exception → tests-png-export-image}/png-unsupported.test.js +1 -2
  116. package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.js.map +1 -0
  117. package/lib/exporters/__tests__/{react-svg-export-image/export-test-def.d.ts → tests-react-svg-export-image/_export-test-def.d.ts} +1 -3
  118. package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.d.ts.map +1 -0
  119. package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js +5 -0
  120. package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js.map +1 -0
  121. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts +3 -0
  122. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts.map +1 -0
  123. package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-png.js +2 -38
  124. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.js.map +1 -0
  125. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts +3 -0
  126. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts.map +1 -0
  127. package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-url.js +2 -38
  128. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.js.map +1 -0
  129. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts +3 -0
  130. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts.map +1 -0
  131. package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary.js +2 -38
  132. package/lib/exporters/__tests__/{svg-export-image/test-defs/svg-binary.js.map → tests-react-svg-export-image/react-svg-binary.js.map} +1 -1
  133. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts +3 -0
  134. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts.map +1 -0
  135. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js +34 -0
  136. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js.map +1 -0
  137. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts +3 -0
  138. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts.map +1 -0
  139. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js +12 -0
  140. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js.map +1 -0
  141. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.d.ts.map +1 -0
  142. package/lib/exporters/__tests__/{exception → tests-react-svg-export-image}/react-svg-direction-exception.test.js +1 -2
  143. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.js.map +1 -0
  144. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts +3 -0
  145. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts.map +1 -0
  146. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js +12 -0
  147. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js.map +1 -0
  148. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts +3 -0
  149. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts.map +1 -0
  150. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js +12 -0
  151. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js.map +1 -0
  152. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts +3 -0
  153. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts.map +1 -0
  154. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js +15 -0
  155. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js.map +1 -0
  156. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts +3 -0
  157. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts.map +1 -0
  158. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js +12 -0
  159. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js.map +1 -0
  160. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts +3 -0
  161. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts.map +1 -0
  162. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js +18 -0
  163. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js.map +1 -0
  164. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts +3 -0
  165. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts.map +1 -0
  166. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js +20 -0
  167. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js.map +1 -0
  168. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts +3 -0
  169. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts.map +1 -0
  170. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js +12 -0
  171. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js.map +1 -0
  172. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts +3 -0
  173. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts.map +1 -0
  174. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js +11 -0
  175. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js.map +1 -0
  176. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts +3 -0
  177. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts.map +1 -0
  178. package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-bold.js +2 -38
  179. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.js.map +1 -0
  180. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts +3 -0
  181. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts.map +1 -0
  182. package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-growth-directions.js +2 -38
  183. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.js.map +1 -0
  184. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts +3 -0
  185. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts.map +1 -0
  186. package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-italic.js +2 -38
  187. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.js.map +1 -0
  188. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts +3 -0
  189. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts.map +1 -0
  190. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js +12 -0
  191. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js.map +1 -0
  192. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts +3 -0
  193. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts.map +1 -0
  194. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js +12 -0
  195. package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js.map +1 -0
  196. package/lib/exporters/__tests__/{svg-export-image/export-test-def.d.ts → tests-svg-export-image/_export-test-def.d.ts} +1 -3
  197. package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.d.ts.map +1 -0
  198. package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js +5 -0
  199. package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js.map +1 -0
  200. package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts +3 -0
  201. package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts.map +1 -0
  202. package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-binary.js +2 -38
  203. package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.js.map +1 -0
  204. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts +3 -0
  205. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts.map +1 -0
  206. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js +12 -0
  207. package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js.map +1 -0
  208. package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.d.ts.map +1 -0
  209. package/lib/exporters/__tests__/{exception → tests-svg-export-image}/svg-direction-exception.test.js +1 -2
  210. package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.js.map +1 -0
  211. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts +3 -0
  212. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts.map +1 -0
  213. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js +12 -0
  214. package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js.map +1 -0
  215. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts +3 -0
  216. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts.map +1 -0
  217. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js +12 -0
  218. package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js.map +1 -0
  219. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts +3 -0
  220. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts.map +1 -0
  221. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js +15 -0
  222. package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js.map +1 -0
  223. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts +3 -0
  224. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts.map +1 -0
  225. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js +12 -0
  226. package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js.map +1 -0
  227. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts +3 -0
  228. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts.map +1 -0
  229. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js +18 -0
  230. package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js.map +1 -0
  231. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts +3 -0
  232. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts.map +1 -0
  233. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js +20 -0
  234. package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js.map +1 -0
  235. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts +3 -0
  236. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts.map +1 -0
  237. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js +12 -0
  238. package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js.map +1 -0
  239. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts +3 -0
  240. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts.map +1 -0
  241. package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-bold.js +2 -38
  242. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.js.map +1 -0
  243. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts +3 -0
  244. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts.map +1 -0
  245. package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-growth-directions.js +2 -38
  246. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.js.map +1 -0
  247. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts +3 -0
  248. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts.map +1 -0
  249. package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-italic.js +2 -38
  250. package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.js.map +1 -0
  251. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts +3 -0
  252. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts.map +1 -0
  253. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js +12 -0
  254. package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js.map +1 -0
  255. package/lib/exporters/dxf2d-export-image.d.ts +1 -1
  256. package/lib/exporters/dxf2d-export-image.d.ts.map +1 -1
  257. package/lib/exporters/dxf2d-export-image.js +4 -40
  258. package/lib/exporters/dxf2d-export-image.js.map +1 -1
  259. package/lib/exporters/eps-export-image.d.ts +1 -1
  260. package/lib/exporters/eps-export-image.d.ts.map +1 -1
  261. package/lib/exporters/eps-export-image.js +1 -4
  262. package/lib/exporters/eps-export-image.js.map +1 -1
  263. package/lib/exporters/index.d.ts +3 -3
  264. package/lib/exporters/index.d.ts.map +1 -1
  265. package/lib/exporters/index.js +3 -19
  266. package/lib/exporters/index.js.map +1 -1
  267. package/lib/exporters/png-export-image.d.ts +1 -1
  268. package/lib/exporters/png-export-image.d.ts.map +1 -1
  269. package/lib/exporters/png-export-image.js +1 -4
  270. package/lib/exporters/png-export-image.js.map +1 -1
  271. package/lib/exporters/react-svg-export-image.d.ts +1 -1
  272. package/lib/exporters/react-svg-export-image.d.ts.map +1 -1
  273. package/lib/exporters/react-svg-export-image.js +11 -43
  274. package/lib/exporters/react-svg-export-image.js.map +1 -1
  275. package/lib/exporters/svg-export-image.d.ts +1 -1
  276. package/lib/exporters/svg-export-image.d.ts.map +1 -1
  277. package/lib/exporters/svg-export-image.js +54 -43
  278. package/lib/exporters/svg-export-image.js.map +1 -1
  279. package/lib/index.d.ts +11 -11
  280. package/lib/index.d.ts.map +1 -1
  281. package/lib/index.js +11 -27
  282. package/lib/index.js.map +1 -1
  283. package/lib/model/__tests__/color/export-test-def.d.ts +1 -3
  284. package/lib/model/__tests__/color/export-test-def.d.ts.map +1 -1
  285. package/lib/model/__tests__/color/export-test-def.js +1 -2
  286. package/lib/model/__tests__/color/export-test-def.js.map +1 -1
  287. package/lib/model/__tests__/color/export.test.d.ts +1 -2
  288. package/lib/model/__tests__/color/export.test.d.ts.map +1 -1
  289. package/lib/model/__tests__/color/export.test.js +7 -12
  290. package/lib/model/__tests__/color/export.test.js.map +1 -1
  291. package/lib/model/__tests__/color/test-defs/color-from-string.d.ts +2 -2
  292. package/lib/model/__tests__/color/test-defs/color-from-string.d.ts.map +1 -1
  293. package/lib/model/__tests__/color/test-defs/color-from-string.js +2 -38
  294. package/lib/model/__tests__/color/test-defs/color-from-string.js.map +1 -1
  295. package/lib/model/__tests__/color/test-defs/color-to-string.d.ts +2 -2
  296. package/lib/model/__tests__/color/test-defs/color-to-string.d.ts.map +1 -1
  297. package/lib/model/__tests__/color/test-defs/color-to-string.js +2 -38
  298. package/lib/model/__tests__/color/test-defs/color-to-string.js.map +1 -1
  299. package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts +2 -2
  300. package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts.map +1 -1
  301. package/lib/model/__tests__/color/test-defs/color-undefined-2.js +2 -38
  302. package/lib/model/__tests__/color/test-defs/color-undefined-2.js.map +1 -1
  303. package/lib/model/__tests__/color/test-defs/color-undefined.d.ts +2 -2
  304. package/lib/model/__tests__/color/test-defs/color-undefined.d.ts.map +1 -1
  305. package/lib/model/__tests__/color/test-defs/color-undefined.js +2 -38
  306. package/lib/model/__tests__/color/test-defs/color-undefined.js.map +1 -1
  307. package/lib/model/abstract-image.d.ts +4 -4
  308. package/lib/model/abstract-image.d.ts.map +1 -1
  309. package/lib/model/abstract-image.js +2 -5
  310. package/lib/model/abstract-image.js.map +1 -1
  311. package/lib/model/color.js +19 -25
  312. package/lib/model/color.js.map +1 -1
  313. package/lib/model/component.d.ts +4 -4
  314. package/lib/model/component.d.ts.map +1 -1
  315. package/lib/model/component.js +13 -59
  316. package/lib/model/component.js.map +1 -1
  317. package/lib/model/dash-style.js +2 -6
  318. package/lib/model/dash-style.js.map +1 -1
  319. package/lib/model/index.d.ts +6 -6
  320. package/lib/model/index.d.ts.map +1 -1
  321. package/lib/model/index.js +6 -22
  322. package/lib/model/index.js.map +1 -1
  323. package/lib/model/point.js +1 -4
  324. package/lib/model/point.js.map +1 -1
  325. package/lib/model/size.js +1 -4
  326. package/lib/model/size.js.map +1 -1
  327. package/package.json +8 -4
  328. package/src/__stories__/react-svg-export/example-1.stories.tsx +1 -1
  329. package/src/__stories__/svg-export/example-1.stories.tsx +1 -1
  330. package/src/exporters/__tests__/dxf2d-export-image.test.tsx +26 -0
  331. package/src/exporters/__tests__/eps-export-image.test.tsx +30 -0
  332. package/src/exporters/__tests__/png-export-image.test.tsx +10 -0
  333. package/src/exporters/__tests__/react-svg-export-image.test.tsx +44 -0
  334. package/src/exporters/__tests__/svg-export-image.test.tsx +37 -0
  335. package/src/exporters/__tests__/{dxf2d-export-image/export-test-def.ts → tests-dxf2d-export-image/_export-test-def.ts} +0 -2
  336. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-ellipse.ts +3 -3
  337. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-group.ts +3 -3
  338. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-line.ts +3 -3
  339. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-polygon.ts +3 -3
  340. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-polyline.ts +3 -3
  341. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-rectangle.ts +3 -3
  342. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-text-growth-directions.ts +3 -3
  343. package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-text.ts +3 -3
  344. package/src/exporters/__tests__/{eps-export-image/export-test-def.ts → tests-eps-export-image/_export-test-def.ts} +0 -2
  345. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-ellipse.ts +3 -3
  346. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-empty-text.ts +3 -3
  347. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-group.ts +3 -3
  348. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-line.ts +3 -3
  349. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-polygon.ts +3 -3
  350. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-polyline.ts +3 -3
  351. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-rectangle.ts +3 -3
  352. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text-growth-directions.ts +3 -3
  353. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text-iso-latin1-encoding.ts +3 -3
  354. package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text.ts +3 -3
  355. package/src/exporters/__tests__/{png-export-image/export-test-def.ts → tests-png-export-image/_export-test-def.ts} +0 -2
  356. package/src/exporters/__tests__/{png-export-image/test-defs → tests-png-export-image}/png-createPNG.tsx +3 -3
  357. package/src/exporters/__tests__/{exception → tests-png-export-image}/png-unsupported.test.tsx +2 -1
  358. package/src/exporters/__tests__/{react-svg-export-image/export-test-def.tsx → tests-react-svg-export-image/_export-test-def.tsx} +0 -2
  359. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-png.tsx +3 -3
  360. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-url.tsx +3 -3
  361. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary.tsx +3 -3
  362. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-callback.tsx +3 -3
  363. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-dashed-line.tsx +3 -3
  364. package/src/exporters/__tests__/{exception → tests-react-svg-export-image}/react-svg-direction-exception.test.tsx +2 -1
  365. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-ellipse.tsx +3 -3
  366. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-empty-text.tsx +3 -3
  367. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-group.tsx +3 -3
  368. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-line.tsx +3 -3
  369. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-polygon.tsx +3 -3
  370. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-polyline.tsx +3 -3
  371. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-rectangle.tsx +3 -3
  372. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-subimage.tsx +3 -3
  373. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-bold.tsx +3 -3
  374. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-growth-directions.tsx +3 -3
  375. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-italic.tsx +3 -3
  376. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-sub.tsx +3 -3
  377. package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text.tsx +3 -3
  378. package/src/exporters/__tests__/{svg-export-image/export-test-def.ts → tests-svg-export-image/_export-test-def.ts} +0 -2
  379. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-binary.tsx +3 -3
  380. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-dashed-line.ts +3 -3
  381. package/src/exporters/__tests__/{exception → tests-svg-export-image}/svg-direction-exception.test.tsx +2 -1
  382. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-ellipse.ts +3 -3
  383. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-empty-text.ts +3 -3
  384. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-group.ts +3 -3
  385. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-line.ts +3 -3
  386. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-polygon.ts +3 -3
  387. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-polyline.ts +3 -3
  388. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-rectangle.ts +3 -3
  389. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-bold.ts +3 -3
  390. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-growth-directions.ts +3 -3
  391. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-italic.ts +3 -3
  392. package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text.ts +3 -3
  393. package/src/exporters/dxf2d-export-image.ts +4 -6
  394. package/src/exporters/eps-export-image.ts +1 -1
  395. package/src/exporters/index.ts +3 -3
  396. package/src/exporters/png-export-image.ts +1 -1
  397. package/src/exporters/react-svg-export-image.tsx +1 -1
  398. package/src/exporters/svg-export-image.ts +1 -1
  399. package/src/index.ts +11 -12
  400. package/src/model/__tests__/color/export-test-def.ts +1 -3
  401. package/src/model/__tests__/color/export.test.tsx +7 -8
  402. package/src/model/__tests__/color/test-defs/color-from-string.ts +3 -3
  403. package/src/model/__tests__/color/test-defs/color-to-string.ts +3 -3
  404. package/src/model/__tests__/color/test-defs/color-undefined-2.ts +3 -3
  405. package/src/model/__tests__/color/test-defs/color-undefined.ts +3 -3
  406. package/src/model/abstract-image.ts +5 -5
  407. package/src/model/component.ts +4 -4
  408. package/src/model/index.ts +6 -6
  409. package/lib/exporters/__tests__/dxf2d-export-image/export-test-def.d.ts.map +0 -1
  410. package/lib/exporters/__tests__/dxf2d-export-image/export-test-def.js +0 -6
  411. package/lib/exporters/__tests__/dxf2d-export-image/export-test-def.js.map +0 -1
  412. package/lib/exporters/__tests__/dxf2d-export-image/export.test.d.ts +0 -3
  413. package/lib/exporters/__tests__/dxf2d-export-image/export.test.d.ts.map +0 -1
  414. package/lib/exporters/__tests__/dxf2d-export-image/export.test.js +0 -17
  415. package/lib/exporters/__tests__/dxf2d-export-image/export.test.js.map +0 -1
  416. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.d.ts +0 -3
  417. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.d.ts.map +0 -1
  418. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.js.map +0 -1
  419. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.d.ts +0 -3
  420. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.d.ts.map +0 -1
  421. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.js +0 -174
  422. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.js.map +0 -1
  423. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.d.ts +0 -3
  424. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.d.ts.map +0 -1
  425. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.js +0 -103
  426. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.js.map +0 -1
  427. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.d.ts +0 -3
  428. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.d.ts.map +0 -1
  429. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.js +0 -137
  430. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.js.map +0 -1
  431. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.d.ts +0 -3
  432. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.d.ts.map +0 -1
  433. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.js +0 -127
  434. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.js.map +0 -1
  435. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.d.ts +0 -3
  436. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.d.ts.map +0 -1
  437. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.js +0 -147
  438. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.js.map +0 -1
  439. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.d.ts +0 -3
  440. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.d.ts.map +0 -1
  441. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.js +0 -186
  442. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.js.map +0 -1
  443. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.d.ts +0 -3
  444. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.d.ts.map +0 -1
  445. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.js +0 -111
  446. package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.js.map +0 -1
  447. package/lib/exporters/__tests__/eps-export-image/export-test-def.d.ts.map +0 -1
  448. package/lib/exporters/__tests__/eps-export-image/export-test-def.js +0 -6
  449. package/lib/exporters/__tests__/eps-export-image/export-test-def.js.map +0 -1
  450. package/lib/exporters/__tests__/eps-export-image/export.test.d.ts +0 -3
  451. package/lib/exporters/__tests__/eps-export-image/export.test.d.ts.map +0 -1
  452. package/lib/exporters/__tests__/eps-export-image/export.test.js +0 -17
  453. package/lib/exporters/__tests__/eps-export-image/export.test.js.map +0 -1
  454. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.d.ts +0 -3
  455. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.d.ts.map +0 -1
  456. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.js +0 -72
  457. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.js.map +0 -1
  458. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.d.ts +0 -3
  459. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.d.ts.map +0 -1
  460. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.js +0 -74
  461. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.js.map +0 -1
  462. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.d.ts +0 -3
  463. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.d.ts.map +0 -1
  464. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.js +0 -82
  465. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.js.map +0 -1
  466. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.d.ts +0 -3
  467. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.d.ts.map +0 -1
  468. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.js +0 -68
  469. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.js.map +0 -1
  470. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.d.ts +0 -3
  471. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.d.ts.map +0 -1
  472. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.js +0 -88
  473. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.js.map +0 -1
  474. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.d.ts +0 -3
  475. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.d.ts.map +0 -1
  476. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.js +0 -82
  477. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.js.map +0 -1
  478. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.d.ts +0 -3
  479. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.d.ts.map +0 -1
  480. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.js +0 -68
  481. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.js.map +0 -1
  482. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.d.ts +0 -3
  483. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.d.ts.map +0 -1
  484. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.js.map +0 -1
  485. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.d.ts +0 -3
  486. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.d.ts.map +0 -1
  487. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.js +0 -85
  488. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.js.map +0 -1
  489. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.d.ts +0 -3
  490. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.d.ts.map +0 -1
  491. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.js +0 -74
  492. package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.js.map +0 -1
  493. package/lib/exporters/__tests__/exception/png-unsupported.test.d.ts.map +0 -1
  494. package/lib/exporters/__tests__/exception/png-unsupported.test.js.map +0 -1
  495. package/lib/exporters/__tests__/exception/react-svg-direction-exception.test.d.ts.map +0 -1
  496. package/lib/exporters/__tests__/exception/react-svg-direction-exception.test.js.map +0 -1
  497. package/lib/exporters/__tests__/exception/svg-direction-exception.test.d.ts.map +0 -1
  498. package/lib/exporters/__tests__/exception/svg-direction-exception.test.js.map +0 -1
  499. package/lib/exporters/__tests__/png-export-image/export-test-def.d.ts.map +0 -1
  500. package/lib/exporters/__tests__/png-export-image/export-test-def.js +0 -6
  501. package/lib/exporters/__tests__/png-export-image/export-test-def.js.map +0 -1
  502. package/lib/exporters/__tests__/png-export-image/export.test.d.ts +0 -3
  503. package/lib/exporters/__tests__/png-export-image/export.test.d.ts.map +0 -1
  504. package/lib/exporters/__tests__/png-export-image/export.test.js +0 -17
  505. package/lib/exporters/__tests__/png-export-image/export.test.js.map +0 -1
  506. package/lib/exporters/__tests__/png-export-image/test-defs/png-createPNG.d.ts +0 -3
  507. package/lib/exporters/__tests__/png-export-image/test-defs/png-createPNG.d.ts.map +0 -1
  508. package/lib/exporters/__tests__/png-export-image/test-defs/png-createPNG.js.map +0 -1
  509. package/lib/exporters/__tests__/react-svg-export-image/export-test-def.d.ts.map +0 -1
  510. package/lib/exporters/__tests__/react-svg-export-image/export-test-def.js +0 -6
  511. package/lib/exporters/__tests__/react-svg-export-image/export-test-def.js.map +0 -1
  512. package/lib/exporters/__tests__/react-svg-export-image/export.test.d.ts +0 -3
  513. package/lib/exporters/__tests__/react-svg-export-image/export.test.d.ts.map +0 -1
  514. package/lib/exporters/__tests__/react-svg-export-image/export.test.js +0 -17
  515. package/lib/exporters/__tests__/react-svg-export-image/export.test.js.map +0 -1
  516. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-png.d.ts +0 -3
  517. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-png.d.ts.map +0 -1
  518. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-png.js.map +0 -1
  519. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-url.d.ts +0 -3
  520. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-url.d.ts.map +0 -1
  521. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-url.js.map +0 -1
  522. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary.d.ts +0 -3
  523. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary.d.ts.map +0 -1
  524. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary.js.map +0 -1
  525. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.d.ts +0 -3
  526. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.d.ts.map +0 -1
  527. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.js +0 -70
  528. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.js.map +0 -1
  529. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.d.ts +0 -3
  530. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.d.ts.map +0 -1
  531. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.js +0 -48
  532. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.js.map +0 -1
  533. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.d.ts +0 -3
  534. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.d.ts.map +0 -1
  535. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.js +0 -48
  536. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.js.map +0 -1
  537. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.d.ts +0 -3
  538. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.d.ts.map +0 -1
  539. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.js +0 -48
  540. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.js.map +0 -1
  541. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.d.ts +0 -3
  542. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.d.ts.map +0 -1
  543. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.js +0 -51
  544. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.js.map +0 -1
  545. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.d.ts +0 -3
  546. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.d.ts.map +0 -1
  547. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.js +0 -48
  548. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.js.map +0 -1
  549. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.d.ts +0 -3
  550. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.d.ts.map +0 -1
  551. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.js +0 -54
  552. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.js.map +0 -1
  553. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.d.ts +0 -3
  554. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.d.ts.map +0 -1
  555. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.js +0 -56
  556. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.js.map +0 -1
  557. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.d.ts +0 -3
  558. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.d.ts.map +0 -1
  559. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.js +0 -48
  560. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.js.map +0 -1
  561. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.d.ts +0 -3
  562. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.d.ts.map +0 -1
  563. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.js +0 -47
  564. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.js.map +0 -1
  565. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-bold.d.ts +0 -3
  566. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-bold.d.ts.map +0 -1
  567. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-bold.js.map +0 -1
  568. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-growth-directions.d.ts +0 -3
  569. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-growth-directions.d.ts.map +0 -1
  570. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-growth-directions.js.map +0 -1
  571. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-italic.d.ts +0 -3
  572. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-italic.d.ts.map +0 -1
  573. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-italic.js.map +0 -1
  574. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.d.ts +0 -3
  575. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.d.ts.map +0 -1
  576. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.js +0 -48
  577. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.js.map +0 -1
  578. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.d.ts +0 -3
  579. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.d.ts.map +0 -1
  580. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.js +0 -48
  581. package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.js.map +0 -1
  582. package/lib/exporters/__tests__/svg-export-image/export-test-def.d.ts.map +0 -1
  583. package/lib/exporters/__tests__/svg-export-image/export-test-def.js +0 -6
  584. package/lib/exporters/__tests__/svg-export-image/export-test-def.js.map +0 -1
  585. package/lib/exporters/__tests__/svg-export-image/export.test.d.ts +0 -3
  586. package/lib/exporters/__tests__/svg-export-image/export.test.d.ts.map +0 -1
  587. package/lib/exporters/__tests__/svg-export-image/export.test.js +0 -17
  588. package/lib/exporters/__tests__/svg-export-image/export.test.js.map +0 -1
  589. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-binary.d.ts +0 -3
  590. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-binary.d.ts.map +0 -1
  591. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.d.ts +0 -3
  592. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.d.ts.map +0 -1
  593. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.js +0 -48
  594. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.js.map +0 -1
  595. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.d.ts +0 -3
  596. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.d.ts.map +0 -1
  597. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.js +0 -48
  598. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.js.map +0 -1
  599. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.d.ts +0 -3
  600. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.d.ts.map +0 -1
  601. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.js +0 -48
  602. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.js.map +0 -1
  603. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.d.ts +0 -3
  604. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.d.ts.map +0 -1
  605. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.js +0 -51
  606. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.js.map +0 -1
  607. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.d.ts +0 -3
  608. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.d.ts.map +0 -1
  609. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.js +0 -48
  610. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.js.map +0 -1
  611. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.d.ts +0 -3
  612. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.d.ts.map +0 -1
  613. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.js +0 -54
  614. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.js.map +0 -1
  615. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.d.ts +0 -3
  616. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.d.ts.map +0 -1
  617. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.js +0 -56
  618. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.js.map +0 -1
  619. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.d.ts +0 -3
  620. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.d.ts.map +0 -1
  621. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.js +0 -48
  622. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.js.map +0 -1
  623. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-bold.d.ts +0 -3
  624. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-bold.d.ts.map +0 -1
  625. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-bold.js.map +0 -1
  626. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-growth-directions.d.ts +0 -3
  627. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-growth-directions.d.ts.map +0 -1
  628. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-growth-directions.js.map +0 -1
  629. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-italic.d.ts +0 -3
  630. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-italic.d.ts.map +0 -1
  631. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-italic.js.map +0 -1
  632. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.d.ts +0 -3
  633. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.d.ts.map +0 -1
  634. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.js +0 -48
  635. package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.js.map +0 -1
  636. package/src/exporters/__tests__/dxf2d-export-image/export.test.tsx +0 -13
  637. package/src/exporters/__tests__/eps-export-image/export.test.tsx +0 -13
  638. package/src/exporters/__tests__/png-export-image/export.test.tsx +0 -13
  639. package/src/exporters/__tests__/react-svg-export-image/export.test.tsx +0 -13
  640. package/src/exporters/__tests__/svg-export-image/export.test.tsx +0 -13
  641. /package/lib/exporters/__tests__/{exception → tests-png-export-image}/png-unsupported.test.d.ts +0 -0
  642. /package/lib/exporters/__tests__/{exception → tests-react-svg-export-image}/react-svg-direction-exception.test.d.ts +0 -0
  643. /package/lib/exporters/__tests__/{exception → tests-svg-export-image}/svg-direction-exception.test.d.ts +0 -0
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.solidLine = void 0;
4
- exports.createDashStyle = createDashStyle;
5
- function createDashStyle(dashes, offset = 0) {
1
+ export function createDashStyle(dashes, offset = 0) {
6
2
  return {
7
3
  dashes: dashes,
8
4
  offset: offset,
9
5
  };
10
6
  }
11
- exports.solidLine = createDashStyle([]);
7
+ export const solidLine = createDashStyle([]);
12
8
  //# sourceMappingURL=dash-style.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dash-style.js","sourceRoot":"","sources":["../../src/model/dash-style.ts"],"names":[],"mappings":";;;AAKA,0CAKC;AALD,SAAgB,eAAe,CAAC,MAA6B,EAAE,SAAiB,CAAC;IAC/E,OAAO;QACL,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC;AAEY,QAAA,SAAS,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"dash-style.js","sourceRoot":"","sources":["../../src/model/dash-style.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,MAA6B,EAAE,SAAiB,CAAC;IAC/E,OAAO;QACL,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
- export * from "./abstract-image";
2
- export * from "./color";
3
- export * from "./component";
4
- export * from "./point";
5
- export * from "./size";
6
- export * from "./dash-style";
1
+ export * from "./abstract-image.js";
2
+ export * from "./color.js";
3
+ export * from "./component.js";
4
+ export * from "./point.js";
5
+ export * from "./size.js";
6
+ export * from "./dash-style.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -1,23 +1,7 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./abstract-image"), exports);
18
- __exportStar(require("./color"), exports);
19
- __exportStar(require("./component"), exports);
20
- __exportStar(require("./point"), exports);
21
- __exportStar(require("./size"), exports);
22
- __exportStar(require("./dash-style"), exports);
1
+ export * from "./abstract-image.js";
2
+ export * from "./color.js";
3
+ export * from "./component.js";
4
+ export * from "./point.js";
5
+ export * from "./size.js";
6
+ export * from "./dash-style.js";
23
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,0CAAwB;AACxB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createPoint = createPoint;
4
- function createPoint(x, y) {
1
+ export function createPoint(x, y) {
5
2
  return {
6
3
  x: x,
7
4
  y: y
@@ -1 +1 @@
1
- {"version":3,"file":"point.js","sourceRoot":"","sources":["../../src/model/point.ts"],"names":[],"mappings":";;AAKA,kCAKC;AALD,SAAgB,WAAW,CAAC,CAAS,EAAE,CAAS;IAC9C,OAAO;QACL,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"point.js","sourceRoot":"","sources":["../../src/model/point.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,WAAW,CAAC,CAAS,EAAE,CAAS;IAC9C,OAAO;QACL,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC;AACJ,CAAC"}
package/lib/model/size.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSize = createSize;
4
- function createSize(width, height) {
1
+ export function createSize(width, height) {
5
2
  return {
6
3
  width: width,
7
4
  height: height
@@ -1 +1 @@
1
- {"version":3,"file":"size.js","sourceRoot":"","sources":["../../src/model/size.ts"],"names":[],"mappings":";;AAKA,gCAKC;AALD,SAAgB,UAAU,CAAC,KAAa,EAAE,MAAc;IACtD,OAAO;QACL,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"size.js","sourceRoot":"","sources":["../../src/model/size.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,MAAc;IACtD,OAAO;QACL,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "abstract-image",
3
- "version": "9.0.2",
3
+ "version": "10.0.2",
4
4
  "description": "Dynamically create images using code or JSX and render to any format",
5
5
  "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-image",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index",
8
8
  "license": "MIT",
9
+ "type": "module",
10
+ "exports": {
11
+ ".": "./lib/index.js"
12
+ },
9
13
  "files": [
10
14
  "/lib",
11
15
  "/src",
@@ -20,10 +24,10 @@
20
24
  "react-dom": "^18.3.1"
21
25
  },
22
26
  "devDependencies": {
23
- "@abstract-visuals/test-utils": "1.0.2",
24
27
  "@types/base64-js": "^1.3.2",
25
28
  "@types/react": "^18.3.3",
26
- "@types/react-dom": "^18.3.0"
29
+ "@types/react-dom": "^18.3.0",
30
+ "vitest": "^2.1.6"
27
31
  },
28
- "gitHead": "f734a9e851e816bfe6a606da68923011653ce8b4"
32
+ "gitHead": "85c576b6d79ac4d7694b2fb065e19ca813f81b5b"
29
33
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Meta } from "@storybook/react";
3
- import * as AbstractImage from "../..";
3
+ import * as AbstractImage from "../../index.js";
4
4
 
5
5
  export function ReactSvgExportExample1(): React.ReactElement<{}> {
6
6
  const components = [
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Meta } from "@storybook/react";
3
- import * as AbstractImage from "../..";
3
+ import * as AbstractImage from "../../index.js";
4
4
 
5
5
  export function SvgExportExample1(): React.ReactElement<{}> {
6
6
  const components = [
@@ -0,0 +1,26 @@
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
+ });
@@ -0,0 +1,30 @@
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
+ });
@@ -0,0 +1,10 @@
1
+ import { describe, test, expect } from "vitest";
2
+ import { testPngCreatePng } from "./tests-png-export-image/png-createPNG.js";
3
+
4
+ describe("png-export-image", () => {
5
+ [testPngCreatePng].forEach((item) => {
6
+ test(item.name, () => {
7
+ expect(item.abstractImage).toEqual(item.expectedImage);
8
+ });
9
+ });
10
+ });
@@ -0,0 +1,44 @@
1
+ import { describe, test, expect } from "vitest";
2
+ import { testReactSvgBinaryPng } from "./tests-react-svg-export-image/react-svg-binary-png.js";
3
+ import { testReactSvgBinaryUrl } from "./tests-react-svg-export-image/react-svg-binary-url.js";
4
+ import { testReactSvgBinary } from "./tests-react-svg-export-image/react-svg-binary.js";
5
+ import { testReactSvgCallback } from "./tests-react-svg-export-image/react-svg-callback.js";
6
+ import { testReactSvgBold } from "./tests-react-svg-export-image/react-svg-text-bold.js";
7
+ import { testReactSvgDashedLine } from "./tests-react-svg-export-image/react-svg-dashed-line.js";
8
+ import { testReactSvgEllipse } from "./tests-react-svg-export-image/react-svg-ellipse.js";
9
+ import { testReactSvgEmptyText } from "./tests-react-svg-export-image/react-svg-empty-text.js";
10
+ import { testReactSvgGroup } from "./tests-react-svg-export-image/react-svg-group.js";
11
+ import { testReactSvgLine } from "./tests-react-svg-export-image/react-svg-line.js";
12
+ import { testReactSvgPolygon } from "./tests-react-svg-export-image/react-svg-polygon.js";
13
+ import { testReactSvgPolyline } from "./tests-react-svg-export-image/react-svg-polyline.js";
14
+ import { testReactSvgSubImage } from "./tests-react-svg-export-image/react-svg-subimage.js";
15
+ import { testReactSvgTextGrowthDirections } from "./tests-react-svg-export-image/react-svg-text-growth-directions.js";
16
+ import { testReactSvgItalic } from "./tests-react-svg-export-image/react-svg-text-italic.js";
17
+ import { testReactSvgSub } from "./tests-react-svg-export-image/react-svg-text-sub.js";
18
+ import { testReactSvgText } from "./tests-react-svg-export-image/react-svg-text.js";
19
+
20
+ describe("react-svg-export-image", () => {
21
+ [
22
+ testReactSvgBinaryPng,
23
+ testReactSvgBinaryUrl,
24
+ testReactSvgBinary,
25
+ testReactSvgCallback,
26
+ testReactSvgDashedLine,
27
+ testReactSvgEllipse,
28
+ testReactSvgEmptyText,
29
+ testReactSvgGroup,
30
+ testReactSvgLine,
31
+ testReactSvgPolygon,
32
+ testReactSvgPolyline,
33
+ testReactSvgSubImage,
34
+ testReactSvgBold,
35
+ testReactSvgTextGrowthDirections,
36
+ testReactSvgItalic,
37
+ testReactSvgSub,
38
+ testReactSvgText,
39
+ ].forEach((item) => {
40
+ test(item.name, () => {
41
+ expect(JSON.stringify(item.abstractImage)).toEqual(item.expectedSerializedJsx);
42
+ });
43
+ });
44
+ });
@@ -0,0 +1,37 @@
1
+ import { describe, test, expect } from "vitest";
2
+ import { testSvgBinary } from "./tests-svg-export-image/svg-binary.js";
3
+ import { testSvgDashedLine } from "./tests-svg-export-image/svg-dashed-line.js";
4
+ import { testSvgEllpise } from "./tests-svg-export-image/svg-ellipse.js";
5
+ import { testSvgEmptyText } from "./tests-svg-export-image/svg-empty-text.js";
6
+ import { testSvgGroup } from "./tests-svg-export-image/svg-group.js";
7
+ import { testSvgLine } from "./tests-svg-export-image/svg-line.js";
8
+ import { testSvgPolygon } from "./tests-svg-export-image/svg-polygon.js";
9
+ import { testSvgPolyline } from "./tests-svg-export-image/svg-polyline.js";
10
+ import { testSvgRectangle } from "./tests-svg-export-image/svg-rectangle.js";
11
+ import { testSvgTextBold } from "./tests-svg-export-image/svg-text-bold.js";
12
+ import { testSvgTextGrowthDirections } from "./tests-svg-export-image/svg-text-growth-directions.js";
13
+ import { testSvgTextItalic } from "./tests-svg-export-image/svg-text-italic.js";
14
+ import { testSvgText } from "./tests-svg-export-image/svg-text.js";
15
+
16
+ describe("svg-export-image", () => {
17
+ [
18
+ testSvgBinary,
19
+ testSvgDashedLine,
20
+ testSvgDashedLine,
21
+ testSvgEllpise,
22
+ testSvgEmptyText,
23
+ testSvgGroup,
24
+ testSvgLine,
25
+ testSvgPolygon,
26
+ testSvgPolyline,
27
+ testSvgRectangle,
28
+ testSvgTextBold,
29
+ testSvgTextGrowthDirections,
30
+ testSvgTextItalic,
31
+ testSvgText,
32
+ ].forEach((item) => {
33
+ test(item.name, () => {
34
+ expect(item.abstractImage).toEqual(item.expectedImage);
35
+ });
36
+ });
37
+ });
@@ -4,8 +4,6 @@
4
4
 
5
5
  export type ExportTestDef = {
6
6
  readonly name: string;
7
- readonly only?: boolean;
8
- readonly skip?: boolean;
9
7
  readonly abstractImage: string;
10
8
  readonly expectedImage: string;
11
9
  };
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createEllipse(
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
19
19
 
20
20
  const dxf = AbstractImage.dxf2dExportImage(image);
21
21
 
22
- export const test: ExportTestDef = {
22
+ export const testDxf2dEllipse: ExportTestDef = {
23
23
  name: "dxf2d ellipse",
24
24
  abstractImage: dxf,
25
25
  expectedImage: `999
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createGroup("group", [
@@ -36,7 +36,7 @@ const image = AbstractImage.createAbstractImage(
36
36
 
37
37
  const dxf = AbstractImage.dxf2dExportImage(image);
38
38
 
39
- export const test: ExportTestDef = {
39
+ export const testDxf2dGroup: ExportTestDef = {
40
40
  name: "dxf2d group",
41
41
  abstractImage: dxf,
42
42
  expectedImage: `999
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createLine(
@@ -18,7 +18,7 @@ const image = AbstractImage.createAbstractImage(
18
18
 
19
19
  const dxf = AbstractImage.dxf2dExportImage(image);
20
20
 
21
- export const test: ExportTestDef = {
21
+ export const testDxf2dLine: ExportTestDef = {
22
22
  name: "dxf2d line",
23
23
  abstractImage: dxf,
24
24
  expectedImage: `999
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createPolygon(
@@ -18,7 +18,7 @@ const image = AbstractImage.createAbstractImage(
18
18
 
19
19
  const dxf = AbstractImage.dxf2dExportImage(image);
20
20
 
21
- export const test: ExportTestDef = {
21
+ export const testDxf2dPolygon: ExportTestDef = {
22
22
  name: "dxf2d polygon",
23
23
  abstractImage: dxf,
24
24
  expectedImage: `999
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createPolyLine(
@@ -17,7 +17,7 @@ const image = AbstractImage.createAbstractImage(
17
17
 
18
18
  const dxf = AbstractImage.dxf2dExportImage(image);
19
19
 
20
- export const test: ExportTestDef = {
20
+ export const testDxf2dPolyline: ExportTestDef = {
21
21
  name: "dxf2d polyline",
22
22
  abstractImage: dxf,
23
23
  expectedImage: `999
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createRectangle(
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
19
19
 
20
20
  const dxf = AbstractImage.dxf2dExportImage(image);
21
21
 
22
- export const test: ExportTestDef = {
22
+ export const testDxf2dRectangle: ExportTestDef = {
23
23
  name: "dxf2d rectangle",
24
24
  abstractImage: dxf,
25
25
  expectedImage: `999
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createText(
@@ -72,7 +72,7 @@ const image = AbstractImage.createAbstractImage(
72
72
 
73
73
  const dxf = AbstractImage.dxf2dExportImage(image);
74
74
 
75
- export const test: ExportTestDef = {
75
+ export const testDxf2dTextGrowthDirections: ExportTestDef = {
76
76
  name: "dxf text growth directions",
77
77
  abstractImage: dxf,
78
78
  expectedImage: `999
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createText(
@@ -27,7 +27,7 @@ const image = AbstractImage.createAbstractImage(
27
27
 
28
28
  const dxf = AbstractImage.dxf2dExportImage(image);
29
29
 
30
- export const test: ExportTestDef = {
30
+ export const testDxf2dText: ExportTestDef = {
31
31
  name: "dxf2d text",
32
32
  abstractImage: dxf,
33
33
  expectedImage: `999
@@ -4,8 +4,6 @@
4
4
 
5
5
  export type ExportTestDef = {
6
6
  readonly name: string;
7
- readonly only?: boolean;
8
- readonly skip?: boolean;
9
7
  readonly abstractImage: string;
10
8
  readonly expectedImage: string;
11
9
  };
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createEllipse(
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
19
19
 
20
20
  const eps = AbstractImage.epsExportImage(image);
21
21
 
22
- export const test: ExportTestDef = {
22
+ export const testEpsEllipse: ExportTestDef = {
23
23
  name: "eps ellipse",
24
24
  abstractImage: eps,
25
25
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createText(
@@ -27,7 +27,7 @@ const image = AbstractImage.createAbstractImage(
27
27
 
28
28
  const eps = AbstractImage.epsExportImage(image);
29
29
 
30
- export const test: ExportTestDef = {
30
+ export const testEpsEmptyText: ExportTestDef = {
31
31
  name: "eps empty text",
32
32
  abstractImage: eps,
33
33
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createGroup("group", [
@@ -36,7 +36,7 @@ const image = AbstractImage.createAbstractImage(
36
36
 
37
37
  const eps = AbstractImage.epsExportImage(image);
38
38
 
39
- export const test: ExportTestDef = {
39
+ export const testEpsGroup: ExportTestDef = {
40
40
  name: "eps group",
41
41
  abstractImage: eps,
42
42
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createLine(
@@ -18,7 +18,7 @@ const image = AbstractImage.createAbstractImage(
18
18
 
19
19
  const eps = AbstractImage.epsExportImage(image);
20
20
 
21
- export const test: ExportTestDef = {
21
+ export const testEpsLine: ExportTestDef = {
22
22
  name: "eps line",
23
23
  abstractImage: eps,
24
24
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createPolygon(
@@ -24,7 +24,7 @@ const image = AbstractImage.createAbstractImage(
24
24
 
25
25
  const eps = AbstractImage.epsExportImage(image);
26
26
 
27
- export const test: ExportTestDef = {
27
+ export const testEpsPolygon: ExportTestDef = {
28
28
  name: "eps polygon",
29
29
  abstractImage: eps,
30
30
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createPolyLine(
@@ -25,7 +25,7 @@ const image = AbstractImage.createAbstractImage(
25
25
 
26
26
  const eps = AbstractImage.epsExportImage(image);
27
27
 
28
- export const test: ExportTestDef = {
28
+ export const testEpsPolyline: ExportTestDef = {
29
29
  name: "eps polyline",
30
30
  abstractImage: eps,
31
31
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createRectangle(
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
19
19
 
20
20
  const eps = AbstractImage.epsExportImage(image);
21
21
 
22
- export const test: ExportTestDef = {
22
+ export const testEpsRectangle: ExportTestDef = {
23
23
  name: "eps rectangle",
24
24
  abstractImage: eps,
25
25
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createText(
@@ -72,7 +72,7 @@ const image = AbstractImage.createAbstractImage(
72
72
 
73
73
  const eps = AbstractImage.epsExportImage(image);
74
74
 
75
- export const test: ExportTestDef = {
75
+ export const testEpsTextGrowthDirections: ExportTestDef = {
76
76
  name: "eps text growth directions",
77
77
  abstractImage: eps,
78
78
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
@@ -1,5 +1,5 @@
1
- import { ExportTestDef } from "../export-test-def";
2
- import * as AbstractImage from "../../../../../src/index";
1
+ import { ExportTestDef } from "./_export-test-def.js";
2
+ import * as AbstractImage from "../../../index.js";
3
3
 
4
4
  const components = [
5
5
  AbstractImage.createText(
@@ -27,7 +27,7 @@ const image = AbstractImage.createAbstractImage(
27
27
 
28
28
  const eps = new TextDecoder("iso-8859-1").decode(AbstractImage.epsExportImage(image, "iso-latin-1-encoding"));
29
29
 
30
- export const test: ExportTestDef = {
30
+ export const testEpsIsoLatin1Encoding: ExportTestDef = {
31
31
  name: "eps text",
32
32
  abstractImage: eps,
33
33
  expectedImage: `%!PS-Adobe-3.0 EPSF-3.0