dompdf.js 1.0.4 → 1.1.1

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 (407) hide show
  1. package/.vscode/settings.json +5 -0
  2. package/README.md +202 -79
  3. package/dist/dom/element-container.d.ts +4 -2
  4. package/dist/dompdf.esm.js +25972 -14647
  5. package/dist/dompdf.esm.js.map +1 -1
  6. package/dist/dompdf.js +40524 -29199
  7. package/dist/dompdf.js.map +1 -1
  8. package/dist/index.d.ts +6 -8
  9. package/dist/render/canvas/pdf-renderer.d.ts +62 -32
  10. package/dist/render/page-format-map.d.ts +4 -0
  11. package/dist/render/paginate.d.ts +3 -0
  12. package/dist/utils/css-utils.d.ts +2 -0
  13. package/dist/utils/element-utils.d.ts +7 -0
  14. package/dist/utils/font-utils.d.ts +7 -0
  15. package/dist/utils/index.d.ts +5 -0
  16. package/dist/utils/type-utils.d.ts +4 -0
  17. package/dist/utils/url-path.d.ts +7 -0
  18. package/fontconverter/FileSaver.js +2 -0
  19. package/fontconverter/filereader.js +432 -0
  20. package/fontconverter/fontconverter.html +66 -0
  21. package/fontconverter/pure-min.css +11 -0
  22. package/package.json +7 -6
  23. package/dist/lib/__tests__/index.js +0 -144
  24. package/dist/lib/__tests__/index.js.map +0 -1
  25. package/dist/lib/core/__mocks__/cache-storage.js +0 -10
  26. package/dist/lib/core/__mocks__/cache-storage.js.map +0 -1
  27. package/dist/lib/core/__mocks__/context.js +0 -22
  28. package/dist/lib/core/__mocks__/context.js.map +0 -1
  29. package/dist/lib/core/__mocks__/features.js +0 -12
  30. package/dist/lib/core/__mocks__/features.js.map +0 -1
  31. package/dist/lib/core/__mocks__/logger.js +0 -24
  32. package/dist/lib/core/__mocks__/logger.js.map +0 -1
  33. package/dist/lib/core/__tests__/cache-storage.js +0 -420
  34. package/dist/lib/core/__tests__/cache-storage.js.map +0 -1
  35. package/dist/lib/core/__tests__/logger.js +0 -28
  36. package/dist/lib/core/__tests__/logger.js.map +0 -1
  37. package/dist/lib/core/bitwise.js +0 -6
  38. package/dist/lib/core/bitwise.js.map +0 -1
  39. package/dist/lib/core/cache-storage.js +0 -198
  40. package/dist/lib/core/cache-storage.js.map +0 -1
  41. package/dist/lib/core/context.js +0 -18
  42. package/dist/lib/core/context.js.map +0 -1
  43. package/dist/lib/core/debugger.js +0 -25
  44. package/dist/lib/core/debugger.js.map +0 -1
  45. package/dist/lib/core/features.js +0 -193
  46. package/dist/lib/core/features.js.map +0 -1
  47. package/dist/lib/core/logger.js +0 -92
  48. package/dist/lib/core/logger.js.map +0 -1
  49. package/dist/lib/core/util.js +0 -5
  50. package/dist/lib/core/util.js.map +0 -1
  51. package/dist/lib/css/IPropertyDescriptor.js +0 -3
  52. package/dist/lib/css/IPropertyDescriptor.js.map +0 -1
  53. package/dist/lib/css/ITypeDescriptor.js +0 -3
  54. package/dist/lib/css/ITypeDescriptor.js.map +0 -1
  55. package/dist/lib/css/index.js +0 -216
  56. package/dist/lib/css/index.js.map +0 -1
  57. package/dist/lib/css/layout/__mocks__/bounds.js +0 -9
  58. package/dist/lib/css/layout/__mocks__/bounds.js.map +0 -1
  59. package/dist/lib/css/layout/bounds.js +0 -42
  60. package/dist/lib/css/layout/bounds.js.map +0 -1
  61. package/dist/lib/css/layout/text.js +0 -137
  62. package/dist/lib/css/layout/text.js.map +0 -1
  63. package/dist/lib/css/property-descriptors/__tests__/background-tests.js +0 -48
  64. package/dist/lib/css/property-descriptors/__tests__/background-tests.js.map +0 -1
  65. package/dist/lib/css/property-descriptors/__tests__/font-family.js +0 -25
  66. package/dist/lib/css/property-descriptors/__tests__/font-family.js.map +0 -1
  67. package/dist/lib/css/property-descriptors/__tests__/paint-order.js +0 -88
  68. package/dist/lib/css/property-descriptors/__tests__/paint-order.js.map +0 -1
  69. package/dist/lib/css/property-descriptors/__tests__/text-shadow.js +0 -94
  70. package/dist/lib/css/property-descriptors/__tests__/text-shadow.js.map +0 -1
  71. package/dist/lib/css/property-descriptors/__tests__/transform-tests.js +0 -18
  72. package/dist/lib/css/property-descriptors/__tests__/transform-tests.js.map +0 -1
  73. package/dist/lib/css/property-descriptors/background-clip.js +0 -24
  74. package/dist/lib/css/property-descriptors/background-clip.js.map +0 -1
  75. package/dist/lib/css/property-descriptors/background-color.js +0 -11
  76. package/dist/lib/css/property-descriptors/background-color.js.map +0 -1
  77. package/dist/lib/css/property-descriptors/background-image.js +0 -24
  78. package/dist/lib/css/property-descriptors/background-image.js.map +0 -1
  79. package/dist/lib/css/property-descriptors/background-origin.js +0 -24
  80. package/dist/lib/css/property-descriptors/background-origin.js.map +0 -1
  81. package/dist/lib/css/property-descriptors/background-position.js +0 -17
  82. package/dist/lib/css/property-descriptors/background-position.js.map +0 -1
  83. package/dist/lib/css/property-descriptors/background-repeat.js +0 -36
  84. package/dist/lib/css/property-descriptors/background-repeat.js.map +0 -1
  85. package/dist/lib/css/property-descriptors/background-size.js +0 -24
  86. package/dist/lib/css/property-descriptors/background-size.js.map +0 -1
  87. package/dist/lib/css/property-descriptors/border-color.js +0 -15
  88. package/dist/lib/css/property-descriptors/border-color.js.map +0 -1
  89. package/dist/lib/css/property-descriptors/border-radius.js +0 -18
  90. package/dist/lib/css/property-descriptors/border-radius.js.map +0 -1
  91. package/dist/lib/css/property-descriptors/border-style.js +0 -30
  92. package/dist/lib/css/property-descriptors/border-style.js.map +0 -1
  93. package/dist/lib/css/property-descriptors/border-width.js +0 -21
  94. package/dist/lib/css/property-descriptors/border-width.js.map +0 -1
  95. package/dist/lib/css/property-descriptors/box-shadow.js +0 -55
  96. package/dist/lib/css/property-descriptors/box-shadow.js.map +0 -1
  97. package/dist/lib/css/property-descriptors/color.js +0 -11
  98. package/dist/lib/css/property-descriptors/color.js.map +0 -1
  99. package/dist/lib/css/property-descriptors/content.js +0 -20
  100. package/dist/lib/css/property-descriptors/content.js.map +0 -1
  101. package/dist/lib/css/property-descriptors/counter-increment.js +0 -31
  102. package/dist/lib/css/property-descriptors/counter-increment.js.map +0 -1
  103. package/dist/lib/css/property-descriptors/counter-reset.js +0 -27
  104. package/dist/lib/css/property-descriptors/counter-reset.js.map +0 -1
  105. package/dist/lib/css/property-descriptors/direction.js +0 -19
  106. package/dist/lib/css/property-descriptors/direction.js.map +0 -1
  107. package/dist/lib/css/property-descriptors/display.js +0 -82
  108. package/dist/lib/css/property-descriptors/display.js.map +0 -1
  109. package/dist/lib/css/property-descriptors/duration.js +0 -15
  110. package/dist/lib/css/property-descriptors/duration.js.map +0 -1
  111. package/dist/lib/css/property-descriptors/float.js +0 -23
  112. package/dist/lib/css/property-descriptors/float.js.map +0 -1
  113. package/dist/lib/css/property-descriptors/font-family.js +0 -33
  114. package/dist/lib/css/property-descriptors/font-family.js.map +0 -1
  115. package/dist/lib/css/property-descriptors/font-size.js +0 -11
  116. package/dist/lib/css/property-descriptors/font-size.js.map +0 -1
  117. package/dist/lib/css/property-descriptors/font-style.js +0 -21
  118. package/dist/lib/css/property-descriptors/font-style.js.map +0 -1
  119. package/dist/lib/css/property-descriptors/font-variant.js +0 -14
  120. package/dist/lib/css/property-descriptors/font-variant.js.map +0 -1
  121. package/dist/lib/css/property-descriptors/font-weight.js +0 -26
  122. package/dist/lib/css/property-descriptors/font-weight.js.map +0 -1
  123. package/dist/lib/css/property-descriptors/letter-spacing.js +0 -22
  124. package/dist/lib/css/property-descriptors/letter-spacing.js.map +0 -1
  125. package/dist/lib/css/property-descriptors/line-break.js +0 -24
  126. package/dist/lib/css/property-descriptors/line-break.js.map +0 -1
  127. package/dist/lib/css/property-descriptors/line-height.js +0 -25
  128. package/dist/lib/css/property-descriptors/line-height.js.map +0 -1
  129. package/dist/lib/css/property-descriptors/list-style-image.js +0 -17
  130. package/dist/lib/css/property-descriptors/list-style-image.js.map +0 -1
  131. package/dist/lib/css/property-descriptors/list-style-position.js +0 -19
  132. package/dist/lib/css/property-descriptors/list-style-position.js.map +0 -1
  133. package/dist/lib/css/property-descriptors/list-style-type.js +0 -123
  134. package/dist/lib/css/property-descriptors/list-style-type.js.map +0 -1
  135. package/dist/lib/css/property-descriptors/margin.js +0 -14
  136. package/dist/lib/css/property-descriptors/margin.js.map +0 -1
  137. package/dist/lib/css/property-descriptors/opacity.js +0 -17
  138. package/dist/lib/css/property-descriptors/opacity.js.map +0 -1
  139. package/dist/lib/css/property-descriptors/overflow-wrap.js +0 -19
  140. package/dist/lib/css/property-descriptors/overflow-wrap.js.map +0 -1
  141. package/dist/lib/css/property-descriptors/overflow.js +0 -28
  142. package/dist/lib/css/property-descriptors/overflow.js.map +0 -1
  143. package/dist/lib/css/property-descriptors/padding.js +0 -15
  144. package/dist/lib/css/property-descriptors/padding.js.map +0 -1
  145. package/dist/lib/css/property-descriptors/paint-order.js +0 -34
  146. package/dist/lib/css/property-descriptors/paint-order.js.map +0 -1
  147. package/dist/lib/css/property-descriptors/position.js +0 -23
  148. package/dist/lib/css/property-descriptors/position.js.map +0 -1
  149. package/dist/lib/css/property-descriptors/quotes.js +0 -42
  150. package/dist/lib/css/property-descriptors/quotes.js.map +0 -1
  151. package/dist/lib/css/property-descriptors/text-align.js +0 -22
  152. package/dist/lib/css/property-descriptors/text-align.js.map +0 -1
  153. package/dist/lib/css/property-descriptors/text-decoration-color.js +0 -11
  154. package/dist/lib/css/property-descriptors/text-decoration-color.js.map +0 -1
  155. package/dist/lib/css/property-descriptors/text-decoration-line.js +0 -29
  156. package/dist/lib/css/property-descriptors/text-decoration-line.js.map +0 -1
  157. package/dist/lib/css/property-descriptors/text-shadow.js +0 -47
  158. package/dist/lib/css/property-descriptors/text-shadow.js.map +0 -1
  159. package/dist/lib/css/property-descriptors/text-transform.js +0 -21
  160. package/dist/lib/css/property-descriptors/text-transform.js.map +0 -1
  161. package/dist/lib/css/property-descriptors/transform-origin.js +0 -25
  162. package/dist/lib/css/property-descriptors/transform-origin.js.map +0 -1
  163. package/dist/lib/css/property-descriptors/transform.js +0 -37
  164. package/dist/lib/css/property-descriptors/transform.js.map +0 -1
  165. package/dist/lib/css/property-descriptors/visibility.js +0 -21
  166. package/dist/lib/css/property-descriptors/visibility.js.map +0 -1
  167. package/dist/lib/css/property-descriptors/webkit-text-stroke-color.js +0 -11
  168. package/dist/lib/css/property-descriptors/webkit-text-stroke-color.js.map +0 -1
  169. package/dist/lib/css/property-descriptors/webkit-text-stroke-width.js +0 -17
  170. package/dist/lib/css/property-descriptors/webkit-text-stroke-width.js.map +0 -1
  171. package/dist/lib/css/property-descriptors/word-break.js +0 -27
  172. package/dist/lib/css/property-descriptors/word-break.js.map +0 -1
  173. package/dist/lib/css/property-descriptors/z-index.js +0 -20
  174. package/dist/lib/css/property-descriptors/z-index.js.map +0 -1
  175. package/dist/lib/css/syntax/__tests__/tokernizer-tests.js +0 -34
  176. package/dist/lib/css/syntax/__tests__/tokernizer-tests.js.map +0 -1
  177. package/dist/lib/css/syntax/parser.js +0 -147
  178. package/dist/lib/css/syntax/parser.js.map +0 -1
  179. package/dist/lib/css/syntax/tokenizer.js +0 -630
  180. package/dist/lib/css/syntax/tokenizer.js.map +0 -1
  181. package/dist/lib/css/types/__tests__/color-tests.js +0 -66
  182. package/dist/lib/css/types/__tests__/color-tests.js.map +0 -1
  183. package/dist/lib/css/types/__tests__/image-tests.js +0 -233
  184. package/dist/lib/css/types/__tests__/image-tests.js.map +0 -1
  185. package/dist/lib/css/types/angle.js +0 -81
  186. package/dist/lib/css/types/angle.js.map +0 -1
  187. package/dist/lib/css/types/color.js +0 -311
  188. package/dist/lib/css/types/color.js.map +0 -1
  189. package/dist/lib/css/types/functions/-prefix-linear-gradient.js +0 -33
  190. package/dist/lib/css/types/functions/-prefix-linear-gradient.js.map +0 -1
  191. package/dist/lib/css/types/functions/-prefix-radial-gradient.js +0 -84
  192. package/dist/lib/css/types/functions/-prefix-radial-gradient.js.map +0 -1
  193. package/dist/lib/css/types/functions/-webkit-gradient.js +0 -60
  194. package/dist/lib/css/types/functions/-webkit-gradient.js.map +0 -1
  195. package/dist/lib/css/types/functions/__tests__/radial-gradient.js +0 -68
  196. package/dist/lib/css/types/functions/__tests__/radial-gradient.js.map +0 -1
  197. package/dist/lib/css/types/functions/counter.js +0 -374
  198. package/dist/lib/css/types/functions/counter.js.map +0 -1
  199. package/dist/lib/css/types/functions/gradient.js +0 -165
  200. package/dist/lib/css/types/functions/gradient.js.map +0 -1
  201. package/dist/lib/css/types/functions/linear-gradient.js +0 -28
  202. package/dist/lib/css/types/functions/linear-gradient.js.map +0 -1
  203. package/dist/lib/css/types/functions/radial-gradient.js +0 -91
  204. package/dist/lib/css/types/functions/radial-gradient.js.map +0 -1
  205. package/dist/lib/css/types/image.js +0 -53
  206. package/dist/lib/css/types/image.js.map +0 -1
  207. package/dist/lib/css/types/index.js +0 -3
  208. package/dist/lib/css/types/index.js.map +0 -1
  209. package/dist/lib/css/types/length-percentage.js +0 -52
  210. package/dist/lib/css/types/length-percentage.js.map +0 -1
  211. package/dist/lib/css/types/length.js +0 -8
  212. package/dist/lib/css/types/length.js.map +0 -1
  213. package/dist/lib/css/types/time.js +0 -18
  214. package/dist/lib/css/types/time.js.map +0 -1
  215. package/dist/lib/dom/__mocks__/document-cloner.js +0 -24
  216. package/dist/lib/dom/__mocks__/document-cloner.js.map +0 -1
  217. package/dist/lib/dom/document-cloner.js +0 -530
  218. package/dist/lib/dom/document-cloner.js.map +0 -1
  219. package/dist/lib/dom/element-container.js +0 -37
  220. package/dist/lib/dom/element-container.js.map +0 -1
  221. package/dist/lib/dom/elements/li-element-container.js +0 -30
  222. package/dist/lib/dom/elements/li-element-container.js.map +0 -1
  223. package/dist/lib/dom/elements/ol-element-container.js +0 -31
  224. package/dist/lib/dom/elements/ol-element-container.js.map +0 -1
  225. package/dist/lib/dom/elements/select-element-container.js +0 -31
  226. package/dist/lib/dom/elements/select-element-container.js.map +0 -1
  227. package/dist/lib/dom/elements/textarea-element-container.js +0 -30
  228. package/dist/lib/dom/elements/textarea-element-container.js.map +0 -1
  229. package/dist/lib/dom/node-parser.js +0 -360
  230. package/dist/lib/dom/node-parser.js.map +0 -1
  231. package/dist/lib/dom/replaced-elements/canvas-element-container.js +0 -32
  232. package/dist/lib/dom/replaced-elements/canvas-element-container.js.map +0 -1
  233. package/dist/lib/dom/replaced-elements/iframe-element-container.js +0 -54
  234. package/dist/lib/dom/replaced-elements/iframe-element-container.js.map +0 -1
  235. package/dist/lib/dom/replaced-elements/image-element-container.js +0 -33
  236. package/dist/lib/dom/replaced-elements/image-element-container.js.map +0 -1
  237. package/dist/lib/dom/replaced-elements/index.js +0 -3
  238. package/dist/lib/dom/replaced-elements/index.js.map +0 -1
  239. package/dist/lib/dom/replaced-elements/input-element-container.js +0 -102
  240. package/dist/lib/dom/replaced-elements/input-element-container.js.map +0 -1
  241. package/dist/lib/dom/replaced-elements/pseudo-elements.js +0 -1
  242. package/dist/lib/dom/replaced-elements/pseudo-elements.js.map +0 -1
  243. package/dist/lib/dom/replaced-elements/svg-element-container.js +0 -38
  244. package/dist/lib/dom/replaced-elements/svg-element-container.js.map +0 -1
  245. package/dist/lib/dom/text-container.js +0 -32
  246. package/dist/lib/dom/text-container.js.map +0 -1
  247. package/dist/lib/index.js +0 -202
  248. package/dist/lib/index.js.map +0 -1
  249. package/dist/lib/invariant.js +0 -10
  250. package/dist/lib/invariant.js.map +0 -1
  251. package/dist/lib/render/background.js +0 -187
  252. package/dist/lib/render/background.js.map +0 -1
  253. package/dist/lib/render/bezier-curve.js +0 -36
  254. package/dist/lib/render/bezier-curve.js.map +0 -1
  255. package/dist/lib/render/border.js +0 -105
  256. package/dist/lib/render/border.js.map +0 -1
  257. package/dist/lib/render/bound-curves.js +0 -190
  258. package/dist/lib/render/bound-curves.js.map +0 -1
  259. package/dist/lib/render/box-sizing.js +0 -21
  260. package/dist/lib/render/box-sizing.js.map +0 -1
  261. package/dist/lib/render/canvas/canvas-renderer2.js +0 -1415
  262. package/dist/lib/render/canvas/canvas-renderer2.js.map +0 -1
  263. package/dist/lib/render/canvas/foreignobject-renderer.js +0 -108
  264. package/dist/lib/render/canvas/foreignobject-renderer.js.map +0 -1
  265. package/dist/lib/render/canvas/pdf-renderer.js +0 -1406
  266. package/dist/lib/render/canvas/pdf-renderer.js.map +0 -1
  267. package/dist/lib/render/effects.js +0 -41
  268. package/dist/lib/render/effects.js.map +0 -1
  269. package/dist/lib/render/font-metrics.js +0 -55
  270. package/dist/lib/render/font-metrics.js.map +0 -1
  271. package/dist/lib/render/path.js +0 -27
  272. package/dist/lib/render/path.js.map +0 -1
  273. package/dist/lib/render/renderer.js +0 -12
  274. package/dist/lib/render/renderer.js.map +0 -1
  275. package/dist/lib/render/stacking-context.js +0 -172
  276. package/dist/lib/render/stacking-context.js.map +0 -1
  277. package/dist/lib/render/vector.js +0 -18
  278. package/dist/lib/render/vector.js.map +0 -1
  279. package/dist/render/canvas/canvas-renderer2.d.ts +0 -81
  280. package/dist/types/__tests__/index.d.ts +0 -1
  281. package/dist/types/core/__mocks__/cache-storage.d.ts +0 -2
  282. package/dist/types/core/__mocks__/context.d.ts +0 -9
  283. package/dist/types/core/__mocks__/features.d.ts +0 -8
  284. package/dist/types/core/__mocks__/logger.d.ts +0 -9
  285. package/dist/types/core/__tests__/cache-storage.d.ts +0 -1
  286. package/dist/types/core/__tests__/logger.d.ts +0 -1
  287. package/dist/types/core/bitwise.d.ts +0 -1
  288. package/dist/types/core/cache-storage.d.ts +0 -26
  289. package/dist/types/core/context.d.ts +0 -15
  290. package/dist/types/core/debugger.d.ts +0 -8
  291. package/dist/types/core/features.d.ts +0 -12
  292. package/dist/types/core/logger.d.ts +0 -18
  293. package/dist/types/core/util.d.ts +0 -1
  294. package/dist/types/css/IPropertyDescriptor.d.ts +0 -36
  295. package/dist/types/css/ITypeDescriptor.d.ts +0 -6
  296. package/dist/types/css/index.d.ts +0 -132
  297. package/dist/types/css/layout/__mocks__/bounds.d.ts +0 -2
  298. package/dist/types/css/layout/bounds.d.ts +0 -14
  299. package/dist/types/css/layout/text.d.ts +0 -10
  300. package/dist/types/css/property-descriptors/__tests__/background-tests.d.ts +0 -1
  301. package/dist/types/css/property-descriptors/__tests__/font-family.d.ts +0 -1
  302. package/dist/types/css/property-descriptors/__tests__/paint-order.d.ts +0 -1
  303. package/dist/types/css/property-descriptors/__tests__/text-shadow.d.ts +0 -1
  304. package/dist/types/css/property-descriptors/__tests__/transform-tests.d.ts +0 -1
  305. package/dist/types/css/property-descriptors/background-clip.d.ts +0 -8
  306. package/dist/types/css/property-descriptors/background-color.d.ts +0 -2
  307. package/dist/types/css/property-descriptors/background-image.d.ts +0 -3
  308. package/dist/types/css/property-descriptors/background-origin.d.ts +0 -8
  309. package/dist/types/css/property-descriptors/background-position.d.ts +0 -5
  310. package/dist/types/css/property-descriptors/background-repeat.d.ts +0 -9
  311. package/dist/types/css/property-descriptors/background-size.d.ts +0 -11
  312. package/dist/types/css/property-descriptors/border-color.d.ts +0 -5
  313. package/dist/types/css/property-descriptors/border-radius.d.ts +0 -7
  314. package/dist/types/css/property-descriptors/border-style.d.ts +0 -12
  315. package/dist/types/css/property-descriptors/border-width.d.ts +0 -5
  316. package/dist/types/css/property-descriptors/box-shadow.d.ts +0 -14
  317. package/dist/types/css/property-descriptors/color.d.ts +0 -2
  318. package/dist/types/css/property-descriptors/content.d.ts +0 -4
  319. package/dist/types/css/property-descriptors/counter-increment.d.ts +0 -7
  320. package/dist/types/css/property-descriptors/counter-reset.d.ts +0 -7
  321. package/dist/types/css/property-descriptors/direction.d.ts +0 -6
  322. package/dist/types/css/property-descriptors/display.d.ts +0 -35
  323. package/dist/types/css/property-descriptors/duration.d.ts +0 -2
  324. package/dist/types/css/property-descriptors/float.d.ts +0 -9
  325. package/dist/types/css/property-descriptors/font-family.d.ts +0 -4
  326. package/dist/types/css/property-descriptors/font-size.d.ts +0 -2
  327. package/dist/types/css/property-descriptors/font-style.d.ts +0 -7
  328. package/dist/types/css/property-descriptors/font-variant.d.ts +0 -2
  329. package/dist/types/css/property-descriptors/font-weight.d.ts +0 -2
  330. package/dist/types/css/property-descriptors/letter-spacing.d.ts +0 -2
  331. package/dist/types/css/property-descriptors/line-break.d.ts +0 -6
  332. package/dist/types/css/property-descriptors/line-height.d.ts +0 -4
  333. package/dist/types/css/property-descriptors/list-style-image.d.ts +0 -3
  334. package/dist/types/css/property-descriptors/list-style-position.d.ts +0 -6
  335. package/dist/types/css/property-descriptors/list-style-type.d.ts +0 -58
  336. package/dist/types/css/property-descriptors/margin.d.ts +0 -5
  337. package/dist/types/css/property-descriptors/opacity.d.ts +0 -2
  338. package/dist/types/css/property-descriptors/overflow-wrap.d.ts +0 -6
  339. package/dist/types/css/property-descriptors/overflow.d.ts +0 -9
  340. package/dist/types/css/property-descriptors/padding.d.ts +0 -5
  341. package/dist/types/css/property-descriptors/paint-order.d.ts +0 -8
  342. package/dist/types/css/property-descriptors/position.d.ts +0 -9
  343. package/dist/types/css/property-descriptors/quotes.d.ts +0 -8
  344. package/dist/types/css/property-descriptors/text-align.d.ts +0 -7
  345. package/dist/types/css/property-descriptors/text-decoration-color.d.ts +0 -2
  346. package/dist/types/css/property-descriptors/text-decoration-line.d.ts +0 -10
  347. package/dist/types/css/property-descriptors/text-shadow.d.ts +0 -12
  348. package/dist/types/css/property-descriptors/text-transform.d.ts +0 -8
  349. package/dist/types/css/property-descriptors/transform-origin.d.ts +0 -4
  350. package/dist/types/css/property-descriptors/transform.d.ts +0 -4
  351. package/dist/types/css/property-descriptors/visibility.d.ts +0 -7
  352. package/dist/types/css/property-descriptors/webkit-text-stroke-color.d.ts +0 -2
  353. package/dist/types/css/property-descriptors/webkit-text-stroke-width.d.ts +0 -2
  354. package/dist/types/css/property-descriptors/word-break.d.ts +0 -7
  355. package/dist/types/css/property-descriptors/z-index.d.ts +0 -7
  356. package/dist/types/css/syntax/__tests__/tokernizer-tests.d.ts +0 -1
  357. package/dist/types/css/syntax/parser.d.ts +0 -34
  358. package/dist/types/css/syntax/tokenizer.d.ts +0 -94
  359. package/dist/types/css/types/__tests__/color-tests.d.ts +0 -1
  360. package/dist/types/css/types/__tests__/image-tests.d.ts +0 -1
  361. package/dist/types/css/types/angle.d.ts +0 -7
  362. package/dist/types/css/types/color.d.ts +0 -11
  363. package/dist/types/css/types/functions/-prefix-linear-gradient.d.ts +0 -4
  364. package/dist/types/css/types/functions/-prefix-radial-gradient.d.ts +0 -4
  365. package/dist/types/css/types/functions/-webkit-gradient.d.ts +0 -4
  366. package/dist/types/css/types/functions/__tests__/radial-gradient.d.ts +0 -1
  367. package/dist/types/css/types/functions/counter.d.ts +0 -10
  368. package/dist/types/css/types/functions/gradient.d.ts +0 -7
  369. package/dist/types/css/types/functions/linear-gradient.d.ts +0 -4
  370. package/dist/types/css/types/functions/radial-gradient.d.ts +0 -12
  371. package/dist/types/css/types/image.d.ts +0 -54
  372. package/dist/types/css/types/index.d.ts +0 -1
  373. package/dist/types/css/types/length-percentage.d.ts +0 -11
  374. package/dist/types/css/types/length.d.ts +0 -4
  375. package/dist/types/css/types/time.d.ts +0 -2
  376. package/dist/types/dom/__mocks__/document-cloner.d.ts +0 -6
  377. package/dist/types/dom/document-cloner.d.ts +0 -45
  378. package/dist/types/dom/element-container.d.ts +0 -21
  379. package/dist/types/dom/elements/li-element-container.d.ts +0 -6
  380. package/dist/types/dom/elements/ol-element-container.d.ts +0 -7
  381. package/dist/types/dom/elements/select-element-container.d.ts +0 -6
  382. package/dist/types/dom/elements/textarea-element-container.d.ts +0 -6
  383. package/dist/types/dom/node-parser.d.ts +0 -23
  384. package/dist/types/dom/replaced-elements/canvas-element-container.d.ts +0 -8
  385. package/dist/types/dom/replaced-elements/iframe-element-container.d.ts +0 -11
  386. package/dist/types/dom/replaced-elements/image-element-container.d.ts +0 -8
  387. package/dist/types/dom/replaced-elements/index.d.ts +0 -4
  388. package/dist/types/dom/replaced-elements/input-element-container.d.ts +0 -12
  389. package/dist/types/dom/replaced-elements/pseudo-elements.d.ts +0 -0
  390. package/dist/types/dom/replaced-elements/svg-element-container.d.ts +0 -8
  391. package/dist/types/dom/text-container.d.ts +0 -8
  392. package/dist/types/index.d.ts +0 -18
  393. package/dist/types/invariant.d.ts +0 -1
  394. package/dist/types/render/background.d.ts +0 -16
  395. package/dist/types/render/bezier-curve.d.ts +0 -14
  396. package/dist/types/render/border.d.ts +0 -6
  397. package/dist/types/render/bound-curves.d.ts +0 -32
  398. package/dist/types/render/box-sizing.d.ts +0 -4
  399. package/dist/types/render/canvas/canvas-renderer2.d.ts +0 -81
  400. package/dist/types/render/canvas/foreignobject-renderer.d.ts +0 -11
  401. package/dist/types/render/canvas/pdf-renderer.d.ts +0 -80
  402. package/dist/types/render/effects.d.ts +0 -38
  403. package/dist/types/render/font-metrics.d.ts +0 -11
  404. package/dist/types/render/path.d.ts +0 -13
  405. package/dist/types/render/renderer.d.ts +0 -7
  406. package/dist/types/render/stacking-context.d.ts +0 -24
  407. package/dist/types/render/vector.d.ts +0 -9
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isBezierCurve = exports.BezierCurve = void 0;
4
- var vector_1 = require("./vector");
5
- var lerp = function (a, b, t) {
6
- return new vector_1.Vector(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t);
7
- };
8
- var BezierCurve = /** @class */ (function () {
9
- function BezierCurve(start, startControl, endControl, end) {
10
- this.type = 1 /* PathType.BEZIER_CURVE */;
11
- this.start = start;
12
- this.startControl = startControl;
13
- this.endControl = endControl;
14
- this.end = end;
15
- }
16
- BezierCurve.prototype.subdivide = function (t, firstHalf) {
17
- var ab = lerp(this.start, this.startControl, t);
18
- var bc = lerp(this.startControl, this.endControl, t);
19
- var cd = lerp(this.endControl, this.end, t);
20
- var abbc = lerp(ab, bc, t);
21
- var bccd = lerp(bc, cd, t);
22
- var dest = lerp(abbc, bccd, t);
23
- return firstHalf ? new BezierCurve(this.start, ab, abbc, dest) : new BezierCurve(dest, bccd, cd, this.end);
24
- };
25
- BezierCurve.prototype.add = function (deltaX, deltaY) {
26
- return new BezierCurve(this.start.add(deltaX, deltaY), this.startControl.add(deltaX, deltaY), this.endControl.add(deltaX, deltaY), this.end.add(deltaX, deltaY));
27
- };
28
- BezierCurve.prototype.reverse = function () {
29
- return new BezierCurve(this.end, this.endControl, this.startControl, this.start);
30
- };
31
- return BezierCurve;
32
- }());
33
- exports.BezierCurve = BezierCurve;
34
- var isBezierCurve = function (path) { return path.type === 1 /* PathType.BEZIER_CURVE */; };
35
- exports.isBezierCurve = isBezierCurve;
36
- //# sourceMappingURL=bezier-curve.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bezier-curve.js","sourceRoot":"","sources":["../../../src/render/bezier-curve.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAGhC,IAAM,IAAI,GAAG,UAAC,CAAS,EAAE,CAAS,EAAE,CAAS;IACzC,OAAO,IAAI,eAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;IAOI,qBAAY,KAAa,EAAE,YAAoB,EAAE,UAAkB,EAAE,GAAW;QAC5E,IAAI,CAAC,IAAI,gCAAwB,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,+BAAS,GAAT,UAAU,CAAS,EAAE,SAAkB;QACnC,IAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;QAClD,IAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACvD,I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AAzF,QAAA,aAAa,iBAA4E"}
@@ -1,105 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parsePathForBorderStroke = exports.parsePathForBorderDoubleInner = exports.parsePathForBorderDoubleOuter = exports.parsePathForBorder = void 0;
4
- var bezier_curve_1 = require("./bezier-curve");
5
- var parsePathForBorder = function (curves, borderSide) {
6
- switch (borderSide) {
7
- case 0:
8
- return createPathFromCurves(curves.topLeftBorderBox, curves.topLeftPaddingBox, curves.topRightBorderBox, curves.topRightPaddingBox);
9
- case 1:
10
- return createPathFromCurves(curves.topRightBorderBox, curves.topRightPaddingBox, curves.bottomRightBorderBox, curves.bottomRightPaddingBox);
11
- case 2:
12
- return createPathFromCurves(curves.bottomRightBorderBox, curves.bottomRightPaddingBox, curves.bottomLeftBorderBox, curves.bottomLeftPaddingBox);
13
- case 3:
14
- default:
15
- return createPathFromCurves(curves.bottomLeftBorderBox, curves.bottomLeftPaddingBox, curves.topLeftBorderBox, curves.topLeftPaddingBox);
16
- }
17
- };
18
- exports.parsePathForBorder = parsePathForBorder;
19
- var parsePathForBorderDoubleOuter = function (curves, borderSide) {
20
- switch (borderSide) {
21
- case 0:
22
- return createPathFromCurves(curves.topLeftBorderBox, curves.topLeftBorderDoubleOuterBox, curves.topRightBorderBox, curves.topRightBorderDoubleOuterBox);
23
- case 1:
24
- return createPathFromCurves(curves.topRightBorderBox, curves.topRightBorderDoubleOuterBox, curves.bottomRightBorderBox, curves.bottomRightBorderDoubleOuterBox);
25
- case 2:
26
- return createPathFromCurves(curves.bottomRightBorderBox, curves.bottomRightBorderDoubleOuterBox, curves.bottomLeftBorderBox, curves.bottomLeftBorderDoubleOuterBox);
27
- case 3:
28
- default:
29
- return createPathFromCurves(curves.bottomLeftBorderBox, curves.bottomLeftBorderDoubleOuterBox, curves.topLeftBorderBox, curves.topLeftBorderDoubleOuterBox);
30
- }
31
- };
32
- exports.parsePathForBorderDoubleOuter = parsePathForBorderDoubleOuter;
33
- var parsePathForBorderDoubleInner = function (curves, borderSide) {
34
- switch (borderSide) {
35
- case 0:
36
- return createPathFromCurves(curves.topLeftBorderDoubleInnerBox, curves.topLeftPaddingBox, curves.topRightBorderDoubleInnerBox, curves.topRightPaddingBox);
37
- case 1:
38
- return createPathFromCurves(curves.topRightBorderDoubleInnerBox, curves.topRightPaddingBox, curves.bottomRightBorderDoubleInnerBox, curves.bottomRightPaddingBox);
39
- case 2:
40
- return createPathFromCurves(curves.bottomRightBorderDoubleInnerBox, curves.bottomRightPaddingBox, curves.bottomLeftBorderDoubleInnerBox, curves.bottomLeftPaddingBox);
41
- case 3:
42
- default:
43
- return createPathFromCurves(curves.bottomLeftBorderDoubleInnerBox, curves.bottomLeftPaddingBox, curves.topLeftBorderDoubleInnerBox, curves.topLeftPaddingBox);
44
- }
45
- };
46
- exports.parsePathForBorderDoubleInner = parsePathForBorderDoubleInner;
47
- var parsePathForBorderStroke = function (curves, borderSide) {
48
- switch (borderSide) {
49
- case 0:
50
- return createStrokePathFromCurves(curves.topLeftBorderStroke, curves.topRightBorderStroke);
51
- case 1:
52
- return createStrokePathFromCurves(curves.topRightBorderStroke, curves.bottomRightBorderStroke);
53
- case 2:
54
- return createStrokePathFromCurves(curves.bottomRightBorderStroke, curves.bottomLeftBorderStroke);
55
- case 3:
56
- default:
57
- return createStrokePathFromCurves(curves.bottomLeftBorderStroke, curves.topLeftBorderStroke);
58
- }
59
- };
60
- exports.parsePathForBorderStroke = parsePathForBorderStroke;
61
- var createStrokePathFromCurves = function (outer1, outer2) {
62
- var path = [];
63
- if ((0, bezier_curve_1.isBezierCurve)(outer1)) {
64
- path.push(outer1.subdivide(0.5, false));
65
- }
66
- else {
67
- path.push(outer1);
68
- }
69
- if ((0, bezier_curve_1.isBezierCurve)(outer2)) {
70
- path.push(outer2.subdivide(0.5, true));
71
- }
72
- else {
73
- path.push(outer2);
74
- }
75
- return path;
76
- };
77
- var createPathFromCurves = function (outer1, inner1, outer2, inner2) {
78
- var path = [];
79
- if ((0, bezier_curve_1.isBezierCurve)(outer1)) {
80
- path.push(outer1.subdivide(0.5, false));
81
- }
82
- else {
83
- path.push(outer1);
84
- }
85
- if ((0, bezier_curve_1.isBezierCurve)(outer2)) {
86
- path.push(outer2.subdivide(0.5, true));
87
- }
88
- else {
89
- path.push(outer2);
90
- }
91
- if ((0, bezier_curve_1.isBezierCurve)(inner2)) {
92
- path.push(inner2.subdivide(0.5, true).reverse());
93
- }
94
- else {
95
- path.push(inner2);
96
- }
97
- if ((0, bezier_curve_1.isBezierCurve)(inner1)) {
98
- path.push(inner1.subdivide(0.5, false).reverse());
99
- }
100
- else {
101
- path.push(inner1);
102
- }
103
- return path;
104
- };
105
- //# sourceMappingURL=border.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"border.js","sourceRoot":"","sources":["../../../src/render/border.ts"],"names":[],"mappings":";;;AAEA,+CAA6C;AAEtC,IAAM,kBAAkB,GAAG,UAAC,MAAmB,EAAE,UAAkB;IACtE,QAAQ,UAAU,EAAE;QAChB,KAAK,CAAC;YACF,OAAO,oBAAoB,CACvB,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,iBAAiB,EACxB,MAAM,CAAC,iBAAiB,EACxB,MAAM,CAAC,kBAAkB,CAC5B,CAAC;QACN,KAAK,CAAC;YACF,OAAO,oBAAoB,CACvB,MAAM,CAAC,iBAAiB,EACxB,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,oBAAoB,EAC3B,MAAM,CAAC,qBAAqB,CAC/B,CAAC;QACN,KAAK,CAAC;YACF,OAAO,oBAAoB,CACvB,MAAM,CAAC,oBAAoB,EAC3B,MAAM,CAAC,qBAAqB,EAC5B,MAAM,CAAC,mBAAmB,EAC1B,MAAM,CAAC,oBAAoB,CAC9B,CAAC;QACN,KAAK,CAAC,CAAC;QACP;YACI,OAAO,oBAAoB,CACvB,MAAM,CAAC,mBAAmB,EAC1B,MAAM,CAAC,oBAAoB,EAC3B,MAAM,CAAC,gBAA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I,CAAC;AAChB,CAAC,CAAC"}
@@ -1,190 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.calculatePaddingBoxPath = exports.calculateContentBoxPath = exports.calculateBorderBoxPath = exports.BoundCurves = void 0;
4
- var length_percentage_1 = require("../css/types/length-percentage");
5
- var vector_1 = require("./vector");
6
- var bezier_curve_1 = require("./bezier-curve");
7
- var BoundCurves = /** @class */ (function () {
8
- function BoundCurves(element) {
9
- var styles = element.styles;
10
- var bounds = element.bounds;
11
- var _a = (0, length_percentage_1.getAbsoluteValueForTuple)(styles.borderTopLeftRadius, bounds.width, bounds.height), tlh = _a[0], tlv = _a[1];
12
- var _b = (0, length_percentage_1.getAbsoluteValueForTuple)(styles.borderTopRightRadius, bounds.width, bounds.height), trh = _b[0], trv = _b[1];
13
- var _c = (0, length_percentage_1.getAbsoluteValueForTuple)(styles.borderBottomRightRadius, bounds.width, bounds.height), brh = _c[0], brv = _c[1];
14
- var _d = (0, length_percentage_1.getAbsoluteValueForTuple)(styles.borderBottomLeftRadius, bounds.width, bounds.height), blh = _d[0], blv = _d[1];
15
- var factors = [];
16
- factors.push((tlh + trh) / bounds.width);
17
- factors.push((blh + brh) / bounds.width);
18
- factors.push((tlv + blv) / bounds.height);
19
- factors.push((trv + brv) / bounds.height);
20
- var maxFactor = Math.max.apply(Math, factors);
21
- if (maxFactor > 1) {
22
- tlh /= maxFactor;
23
- tlv /= maxFactor;
24
- trh /= maxFactor;
25
- trv /= maxFactor;
26
- brh /= maxFactor;
27
- brv /= maxFactor;
28
- blh /= maxFactor;
29
- blv /= maxFactor;
30
- }
31
- var topWidth = bounds.width - trh;
32
- var rightHeight = bounds.height - brv;
33
- var bottomWidth = bounds.width - brh;
34
- var leftHeight = bounds.height - blv;
35
- var borderTopWidth = styles.borderTopWidth;
36
- var borderRightWidth = styles.borderRightWidth;
37
- var borderBottomWidth = styles.borderBottomWidth;
38
- var borderLeftWidth = styles.borderLeftWidth;
39
- var paddingTop = (0, length_percentage_1.getAbsoluteValue)(styles.paddingTop, element.bounds.width);
40
- var paddingRight = (0, length_percentage_1.getAbsoluteValue)(styles.paddingRight, element.bounds.width);
41
- var paddingBottom = (0, length_percentage_1.getAbsoluteValue)(styles.paddingBottom, element.bounds.width);
42
- var paddingLeft = (0, length_percentage_1.getAbsoluteValue)(styles.paddingLeft, element.bounds.width);
43
- this.topLeftBorderDoubleOuterBox =
44
- tlh > 0 || tlv > 0
45
- ? getCurvePoints(bounds.left + borderLeftWidth / 3, bounds.top + borderTopWidth / 3, tlh - borderLeftWidth / 3, tlv - borderTopWidth / 3, CORNER.TOP_LEFT)
46
- : new vector_1.Vector(bounds.left + borderLeftWidth / 3, bounds.top + borderTopWidth / 3);
47
- this.topRightBorderDoubleOuterBox =
48
- tlh > 0 || tlv > 0
49
- ? getCurvePoints(bounds.left + topWidth, bounds.top + borderTopWidth / 3, trh - borderRightWidth / 3, trv - borderTopWidth / 3, CORNER.TOP_RIGHT)
50
- : new vector_1.Vector(bounds.left + bounds.width - borderRightWidth / 3, bounds.top + borderTopWidth / 3);
51
- this.bottomRightBorderDoubleOuterBox =
52
- brh > 0 || brv > 0
53
- ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - borderRightWidth / 3, brv - borderBottomWidth / 3, CORNER.BOTTOM_RIGHT)
54
- : new vector_1.Vector(bounds.left + bounds.width - borderRightWidth / 3, bounds.top + bounds.height - borderBottomWidth / 3);
55
- this.bottomLeftBorderDoubleOuterBox =
56
- blh > 0 || blv > 0
57
- ? getCurvePoints(bounds.left + borderLeftWidth / 3, bounds.top + leftHeight, blh - borderLeftWidth / 3, blv - borderBottomWidth / 3, CORNER.BOTTOM_LEFT)
58
- : new vector_1.Vector(bounds.left + borderLeftWidth / 3, bounds.top + bounds.height - borderBottomWidth / 3);
59
- this.topLeftBorderDoubleInnerBox =
60
- tlh > 0 || tlv > 0
61
- ? getCurvePoints(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3, tlh - (borderLeftWidth * 2) / 3, tlv - (borderTopWidth * 2) / 3, CORNER.TOP_LEFT)
62
- : new vector_1.Vector(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3);
63
- this.topRightBorderDoubleInnerBox =
64
- tlh > 0 || tlv > 0
65
- ? getCurvePoints(bounds.left + topWidth, bounds.top + (borderTopWidth * 2) / 3, trh - (borderRightWidth * 2) / 3, trv - (borderTopWidth * 2) / 3, CORNER.TOP_RIGHT)
66
- : new vector_1.Vector(bounds.left + bounds.width - (borderRightWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3);
67
- this.bottomRightBorderDoubleInnerBox =
68
- brh > 0 || brv > 0
69
- ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - (borderRightWidth * 2) / 3, brv - (borderBottomWidth * 2) / 3, CORNER.BOTTOM_RIGHT)
70
- : new vector_1.Vector(bounds.left + bounds.width - (borderRightWidth * 2) / 3, bounds.top + bounds.height - (borderBottomWidth * 2) / 3);
71
- this.bottomLeftBorderDoubleInnerBox =
72
- blh > 0 || blv > 0
73
- ? getCurvePoints(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + leftHeight, blh - (borderLeftWidth * 2) / 3, blv - (borderBottomWidth * 2) / 3, CORNER.BOTTOM_LEFT)
74
- : new vector_1.Vector(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + bounds.height - (borderBottomWidth * 2) / 3);
75
- this.topLeftBorderStroke =
76
- tlh > 0 || tlv > 0
77
- ? getCurvePoints(bounds.left + borderLeftWidth / 2, bounds.top + borderTopWidth / 2, tlh - borderLeftWidth / 2, tlv - borderTopWidth / 2, CORNER.TOP_LEFT)
78
- : new vector_1.Vector(bounds.left + borderLeftWidth / 2, bounds.top + borderTopWidth / 2);
79
- this.topRightBorderStroke =
80
- tlh > 0 || tlv > 0
81
- ? getCurvePoints(bounds.left + topWidth, bounds.top + borderTopWidth / 2, trh - borderRightWidth / 2, trv - borderTopWidth / 2, CORNER.TOP_RIGHT)
82
- : new vector_1.Vector(bounds.left + bounds.width - borderRightWidth / 2, bounds.top + borderTopWidth / 2);
83
- this.bottomRightBorderStroke =
84
- brh > 0 || brv > 0
85
- ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - borderRightWidth / 2, brv - borderBottomWidth / 2, CORNER.BOTTOM_RIGHT)
86
- : new vector_1.Vector(bounds.left + bounds.width - borderRightWidth / 2, bounds.top + bounds.height - borderBottomWidth / 2);
87
- this.bottomLeftBorderStroke =
88
- blh > 0 || blv > 0
89
- ? getCurvePoints(bounds.left + borderLeftWidth / 2, bounds.top + leftHeight, blh - borderLeftWidth / 2, blv - borderBottomWidth / 2, CORNER.BOTTOM_LEFT)
90
- : new vector_1.Vector(bounds.left + borderLeftWidth / 2, bounds.top + bounds.height - borderBottomWidth / 2);
91
- this.topLeftBorderBox =
92
- tlh > 0 || tlv > 0
93
- ? getCurvePoints(bounds.left, bounds.top, tlh, tlv, CORNER.TOP_LEFT)
94
- : new vector_1.Vector(bounds.left, bounds.top);
95
- this.topRightBorderBox =
96
- trh > 0 || trv > 0
97
- ? getCurvePoints(bounds.left + topWidth, bounds.top, trh, trv, CORNER.TOP_RIGHT)
98
- : new vector_1.Vector(bounds.left + bounds.width, bounds.top);
99
- this.bottomRightBorderBox =
100
- brh > 0 || brv > 0
101
- ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh, brv, CORNER.BOTTOM_RIGHT)
102
- : new vector_1.Vector(bounds.left + bounds.width, bounds.top + bounds.height);
103
- this.bottomLeftBorderBox =
104
- blh > 0 || blv > 0
105
- ? getCurvePoints(bounds.left, bounds.top + leftHeight, blh, blv, CORNER.BOTTOM_LEFT)
106
- : new vector_1.Vector(bounds.left, bounds.top + bounds.height);
107
- this.topLeftPaddingBox =
108
- tlh > 0 || tlv > 0
109
- ? getCurvePoints(bounds.left + borderLeftWidth, bounds.top + borderTopWidth, Math.max(0, tlh - borderLeftWidth), Math.max(0, tlv - borderTopWidth), CORNER.TOP_LEFT)
110
- : new vector_1.Vector(bounds.left + borderLeftWidth, bounds.top + borderTopWidth);
111
- this.topRightPaddingBox =
112
- trh > 0 || trv > 0
113
- ? getCurvePoints(bounds.left + Math.min(topWidth, bounds.width - borderRightWidth), bounds.top + borderTopWidth, topWidth > bounds.width + borderRightWidth ? 0 : Math.max(0, trh - borderRightWidth), Math.max(0, trv - borderTopWidth), CORNER.TOP_RIGHT)
114
- : new vector_1.Vector(bounds.left + bounds.width - borderRightWidth, bounds.top + borderTopWidth);
115
- this.bottomRightPaddingBox =
116
- brh > 0 || brv > 0
117
- ? getCurvePoints(bounds.left + Math.min(bottomWidth, bounds.width - borderLeftWidth), bounds.top + Math.min(rightHeight, bounds.height - borderBottomWidth), Math.max(0, brh - borderRightWidth), Math.max(0, brv - borderBottomWidth), CORNER.BOTTOM_RIGHT)
118
- : new vector_1.Vector(bounds.left + bounds.width - borderRightWidth, bounds.top + bounds.height - borderBottomWidth);
119
- this.bottomLeftPaddingBox =
120
- blh > 0 || blv > 0
121
- ? getCurvePoints(bounds.left + borderLeftWidth, bounds.top + Math.min(leftHeight, bounds.height - borderBottomWidth), Math.max(0, blh - borderLeftWidth), Math.max(0, blv - borderBottomWidth), CORNER.BOTTOM_LEFT)
122
- : new vector_1.Vector(bounds.left + borderLeftWidth, bounds.top + bounds.height - borderBottomWidth);
123
- this.topLeftContentBox =
124
- tlh > 0 || tlv > 0
125
- ? getCurvePoints(bounds.left + borderLeftWidth + paddingLeft, bounds.top + borderTopWidth + paddingTop, Math.max(0, tlh - (borderLeftWidth + paddingLeft)), Math.max(0, tlv - (borderTopWidth + paddingTop)), CORNER.TOP_LEFT)
126
- : new vector_1.Vector(bounds.left + borderLeftWidth + paddingLeft, bounds.top + borderTopWidth + paddingTop);
127
- this.topRightContentBox =
128
- trh > 0 || trv > 0
129
- ? getCurvePoints(bounds.left + Math.min(topWidth, bounds.width + borderLeftWidth + paddingLeft), bounds.top + borderTopWidth + paddingTop, topWidth > bounds.width + borderLeftWidth + paddingLeft ? 0 : trh - borderLeftWidth + paddingLeft, trv - (borderTopWidth + paddingTop), CORNER.TOP_RIGHT)
130
- : new vector_1.Vector(bounds.left + bounds.width - (borderRightWidth + paddingRight), bounds.top + borderTopWidth + paddingTop);
131
- this.bottomRightContentBox =
132
- brh > 0 || brv > 0
133
- ? getCurvePoints(bounds.left + Math.min(bottomWidth, bounds.width - (borderLeftWidth + paddingLeft)), bounds.top + Math.min(rightHeight, bounds.height + borderTopWidth + paddingTop), Math.max(0, brh - (borderRightWidth + paddingRight)), brv - (borderBottomWidth + paddingBottom), CORNER.BOTTOM_RIGHT)
134
- : new vector_1.Vector(bounds.left + bounds.width - (borderRightWidth + paddingRight), bounds.top + bounds.height - (borderBottomWidth + paddingBottom));
135
- this.bottomLeftContentBox =
136
- blh > 0 || blv > 0
137
- ? getCurvePoints(bounds.left + borderLeftWidth + paddingLeft, bounds.top + leftHeight, Math.max(0, blh - (borderLeftWidth + paddingLeft)), blv - (borderBottomWidth + paddingBottom), CORNER.BOTTOM_LEFT)
138
- : new vector_1.Vector(bounds.left + borderLeftWidth + paddingLeft, bounds.top + bounds.height - (borderBottomWidth + paddingBottom));
139
- }
140
- return BoundCurves;
141
- }());
142
- exports.BoundCurves = BoundCurves;
143
- var CORNER;
144
- (function (CORNER) {
145
- CORNER[CORNER["TOP_LEFT"] = 0] = "TOP_LEFT";
146
- CORNER[CORNER["TOP_RIGHT"] = 1] = "TOP_RIGHT";
147
- CORNER[CORNER["BOTTOM_RIGHT"] = 2] = "BOTTOM_RIGHT";
148
- CORNER[CORNER["BOTTOM_LEFT"] = 3] = "BOTTOM_LEFT";
149
- })(CORNER || (CORNER = {}));
150
- var getCurvePoints = function (x, y, r1, r2, position) {
151
- var kappa = 4 * ((Math.sqrt(2) - 1) / 3);
152
- var ox = r1 * kappa; // control point offset horizontal
153
- var oy = r2 * kappa; // control point offset vertical
154
- var xm = x + r1; // x-middle
155
- var ym = y + r2; // y-middle
156
- switch (position) {
157
- case CORNER.TOP_LEFT:
158
- return new bezier_curve_1.BezierCurve(new vector_1.Vector(x, ym), new vector_1.Vector(x, ym - oy), new vector_1.Vector(xm - ox, y), new vector_1.Vector(xm, y));
159
- case CORNER.TOP_RIGHT:
160
- return new bezier_curve_1.BezierCurve(new vector_1.Vector(x, y), new vector_1.Vector(x + ox, y), new vector_1.Vector(xm, ym - oy), new vector_1.Vector(xm, ym));
161
- case CORNER.BOTTOM_RIGHT:
162
- return new bezier_curve_1.BezierCurve(new vector_1.Vector(xm, y), new vector_1.Vector(xm, y + oy), new vector_1.Vector(x + ox, ym), new vector_1.Vector(x, ym));
163
- case CORNER.BOTTOM_LEFT:
164
- default:
165
- return new bezier_curve_1.BezierCurve(new vector_1.Vector(xm, ym), new vector_1.Vector(xm - ox, ym), new vector_1.Vector(x, y + oy), new vector_1.Vector(x, y));
166
- }
167
- };
168
- var calculateBorderBoxPath = function (curves) {
169
- return [curves.topLeftBorderBox, curves.topRightBorderBox, curves.bottomRightBorderBox, curves.bottomLeftBorderBox];
170
- };
171
- exports.calculateBorderBoxPath = calculateBorderBoxPath;
172
- var calculateContentBoxPath = function (curves) {
173
- return [
174
- curves.topLeftContentBox,
175
- curves.topRightContentBox,
176
- curves.bottomRightContentBox,
177
- curves.bottomLeftContentBox
178
- ];
179
- };
180
- exports.calculateContentBoxPath = calculateContentBoxPath;
181
- var calculatePaddingBoxPath = function (curves) {
182
- return [
183
- curves.topLeftPaddingBox,
184
- curves.topRightPaddingBox,
185
- curves.bottomRightPaddingBox,
186
- curves.bottomLeftPaddingBox
187
- ];
188
- };
189
- exports.calculatePaddingBoxPath = calculatePaddingBoxPath;
190
- //# sourceMappingURL=bound-curves.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bound-curves.js","sourceRoot":"","sources":["../../../src/render/bound-curves.ts"],"names":[],"mappings":";;;AACA,oEAA0F;AAC1F,mCAAgC;AAChC,+CAA2C;AAG3C;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,0BAAW,CAClB,IAAI,eAAM,CAAC,EAAE,EAAE,EAAE,CAAC,EAClB,IAAI,eAAM,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EACvB,IAAI,eAAM,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EACrB,IAAI,eAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CACnB,CAAC;KACT;AACL,CAAC,CAAC;AAEK,IAAM,sBAAsB,GAAG,UAAC,MAAmB;IACtD,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACxH,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEK,IAAM,uBAAuB,GAAG,UAAC,MAAmB;IACvD,OAAO;QACH,MAAM,CAAC,iBAAiB;QACxB,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,qBAAqB;QAC5B,MAAM,CAAC,oBAAoB;KAC9B,CAAC;AACN,CAAC,CAAC;AAPW,QAAA,uBAAuB,2BAOlC;AAEK,IAAM,uBAAuB,GAAG,UAAC,MAAmB;IACvD,OAAO;QACH,MAAM,CAAC,iBAAiB;QACxB,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,qBAAqB;QAC5B,MAAM,CAAC,oBAAoB;KAC9B,CAAC;AACN,CAAC,CAAC;AAPW,QAAA,uBAAuB,2BAOlC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.contentBox = exports.paddingBox = void 0;
4
- var length_percentage_1 = require("../css/types/length-percentage");
5
- var paddingBox = function (element) {
6
- var bounds = element.bounds;
7
- var styles = element.styles;
8
- return bounds.add(styles.borderLeftWidth, styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth), -(styles.borderTopWidth + styles.borderBottomWidth));
9
- };
10
- exports.paddingBox = paddingBox;
11
- var contentBox = function (element) {
12
- var styles = element.styles;
13
- var bounds = element.bounds;
14
- var paddingLeft = (0, length_percentage_1.getAbsoluteValue)(styles.paddingLeft, bounds.width);
15
- var paddingRight = (0, length_percentage_1.getAbsoluteValue)(styles.paddingRight, bounds.width);
16
- var paddingTop = (0, length_percentage_1.getAbsoluteValue)(styles.paddingTop, bounds.width);
17
- var paddingBottom = (0, length_percentage_1.getAbsoluteValue)(styles.paddingBottom, bounds.width);
18
- return bounds.add(paddingLeft + styles.borderLeftWidth, paddingTop + styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth + paddingLeft + paddingRight), -(styles.borderTopWidth + styles.borderBottomWidth + paddingTop + paddingBottom));
19
- };
20
- exports.contentBox = contentBox;
21
- //# sourceMappingURL=box-sizing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"box-sizing.js","sourceRoot":"","sources":["../../../src/render/box-sizing.ts"],"names":[],"mappings":";;;AAAA,oEAAgE;AAIzD,IAAM,UAAU,GAAG,UAAC,OAAyB;IAChD,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,OAAO,MAAM,CAAC,GAAG,CACb,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,cAAc,EACrB,CAAC,CAAC,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,eAAe,CAAC,EACnD,CAAC,CAAC,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CACtD,CAAC;AACN,CAAC,CAAC;AATW,QAAA,UAAU,cASrB;AAEK,IAAM,UAAU,GAAG,UAAC,OAAyB;IAChD,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAE9B,IAAM,WAAW,GAAG,IAAA,oCAAgB,EAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACvE,IA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