plotboilerplate 1.27.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1107) hide show
  1. package/dist/index.esm.js +11286 -166
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.esm.min.js +1 -1
  4. package/dist/index.esm.min.js.map +1 -1
  5. package/dist/plotboilerplate.browser.min.js +1 -1
  6. package/dist/plotboilerplate.browser.min.js.map +1 -1
  7. package/dist/plotboilerplate.js +96 -17
  8. package/dist/plotboilerplate.min.js +1 -1
  9. package/package.json +2 -1
  10. package/src/_cjs/BezierPath.d.ts +610 -0
  11. package/src/_cjs/BezierPath.js +1127 -0
  12. package/src/_cjs/BezierPath.js.map +1 -0
  13. package/src/_cjs/Bounds.d.ts +252 -0
  14. package/src/_cjs/Bounds.js +320 -0
  15. package/src/_cjs/Bounds.js.map +1 -0
  16. package/src/_cjs/Circle.d.ts +214 -0
  17. package/src/_cjs/Circle.js +339 -0
  18. package/src/_cjs/Circle.js.map +1 -0
  19. package/src/_cjs/CircleSector.d.ts +211 -0
  20. package/src/_cjs/CircleSector.js +364 -0
  21. package/src/_cjs/CircleSector.js.map +1 -0
  22. package/src/_cjs/CubicBezierCurve.d.ts +656 -0
  23. package/src/_cjs/CubicBezierCurve.js +1062 -0
  24. package/src/_cjs/CubicBezierCurve.js.map +1 -0
  25. package/src/_cjs/Grid.d.ts +83 -0
  26. package/src/_cjs/Grid.js +90 -0
  27. package/src/_cjs/Grid.js.map +1 -0
  28. package/src/_cjs/KeyHandler.d.ts +177 -0
  29. package/src/_cjs/KeyHandler.js +435 -0
  30. package/src/_cjs/KeyHandler.js.map +1 -0
  31. package/src/_cjs/Line.d.ts +134 -0
  32. package/src/_cjs/Line.js +220 -0
  33. package/src/_cjs/Line.js.map +1 -0
  34. package/src/_cjs/MouseHandler.d.ts +283 -0
  35. package/src/_cjs/MouseHandler.js +423 -0
  36. package/src/_cjs/MouseHandler.js.map +1 -0
  37. package/src/_cjs/PBImage.d.ts +81 -0
  38. package/src/_cjs/PBImage.js +61 -0
  39. package/src/_cjs/PBImage.js.map +1 -0
  40. package/src/_cjs/PBText.d.ts +118 -0
  41. package/src/_cjs/PBText.js +63 -0
  42. package/src/_cjs/PBText.js.map +1 -0
  43. package/src/_cjs/PlotBoilerplate.d.ts +899 -0
  44. package/src/_cjs/PlotBoilerplate.js +2348 -0
  45. package/src/_cjs/PlotBoilerplate.js.map +1 -0
  46. package/src/_cjs/Polygon.d.ts +520 -0
  47. package/src/_cjs/Polygon.js +933 -0
  48. package/src/_cjs/Polygon.js.map +1 -0
  49. package/src/_cjs/SVGBuilder.d.ts +47 -0
  50. package/src/_cjs/SVGBuilder.js +100 -0
  51. package/src/_cjs/SVGBuilder.js.map +1 -0
  52. package/src/_cjs/Triangle.d.ts +392 -0
  53. package/src/_cjs/Triangle.js +497 -0
  54. package/src/_cjs/Triangle.js.map +1 -0
  55. package/src/_cjs/UIDGenerator.d.ts +12 -0
  56. package/src/_cjs/UIDGenerator.js +21 -0
  57. package/src/_cjs/UIDGenerator.js.map +1 -0
  58. package/src/_cjs/VEllipse.d.ts +319 -0
  59. package/src/_cjs/VEllipse.js +578 -0
  60. package/src/_cjs/VEllipse.js.map +1 -0
  61. package/src/_cjs/VEllipseSector.d.ts +230 -0
  62. package/src/_cjs/VEllipseSector.js +428 -0
  63. package/src/_cjs/VEllipseSector.js.map +1 -0
  64. package/src/_cjs/Vector.d.ts +126 -0
  65. package/src/_cjs/Vector.js +199 -0
  66. package/src/_cjs/Vector.js.map +1 -0
  67. package/src/_cjs/VertTuple.d.ts +284 -0
  68. package/src/_cjs/VertTuple.js +348 -0
  69. package/src/_cjs/VertTuple.js.map +1 -0
  70. package/src/_cjs/Vertex.d.ts +498 -0
  71. package/src/_cjs/Vertex.js +703 -0
  72. package/src/_cjs/Vertex.js.map +1 -0
  73. package/src/_cjs/VertexAttr.d.ts +72 -0
  74. package/src/_cjs/VertexAttr.js +59 -0
  75. package/src/_cjs/VertexAttr.js.map +1 -0
  76. package/src/_cjs/VertexListeners.d.ts +208 -0
  77. package/src/_cjs/VertexListeners.js +267 -0
  78. package/src/_cjs/VertexListeners.js.map +1 -0
  79. package/src/_cjs/draw.d.ts +657 -0
  80. package/src/_cjs/draw.js +1164 -0
  81. package/src/_cjs/draw.js.map +1 -0
  82. package/src/_cjs/drawgl.d.ts +544 -0
  83. package/src/_cjs/drawgl.js +794 -0
  84. package/src/_cjs/drawgl.js.map +1 -0
  85. package/src/_cjs/drawutilssvg.d.ts +954 -0
  86. package/src/_cjs/drawutilssvg.js +1713 -0
  87. package/src/_cjs/drawutilssvg.js.map +1 -0
  88. package/src/_cjs/entry-glsupport.js +28 -0
  89. package/src/_cjs/entry.js +29 -0
  90. package/src/_cjs/geomutils.d.ts +77 -0
  91. package/src/_cjs/geomutils.js +126 -0
  92. package/src/_cjs/geomutils.js.map +1 -0
  93. package/src/_cjs/index.d.ts +102 -0
  94. package/src/_cjs/index.js +128 -0
  95. package/src/_cjs/index.js.map +1 -0
  96. package/src/_cjs/interfaces/DrawLib.d.ts +582 -0
  97. package/src/_cjs/interfaces/DrawLib.js +32 -0
  98. package/src/_cjs/interfaces/DrawLib.js.map +1 -0
  99. package/src/_cjs/interfaces/additionals.d.ts +95 -0
  100. package/src/_cjs/interfaces/additionals.js +3 -0
  101. package/src/_cjs/interfaces/additionals.js.map +1 -0
  102. package/src/_cjs/interfaces/core.d.ts +286 -0
  103. package/src/_cjs/interfaces/core.js +30 -0
  104. package/src/_cjs/interfaces/core.js.map +1 -0
  105. package/src/_cjs/interfaces/externals.d.ts +56 -0
  106. package/src/_cjs/interfaces/externals.js +8 -0
  107. package/src/_cjs/interfaces/externals.js.map +1 -0
  108. package/src/_cjs/interfaces/index.d.ts +4 -0
  109. package/src/_cjs/interfaces/index.js +21 -0
  110. package/src/_cjs/interfaces/index.js.map +1 -0
  111. package/src/_cjs/module.d.ts +26 -0
  112. package/src/_cjs/module.js +60 -0
  113. package/src/_cjs/module.js.map +1 -0
  114. package/src/_cjs/utils/InitializationObserver.d.ts +18 -0
  115. package/src/_cjs/utils/InitializationObserver.js +63 -0
  116. package/src/_cjs/utils/InitializationObserver.js.map +1 -0
  117. package/src/_cjs/utils/LissajousFigure.d.ts +34 -0
  118. package/src/_cjs/utils/LissajousFigure.js +100 -0
  119. package/src/_cjs/utils/LissajousFigure.js.map +1 -0
  120. package/src/_cjs/utils/NGons.d.ts +13 -0
  121. package/src/_cjs/utils/NGons.js +36 -0
  122. package/src/_cjs/utils/NGons.js.map +1 -0
  123. package/src/_cjs/utils/Params.d.ts +17 -0
  124. package/src/_cjs/utils/Params.js +53 -0
  125. package/src/_cjs/utils/Params.js.map +1 -0
  126. package/src/_cjs/utils/PerlinNoise.d.ts +19 -0
  127. package/src/_cjs/utils/PerlinNoise.js +352 -0
  128. package/src/_cjs/utils/PerlinNoise.js.map +1 -0
  129. package/src/_cjs/utils/SVGPathUtils.d.ts +22 -0
  130. package/src/_cjs/utils/SVGPathUtils.js +45 -0
  131. package/src/_cjs/utils/SVGPathUtils.js.map +1 -0
  132. package/src/_cjs/utils/WebColors.d.ts +35 -0
  133. package/src/_cjs/utils/WebColors.js +58 -0
  134. package/src/_cjs/utils/WebColors.js.map +1 -0
  135. package/src/_cjs/utils/WebColorsContrast.d.ts +6 -0
  136. package/src/_cjs/utils/WebColorsContrast.js +12 -0
  137. package/src/_cjs/utils/WebColorsContrast.js.map +1 -0
  138. package/src/_cjs/utils/WebColorsMalachite.d.ts +12 -0
  139. package/src/_cjs/utils/WebColorsMalachite.js +28 -0
  140. package/src/_cjs/utils/WebColorsMalachite.js.map +1 -0
  141. package/src/_cjs/utils/algorithms/CatmullRomPath.d.ts +60 -0
  142. package/src/_cjs/utils/algorithms/CatmullRomPath.js +108 -0
  143. package/src/_cjs/utils/algorithms/CatmullRomPath.js.map +1 -0
  144. package/src/_cjs/utils/algorithms/CircleIntersections.d.ts +170 -0
  145. package/src/_cjs/utils/algorithms/CircleIntersections.js +310 -0
  146. package/src/_cjs/utils/algorithms/CircleIntersections.js.map +1 -0
  147. package/src/_cjs/utils/algorithms/ContourLineDetection.d.ts +150 -0
  148. package/src/_cjs/utils/algorithms/ContourLineDetection.js +367 -0
  149. package/src/_cjs/utils/algorithms/ContourLineDetection.js.map +1 -0
  150. package/src/_cjs/utils/algorithms/CubicSplinePath.d.ts +63 -0
  151. package/src/_cjs/utils/algorithms/CubicSplinePath.js +175 -0
  152. package/src/_cjs/utils/algorithms/CubicSplinePath.js.map +1 -0
  153. package/src/_cjs/utils/algorithms/HobbyPath.d.ts +81 -0
  154. package/src/_cjs/utils/algorithms/HobbyPath.js +278 -0
  155. package/src/_cjs/utils/algorithms/HobbyPath.js.map +1 -0
  156. package/src/_cjs/utils/algorithms/Metaballs.d.ts +30 -0
  157. package/src/_cjs/utils/algorithms/Metaballs.js +114 -0
  158. package/src/_cjs/utils/algorithms/Metaballs.js.map +1 -0
  159. package/src/_cjs/utils/algorithms/PolygonInset.d.ts +184 -0
  160. package/src/_cjs/utils/algorithms/PolygonInset.js +431 -0
  161. package/src/_cjs/utils/algorithms/PolygonInset.js.map +1 -0
  162. package/src/_cjs/utils/algorithms/PolygonTesselationOutlines.d.ts +145 -0
  163. package/src/_cjs/utils/algorithms/PolygonTesselationOutlines.js +269 -0
  164. package/src/_cjs/utils/algorithms/PolygonTesselationOutlines.js.map +1 -0
  165. package/src/_cjs/utils/algorithms/arrayFill.d.ts +8 -0
  166. package/src/_cjs/utils/algorithms/arrayFill.js +18 -0
  167. package/src/_cjs/utils/algorithms/arrayFill.js.map +1 -0
  168. package/src/_cjs/utils/algorithms/arrayResize.d.ts +8 -0
  169. package/src/_cjs/utils/algorithms/arrayResize.js +24 -0
  170. package/src/_cjs/utils/algorithms/arrayResize.js.map +1 -0
  171. package/src/_cjs/utils/algorithms/arrayShuffle.d.ts +8 -0
  172. package/src/_cjs/utils/algorithms/arrayShuffle.js +15 -0
  173. package/src/_cjs/utils/algorithms/arrayShuffle.js.map +1 -0
  174. package/src/_cjs/utils/algorithms/clearDuplicateVertices.d.ts +22 -0
  175. package/src/_cjs/utils/algorithms/clearDuplicateVertices.js +51 -0
  176. package/src/_cjs/utils/algorithms/clearDuplicateVertices.js.map +1 -0
  177. package/src/_cjs/utils/algorithms/clearPolygonDuplicateVertices.d.ts +24 -0
  178. package/src/_cjs/utils/algorithms/clearPolygonDuplicateVertices.js +61 -0
  179. package/src/_cjs/utils/algorithms/clearPolygonDuplicateVertices.js.map +1 -0
  180. package/src/_cjs/utils/algorithms/convexHull.d.ts +23 -0
  181. package/src/_cjs/utils/algorithms/convexHull.js +71 -0
  182. package/src/_cjs/utils/algorithms/convexHull.js.map +1 -0
  183. package/src/_cjs/utils/algorithms/convexPolygonIncircle.d.ts +41 -0
  184. package/src/_cjs/utils/algorithms/convexPolygonIncircle.js +145 -0
  185. package/src/_cjs/utils/algorithms/convexPolygonIncircle.js.map +1 -0
  186. package/src/_cjs/utils/algorithms/delaunay.d.ts +30 -0
  187. package/src/_cjs/utils/algorithms/delaunay.js +158 -0
  188. package/src/_cjs/utils/algorithms/delaunay.js.map +1 -0
  189. package/src/_cjs/utils/algorithms/delaunay2voronoi.d.ts +25 -0
  190. package/src/_cjs/utils/algorithms/delaunay2voronoi.js +104 -0
  191. package/src/_cjs/utils/algorithms/delaunay2voronoi.js.map +1 -0
  192. package/src/_cjs/utils/algorithms/detectPaths.d.ts +21 -0
  193. package/src/_cjs/utils/algorithms/detectPaths.js +169 -0
  194. package/src/_cjs/utils/algorithms/detectPaths.js.map +1 -0
  195. package/src/_cjs/utils/algorithms/findPolygonSelfIntersections.d.ts +21 -0
  196. package/src/_cjs/utils/algorithms/findPolygonSelfIntersections.js +51 -0
  197. package/src/_cjs/utils/algorithms/findPolygonSelfIntersections.js.map +1 -0
  198. package/src/_cjs/utils/algorithms/getContrastColor.d.ts +13 -0
  199. package/src/_cjs/utils/algorithms/getContrastColor.js +26 -0
  200. package/src/_cjs/utils/algorithms/getContrastColor.js.map +1 -0
  201. package/src/_cjs/utils/algorithms/matrixFill.d.ts +10 -0
  202. package/src/_cjs/utils/algorithms/matrixFill.js +21 -0
  203. package/src/_cjs/utils/algorithms/matrixFill.js.map +1 -0
  204. package/src/_cjs/utils/algorithms/pixelCornersToRoundPaths.d.ts +23 -0
  205. package/src/_cjs/utils/algorithms/pixelCornersToRoundPaths.js +270 -0
  206. package/src/_cjs/utils/algorithms/pixelCornersToRoundPaths.js.map +1 -0
  207. package/src/_cjs/utils/algorithms/splitPolygonToNonIntersecting.d.ts +28 -0
  208. package/src/_cjs/utils/algorithms/splitPolygonToNonIntersecting.js +102 -0
  209. package/src/_cjs/utils/algorithms/splitPolygonToNonIntersecting.js.map +1 -0
  210. package/src/_cjs/utils/algorithms/sutherlandHodgman.d.ts +16 -0
  211. package/src/_cjs/utils/algorithms/sutherlandHodgman.js +76 -0
  212. package/src/_cjs/utils/algorithms/sutherlandHodgman.js.map +1 -0
  213. package/src/_cjs/utils/cloneVertexArray.d.ts +13 -0
  214. package/src/_cjs/utils/cloneVertexArray.js +23 -0
  215. package/src/_cjs/utils/cloneVertexArray.js.map +1 -0
  216. package/src/_cjs/utils/createRandomizedPolygon.d.ts +14 -0
  217. package/src/_cjs/utils/createRandomizedPolygon.js +32 -0
  218. package/src/_cjs/utils/createRandomizedPolygon.js.map +1 -0
  219. package/src/_cjs/utils/creategui.js +434 -0
  220. package/src/_cjs/utils/dat.gui.arrowbounce.polyfill.js +128 -0
  221. package/src/_cjs/utils/dat.gui.title.polyfill.js +35 -0
  222. package/src/_cjs/utils/datastructures/CircularIntervalSet.d.ts +83 -0
  223. package/src/_cjs/utils/datastructures/CircularIntervalSet.js +163 -0
  224. package/src/_cjs/utils/datastructures/CircularIntervalSet.js.map +1 -0
  225. package/src/_cjs/utils/datastructures/Color.d.ts +391 -0
  226. package/src/_cjs/utils/datastructures/Color.js +1084 -0
  227. package/src/_cjs/utils/datastructures/Color.js.map +1 -0
  228. package/src/_cjs/utils/datastructures/ColorGradient.d.ts +81 -0
  229. package/src/_cjs/utils/datastructures/ColorGradient.js +176 -0
  230. package/src/_cjs/utils/datastructures/ColorGradient.js.map +1 -0
  231. package/src/_cjs/utils/datastructures/DataGrid2d.d.ts +53 -0
  232. package/src/_cjs/utils/datastructures/DataGrid2d.js +20 -0
  233. package/src/_cjs/utils/datastructures/DataGrid2d.js.map +1 -0
  234. package/src/_cjs/utils/datastructures/DataGrid2dArrayMatrix.d.ts +88 -0
  235. package/src/_cjs/utils/datastructures/DataGrid2dArrayMatrix.js +155 -0
  236. package/src/_cjs/utils/datastructures/DataGrid2dArrayMatrix.js.map +1 -0
  237. package/src/_cjs/utils/datastructures/DataGrid2dListAdapter.d.ts +59 -0
  238. package/src/_cjs/utils/datastructures/DataGrid2dListAdapter.js +84 -0
  239. package/src/_cjs/utils/datastructures/DataGrid2dListAdapter.js.map +1 -0
  240. package/src/_cjs/utils/datastructures/GenericPath.d.ts +86 -0
  241. package/src/_cjs/utils/datastructures/GenericPath.js +122 -0
  242. package/src/_cjs/utils/datastructures/GenericPath.js.map +1 -0
  243. package/src/_cjs/utils/datastructures/GeometryMesh.d.ts +49 -0
  244. package/src/_cjs/utils/datastructures/GeometryMesh.js +58 -0
  245. package/src/_cjs/utils/datastructures/GeometryMesh.js.map +1 -0
  246. package/src/_cjs/utils/datastructures/Girih.d.ts +181 -0
  247. package/src/_cjs/utils/datastructures/Girih.js +266 -0
  248. package/src/_cjs/utils/datastructures/Girih.js.map +1 -0
  249. package/src/_cjs/utils/datastructures/GirihBowtie.d.ts +37 -0
  250. package/src/_cjs/utils/datastructures/GirihBowtie.js +152 -0
  251. package/src/_cjs/utils/datastructures/GirihBowtie.js.map +1 -0
  252. package/src/_cjs/utils/datastructures/GirihDecagon.d.ts +52 -0
  253. package/src/_cjs/utils/datastructures/GirihDecagon.js +132 -0
  254. package/src/_cjs/utils/datastructures/GirihDecagon.js.map +1 -0
  255. package/src/_cjs/utils/datastructures/GirihHexagon.d.ts +39 -0
  256. package/src/_cjs/utils/datastructures/GirihHexagon.js +200 -0
  257. package/src/_cjs/utils/datastructures/GirihHexagon.js.map +1 -0
  258. package/src/_cjs/utils/datastructures/GirihPenroseRhombus.d.ts +46 -0
  259. package/src/_cjs/utils/datastructures/GirihPenroseRhombus.js +189 -0
  260. package/src/_cjs/utils/datastructures/GirihPenroseRhombus.js.map +1 -0
  261. package/src/_cjs/utils/datastructures/GirihPentagon.d.ts +37 -0
  262. package/src/_cjs/utils/datastructures/GirihPentagon.js +109 -0
  263. package/src/_cjs/utils/datastructures/GirihPentagon.js.map +1 -0
  264. package/src/_cjs/utils/datastructures/GirihRhombus.d.ts +38 -0
  265. package/src/_cjs/utils/datastructures/GirihRhombus.js +155 -0
  266. package/src/_cjs/utils/datastructures/GirihRhombus.js.map +1 -0
  267. package/src/_cjs/utils/datastructures/GirihTile.d.ts +283 -0
  268. package/src/_cjs/utils/datastructures/GirihTile.js +308 -0
  269. package/src/_cjs/utils/datastructures/GirihTile.js.map +1 -0
  270. package/src/_cjs/utils/datastructures/Matrix4x4.d.ts +244 -0
  271. package/src/_cjs/utils/datastructures/Matrix4x4.js +262 -0
  272. package/src/_cjs/utils/datastructures/Matrix4x4.js.map +1 -0
  273. package/src/_cjs/utils/datastructures/VoronoiCell.d.ts +122 -0
  274. package/src/_cjs/utils/datastructures/VoronoiCell.js +183 -0
  275. package/src/_cjs/utils/datastructures/VoronoiCell.js.map +1 -0
  276. package/src/_cjs/utils/datastructures/interfaces.d.ts +13 -0
  277. package/src/_cjs/utils/datastructures/interfaces.js +10 -0
  278. package/src/_cjs/utils/datastructures/interfaces.js.map +1 -0
  279. package/src/_cjs/utils/detectDarkMode.d.ts +10 -0
  280. package/src/_cjs/utils/detectDarkMode.js +41 -0
  281. package/src/_cjs/utils/detectDarkMode.js.map +1 -0
  282. package/src/_cjs/utils/dom/components/ColorGradientPicker.d.ts +246 -0
  283. package/src/_cjs/utils/dom/components/ColorGradientPicker.js +667 -0
  284. package/src/_cjs/utils/dom/components/ColorGradientPicker.js.map +1 -0
  285. package/src/_cjs/utils/dom/components/ColorGradientPickerJSX.d.ts +129 -0
  286. package/src/_cjs/utils/dom/components/ColorGradientPickerJSX.js +520 -0
  287. package/src/_cjs/utils/dom/components/ColorGradientPickerJSX.js.map +1 -0
  288. package/src/_cjs/utils/dom/components/ColorGradientSelector.d.ts +118 -0
  289. package/src/_cjs/utils/dom/components/ColorGradientSelector.js +327 -0
  290. package/src/_cjs/utils/dom/components/ColorGradientSelector.js.map +1 -0
  291. package/src/_cjs/utils/dom/components/Test.d.ts +7 -0
  292. package/src/_cjs/utils/dom/components/Test.js +30 -0
  293. package/src/_cjs/utils/dom/components/Test.js.map +1 -0
  294. package/src/_cjs/utils/dom/getAvailableContainerSpace.d.ts +2 -0
  295. package/src/_cjs/utils/dom/getAvailableContainerSpace.js +29 -0
  296. package/src/_cjs/utils/dom/getAvailableContainerSpace.js.map +1 -0
  297. package/src/_cjs/utils/dom/getFProp.d.ts +5 -0
  298. package/src/_cjs/utils/dom/getFProp.js +12 -0
  299. package/src/_cjs/utils/dom/getFProp.js.map +1 -0
  300. package/src/_cjs/utils/dom/guiSizeToggler.d.ts +18 -0
  301. package/src/_cjs/utils/dom/guiSizeToggler.js +44 -0
  302. package/src/_cjs/utils/dom/guiSizeToggler.js.map +1 -0
  303. package/src/_cjs/utils/findInVertexArray.d.ts +19 -0
  304. package/src/_cjs/utils/findInVertexArray.js +29 -0
  305. package/src/_cjs/utils/findInVertexArray.js.map +1 -0
  306. package/src/_cjs/utils/getFProp.d.ts +5 -0
  307. package/src/_cjs/utils/getFProp.js +12 -0
  308. package/src/_cjs/utils/getFProp.js.map +1 -0
  309. package/src/_cjs/utils/gup.d.ts +14 -0
  310. package/src/_cjs/utils/gup.js +31 -0
  311. package/src/_cjs/utils/gup.js.map +1 -0
  312. package/src/_cjs/utils/helpers/BezierPathInteractionHelper.d.ts +272 -0
  313. package/src/_cjs/utils/helpers/BezierPathInteractionHelper.js +655 -0
  314. package/src/_cjs/utils/helpers/BezierPathInteractionHelper.js.map +1 -0
  315. package/src/_cjs/utils/helpers/CircleHelper.d.ts +73 -0
  316. package/src/_cjs/utils/helpers/CircleHelper.js +93 -0
  317. package/src/_cjs/utils/helpers/CircleHelper.js.map +1 -0
  318. package/src/_cjs/utils/helpers/CircleSectorHelper.d.ts +90 -0
  319. package/src/_cjs/utils/helpers/CircleSectorHelper.js +114 -0
  320. package/src/_cjs/utils/helpers/CircleSectorHelper.js.map +1 -0
  321. package/src/_cjs/utils/helpers/TriangleHelper.d.ts +57 -0
  322. package/src/_cjs/utils/helpers/TriangleHelper.js +83 -0
  323. package/src/_cjs/utils/helpers/TriangleHelper.js.map +1 -0
  324. package/src/_cjs/utils/helpers/VEllipseHelper.d.ts +32 -0
  325. package/src/_cjs/utils/helpers/VEllipseHelper.js +88 -0
  326. package/src/_cjs/utils/helpers/VEllipseHelper.js.map +1 -0
  327. package/src/_cjs/utils/helpers/VEllipseSectorHelper.d.ts +52 -0
  328. package/src/_cjs/utils/helpers/VEllipseSectorHelper.js +135 -0
  329. package/src/_cjs/utils/helpers/VEllipseSectorHelper.js.map +1 -0
  330. package/src/_cjs/utils/io/DndFileHandler.d.ts +63 -0
  331. package/src/_cjs/utils/io/DndFileHandler.js +112 -0
  332. package/src/_cjs/utils/io/DndFileHandler.js.map +1 -0
  333. package/src/_cjs/utils/io/FileDrop.d.ts +110 -0
  334. package/src/_cjs/utils/io/FileDrop.js +177 -0
  335. package/src/_cjs/utils/io/FileDrop.js.map +1 -0
  336. package/src/_cjs/utils/lil.gui.arrowbounce.polyfill.js +133 -0
  337. package/src/_cjs/utils/lil.gui.title.polyfill.js +32 -0
  338. package/src/_cjs/utils/module.js +18 -0
  339. package/src/_cjs/utils/parsers/LinearColorGradientParser.d.ts +78 -0
  340. package/src/_cjs/utils/parsers/LinearColorGradientParser.js +224 -0
  341. package/src/_cjs/utils/parsers/LinearColorGradientParser.js.map +1 -0
  342. package/src/_cjs/utils/parsers/OBJParser.d.ts +24 -0
  343. package/src/_cjs/utils/parsers/OBJParser.js +77 -0
  344. package/src/_cjs/utils/parsers/OBJParser.js.map +1 -0
  345. package/src/_cjs/utils/parsers/STLParser.d.ts +61 -0
  346. package/src/_cjs/utils/parsers/STLParser.js +182 -0
  347. package/src/_cjs/utils/parsers/STLParser.js.map +1 -0
  348. package/src/_cjs/utils/parsers/svg/parseSVGPathData.d.ts +27 -0
  349. package/src/_cjs/utils/parsers/svg/parseSVGPathData.js +486 -0
  350. package/src/_cjs/utils/parsers/svg/parseSVGPathData.js.map +1 -0
  351. package/src/_cjs/utils/parsers/svg/splitSVGPathData.d.ts +20 -0
  352. package/src/_cjs/utils/parsers/svg/splitSVGPathData.js +53 -0
  353. package/src/_cjs/utils/parsers/svg/splitSVGPathData.js.map +1 -0
  354. package/src/_cjs/utils/parsers/svg/types.d.ts +63 -0
  355. package/src/_cjs/utils/parsers/svg/types.js +17 -0
  356. package/src/_cjs/utils/parsers/svg/types.js.map +1 -0
  357. package/src/_cjs/utils/ts-runner.js +146 -0
  358. package/src/_cjs/utils/tsAsyncScriptLoader.js +74 -0
  359. package/src/_esm/BezierPath.d.ts +610 -0
  360. package/src/_esm/BezierPath.js +1124 -0
  361. package/src/_esm/BezierPath.js.map +1 -0
  362. package/src/_esm/Bounds.d.ts +252 -0
  363. package/src/_esm/Bounds.js +317 -0
  364. package/src/_esm/Bounds.js.map +1 -0
  365. package/src/_esm/Circle.d.ts +214 -0
  366. package/src/_esm/Circle.js +335 -0
  367. package/src/_esm/Circle.js.map +1 -0
  368. package/src/_esm/CircleSector.d.ts +211 -0
  369. package/src/_esm/CircleSector.js +359 -0
  370. package/src/_esm/CircleSector.js.map +1 -0
  371. package/src/_esm/CubicBezierCurve.d.ts +656 -0
  372. package/src/_esm/CubicBezierCurve.js +1057 -0
  373. package/src/_esm/CubicBezierCurve.js.map +1 -0
  374. package/src/_esm/Grid.d.ts +83 -0
  375. package/src/_esm/Grid.js +89 -0
  376. package/src/_esm/Grid.js.map +1 -0
  377. package/src/_esm/KeyHandler.d.ts +177 -0
  378. package/src/_esm/KeyHandler.js +434 -0
  379. package/src/_esm/KeyHandler.js.map +1 -0
  380. package/src/_esm/Line.d.ts +134 -0
  381. package/src/_esm/Line.js +200 -0
  382. package/src/_esm/Line.js.map +1 -0
  383. package/src/_esm/MouseHandler.d.ts +283 -0
  384. package/src/_esm/MouseHandler.js +397 -0
  385. package/src/_esm/MouseHandler.js.map +1 -0
  386. package/src/_esm/PBImage.d.ts +81 -0
  387. package/src/_esm/PBImage.js +60 -0
  388. package/src/_esm/PBImage.js.map +1 -0
  389. package/src/_esm/PBText.d.ts +118 -0
  390. package/src/_esm/PBText.js +62 -0
  391. package/src/_esm/PBText.js.map +1 -0
  392. package/src/_esm/PlotBoilerplate.d.ts +899 -0
  393. package/src/_esm/PlotBoilerplate.js +2347 -0
  394. package/src/_esm/PlotBoilerplate.js.map +1 -0
  395. package/src/_esm/Polygon.d.ts +520 -0
  396. package/src/_esm/Polygon.js +924 -0
  397. package/src/_esm/Polygon.js.map +1 -0
  398. package/src/_esm/SVGBuilder.d.ts +47 -0
  399. package/src/_esm/SVGBuilder.js +95 -0
  400. package/src/_esm/SVGBuilder.js.map +1 -0
  401. package/src/_esm/Triangle.d.ts +392 -0
  402. package/src/_esm/Triangle.js +493 -0
  403. package/src/_esm/Triangle.js.map +1 -0
  404. package/src/_esm/UIDGenerator.d.ts +12 -0
  405. package/src/_esm/UIDGenerator.js +18 -0
  406. package/src/_esm/UIDGenerator.js.map +1 -0
  407. package/src/_esm/VEllipse.d.ts +319 -0
  408. package/src/_esm/VEllipse.js +574 -0
  409. package/src/_esm/VEllipse.js.map +1 -0
  410. package/src/_esm/VEllipseSector.d.ts +230 -0
  411. package/src/_esm/VEllipseSector.js +422 -0
  412. package/src/_esm/VEllipseSector.js.map +1 -0
  413. package/src/_esm/Vector.d.ts +126 -0
  414. package/src/_esm/Vector.js +181 -0
  415. package/src/_esm/Vector.js.map +1 -0
  416. package/src/_esm/VertTuple.d.ts +284 -0
  417. package/src/_esm/VertTuple.js +347 -0
  418. package/src/_esm/VertTuple.js.map +1 -0
  419. package/src/_esm/Vertex.d.ts +498 -0
  420. package/src/_esm/Vertex.js +702 -0
  421. package/src/_esm/Vertex.js.map +1 -0
  422. package/src/_esm/VertexAttr.d.ts +72 -0
  423. package/src/_esm/VertexAttr.js +58 -0
  424. package/src/_esm/VertexAttr.js.map +1 -0
  425. package/src/_esm/VertexListeners.d.ts +209 -0
  426. package/src/_esm/VertexListeners.js +270 -0
  427. package/src/_esm/VertexListeners.js.map +1 -0
  428. package/src/_esm/draw.d.ts +657 -0
  429. package/src/_esm/draw.js +1159 -0
  430. package/src/_esm/draw.js.map +1 -0
  431. package/src/_esm/drawgl.d.ts +544 -0
  432. package/src/_esm/drawgl.js +812 -0
  433. package/src/_esm/drawgl.js.map +1 -0
  434. package/src/_esm/drawutilssvg.d.ts +954 -0
  435. package/src/_esm/drawutilssvg.js +1705 -0
  436. package/src/_esm/drawutilssvg.js.map +1 -0
  437. package/src/_esm/entry-glsupport.js +28 -0
  438. package/src/_esm/entry.js +29 -0
  439. package/src/_esm/geomutils.d.ts +77 -0
  440. package/src/_esm/geomutils.js +126 -0
  441. package/src/_esm/geomutils.js.map +1 -0
  442. package/src/_esm/index.d.ts +102 -0
  443. package/src/_esm/index.js +128 -0
  444. package/src/_esm/index.js.map +1 -0
  445. package/src/_esm/interfaces/DrawLib.d.ts +582 -0
  446. package/src/_esm/interfaces/DrawLib.js +32 -0
  447. package/src/_esm/interfaces/DrawLib.js.map +1 -0
  448. package/src/_esm/interfaces/additionals.d.ts +95 -0
  449. package/src/_esm/interfaces/additionals.js +3 -0
  450. package/src/_esm/interfaces/additionals.js.map +1 -0
  451. package/src/_esm/interfaces/core.d.ts +286 -0
  452. package/src/_esm/interfaces/core.js +30 -0
  453. package/src/_esm/interfaces/core.js.map +1 -0
  454. package/src/_esm/interfaces/externals.d.ts +56 -0
  455. package/src/_esm/interfaces/externals.js +8 -0
  456. package/src/_esm/interfaces/externals.js.map +1 -0
  457. package/src/_esm/interfaces/index.d.ts +4 -0
  458. package/src/_esm/interfaces/index.js +21 -0
  459. package/src/_esm/interfaces/index.js.map +1 -0
  460. package/src/_esm/module.d.ts +26 -0
  461. package/src/_esm/module.js +60 -0
  462. package/src/_esm/module.js.map +1 -0
  463. package/src/_esm/src/ts/BezierPath.d.ts +610 -0
  464. package/src/_esm/src/ts/BezierPath.js +1120 -0
  465. package/src/_esm/src/ts/BezierPath.js.map +1 -0
  466. package/src/_esm/src/ts/Bounds.d.ts +252 -0
  467. package/src/_esm/src/ts/Bounds.js +313 -0
  468. package/src/_esm/src/ts/Bounds.js.map +1 -0
  469. package/src/_esm/src/ts/Circle.d.ts +214 -0
  470. package/src/_esm/src/ts/Circle.js +331 -0
  471. package/src/_esm/src/ts/Circle.js.map +1 -0
  472. package/src/_esm/src/ts/CircleSector.d.ts +211 -0
  473. package/src/_esm/src/ts/CircleSector.js +355 -0
  474. package/src/_esm/src/ts/CircleSector.js.map +1 -0
  475. package/src/_esm/src/ts/CubicBezierCurve.d.ts +656 -0
  476. package/src/_esm/src/ts/CubicBezierCurve.js +1053 -0
  477. package/src/_esm/src/ts/CubicBezierCurve.js.map +1 -0
  478. package/src/_esm/src/ts/Grid.d.ts +83 -0
  479. package/src/_esm/src/ts/Grid.js +85 -0
  480. package/src/_esm/src/ts/Grid.js.map +1 -0
  481. package/src/_esm/src/ts/KeyHandler.d.ts +177 -0
  482. package/src/_esm/src/ts/KeyHandler.js +430 -0
  483. package/src/_esm/src/ts/KeyHandler.js.map +1 -0
  484. package/src/_esm/src/ts/Line.d.ts +134 -0
  485. package/src/_esm/src/ts/Line.js +196 -0
  486. package/src/_esm/src/ts/Line.js.map +1 -0
  487. package/src/_esm/src/ts/MouseHandler.d.ts +283 -0
  488. package/src/_esm/src/ts/MouseHandler.js +391 -0
  489. package/src/_esm/src/ts/MouseHandler.js.map +1 -0
  490. package/src/_esm/src/ts/PBImage.d.ts +81 -0
  491. package/src/_esm/src/ts/PBImage.js +56 -0
  492. package/src/_esm/src/ts/PBImage.js.map +1 -0
  493. package/src/_esm/src/ts/PBText.d.ts +118 -0
  494. package/src/_esm/src/ts/PBText.js +58 -0
  495. package/src/_esm/src/ts/PBText.js.map +1 -0
  496. package/src/_esm/src/ts/PlotBoilerplate.d.ts +899 -0
  497. package/src/_esm/src/ts/PlotBoilerplate.js +2340 -0
  498. package/src/_esm/src/ts/PlotBoilerplate.js.map +1 -0
  499. package/src/_esm/src/ts/Polygon.d.ts +520 -0
  500. package/src/_esm/src/ts/Polygon.js +920 -0
  501. package/src/_esm/src/ts/Polygon.js.map +1 -0
  502. package/src/_esm/src/ts/Triangle.d.ts +392 -0
  503. package/src/_esm/src/ts/Triangle.js +489 -0
  504. package/src/_esm/src/ts/Triangle.js.map +1 -0
  505. package/src/_esm/src/ts/UIDGenerator.d.ts +12 -0
  506. package/src/_esm/src/ts/UIDGenerator.js +14 -0
  507. package/src/_esm/src/ts/UIDGenerator.js.map +1 -0
  508. package/src/_esm/src/ts/VEllipse.d.ts +319 -0
  509. package/src/_esm/src/ts/VEllipse.js +570 -0
  510. package/src/_esm/src/ts/VEllipse.js.map +1 -0
  511. package/src/_esm/src/ts/VEllipseSector.d.ts +230 -0
  512. package/src/_esm/src/ts/VEllipseSector.js +418 -0
  513. package/src/_esm/src/ts/VEllipseSector.js.map +1 -0
  514. package/src/_esm/src/ts/Vector.d.ts +126 -0
  515. package/src/_esm/src/ts/Vector.js +177 -0
  516. package/src/_esm/src/ts/Vector.js.map +1 -0
  517. package/src/_esm/src/ts/VertTuple.d.ts +284 -0
  518. package/src/_esm/src/ts/VertTuple.js +343 -0
  519. package/src/_esm/src/ts/VertTuple.js.map +1 -0
  520. package/src/_esm/src/ts/Vertex.d.ts +498 -0
  521. package/src/_esm/src/ts/Vertex.js +698 -0
  522. package/src/_esm/src/ts/Vertex.js.map +1 -0
  523. package/src/_esm/src/ts/VertexAttr.d.ts +72 -0
  524. package/src/_esm/src/ts/VertexAttr.js +54 -0
  525. package/src/_esm/src/ts/VertexAttr.js.map +1 -0
  526. package/src/_esm/src/ts/VertexListeners.d.ts +209 -0
  527. package/src/_esm/src/ts/VertexListeners.js +266 -0
  528. package/src/_esm/src/ts/VertexListeners.js.map +1 -0
  529. package/src/_esm/src/ts/draw.d.ts +657 -0
  530. package/src/_esm/src/ts/draw.js +1155 -0
  531. package/src/_esm/src/ts/draw.js.map +1 -0
  532. package/src/_esm/src/ts/drawgl.d.ts +544 -0
  533. package/src/_esm/src/ts/drawgl.js +808 -0
  534. package/src/_esm/src/ts/drawgl.js.map +1 -0
  535. package/src/_esm/src/ts/drawutilssvg.d.ts +954 -0
  536. package/src/_esm/src/ts/drawutilssvg.js +1701 -0
  537. package/src/_esm/src/ts/drawutilssvg.js.map +1 -0
  538. package/src/_esm/src/ts/geomutils.d.ts +77 -0
  539. package/src/_esm/src/ts/geomutils.js +123 -0
  540. package/src/_esm/src/ts/geomutils.js.map +1 -0
  541. package/src/_esm/src/ts/index.d.ts +102 -0
  542. package/src/_esm/src/ts/index.js +112 -0
  543. package/src/_esm/src/ts/index.js.map +1 -0
  544. package/src/_esm/src/ts/interfaces/DrawLib.d.ts +582 -0
  545. package/src/_esm/src/ts/interfaces/DrawLib.js +31 -0
  546. package/src/_esm/src/ts/interfaces/DrawLib.js.map +1 -0
  547. package/src/_esm/src/ts/interfaces/additionals.d.ts +95 -0
  548. package/src/_esm/src/ts/interfaces/additionals.js +2 -0
  549. package/src/_esm/src/ts/interfaces/additionals.js.map +1 -0
  550. package/src/_esm/src/ts/interfaces/core.d.ts +286 -0
  551. package/src/_esm/src/ts/interfaces/core.js +29 -0
  552. package/src/_esm/src/ts/interfaces/core.js.map +1 -0
  553. package/src/_esm/src/ts/interfaces/externals.d.ts +56 -0
  554. package/src/_esm/src/ts/interfaces/externals.js +7 -0
  555. package/src/_esm/src/ts/interfaces/externals.js.map +1 -0
  556. package/src/_esm/src/ts/interfaces/index.d.ts +4 -0
  557. package/src/_esm/src/ts/interfaces/index.js +5 -0
  558. package/src/_esm/src/ts/interfaces/index.js.map +1 -0
  559. package/src/_esm/src/ts/module.d.ts +26 -0
  560. package/src/_esm/src/ts/module.js +38 -0
  561. package/src/_esm/src/ts/module.js.map +1 -0
  562. package/src/_esm/src/ts/utils/InitializationObserver.d.ts +18 -0
  563. package/src/_esm/src/ts/utils/InitializationObserver.js +57 -0
  564. package/src/_esm/src/ts/utils/InitializationObserver.js.map +1 -0
  565. package/src/_esm/src/ts/utils/LissajousFigure.d.ts +34 -0
  566. package/src/_esm/src/ts/utils/LissajousFigure.js +95 -0
  567. package/src/_esm/src/ts/utils/LissajousFigure.js.map +1 -0
  568. package/src/_esm/src/ts/utils/NGons.d.ts +13 -0
  569. package/src/_esm/src/ts/utils/NGons.js +33 -0
  570. package/src/_esm/src/ts/utils/NGons.js.map +1 -0
  571. package/src/_esm/src/ts/utils/Params.d.ts +17 -0
  572. package/src/_esm/src/ts/utils/Params.js +48 -0
  573. package/src/_esm/src/ts/utils/Params.js.map +1 -0
  574. package/src/_esm/src/ts/utils/PerlinNoise.d.ts +19 -0
  575. package/src/_esm/src/ts/utils/PerlinNoise.js +346 -0
  576. package/src/_esm/src/ts/utils/PerlinNoise.js.map +1 -0
  577. package/src/_esm/src/ts/utils/SVGPathUtils.d.ts +22 -0
  578. package/src/_esm/src/ts/utils/SVGPathUtils.js +42 -0
  579. package/src/_esm/src/ts/utils/SVGPathUtils.js.map +1 -0
  580. package/src/_esm/src/ts/utils/WebColors.d.ts +35 -0
  581. package/src/_esm/src/ts/utils/WebColors.js +54 -0
  582. package/src/_esm/src/ts/utils/WebColors.js.map +1 -0
  583. package/src/_esm/src/ts/utils/WebColorsContrast.d.ts +6 -0
  584. package/src/_esm/src/ts/utils/WebColorsContrast.js +9 -0
  585. package/src/_esm/src/ts/utils/WebColorsContrast.js.map +1 -0
  586. package/src/_esm/src/ts/utils/WebColorsMalachite.d.ts +12 -0
  587. package/src/_esm/src/ts/utils/WebColorsMalachite.js +25 -0
  588. package/src/_esm/src/ts/utils/WebColorsMalachite.js.map +1 -0
  589. package/src/_esm/src/ts/utils/algorithms/CatmullRomPath.d.ts +60 -0
  590. package/src/_esm/src/ts/utils/algorithms/CatmullRomPath.js +103 -0
  591. package/src/_esm/src/ts/utils/algorithms/CatmullRomPath.js.map +1 -0
  592. package/src/_esm/src/ts/utils/algorithms/CircleIntersections.d.ts +170 -0
  593. package/src/_esm/src/ts/utils/algorithms/CircleIntersections.js +303 -0
  594. package/src/_esm/src/ts/utils/algorithms/CircleIntersections.js.map +1 -0
  595. package/src/_esm/src/ts/utils/algorithms/ContourLineDetection.d.ts +150 -0
  596. package/src/_esm/src/ts/utils/algorithms/ContourLineDetection.js +362 -0
  597. package/src/_esm/src/ts/utils/algorithms/ContourLineDetection.js.map +1 -0
  598. package/src/_esm/src/ts/utils/algorithms/CubicSplinePath.d.ts +63 -0
  599. package/src/_esm/src/ts/utils/algorithms/CubicSplinePath.js +170 -0
  600. package/src/_esm/src/ts/utils/algorithms/CubicSplinePath.js.map +1 -0
  601. package/src/_esm/src/ts/utils/algorithms/HobbyPath.d.ts +81 -0
  602. package/src/_esm/src/ts/utils/algorithms/HobbyPath.js +273 -0
  603. package/src/_esm/src/ts/utils/algorithms/HobbyPath.js.map +1 -0
  604. package/src/_esm/src/ts/utils/algorithms/Metaballs.d.ts +30 -0
  605. package/src/_esm/src/ts/utils/algorithms/Metaballs.js +109 -0
  606. package/src/_esm/src/ts/utils/algorithms/Metaballs.js.map +1 -0
  607. package/src/_esm/src/ts/utils/algorithms/PolygonInset.d.ts +184 -0
  608. package/src/_esm/src/ts/utils/algorithms/PolygonInset.js +424 -0
  609. package/src/_esm/src/ts/utils/algorithms/PolygonInset.js.map +1 -0
  610. package/src/_esm/src/ts/utils/algorithms/PolygonTesselationOutlines.d.ts +145 -0
  611. package/src/_esm/src/ts/utils/algorithms/PolygonTesselationOutlines.js +262 -0
  612. package/src/_esm/src/ts/utils/algorithms/PolygonTesselationOutlines.js.map +1 -0
  613. package/src/_esm/src/ts/utils/algorithms/arrayFill.d.ts +8 -0
  614. package/src/_esm/src/ts/utils/algorithms/arrayFill.js +14 -0
  615. package/src/_esm/src/ts/utils/algorithms/arrayFill.js.map +1 -0
  616. package/src/_esm/src/ts/utils/algorithms/arrayResize.d.ts +8 -0
  617. package/src/_esm/src/ts/utils/algorithms/arrayResize.js +20 -0
  618. package/src/_esm/src/ts/utils/algorithms/arrayResize.js.map +1 -0
  619. package/src/_esm/src/ts/utils/algorithms/arrayShuffle.d.ts +8 -0
  620. package/src/_esm/src/ts/utils/algorithms/arrayShuffle.js +11 -0
  621. package/src/_esm/src/ts/utils/algorithms/arrayShuffle.js.map +1 -0
  622. package/src/_esm/src/ts/utils/algorithms/clearDuplicateVertices.d.ts +22 -0
  623. package/src/_esm/src/ts/utils/algorithms/clearDuplicateVertices.js +47 -0
  624. package/src/_esm/src/ts/utils/algorithms/clearDuplicateVertices.js.map +1 -0
  625. package/src/_esm/src/ts/utils/algorithms/clearPolygonDuplicateVertices.d.ts +24 -0
  626. package/src/_esm/src/ts/utils/algorithms/clearPolygonDuplicateVertices.js +57 -0
  627. package/src/_esm/src/ts/utils/algorithms/clearPolygonDuplicateVertices.js.map +1 -0
  628. package/src/_esm/src/ts/utils/algorithms/convexHull.d.ts +23 -0
  629. package/src/_esm/src/ts/utils/algorithms/convexHull.js +67 -0
  630. package/src/_esm/src/ts/utils/algorithms/convexHull.js.map +1 -0
  631. package/src/_esm/src/ts/utils/algorithms/convexPolygonIncircle.d.ts +41 -0
  632. package/src/_esm/src/ts/utils/algorithms/convexPolygonIncircle.js +141 -0
  633. package/src/_esm/src/ts/utils/algorithms/convexPolygonIncircle.js.map +1 -0
  634. package/src/_esm/src/ts/utils/algorithms/delaunay.d.ts +30 -0
  635. package/src/_esm/src/ts/utils/algorithms/delaunay.js +153 -0
  636. package/src/_esm/src/ts/utils/algorithms/delaunay.js.map +1 -0
  637. package/src/_esm/src/ts/utils/algorithms/delaunay2voronoi.d.ts +25 -0
  638. package/src/_esm/src/ts/utils/algorithms/delaunay2voronoi.js +99 -0
  639. package/src/_esm/src/ts/utils/algorithms/delaunay2voronoi.js.map +1 -0
  640. package/src/_esm/src/ts/utils/algorithms/detectPaths.d.ts +21 -0
  641. package/src/_esm/src/ts/utils/algorithms/detectPaths.js +165 -0
  642. package/src/_esm/src/ts/utils/algorithms/detectPaths.js.map +1 -0
  643. package/src/_esm/src/ts/utils/algorithms/findPolygonSelfIntersections.d.ts +21 -0
  644. package/src/_esm/src/ts/utils/algorithms/findPolygonSelfIntersections.js +47 -0
  645. package/src/_esm/src/ts/utils/algorithms/findPolygonSelfIntersections.js.map +1 -0
  646. package/src/_esm/src/ts/utils/algorithms/getContrastColor.d.ts +13 -0
  647. package/src/_esm/src/ts/utils/algorithms/getContrastColor.js +22 -0
  648. package/src/_esm/src/ts/utils/algorithms/getContrastColor.js.map +1 -0
  649. package/src/_esm/src/ts/utils/algorithms/matrixFill.d.ts +10 -0
  650. package/src/_esm/src/ts/utils/algorithms/matrixFill.js +17 -0
  651. package/src/_esm/src/ts/utils/algorithms/matrixFill.js.map +1 -0
  652. package/src/_esm/src/ts/utils/algorithms/pixelCornersToRoundPaths.d.ts +23 -0
  653. package/src/_esm/src/ts/utils/algorithms/pixelCornersToRoundPaths.js +266 -0
  654. package/src/_esm/src/ts/utils/algorithms/pixelCornersToRoundPaths.js.map +1 -0
  655. package/src/_esm/src/ts/utils/algorithms/splitPolygonToNonIntersecting.d.ts +28 -0
  656. package/src/_esm/src/ts/utils/algorithms/splitPolygonToNonIntersecting.js +99 -0
  657. package/src/_esm/src/ts/utils/algorithms/splitPolygonToNonIntersecting.js.map +1 -0
  658. package/src/_esm/src/ts/utils/algorithms/sutherlandHodgman.d.ts +16 -0
  659. package/src/_esm/src/ts/utils/algorithms/sutherlandHodgman.js +72 -0
  660. package/src/_esm/src/ts/utils/algorithms/sutherlandHodgman.js.map +1 -0
  661. package/src/_esm/src/ts/utils/cloneVertexArray.d.ts +13 -0
  662. package/src/_esm/src/ts/utils/cloneVertexArray.js +19 -0
  663. package/src/_esm/src/ts/utils/cloneVertexArray.js.map +1 -0
  664. package/src/_esm/src/ts/utils/createRandomizedPolygon.d.ts +14 -0
  665. package/src/_esm/src/ts/utils/createRandomizedPolygon.js +28 -0
  666. package/src/_esm/src/ts/utils/createRandomizedPolygon.js.map +1 -0
  667. package/src/_esm/src/ts/utils/datastructures/CircularIntervalSet.d.ts +83 -0
  668. package/src/_esm/src/ts/utils/datastructures/CircularIntervalSet.js +158 -0
  669. package/src/_esm/src/ts/utils/datastructures/CircularIntervalSet.js.map +1 -0
  670. package/src/_esm/src/ts/utils/datastructures/Color.d.ts +391 -0
  671. package/src/_esm/src/ts/utils/datastructures/Color.js +1063 -0
  672. package/src/_esm/src/ts/utils/datastructures/Color.js.map +1 -0
  673. package/src/_esm/src/ts/utils/datastructures/ColorGradient.d.ts +81 -0
  674. package/src/_esm/src/ts/utils/datastructures/ColorGradient.js +171 -0
  675. package/src/_esm/src/ts/utils/datastructures/ColorGradient.js.map +1 -0
  676. package/src/_esm/src/ts/utils/datastructures/DataGrid2d.d.ts +53 -0
  677. package/src/_esm/src/ts/utils/datastructures/DataGrid2d.js +19 -0
  678. package/src/_esm/src/ts/utils/datastructures/DataGrid2d.js.map +1 -0
  679. package/src/_esm/src/ts/utils/datastructures/DataGrid2dArrayMatrix.d.ts +88 -0
  680. package/src/_esm/src/ts/utils/datastructures/DataGrid2dArrayMatrix.js +150 -0
  681. package/src/_esm/src/ts/utils/datastructures/DataGrid2dArrayMatrix.js.map +1 -0
  682. package/src/_esm/src/ts/utils/datastructures/DataGrid2dListAdapter.d.ts +59 -0
  683. package/src/_esm/src/ts/utils/datastructures/DataGrid2dListAdapter.js +79 -0
  684. package/src/_esm/src/ts/utils/datastructures/DataGrid2dListAdapter.js.map +1 -0
  685. package/src/_esm/src/ts/utils/datastructures/GenericPath.d.ts +86 -0
  686. package/src/_esm/src/ts/utils/datastructures/GenericPath.js +117 -0
  687. package/src/_esm/src/ts/utils/datastructures/GenericPath.js.map +1 -0
  688. package/src/_esm/src/ts/utils/datastructures/GeometryMesh.d.ts +49 -0
  689. package/src/_esm/src/ts/utils/datastructures/GeometryMesh.js +53 -0
  690. package/src/_esm/src/ts/utils/datastructures/GeometryMesh.js.map +1 -0
  691. package/src/_esm/src/ts/utils/datastructures/Girih.d.ts +181 -0
  692. package/src/_esm/src/ts/utils/datastructures/Girih.js +261 -0
  693. package/src/_esm/src/ts/utils/datastructures/Girih.js.map +1 -0
  694. package/src/_esm/src/ts/utils/datastructures/GirihBowtie.d.ts +37 -0
  695. package/src/_esm/src/ts/utils/datastructures/GirihBowtie.js +130 -0
  696. package/src/_esm/src/ts/utils/datastructures/GirihBowtie.js.map +1 -0
  697. package/src/_esm/src/ts/utils/datastructures/GirihDecagon.d.ts +52 -0
  698. package/src/_esm/src/ts/utils/datastructures/GirihDecagon.js +110 -0
  699. package/src/_esm/src/ts/utils/datastructures/GirihDecagon.js.map +1 -0
  700. package/src/_esm/src/ts/utils/datastructures/GirihHexagon.d.ts +39 -0
  701. package/src/_esm/src/ts/utils/datastructures/GirihHexagon.js +178 -0
  702. package/src/_esm/src/ts/utils/datastructures/GirihHexagon.js.map +1 -0
  703. package/src/_esm/src/ts/utils/datastructures/GirihPenroseRhombus.d.ts +46 -0
  704. package/src/_esm/src/ts/utils/datastructures/GirihPenroseRhombus.js +167 -0
  705. package/src/_esm/src/ts/utils/datastructures/GirihPenroseRhombus.js.map +1 -0
  706. package/src/_esm/src/ts/utils/datastructures/GirihPentagon.d.ts +37 -0
  707. package/src/_esm/src/ts/utils/datastructures/GirihPentagon.js +87 -0
  708. package/src/_esm/src/ts/utils/datastructures/GirihPentagon.js.map +1 -0
  709. package/src/_esm/src/ts/utils/datastructures/GirihRhombus.d.ts +38 -0
  710. package/src/_esm/src/ts/utils/datastructures/GirihRhombus.js +133 -0
  711. package/src/_esm/src/ts/utils/datastructures/GirihRhombus.js.map +1 -0
  712. package/src/_esm/src/ts/utils/datastructures/GirihTile.d.ts +283 -0
  713. package/src/_esm/src/ts/utils/datastructures/GirihTile.js +286 -0
  714. package/src/_esm/src/ts/utils/datastructures/GirihTile.js.map +1 -0
  715. package/src/_esm/src/ts/utils/datastructures/Matrix4x4.d.ts +244 -0
  716. package/src/_esm/src/ts/utils/datastructures/Matrix4x4.js +246 -0
  717. package/src/_esm/src/ts/utils/datastructures/Matrix4x4.js.map +1 -0
  718. package/src/_esm/src/ts/utils/datastructures/VoronoiCell.d.ts +122 -0
  719. package/src/_esm/src/ts/utils/datastructures/VoronoiCell.js +178 -0
  720. package/src/_esm/src/ts/utils/datastructures/VoronoiCell.js.map +1 -0
  721. package/src/_esm/src/ts/utils/datastructures/interfaces.d.ts +13 -0
  722. package/src/_esm/src/ts/utils/datastructures/interfaces.js +9 -0
  723. package/src/_esm/src/ts/utils/datastructures/interfaces.js.map +1 -0
  724. package/src/_esm/src/ts/utils/detectDarkMode.d.ts +10 -0
  725. package/src/_esm/src/ts/utils/detectDarkMode.js +37 -0
  726. package/src/_esm/src/ts/utils/detectDarkMode.js.map +1 -0
  727. package/src/_esm/src/ts/utils/dom/components/ColorGradientPicker.d.ts +246 -0
  728. package/src/_esm/src/ts/utils/dom/components/ColorGradientPicker.js +743 -0
  729. package/src/_esm/src/ts/utils/dom/components/ColorGradientPicker.js.map +1 -0
  730. package/src/_esm/src/ts/utils/dom/components/ColorGradientSelector.d.ts +118 -0
  731. package/src/_esm/src/ts/utils/dom/components/ColorGradientSelector.js +339 -0
  732. package/src/_esm/src/ts/utils/dom/components/ColorGradientSelector.js.map +1 -0
  733. package/src/_esm/src/ts/utils/dom/components/Test.d.ts +7 -0
  734. package/src/_esm/src/ts/utils/dom/components/Test.js +26 -0
  735. package/src/_esm/src/ts/utils/dom/components/Test.js.map +1 -0
  736. package/src/_esm/src/ts/utils/dom/getAvailableContainerSpace.d.ts +2 -0
  737. package/src/_esm/src/ts/utils/dom/getAvailableContainerSpace.js +25 -0
  738. package/src/_esm/src/ts/utils/dom/getAvailableContainerSpace.js.map +1 -0
  739. package/src/_esm/src/ts/utils/dom/getFProp.d.ts +5 -0
  740. package/src/_esm/src/ts/utils/dom/getFProp.js +8 -0
  741. package/src/_esm/src/ts/utils/dom/getFProp.js.map +1 -0
  742. package/src/_esm/src/ts/utils/dom/guiSizeToggler.d.ts +18 -0
  743. package/src/_esm/src/ts/utils/dom/guiSizeToggler.js +40 -0
  744. package/src/_esm/src/ts/utils/dom/guiSizeToggler.js.map +1 -0
  745. package/src/_esm/src/ts/utils/findInVertexArray.d.ts +19 -0
  746. package/src/_esm/src/ts/utils/findInVertexArray.js +25 -0
  747. package/src/_esm/src/ts/utils/findInVertexArray.js.map +1 -0
  748. package/src/_esm/src/ts/utils/gup.d.ts +14 -0
  749. package/src/_esm/src/ts/utils/gup.js +27 -0
  750. package/src/_esm/src/ts/utils/gup.js.map +1 -0
  751. package/src/_esm/src/ts/utils/helpers/BezierPathInteractionHelper.d.ts +272 -0
  752. package/src/_esm/src/ts/utils/helpers/BezierPathInteractionHelper.js +648 -0
  753. package/src/_esm/src/ts/utils/helpers/BezierPathInteractionHelper.js.map +1 -0
  754. package/src/_esm/src/ts/utils/helpers/CircleHelper.d.ts +73 -0
  755. package/src/_esm/src/ts/utils/helpers/CircleHelper.js +88 -0
  756. package/src/_esm/src/ts/utils/helpers/CircleHelper.js.map +1 -0
  757. package/src/_esm/src/ts/utils/helpers/CircleSectorHelper.d.ts +90 -0
  758. package/src/_esm/src/ts/utils/helpers/CircleSectorHelper.js +109 -0
  759. package/src/_esm/src/ts/utils/helpers/CircleSectorHelper.js.map +1 -0
  760. package/src/_esm/src/ts/utils/helpers/TriangleHelper.d.ts +57 -0
  761. package/src/_esm/src/ts/utils/helpers/TriangleHelper.js +78 -0
  762. package/src/_esm/src/ts/utils/helpers/TriangleHelper.js.map +1 -0
  763. package/src/_esm/src/ts/utils/helpers/VEllipseHelper.d.ts +32 -0
  764. package/src/_esm/src/ts/utils/helpers/VEllipseHelper.js +83 -0
  765. package/src/_esm/src/ts/utils/helpers/VEllipseHelper.js.map +1 -0
  766. package/src/_esm/src/ts/utils/helpers/VEllipseSectorHelper.d.ts +52 -0
  767. package/src/_esm/src/ts/utils/helpers/VEllipseSectorHelper.js +130 -0
  768. package/src/_esm/src/ts/utils/helpers/VEllipseSectorHelper.js.map +1 -0
  769. package/src/_esm/src/ts/utils/io/FileDrop.d.ts +110 -0
  770. package/src/_esm/src/ts/utils/io/FileDrop.js +171 -0
  771. package/src/_esm/src/ts/utils/io/FileDrop.js.map +1 -0
  772. package/src/_esm/src/ts/utils/parsers/LinearColorGradientParser.d.ts +78 -0
  773. package/src/_esm/src/ts/utils/parsers/LinearColorGradientParser.js +217 -0
  774. package/src/_esm/src/ts/utils/parsers/LinearColorGradientParser.js.map +1 -0
  775. package/src/_esm/src/ts/utils/parsers/OBJParser.d.ts +24 -0
  776. package/src/_esm/src/ts/utils/parsers/OBJParser.js +72 -0
  777. package/src/_esm/src/ts/utils/parsers/OBJParser.js.map +1 -0
  778. package/src/_esm/src/ts/utils/parsers/STLParser.d.ts +61 -0
  779. package/src/_esm/src/ts/utils/parsers/STLParser.js +175 -0
  780. package/src/_esm/src/ts/utils/parsers/STLParser.js.map +1 -0
  781. package/src/_esm/src/ts/utils/parsers/svg/parseSVGPathData.d.ts +27 -0
  782. package/src/_esm/src/ts/utils/parsers/svg/parseSVGPathData.js +482 -0
  783. package/src/_esm/src/ts/utils/parsers/svg/parseSVGPathData.js.map +1 -0
  784. package/src/_esm/src/ts/utils/parsers/svg/splitSVGPathData.d.ts +20 -0
  785. package/src/_esm/src/ts/utils/parsers/svg/splitSVGPathData.js +49 -0
  786. package/src/_esm/src/ts/utils/parsers/svg/splitSVGPathData.js.map +1 -0
  787. package/src/_esm/src/ts/utils/parsers/svg/types.d.ts +63 -0
  788. package/src/_esm/src/ts/utils/parsers/svg/types.js +16 -0
  789. package/src/_esm/src/ts/utils/parsers/svg/types.js.map +1 -0
  790. package/src/_esm/utils/InitializationObserver.d.ts +18 -0
  791. package/src/_esm/utils/InitializationObserver.js +61 -0
  792. package/src/_esm/utils/InitializationObserver.js.map +1 -0
  793. package/src/_esm/utils/LissajousFigure.d.ts +34 -0
  794. package/src/_esm/utils/LissajousFigure.js +99 -0
  795. package/src/_esm/utils/LissajousFigure.js.map +1 -0
  796. package/src/_esm/utils/NGons.d.ts +13 -0
  797. package/src/_esm/utils/NGons.js +36 -0
  798. package/src/_esm/utils/NGons.js.map +1 -0
  799. package/src/_esm/utils/Params.d.ts +17 -0
  800. package/src/_esm/utils/Params.js +52 -0
  801. package/src/_esm/utils/Params.js.map +1 -0
  802. package/src/_esm/utils/PerlinNoise.d.ts +19 -0
  803. package/src/_esm/utils/PerlinNoise.js +350 -0
  804. package/src/_esm/utils/PerlinNoise.js.map +1 -0
  805. package/src/_esm/utils/SVGPathUtils.d.ts +22 -0
  806. package/src/_esm/utils/SVGPathUtils.js +45 -0
  807. package/src/_esm/utils/SVGPathUtils.js.map +1 -0
  808. package/src/_esm/utils/WebColors.d.ts +35 -0
  809. package/src/_esm/utils/WebColors.js +58 -0
  810. package/src/_esm/utils/WebColors.js.map +1 -0
  811. package/src/_esm/utils/WebColorsContrast.d.ts +6 -0
  812. package/src/_esm/utils/WebColorsContrast.js +12 -0
  813. package/src/_esm/utils/WebColorsContrast.js.map +1 -0
  814. package/src/_esm/utils/WebColorsMalachite.d.ts +12 -0
  815. package/src/_esm/utils/WebColorsMalachite.js +28 -0
  816. package/src/_esm/utils/WebColorsMalachite.js.map +1 -0
  817. package/src/_esm/utils/algorithms/CatmullRomPath.d.ts +60 -0
  818. package/src/_esm/utils/algorithms/CatmullRomPath.js +107 -0
  819. package/src/_esm/utils/algorithms/CatmullRomPath.js.map +1 -0
  820. package/src/_esm/utils/algorithms/CircleIntersections.d.ts +170 -0
  821. package/src/_esm/utils/algorithms/CircleIntersections.js +307 -0
  822. package/src/_esm/utils/algorithms/CircleIntersections.js.map +1 -0
  823. package/src/_esm/utils/algorithms/ContourLineDetection.d.ts +150 -0
  824. package/src/_esm/utils/algorithms/ContourLineDetection.js +366 -0
  825. package/src/_esm/utils/algorithms/ContourLineDetection.js.map +1 -0
  826. package/src/_esm/utils/algorithms/CubicSplinePath.d.ts +63 -0
  827. package/src/_esm/utils/algorithms/CubicSplinePath.js +174 -0
  828. package/src/_esm/utils/algorithms/CubicSplinePath.js.map +1 -0
  829. package/src/_esm/utils/algorithms/HobbyPath.d.ts +81 -0
  830. package/src/_esm/utils/algorithms/HobbyPath.js +277 -0
  831. package/src/_esm/utils/algorithms/HobbyPath.js.map +1 -0
  832. package/src/_esm/utils/algorithms/Metaballs.d.ts +30 -0
  833. package/src/_esm/utils/algorithms/Metaballs.js +113 -0
  834. package/src/_esm/utils/algorithms/Metaballs.js.map +1 -0
  835. package/src/_esm/utils/algorithms/PolygonInset.d.ts +184 -0
  836. package/src/_esm/utils/algorithms/PolygonInset.js +428 -0
  837. package/src/_esm/utils/algorithms/PolygonInset.js.map +1 -0
  838. package/src/_esm/utils/algorithms/PolygonTesselationOutlines.d.ts +145 -0
  839. package/src/_esm/utils/algorithms/PolygonTesselationOutlines.js +267 -0
  840. package/src/_esm/utils/algorithms/PolygonTesselationOutlines.js.map +1 -0
  841. package/src/_esm/utils/algorithms/arrayFill.d.ts +8 -0
  842. package/src/_esm/utils/algorithms/arrayFill.js +18 -0
  843. package/src/_esm/utils/algorithms/arrayFill.js.map +1 -0
  844. package/src/_esm/utils/algorithms/arrayResize.d.ts +8 -0
  845. package/src/_esm/utils/algorithms/arrayResize.js +24 -0
  846. package/src/_esm/utils/algorithms/arrayResize.js.map +1 -0
  847. package/src/_esm/utils/algorithms/arrayShuffle.d.ts +8 -0
  848. package/src/_esm/utils/algorithms/arrayShuffle.js +15 -0
  849. package/src/_esm/utils/algorithms/arrayShuffle.js.map +1 -0
  850. package/src/_esm/utils/algorithms/clearDuplicateVertices.d.ts +22 -0
  851. package/src/_esm/utils/algorithms/clearDuplicateVertices.js +51 -0
  852. package/src/_esm/utils/algorithms/clearDuplicateVertices.js.map +1 -0
  853. package/src/_esm/utils/algorithms/clearPolygonDuplicateVertices.d.ts +24 -0
  854. package/src/_esm/utils/algorithms/clearPolygonDuplicateVertices.js +61 -0
  855. package/src/_esm/utils/algorithms/clearPolygonDuplicateVertices.js.map +1 -0
  856. package/src/_esm/utils/algorithms/convexHull.d.ts +23 -0
  857. package/src/_esm/utils/algorithms/convexHull.js +71 -0
  858. package/src/_esm/utils/algorithms/convexHull.js.map +1 -0
  859. package/src/_esm/utils/algorithms/convexPolygonIncircle.d.ts +41 -0
  860. package/src/_esm/utils/algorithms/convexPolygonIncircle.js +145 -0
  861. package/src/_esm/utils/algorithms/convexPolygonIncircle.js.map +1 -0
  862. package/src/_esm/utils/algorithms/createRandomizedPolygon.d.ts +14 -0
  863. package/src/_esm/utils/algorithms/createRandomizedPolygon.js +28 -0
  864. package/src/_esm/utils/algorithms/createRandomizedPolygon.js.map +1 -0
  865. package/src/_esm/utils/algorithms/delaunay.d.ts +30 -0
  866. package/src/_esm/utils/algorithms/delaunay.js +157 -0
  867. package/src/_esm/utils/algorithms/delaunay.js.map +1 -0
  868. package/src/_esm/utils/algorithms/delaunay2voronoi.d.ts +25 -0
  869. package/src/_esm/utils/algorithms/delaunay2voronoi.js +103 -0
  870. package/src/_esm/utils/algorithms/delaunay2voronoi.js.map +1 -0
  871. package/src/_esm/utils/algorithms/detectPaths.d.ts +21 -0
  872. package/src/_esm/utils/algorithms/detectPaths.js +169 -0
  873. package/src/_esm/utils/algorithms/detectPaths.js.map +1 -0
  874. package/src/_esm/utils/algorithms/findPolygonSelfIntersections.d.ts +21 -0
  875. package/src/_esm/utils/algorithms/findPolygonSelfIntersections.js +51 -0
  876. package/src/_esm/utils/algorithms/findPolygonSelfIntersections.js.map +1 -0
  877. package/src/_esm/utils/algorithms/getContrastColor.d.ts +13 -0
  878. package/src/_esm/utils/algorithms/getContrastColor.js +26 -0
  879. package/src/_esm/utils/algorithms/getContrastColor.js.map +1 -0
  880. package/src/_esm/utils/algorithms/matrixFill.d.ts +10 -0
  881. package/src/_esm/utils/algorithms/matrixFill.js +21 -0
  882. package/src/_esm/utils/algorithms/matrixFill.js.map +1 -0
  883. package/src/_esm/utils/algorithms/pixelCornersToRoundPaths.d.ts +23 -0
  884. package/src/_esm/utils/algorithms/pixelCornersToRoundPaths.js +270 -0
  885. package/src/_esm/utils/algorithms/pixelCornersToRoundPaths.js.map +1 -0
  886. package/src/_esm/utils/algorithms/splitPolygonToNonIntersecting.d.ts +28 -0
  887. package/src/_esm/utils/algorithms/splitPolygonToNonIntersecting.js +102 -0
  888. package/src/_esm/utils/algorithms/splitPolygonToNonIntersecting.js.map +1 -0
  889. package/src/_esm/utils/algorithms/sutherlandHodgman.d.ts +16 -0
  890. package/src/_esm/utils/algorithms/sutherlandHodgman.js +76 -0
  891. package/src/_esm/utils/algorithms/sutherlandHodgman.js.map +1 -0
  892. package/src/_esm/utils/cloneVertexArray.d.ts +13 -0
  893. package/src/_esm/utils/cloneVertexArray.js +23 -0
  894. package/src/_esm/utils/cloneVertexArray.js.map +1 -0
  895. package/src/_esm/utils/createRandomizedPolygon.d.ts +14 -0
  896. package/src/_esm/utils/createRandomizedPolygon.js +32 -0
  897. package/src/_esm/utils/createRandomizedPolygon.js.map +1 -0
  898. package/src/_esm/utils/datastructures/CircularIntervalSet.d.ts +83 -0
  899. package/src/_esm/utils/datastructures/CircularIntervalSet.js +162 -0
  900. package/src/_esm/utils/datastructures/CircularIntervalSet.js.map +1 -0
  901. package/src/_esm/utils/datastructures/Color.d.ts +391 -0
  902. package/src/_esm/utils/datastructures/Color.js +1067 -0
  903. package/src/_esm/utils/datastructures/Color.js.map +1 -0
  904. package/src/_esm/utils/datastructures/ColorGradient.d.ts +81 -0
  905. package/src/_esm/utils/datastructures/ColorGradient.js +175 -0
  906. package/src/_esm/utils/datastructures/ColorGradient.js.map +1 -0
  907. package/src/_esm/utils/datastructures/DataGrid2d.d.ts +53 -0
  908. package/src/_esm/utils/datastructures/DataGrid2d.js +20 -0
  909. package/src/_esm/utils/datastructures/DataGrid2d.js.map +1 -0
  910. package/src/_esm/utils/datastructures/DataGrid2dArrayMatrix.d.ts +88 -0
  911. package/src/_esm/utils/datastructures/DataGrid2dArrayMatrix.js +154 -0
  912. package/src/_esm/utils/datastructures/DataGrid2dArrayMatrix.js.map +1 -0
  913. package/src/_esm/utils/datastructures/DataGrid2dListAdapter.d.ts +59 -0
  914. package/src/_esm/utils/datastructures/DataGrid2dListAdapter.js +83 -0
  915. package/src/_esm/utils/datastructures/DataGrid2dListAdapter.js.map +1 -0
  916. package/src/_esm/utils/datastructures/GenericPath.d.ts +86 -0
  917. package/src/_esm/utils/datastructures/GenericPath.js +121 -0
  918. package/src/_esm/utils/datastructures/GenericPath.js.map +1 -0
  919. package/src/_esm/utils/datastructures/GeometryMesh.d.ts +49 -0
  920. package/src/_esm/utils/datastructures/GeometryMesh.js +57 -0
  921. package/src/_esm/utils/datastructures/GeometryMesh.js.map +1 -0
  922. package/src/_esm/utils/datastructures/Girih.d.ts +181 -0
  923. package/src/_esm/utils/datastructures/Girih.js +265 -0
  924. package/src/_esm/utils/datastructures/Girih.js.map +1 -0
  925. package/src/_esm/utils/datastructures/GirihBowtie.d.ts +37 -0
  926. package/src/_esm/utils/datastructures/GirihBowtie.js +134 -0
  927. package/src/_esm/utils/datastructures/GirihBowtie.js.map +1 -0
  928. package/src/_esm/utils/datastructures/GirihDecagon.d.ts +52 -0
  929. package/src/_esm/utils/datastructures/GirihDecagon.js +114 -0
  930. package/src/_esm/utils/datastructures/GirihDecagon.js.map +1 -0
  931. package/src/_esm/utils/datastructures/GirihHexagon.d.ts +39 -0
  932. package/src/_esm/utils/datastructures/GirihHexagon.js +182 -0
  933. package/src/_esm/utils/datastructures/GirihHexagon.js.map +1 -0
  934. package/src/_esm/utils/datastructures/GirihPenroseRhombus.d.ts +46 -0
  935. package/src/_esm/utils/datastructures/GirihPenroseRhombus.js +171 -0
  936. package/src/_esm/utils/datastructures/GirihPenroseRhombus.js.map +1 -0
  937. package/src/_esm/utils/datastructures/GirihPentagon.d.ts +37 -0
  938. package/src/_esm/utils/datastructures/GirihPentagon.js +91 -0
  939. package/src/_esm/utils/datastructures/GirihPentagon.js.map +1 -0
  940. package/src/_esm/utils/datastructures/GirihRhombus.d.ts +38 -0
  941. package/src/_esm/utils/datastructures/GirihRhombus.js +137 -0
  942. package/src/_esm/utils/datastructures/GirihRhombus.js.map +1 -0
  943. package/src/_esm/utils/datastructures/GirihTile.d.ts +283 -0
  944. package/src/_esm/utils/datastructures/GirihTile.js +290 -0
  945. package/src/_esm/utils/datastructures/GirihTile.js.map +1 -0
  946. package/src/_esm/utils/datastructures/Matrix4x4.d.ts +244 -0
  947. package/src/_esm/utils/datastructures/Matrix4x4.js +250 -0
  948. package/src/_esm/utils/datastructures/Matrix4x4.js.map +1 -0
  949. package/src/_esm/utils/datastructures/VoronoiCell.d.ts +122 -0
  950. package/src/_esm/utils/datastructures/VoronoiCell.js +182 -0
  951. package/src/_esm/utils/datastructures/VoronoiCell.js.map +1 -0
  952. package/src/_esm/utils/datastructures/interfaces.d.ts +13 -0
  953. package/src/_esm/utils/datastructures/interfaces.js +10 -0
  954. package/src/_esm/utils/datastructures/interfaces.js.map +1 -0
  955. package/src/_esm/utils/detectDarkMode.d.ts +10 -0
  956. package/src/_esm/utils/detectDarkMode.js +41 -0
  957. package/src/_esm/utils/detectDarkMode.js.map +1 -0
  958. package/src/_esm/utils/dom/components/ColorGradientPicker.d.ts +246 -0
  959. package/src/_esm/utils/dom/components/ColorGradientPicker.js +780 -0
  960. package/src/_esm/utils/dom/components/ColorGradientPicker.js.map +1 -0
  961. package/src/_esm/utils/dom/components/ColorGradientPickerJSX.d.ts +129 -0
  962. package/src/_esm/utils/dom/components/ColorGradientPickerJSX.js +582 -0
  963. package/src/_esm/utils/dom/components/ColorGradientPickerJSX.js.map +1 -0
  964. package/src/_esm/utils/dom/components/ColorGradientSelector.d.ts +118 -0
  965. package/src/_esm/utils/dom/components/ColorGradientSelector.js +376 -0
  966. package/src/_esm/utils/dom/components/ColorGradientSelector.js.map +1 -0
  967. package/src/_esm/utils/dom/components/Test.d.ts +7 -0
  968. package/src/_esm/utils/dom/components/Test.js +63 -0
  969. package/src/_esm/utils/dom/components/Test.js.map +1 -0
  970. package/src/_esm/utils/dom/getAvailableContainerSpace.d.ts +2 -0
  971. package/src/_esm/utils/dom/getAvailableContainerSpace.js +29 -0
  972. package/src/_esm/utils/dom/getAvailableContainerSpace.js.map +1 -0
  973. package/src/_esm/utils/dom/getFProp.d.ts +5 -0
  974. package/src/_esm/utils/dom/getFProp.js +12 -0
  975. package/src/_esm/utils/dom/getFProp.js.map +1 -0
  976. package/src/_esm/utils/dom/guiSizeToggler.d.ts +18 -0
  977. package/src/_esm/utils/dom/guiSizeToggler.js +44 -0
  978. package/src/_esm/utils/dom/guiSizeToggler.js.map +1 -0
  979. package/src/_esm/utils/findInVertexArray.d.ts +19 -0
  980. package/src/_esm/utils/findInVertexArray.js +29 -0
  981. package/src/_esm/utils/findInVertexArray.js.map +1 -0
  982. package/src/_esm/utils/getFProp.d.ts +5 -0
  983. package/src/_esm/utils/getFProp.js +8 -0
  984. package/src/_esm/utils/getFProp.js.map +1 -0
  985. package/src/_esm/utils/gup.d.ts +14 -0
  986. package/src/_esm/utils/gup.js +31 -0
  987. package/src/_esm/utils/gup.js.map +1 -0
  988. package/src/_esm/utils/helpers/BezierPathInteractionHelper.d.ts +272 -0
  989. package/src/_esm/utils/helpers/BezierPathInteractionHelper.js +655 -0
  990. package/src/_esm/utils/helpers/BezierPathInteractionHelper.js.map +1 -0
  991. package/src/_esm/utils/helpers/CircleHelper.d.ts +73 -0
  992. package/src/_esm/utils/helpers/CircleHelper.js +92 -0
  993. package/src/_esm/utils/helpers/CircleHelper.js.map +1 -0
  994. package/src/_esm/utils/helpers/CircleSectorHelper.d.ts +90 -0
  995. package/src/_esm/utils/helpers/CircleSectorHelper.js +113 -0
  996. package/src/_esm/utils/helpers/CircleSectorHelper.js.map +1 -0
  997. package/src/_esm/utils/helpers/TriangleHelper.d.ts +57 -0
  998. package/src/_esm/utils/helpers/TriangleHelper.js +82 -0
  999. package/src/_esm/utils/helpers/TriangleHelper.js.map +1 -0
  1000. package/src/_esm/utils/helpers/VEllipseHelper.d.ts +32 -0
  1001. package/src/_esm/utils/helpers/VEllipseHelper.js +87 -0
  1002. package/src/_esm/utils/helpers/VEllipseHelper.js.map +1 -0
  1003. package/src/_esm/utils/helpers/VEllipseSectorHelper.d.ts +52 -0
  1004. package/src/_esm/utils/helpers/VEllipseSectorHelper.js +134 -0
  1005. package/src/_esm/utils/helpers/VEllipseSectorHelper.js.map +1 -0
  1006. package/src/_esm/utils/io/DndFileHandler.d.ts +63 -0
  1007. package/src/_esm/utils/io/DndFileHandler.js +106 -0
  1008. package/src/_esm/utils/io/DndFileHandler.js.map +1 -0
  1009. package/src/_esm/utils/io/FileDrop.d.ts +110 -0
  1010. package/src/_esm/utils/io/FileDrop.js +175 -0
  1011. package/src/_esm/utils/io/FileDrop.js.map +1 -0
  1012. package/src/_esm/utils/parsers/LinearColorGradientParser.d.ts +78 -0
  1013. package/src/_esm/utils/parsers/LinearColorGradientParser.js +223 -0
  1014. package/src/_esm/utils/parsers/LinearColorGradientParser.js.map +1 -0
  1015. package/src/_esm/utils/parsers/OBJParser.d.ts +25 -0
  1016. package/src/_esm/utils/parsers/OBJParser.js +78 -0
  1017. package/src/_esm/utils/parsers/OBJParser.js.map +1 -0
  1018. package/src/_esm/utils/parsers/STLParser.d.ts +61 -0
  1019. package/src/_esm/utils/parsers/STLParser.js +179 -0
  1020. package/src/_esm/utils/parsers/STLParser.js.map +1 -0
  1021. package/src/_esm/utils/parsers/svg/parseSVGPathData.d.ts +27 -0
  1022. package/src/_esm/utils/parsers/svg/parseSVGPathData.js +486 -0
  1023. package/src/_esm/utils/parsers/svg/parseSVGPathData.js.map +1 -0
  1024. package/src/_esm/utils/parsers/svg/splitSVGPathData.d.ts +20 -0
  1025. package/src/_esm/utils/parsers/svg/splitSVGPathData.js +53 -0
  1026. package/src/_esm/utils/parsers/svg/splitSVGPathData.js.map +1 -0
  1027. package/src/_esm/utils/parsers/svg/types.d.ts +63 -0
  1028. package/src/_esm/utils/parsers/svg/types.js +17 -0
  1029. package/src/_esm/utils/parsers/svg/types.js.map +1 -0
  1030. package/src/cjs/PlotBoilerplate.d.ts +11 -1
  1031. package/src/cjs/PlotBoilerplate.js +23 -7
  1032. package/src/cjs/PlotBoilerplate.js.map +1 -1
  1033. package/src/cjs/VertexListeners.d.ts +2 -1
  1034. package/src/cjs/VertexListeners.js +5 -1
  1035. package/src/cjs/VertexListeners.js.map +1 -1
  1036. package/src/cjs/draw.d.ts +18 -2
  1037. package/src/cjs/draw.js +21 -2
  1038. package/src/cjs/draw.js.map +1 -1
  1039. package/src/cjs/drawgl.d.ts +18 -3
  1040. package/src/cjs/drawgl.js +19 -2
  1041. package/src/cjs/drawgl.js.map +1 -1
  1042. package/src/cjs/drawutilssvg.d.ts +19 -1
  1043. package/src/cjs/drawutilssvg.js +28 -5
  1044. package/src/cjs/drawutilssvg.js.map +1 -1
  1045. package/src/cjs/index.d.ts +75 -0
  1046. package/src/cjs/index.js +84 -0
  1047. package/src/cjs/index.js.map +1 -1
  1048. package/src/cjs/interfaces/DrawLib.d.ts +18 -1
  1049. package/src/cjs/interfaces/DrawLib.js +2 -0
  1050. package/src/cjs/interfaces/DrawLib.js.map +1 -1
  1051. package/src/cjs/utils/Params.d.ts +3 -2
  1052. package/src/cjs/utils/Params.js +11 -3
  1053. package/src/cjs/utils/Params.js.map +1 -1
  1054. package/src/cjs/utils/WebColors.d.ts +2 -1
  1055. package/src/cjs/utils/WebColors.js +15 -2
  1056. package/src/cjs/utils/WebColors.js.map +1 -1
  1057. package/src/cjs/utils/WebColorsContrast.d.ts +1 -1
  1058. package/src/cjs/utils/algorithms/HobbyPath.js +13 -16
  1059. package/src/cjs/utils/algorithms/HobbyPath.js.map +1 -1
  1060. package/src/cjs/utils/helpers/BezierResizeHelper.d.ts +144 -0
  1061. package/src/cjs/utils/helpers/BezierResizeHelper.js +319 -0
  1062. package/src/cjs/utils/helpers/BezierResizeHelper.js.map +1 -0
  1063. package/src/esm/PlotBoilerplate.d.ts +11 -1
  1064. package/src/esm/PlotBoilerplate.js +23 -7
  1065. package/src/esm/PlotBoilerplate.js.map +1 -1
  1066. package/src/esm/VertexListeners.d.ts +2 -1
  1067. package/src/esm/VertexListeners.js +5 -1
  1068. package/src/esm/VertexListeners.js.map +1 -1
  1069. package/src/esm/draw.d.ts +18 -2
  1070. package/src/esm/draw.js +21 -2
  1071. package/src/esm/draw.js.map +1 -1
  1072. package/src/esm/drawgl.d.ts +18 -3
  1073. package/src/esm/drawgl.js +19 -2
  1074. package/src/esm/drawgl.js.map +1 -1
  1075. package/src/esm/drawutilssvg.d.ts +19 -1
  1076. package/src/esm/drawutilssvg.js +28 -5
  1077. package/src/esm/drawutilssvg.js.map +1 -1
  1078. package/src/esm/index.d.ts +75 -0
  1079. package/src/esm/index.js +84 -0
  1080. package/src/esm/index.js.map +1 -1
  1081. package/src/esm/interfaces/DrawLib.d.ts +18 -1
  1082. package/src/esm/interfaces/DrawLib.js +2 -0
  1083. package/src/esm/interfaces/DrawLib.js.map +1 -1
  1084. package/src/esm/utils/Params.d.ts +3 -2
  1085. package/src/esm/utils/Params.js +11 -3
  1086. package/src/esm/utils/Params.js.map +1 -1
  1087. package/src/esm/utils/WebColors.d.ts +2 -1
  1088. package/src/esm/utils/WebColors.js +15 -2
  1089. package/src/esm/utils/WebColors.js.map +1 -1
  1090. package/src/esm/utils/WebColorsContrast.d.ts +1 -1
  1091. package/src/esm/utils/algorithms/HobbyPath.js +13 -16
  1092. package/src/esm/utils/algorithms/HobbyPath.js.map +1 -1
  1093. package/src/esm/utils/helpers/BezierResizeHelper.d.ts +144 -0
  1094. package/src/esm/utils/helpers/BezierResizeHelper.js +314 -0
  1095. package/src/esm/utils/helpers/BezierResizeHelper.js.map +1 -0
  1096. package/src/ts/PlotBoilerplate.ts +37 -11
  1097. package/src/ts/VertexListeners.ts +5 -1
  1098. package/src/ts/draw.ts +32 -2
  1099. package/src/ts/drawgl.ts +38 -3
  1100. package/src/ts/drawutilssvg.ts +33 -6
  1101. package/src/ts/index.ts +94 -0
  1102. package/src/ts/interfaces/DrawLib.ts +19 -1
  1103. package/src/ts/utils/Params.ts +11 -3
  1104. package/src/ts/utils/WebColors.ts +15 -2
  1105. package/src/ts/utils/algorithms/HobbyPath.ts +248 -272
  1106. package/src/ts/utils/helpers/BezierResizeHelper.ts +390 -0
  1107. /package/src/{cjs → _cjs}/utils/_gup.js_ +0 -0
@@ -0,0 +1,1084 @@
1
+ "use strict";
2
+ /**
3
+ * @author Extended, bugfixed and ported to TypeScript by Ikaros Kappler.
4
+ * @modified 2018-xx-xx Added a clone() function.
5
+ * @modified 2018-xx-xx Allowing leading '#' in the makeHEX() function.
6
+ * @modified 2018-11-28 Fixed the checkHEX() function to accept 000000.
7
+ * @modified 2019-11-18 Added a generic parse(string) function that detects the format.
8
+ * @modified 2020-01-09 Fixed a bug in the parse(string) function. Hex colors with only three elements were considered faulty.
9
+ * @modified 2020-10-23 Ported to Typescript.
10
+ * @modified 2021-02-08 Fixed a lot of es2015 compatibility issues.
11
+ * @modified 2021-02-08 Added basic tsdoc/jsdoc comments.
12
+ * @modified 2021-11-05 Fixing the regex to parse rgba-strings.
13
+ * @modified 2021-11-05 Added return value `this` to all modifier functions (for chaining).
14
+ * @modified 2021-11-07 Changed the behavior of `darken` and `lighten`: the passed value is handled relative now which makes values much easier predictable and makes the change feel more 'natural'.
15
+ * @modified 2021-11-07 Did the same with `saturate` and `desaturate`.
16
+ * @modified 2021-11-07 Did the same with the `fadein` and `fadeout` functions.
17
+ * @modified 2021-11-07 Added setRed, setGreen, setBlue, setHue, setSaturation, setLiminance functions.
18
+ * @modified 2022-05-11 Modified the `clone` function by just copying the numeric calues, not re-calculating the whole color.
19
+ * @modified 2022-05-11 Fixed the `interpolate` function.
20
+ * @modified 2023-01-23 Added `Color.set(Color)` function to set all values (r,g,b,h,s,l,a) simultanoeusly.
21
+ * @modified 2024-03-10 Fixed some NaN type check for Typescript 5 compatibility.
22
+ * @modified 2025-08-08 Fixed an issue in the static `makeRGB` method: values in [0..1] are now correctly reconized (1.0 was excluded).
23
+ * @modified 2025-08-08 Added static color instances (singletons): Color.Red, Color.Gold, Color.Yellow, Color.Green, Color.LimeGreen, Color.Blue, Color.MediumBlue, Color.Purple.
24
+ * @modified 2025-09-01 Adding all standard web colors. Source: https://en.wikipedia.org/wiki/Web_colors
25
+ * @modified 2025-09-01 Modifying the `Sanitizer.RGB` helper method: recognoizing 0 to 255 as valid values (not only 1 to 255).
26
+ * @modified 2025-09-01 Modifying the `Color.parse` method: recognizing CSS color strings now.
27
+ * @version 0.0.14
28
+ **/
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.Color = void 0;
31
+ /**
32
+ * @classdesc A color class, inspired by neolitec's Javascript class.
33
+ * Original found at
34
+ * https://gist.github.com/neolitec/1344610
35
+ * Thanks to neolitec
36
+ */
37
+ var Color = /** @class */ (function () {
38
+ /**
39
+ * Construct a new color with `r=0 g=0 b=0`.
40
+ *
41
+ * Consider using the `makeHex`, `makeRGB` or `makeHSL` functions.
42
+ *
43
+ * @constructor
44
+ * @instance
45
+ * @memberof Color
46
+ */
47
+ function Color() {
48
+ this.r = this.g = this.b = 0;
49
+ this.h = this.s = this.l = 0;
50
+ this.a = 1;
51
+ }
52
+ // --- RGB ----------------------------------
53
+ /**
54
+ * Get this color as a CSS `rgb` string.
55
+ *
56
+ * Consult this for details: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
57
+ *
58
+ * @method cssRGB
59
+ * @instance
60
+ * @memberof Color
61
+ * @return {string} This color as a CSS rgb string.
62
+ */
63
+ Color.prototype.cssRGB = function () {
64
+ return "rgb(" + Math.round(255 * this.r) + "," + Math.round(255 * this.g) + "," + Math.round(255 * this.b) + ")";
65
+ };
66
+ /**
67
+ * Get this color as a CSS `rgba` string.
68
+ *
69
+ * Consult this for details: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
70
+ *
71
+ * @method cssRGBA
72
+ * @instance
73
+ * @memberof Color
74
+ * @return {string} This color as a CSS rgba string.
75
+ */
76
+ Color.prototype.cssRGBA = function () {
77
+ return "rgba(".concat(Math.round(255 * this.r), ",").concat(Math.round(255 * this.g), ",").concat(Math.round(255 * this.b), ",").concat(this.a, ")");
78
+ };
79
+ /**
80
+ * Get the red component of this RGB(A)color. This method just returns the `r` color attribute.
81
+ *
82
+ * @method red
83
+ * @instance
84
+ * @memberof Color
85
+ * @return {number} A value between 0.0 and 1.0.
86
+ */
87
+ Color.prototype.red = function () {
88
+ return this.r;
89
+ };
90
+ /**
91
+ * Get the green component of this RGB(A) color. This method just returns the `g` color attribute.
92
+ *
93
+ * @method green
94
+ * @instance
95
+ * @memberof Color
96
+ * @return {number} A value between 0.0 and 1.0.
97
+ */
98
+ Color.prototype.green = function () {
99
+ return this.g;
100
+ };
101
+ /**
102
+ * Get the blue component of this RGB(A) color. This method just returns the `b` color attribute.
103
+ *
104
+ * @method blue
105
+ * @instance
106
+ * @memberof Color
107
+ * @return {number} A value between 0.0 and 1.0.
108
+ */
109
+ Color.prototype.blue = function () {
110
+ return this.b;
111
+ };
112
+ Color.prototype.set = function (color) {
113
+ this.r = color.r;
114
+ this.g = color.g;
115
+ this.b = color.b;
116
+ this.a = color.a;
117
+ this.h = color.h;
118
+ this.s = color.s;
119
+ this.l = color.l;
120
+ return this;
121
+ };
122
+ Color.prototype.setRed = function (r) {
123
+ this.r = r;
124
+ return this;
125
+ };
126
+ Color.prototype.setBlue = function (b) {
127
+ this.b = b;
128
+ Color.Converter.RGBToHSL(this);
129
+ return this;
130
+ };
131
+ Color.prototype.setAlpha = function (a) {
132
+ this.a = a;
133
+ Color.Converter.RGBToHSL(this);
134
+ return this;
135
+ };
136
+ Color.prototype.setGreen = function (g) {
137
+ this.g = g;
138
+ Color.Converter.RGBToHSL(this);
139
+ return this;
140
+ };
141
+ Color.prototype.setHue = function (h) {
142
+ this.h = h;
143
+ Color.Converter.HSLToRGB(this);
144
+ return this;
145
+ };
146
+ Color.prototype.setSaturation = function (s) {
147
+ this.s = s;
148
+ Color.Converter.HSLToRGB(this);
149
+ return this;
150
+ };
151
+ Color.prototype.setLuminance = function (l) {
152
+ this.l = l;
153
+ Color.Converter.HSLToRGB(this);
154
+ return this;
155
+ };
156
+ // --- HSL ----------------------------------
157
+ /**
158
+ * Get this color as a CSS `hsl` string.
159
+ *
160
+ * @method cssHSL
161
+ * @instance
162
+ * @memberof Color
163
+ * @return {string} This color as a CSS hsl string.
164
+ */
165
+ Color.prototype.cssHSL = function () {
166
+ return "hsl(" + Math.round(360 * this.h) + "," + Math.round(100 * this.s) + "%," + Math.round(100 * this.l) + "%)";
167
+ };
168
+ /**
169
+ * Get this color as a CSS `hsla` string.
170
+ *
171
+ * @method cssHSLA
172
+ * @instance
173
+ * @memberof Color
174
+ * @return {string} This color as a CSS hsla string.
175
+ */
176
+ Color.prototype.cssHSLA = function () {
177
+ return ("hsla(" +
178
+ Math.round(360 * this.h) +
179
+ "," +
180
+ Math.round(100 * this.s) +
181
+ "%," +
182
+ Math.round(100 * this.l) +
183
+ "%," +
184
+ Math.round(this.a) +
185
+ ")");
186
+ };
187
+ /**
188
+ * Get the hue component of this HSL(A) color. This method just returns the `h` color attribute.
189
+ *
190
+ * @method hue
191
+ * @instance
192
+ * @memberof Color
193
+ * @return {number} A value between 0.0 and 1.0.
194
+ */
195
+ Color.prototype.hue = function () {
196
+ return this.h;
197
+ };
198
+ /**
199
+ * Get the saturation component of this HSL(A) color. This method just returns the `s` color attribute.
200
+ *
201
+ * @method saturation
202
+ * @instance
203
+ * @memberof Color
204
+ * @return {number} A value between 0.0 and 1.0.
205
+ */
206
+ Color.prototype.saturation = function () {
207
+ return this.s;
208
+ };
209
+ /**
210
+ * Get the lightness component of this HSL(A) color. This method just returns the `l` color attribute.
211
+ *
212
+ * @method lightness
213
+ * @instance
214
+ * @memberof Color
215
+ * @return {number} A value between 0.0 and 1.0.
216
+ */
217
+ Color.prototype.lightness = function () {
218
+ return this.l;
219
+ };
220
+ // --- HEX ----------------------------------
221
+ /**
222
+ * Get this color as a CSS-HEX string (non-alpha): #rrggbb
223
+ *
224
+ * @method cssHEX
225
+ * @instance
226
+ * @memberof Color
227
+ * @return {string} This color as a CSS-HEX string.
228
+ */
229
+ Color.prototype.cssHEX = function () {
230
+ return ("#" +
231
+ (255 * this.r < 16 ? "0" : "") +
232
+ Math.round(255 * this.r).toString(16) +
233
+ (255 * this.g < 16 ? "0" : "") +
234
+ Math.round(255 * this.g).toString(16) +
235
+ (255 * this.b < 16 ? "0" : "") +
236
+ Math.round(255 * this.b).toString(16));
237
+ };
238
+ // --- Transparency ----------------------------------
239
+ /**
240
+ * Get the alpha channel (transparency) of this color.
241
+ *
242
+ * @method alpha
243
+ * @instance
244
+ * @memberof Color
245
+ * @return {number} A value between 0.0 and 1.0.
246
+ */
247
+ Color.prototype.alpha = function () {
248
+ return this.a;
249
+ };
250
+ // --- Modifiers ----------------------------------
251
+ // saturate(v: string | number): Color {
252
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
253
+ // this.s += v / 100;
254
+ // } else if ("number" == typeof v) {
255
+ // // range 255
256
+ // this.s += v / 255;
257
+ // } else {
258
+ // throw new Error("error: bad modifier format (percent or number)");
259
+ // }
260
+ // if (this.s > 1) this.s = 1;
261
+ // else if (this.s < 0) this.s = 0;
262
+ // Color.Converter.HSLToRGB(this);
263
+ // return this;
264
+ // }
265
+ Color.prototype.saturate = function (v) {
266
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
267
+ if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
268
+ this.s += (1 - this.s) * (v / 100);
269
+ }
270
+ else if ("number" == typeof v) {
271
+ if (v >= -0.0 && v <= 1.0) {
272
+ // range 255
273
+ this.s += (1 - this.s) * v;
274
+ }
275
+ else {
276
+ // range 0-1
277
+ this.s += (1 - this.s) * (v / 255);
278
+ }
279
+ }
280
+ else {
281
+ throw new Error("error: bad modifier format (percent or number)");
282
+ }
283
+ if (this.s > 1)
284
+ this.s = 1;
285
+ else if (this.s < 0)
286
+ this.s = 0;
287
+ Color.Converter.HSLToRGB(this);
288
+ return this;
289
+ };
290
+ Color.prototype.desaturate = function (v) {
291
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
292
+ if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
293
+ this.s -= v / 100;
294
+ }
295
+ else if ("number" == typeof v) {
296
+ if (v >= 0.0 && v <= 1.0) {
297
+ // range 255
298
+ this.s -= this.s * v;
299
+ }
300
+ else {
301
+ // range 0-1
302
+ this.s -= this.s * (v / 255);
303
+ }
304
+ }
305
+ else {
306
+ throw new Error("error: bad modifier format (percent or number)");
307
+ }
308
+ if (this.s > 1)
309
+ this.s = 1;
310
+ else if (this.s < 0)
311
+ this.s = 0;
312
+ Color.Converter.HSLToRGB(this);
313
+ return this;
314
+ };
315
+ Color.prototype.lighten = function (v) {
316
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
317
+ if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
318
+ this.l += (1 - this.l) * (v / 100);
319
+ }
320
+ else if ("number" == typeof v) {
321
+ if (v >= 0.0 && v <= 1.0) {
322
+ // range 0.0...1.0
323
+ this.l += (1 - this.l) * v;
324
+ }
325
+ else {
326
+ // range 255
327
+ this.l += (1 - this.l) * (v / 255);
328
+ }
329
+ }
330
+ else {
331
+ throw new Error("error: bad modifier format (percent or number)");
332
+ }
333
+ if (this.l > 1)
334
+ this.l = 1;
335
+ else if (this.l < 0)
336
+ this.l = 0;
337
+ Color.Converter.HSLToRGB(this);
338
+ return this;
339
+ };
340
+ Color.prototype.darken = function (v) {
341
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
342
+ if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
343
+ this.l -= this.l * (v / 100);
344
+ }
345
+ else if ("number" == typeof v) {
346
+ if (v >= 0.0 && v <= 1.0) {
347
+ // range 0.0...1.0
348
+ this.l -= this.l * v;
349
+ }
350
+ else {
351
+ // range 255
352
+ this.l -= this.l * (v / 255);
353
+ }
354
+ }
355
+ else {
356
+ throw new Error("error: bad modifier format (percent or number)");
357
+ }
358
+ if (this.l > 1)
359
+ this.l = 1;
360
+ else if (this.l < 0)
361
+ this.l = 0;
362
+ Color.Converter.HSLToRGB(this);
363
+ return this;
364
+ };
365
+ Color.prototype.fadein = function (v) {
366
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
367
+ if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
368
+ this.a += (1 - this.a) * (v / 100);
369
+ }
370
+ else if ("number" == typeof v) {
371
+ if (v >= 0.0 && v <= 1.0) {
372
+ // range 0-1
373
+ this.a += (1 - this.a) * v;
374
+ }
375
+ else {
376
+ // range 255
377
+ this.a += (1 - this.a) * (v / 255);
378
+ }
379
+ }
380
+ else {
381
+ throw new Error("error: bad modifier format (percent or number)");
382
+ }
383
+ console.log("New alpha", this.a);
384
+ if (this.a > 1)
385
+ this.a = 1;
386
+ else if (this.a < 0)
387
+ this.a = 0;
388
+ Color.Converter.HSLToRGB(this);
389
+ return this;
390
+ };
391
+ Color.prototype.fadeout = function (v) {
392
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
393
+ if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
394
+ this.a -= v / 100;
395
+ }
396
+ else if ("number" == typeof v) {
397
+ if (v >= 0.0 && v <= 1.0) {
398
+ // range 0-1
399
+ this.a -= v;
400
+ }
401
+ else {
402
+ // range 255
403
+ this.a -= v / 255;
404
+ }
405
+ }
406
+ else {
407
+ throw new Error("error: bad modifier format (percent or number)");
408
+ }
409
+ if (this.a > 1)
410
+ this.a = 1;
411
+ else if (this.a < 0)
412
+ this.a = 0;
413
+ Color.Converter.HSLToRGB(this);
414
+ return this;
415
+ };
416
+ Color.prototype.spin = function (v) {
417
+ // if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) this.h += v / 100;
418
+ if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
419
+ this.h += v / 100;
420
+ }
421
+ else if ("number" == typeof v) {
422
+ // range 360
423
+ this.h += v / 360;
424
+ }
425
+ else {
426
+ throw new Error("error: bad modifier format (percent or number)");
427
+ }
428
+ if (this.h > 1)
429
+ this.h = 1;
430
+ else if (this.h < 0)
431
+ this.h = 0;
432
+ Color.Converter.HSLToRGB(this);
433
+ return this;
434
+ };
435
+ Color.makeRGB = function () {
436
+ var args = [];
437
+ for (var _i = 0; _i < arguments.length; _i++) {
438
+ args[_i] = arguments[_i];
439
+ }
440
+ var c = new Color();
441
+ var sanitized;
442
+ if (args.length < 3 || args.length > 4) {
443
+ throw new Error("error: 3 or 4 arguments");
444
+ }
445
+ sanitized = Color.Sanitizer.RGB(args[0], args[1], args[2]);
446
+ c.r = sanitized[0];
447
+ c.g = sanitized[1];
448
+ c.b = sanitized[2];
449
+ if (args.length == 4) {
450
+ c.a = args[3];
451
+ }
452
+ else {
453
+ c.a = 1.0;
454
+ }
455
+ Color.Converter.RGBToHSL(c);
456
+ return c;
457
+ };
458
+ Color.makeHSL = function () {
459
+ var args = [];
460
+ for (var _i = 0; _i < arguments.length; _i++) {
461
+ args[_i] = arguments[_i];
462
+ }
463
+ var c = new Color();
464
+ var sanitized;
465
+ if (args.length < 3 || args.length > 4) {
466
+ throw new Error("error: 3 or 4 arguments");
467
+ }
468
+ sanitized = Color.Sanitizer.HSL(args[0], args[1], args[2]);
469
+ c.h = sanitized[0];
470
+ c.s = sanitized[1];
471
+ c.l = sanitized[2];
472
+ if (args.length == 4) {
473
+ c.a = typeof args[3] === "string" ? Number.parseFloat(args[3]) : args[3];
474
+ }
475
+ else {
476
+ c.a = 1.0;
477
+ }
478
+ Color.Converter.HSLToRGB(c);
479
+ return c;
480
+ };
481
+ Color.makeHEX = function (value) {
482
+ var c = new Color(), sanitized;
483
+ // Edit Ika 2018-0308
484
+ // Allow leading '#'
485
+ if (value && value.startsWith("#")) {
486
+ value = value.substr(1);
487
+ }
488
+ Color.Validator.checkHEX(value);
489
+ if (value.length == 3) {
490
+ sanitized = Color.Sanitizer.RGB(parseInt(value.substr(0, 1) + value.substr(0, 1), 16), parseInt(value.substr(1, 1) + value.substr(1, 1), 16), parseInt(value.substr(2, 1) + value.substr(2, 1), 16));
491
+ }
492
+ else if (value.length == 6) {
493
+ sanitized = Color.Sanitizer.RGB(parseInt(value.substr(0, 2), 16), parseInt(value.substr(2, 2), 16), parseInt(value.substr(4, 2), 16));
494
+ }
495
+ else {
496
+ throw new Error("error: 3 or 6 arguments");
497
+ }
498
+ c.r = sanitized[0];
499
+ c.g = sanitized[1];
500
+ c.b = sanitized[2];
501
+ c.a = 1.0; // TODO: Accept #xxxxxxxx (8 chars, too, for alpha)
502
+ Color.Converter.RGBToHSL(c);
503
+ return c;
504
+ };
505
+ /**
506
+ * Parse the given color string. Currently only these formate are recognized: hex, rgb, rgba.
507
+ *
508
+ * @method parse
509
+ * @static
510
+ * @memberof Color
511
+ * @param {string} str - The string representation to parse.
512
+ * @return {Color} The color instance that's represented by the given string.
513
+ */
514
+ Color.parse = function (str) {
515
+ if (typeof str == "undefined") {
516
+ return null;
517
+ }
518
+ if ((str = str.trim().toLowerCase()).length == 0) {
519
+ return null;
520
+ }
521
+ if (str.startsWith("#")) {
522
+ return Color.makeHEX(str.substring(1, str.length));
523
+ }
524
+ if (str.startsWith("rgb")) {
525
+ var parts = str.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,?\s*(\d*(?:\.\d+\s*)?)\)$/);
526
+ if (!parts) {
527
+ throw "Unrecognized color format (2): " + str;
528
+ }
529
+ // [ str, r, g, b, a|undefined ]
530
+ // console.log("parts", parts);
531
+ if (parts.length <= 4 || typeof parts[4] == "undefined" || parts[4] == "") {
532
+ return Color.makeRGB(parts[1], parts[2], parts[3]);
533
+ }
534
+ else {
535
+ return Color.makeRGB(parts[1], parts[2], parts[3], Number(parts[4]));
536
+ }
537
+ }
538
+ // Try to locate by CSS color name
539
+ var keys = Object.keys(Color.CSS_COLORS);
540
+ var cssColorKey = keys.reduce(function (prevKey, curKey) {
541
+ if (curKey && curKey.toLowerCase() === str.toLowerCase()) {
542
+ return curKey;
543
+ }
544
+ return prevKey;
545
+ }, null);
546
+ if (cssColorKey) {
547
+ var cssColor = Color.CSS_COLORS[cssColorKey];
548
+ // console.log("cssColor?", cssColor, str, cssColorKey);
549
+ if (cssColor) {
550
+ // console.log("CONSTRUCTOR?", cssColor.constructor);
551
+ return cssColor.clone();
552
+ }
553
+ }
554
+ throw "Unrecognized color format (1): " + str;
555
+ };
556
+ /**
557
+ * Create a clone of this color (RGB).
558
+ *
559
+ * @method clone
560
+ * @instance
561
+ * @memberof Color
562
+ * @return {Color} A clone of this color (in RGB mode).
563
+ */
564
+ Color.prototype.clone = function () {
565
+ // return Color.makeRGB(this.r, this.g, this.b, this.a);
566
+ var col = new Color();
567
+ col.r = this.r;
568
+ col.g = this.g;
569
+ col.b = this.b;
570
+ col.a = this.a;
571
+ col.h = this.h;
572
+ col.s = this.s;
573
+ col.l = this.l;
574
+ return col;
575
+ };
576
+ /**
577
+ * Interpolate this color on the RGB scale.
578
+ *
579
+ * @method interpolate
580
+ * @instance
581
+ * @memberof Color
582
+ * @param {Color} c - The color to interpolate to.
583
+ * @param {number} t - An interpolation value between 0.0 and 1.0.
584
+ * @return {Color} A clone of this color (in RGB mode).
585
+ */
586
+ Color.prototype.interpolate = function (c, t) {
587
+ this.r += (c.r - this.r) * t;
588
+ this.g += (c.g - this.g) * t;
589
+ this.b += (c.b - this.b) * t;
590
+ this.a += (c.a - this.a) * t;
591
+ return this;
592
+ };
593
+ Color.Sanitizer = {
594
+ RGB: function () {
595
+ var args = [];
596
+ for (var _i = 0; _i < arguments.length; _i++) {
597
+ args[_i] = arguments[_i];
598
+ }
599
+ var o = [];
600
+ if (args.length == 0) {
601
+ return [];
602
+ }
603
+ // const allAreFrac = Color.testFrac( arguments );
604
+ for (var i = 0; i < args.length; i++) {
605
+ var c = args[i];
606
+ if ("string" == typeof c && c.indexOf("%") > -1) {
607
+ // if ((c = parseInt(c)) == NaN) throw new Error("Bad format");
608
+ if (Number.isNaN((c = parseInt(c)))) {
609
+ throw new Error("Bad format");
610
+ }
611
+ if (c < 0 || c > 100)
612
+ throw new Error("Bad format");
613
+ o[i] = c / 100;
614
+ }
615
+ else {
616
+ // if ("string" == typeof c && (c = parseInt(c)) == NaN) {
617
+ if ("string" == typeof c && Number.isNaN((c = parseInt(c)))) {
618
+ throw new Error("Bad format");
619
+ }
620
+ if (c < 0) {
621
+ throw new Error("Bad format");
622
+ }
623
+ //else if( allAreFrac ) o[i] = c; // c >= 0 && c <= 1 (all)
624
+ else if (c >= 0 && c <= 1) {
625
+ o[i] = c;
626
+ }
627
+ // else if(c >= 0.0 && c <= 1.0) o[i] = c;
628
+ else if (c >= 0 && c < 256) {
629
+ o[i] = c / 255;
630
+ }
631
+ // ???
632
+ // else if(c >= 0 && c < 256) o[i] = c/255;
633
+ else
634
+ throw new Error("Bad format (" + c + ")");
635
+ }
636
+ }
637
+ return o;
638
+ },
639
+ HSL: function () {
640
+ var args = [];
641
+ for (var _i = 0; _i < arguments.length; _i++) {
642
+ args[_i] = arguments[_i];
643
+ }
644
+ if (args.length < 3 || args.length > 4) {
645
+ throw new Error("3 or 4 arguments required");
646
+ }
647
+ var h = args[0], s = args[1], l = args[2];
648
+ // if ("string" == typeof h && (h = parseFloat(h)) == NaN) throw new Error("Bad format for hue");
649
+ if ("string" == typeof h && Number.isNaN((h = parseFloat(h)))) {
650
+ throw new Error("Bad format for hue");
651
+ }
652
+ if (h < 0 || h > 360)
653
+ throw new Error("Hue out of range (0..360)");
654
+ else if ((("" + h).indexOf(".") > -1 && h > 1) || ("" + h).indexOf(".") == -1)
655
+ h /= 360;
656
+ if ("string" == typeof s && s.indexOf("%") > -1) {
657
+ // if ((s = parseInt(s)) == NaN) throw new Error("Bad format for saturation");
658
+ if (Number.isNaN((s = parseInt(s)))) {
659
+ throw new Error("Bad format for saturation");
660
+ }
661
+ if (s < 0 || s > 100) {
662
+ throw new Error("Bad format for saturation");
663
+ }
664
+ s /= 100;
665
+ }
666
+ else {
667
+ s = typeof s === "string" ? Number.parseFloat(s) : s;
668
+ if (s < 0 || s > 1) {
669
+ throw new Error("Bad format for saturation");
670
+ }
671
+ }
672
+ if ("string" == typeof l && l.indexOf("%") > -1) {
673
+ // if ((l = parseInt(l)) == NaN) throw new Error("Bad format for lightness");
674
+ if (Number.isNaN((l = parseInt(l)))) {
675
+ throw new Error("Bad format for lightness");
676
+ }
677
+ if (l < 0 || l > 100) {
678
+ throw new Error("Bad format for lightness");
679
+ }
680
+ l /= 100;
681
+ }
682
+ else {
683
+ l = typeof l === "string" ? Number.parseFloat(l) : l;
684
+ if (l < 0 || l > 1) {
685
+ throw new Error("Bad format for lightness");
686
+ }
687
+ }
688
+ return [h, s, l];
689
+ }
690
+ }; // ENd sanitizer
691
+ Color.Validator = {
692
+ /**
693
+ * Check a hexa color (without #)
694
+ */
695
+ checkHEX: function (value) {
696
+ if (value.length != 6 && value.length != 3)
697
+ throw new Error("Hexa color: bad length (" + value.length + ")," + value);
698
+ value = value.toLowerCase();
699
+ //for( var i in value ) {
700
+ for (var i = 0; i < value.length; i++) {
701
+ var c = value.charCodeAt(i);
702
+ if (!((c >= 48 && c <= 57) || (c >= 97 && c <= 102)))
703
+ throw new Error("Hexa color: out of range for \"".concat(value, "\" at position ").concat(i, "."));
704
+ }
705
+ }
706
+ };
707
+ Color.Converter = {
708
+ /**
709
+ * Calculates HSL Color.
710
+ * RGB must be normalized.
711
+ * http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
712
+ */
713
+ RGBToHSL: function (color) {
714
+ var r = color.r;
715
+ var g = color.g;
716
+ var b = color.b;
717
+ var max = Math.max(r, g, b);
718
+ var min = Math.min(r, g, b);
719
+ color.l = (max + min) / 2;
720
+ if (max == min) {
721
+ color.h = color.s = 0; // achromatic
722
+ }
723
+ else {
724
+ var d = max - min;
725
+ color.s = color.l > 0.5 ? d / (2 - max - min) : d / (max + min);
726
+ switch (max) {
727
+ case r:
728
+ color.h = (g - b) / d + (g < b ? 6 : 0);
729
+ break;
730
+ case g:
731
+ color.h = (b - r) / d + 2;
732
+ break;
733
+ case b:
734
+ color.h = (r - g) / d + 4;
735
+ break;
736
+ }
737
+ color.h /= 6;
738
+ }
739
+ },
740
+ /**
741
+ * Calculates RGB color (nomalized).
742
+ * HSL must be normalized.
743
+ *
744
+ * http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
745
+ */
746
+ HSLToRGB: function (color) {
747
+ var h = color.h;
748
+ var s = color.s;
749
+ var l = color.l;
750
+ if (s == 0) {
751
+ color.r = color.g = color.b = l; // achromatic
752
+ }
753
+ else {
754
+ var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
755
+ var p = 2 * l - q;
756
+ color.r = Color.Converter.hue2rgb(p, q, h + 1 / 3);
757
+ color.g = Color.Converter.hue2rgb(p, q, h);
758
+ color.b = Color.Converter.hue2rgb(p, q, h - 1 / 3);
759
+ }
760
+ },
761
+ hue2rgb: function (p, q, t) {
762
+ if (t < 0)
763
+ t += 1;
764
+ if (t > 1)
765
+ t -= 1;
766
+ if (t < 1 / 6)
767
+ return p + (q - p) * 6 * t;
768
+ if (t < 1 / 2)
769
+ return q;
770
+ if (t < 2 / 3)
771
+ return p + (q - p) * (2 / 3 - t) * 6;
772
+ return p;
773
+ }
774
+ };
775
+ // Source
776
+ // https://en.wikipedia.org/wiki/Web_colors
777
+ // Pink colors
778
+ Color.MediumVioletRed = Color.makeRGB(199, 21, 133);
779
+ Color.DeepPink = Color.makeRGB(255, 20, 147);
780
+ Color.PaleVioletRed = Color.makeRGB(219, 112, 147);
781
+ Color.HotPink = Color.makeRGB(255, 105, 180);
782
+ Color.LightPink = Color.makeRGB(255, 182, 193);
783
+ Color.Pink = Color.makeRGB(255, 192, 203);
784
+ // Red colors
785
+ Color.DarkRed = Color.makeRGB(139, 0, 0);
786
+ Color.Red = Color.makeRGB(255, 0, 0);
787
+ Color.Firebrick = Color.makeRGB(178, 34, 34);
788
+ Color.Crimson = Color.makeRGB(220, 20, 60);
789
+ Color.IndianRed = Color.makeRGB(205, 92, 92);
790
+ Color.LightCoral = Color.makeRGB(240, 128, 128);
791
+ Color.Salmon = Color.makeRGB(250, 128, 114);
792
+ Color.DarkSalmon = Color.makeRGB(233, 150, 122);
793
+ Color.LightSalmon = Color.makeRGB(255, 160, 122);
794
+ // Orange colors
795
+ Color.OrangeRed = Color.makeRGB(255, 69, 0);
796
+ Color.Tomato = Color.makeRGB(255, 99, 71);
797
+ Color.DarkOrange = Color.makeRGB(255, 140, 0);
798
+ Color.Coral = Color.makeRGB(255, 127, 80);
799
+ Color.Orange = Color.makeRGB(255, 165, 0);
800
+ // Yellow colors
801
+ Color.DarkKhaki = Color.makeRGB(189, 183, 107);
802
+ Color.Gold = Color.makeRGB(255, 215, 0);
803
+ Color.Khaki = Color.makeRGB(240, 230, 140);
804
+ Color.PeachPuff = Color.makeRGB(255, 218, 185);
805
+ Color.Yellow = Color.makeRGB(255, 255, 0);
806
+ Color.PaleGoldenrod = Color.makeRGB(238, 232, 170);
807
+ Color.Moccasin = Color.makeRGB(255, 228, 181);
808
+ Color.PapayaWhip = Color.makeRGB(255, 239, 213);
809
+ Color.LightGoldenrodYellow = Color.makeRGB(250, 250, 210);
810
+ Color.LemonChiffon = Color.makeRGB(255, 250, 205);
811
+ Color.LightYellow = Color.makeRGB(255, 255, 224);
812
+ // Brown colors
813
+ Color.Maroon = Color.makeRGB(128, 0, 0);
814
+ Color.Brown = Color.makeRGB(165, 42, 42);
815
+ Color.SaddleBrown = Color.makeRGB(139, 69, 19);
816
+ Color.Sienna = Color.makeRGB(160, 82, 45);
817
+ Color.Chocolate = Color.makeRGB(210, 105, 30);
818
+ Color.DarkGoldenrod = Color.makeRGB(184, 134, 11);
819
+ Color.Peru = Color.makeRGB(205, 133, 63);
820
+ Color.RosyBrown = Color.makeRGB(188, 143, 143);
821
+ Color.Goldenrod = Color.makeRGB(218, 165, 32);
822
+ Color.SandyBrown = Color.makeRGB(244, 164, 96);
823
+ Color.Tan = Color.makeRGB(210, 180, 140);
824
+ Color.Burlywood = Color.makeRGB(222, 184, 135);
825
+ Color.Wheat = Color.makeRGB(245, 222, 179);
826
+ Color.NavajoWhite = Color.makeRGB(255, 222, 173);
827
+ Color.Bisque = Color.makeRGB(255, 228, 196);
828
+ Color.BlanchedAlmond = Color.makeRGB(255, 235, 205);
829
+ Color.Cornsilk = Color.makeRGB(255, 248, 220);
830
+ // Purple, violet, and magenta colors
831
+ Color.Indigo = Color.makeRGB(75, 0, 130);
832
+ Color.Purple = Color.makeRGB(128, 0, 128);
833
+ Color.DarkMagenta = Color.makeRGB(139, 0, 139);
834
+ Color.DarkViolet = Color.makeRGB(148, 0, 211);
835
+ Color.DarkSlateBlue = Color.makeRGB(72, 61, 139);
836
+ Color.BlueViolet = Color.makeRGB(138, 43, 226);
837
+ Color.DarkOrchid = Color.makeRGB(153, 50, 204);
838
+ Color.Fuchsia = Color.makeRGB(255, 0, 255);
839
+ Color.Magenta = Color.makeRGB(255, 0, 255);
840
+ Color.SlateBlue = Color.makeRGB(106, 90, 205);
841
+ Color.MediumSlateBlue = Color.makeRGB(123, 104, 238);
842
+ Color.MediumOrchid = Color.makeRGB(186, 85, 211);
843
+ Color.MediumPurple = Color.makeRGB(147, 112, 219);
844
+ Color.Orchid = Color.makeRGB(218, 112, 214);
845
+ Color.Violet = Color.makeRGB(238, 130, 238);
846
+ Color.Plum = Color.makeRGB(221, 160, 221);
847
+ Color.Thistle = Color.makeRGB(216, 191, 216);
848
+ Color.Lavender = Color.makeRGB(230, 230, 250);
849
+ // Blue colors
850
+ Color.MidnightBlue = Color.makeRGB(25, 25, 112);
851
+ Color.Navy = Color.makeRGB(0, 0, 128);
852
+ Color.DarkBlue = Color.makeRGB(0, 0, 139);
853
+ Color.MediumBlue = Color.makeRGB(0, 0, 205);
854
+ Color.Blue = Color.makeRGB(0, 0, 255);
855
+ Color.RoyalBlue = Color.makeRGB(65, 105, 225);
856
+ Color.SteelBlue = Color.makeRGB(70, 130, 180);
857
+ Color.DodgerBlue = Color.makeRGB(30, 144, 255);
858
+ Color.DeepSkyBlue = Color.makeRGB(0, 191, 255);
859
+ Color.CornflowerBlue = Color.makeRGB(100, 149, 237);
860
+ Color.SkyBlue = Color.makeRGB(135, 206, 235);
861
+ Color.LightSkyBlue = Color.makeRGB(135, 206, 250);
862
+ Color.LightSteelBlue = Color.makeRGB(176, 196, 222);
863
+ Color.LightBlue = Color.makeRGB(173, 216, 230);
864
+ Color.PowderBlue = Color.makeRGB(176, 224, 230);
865
+ // Cyan colors
866
+ Color.Teal = Color.makeRGB(0, 128, 128);
867
+ Color.DarkCyan = Color.makeRGB(0, 139, 139);
868
+ Color.LightSeaGreen = Color.makeRGB(32, 178, 170);
869
+ Color.CadetBlue = Color.makeRGB(95, 158, 160);
870
+ Color.DarkTurquoise = Color.makeRGB(0, 206, 209);
871
+ Color.MediumTurquoise = Color.makeRGB(72, 209, 204);
872
+ Color.Turquoise = Color.makeRGB(64, 224, 208);
873
+ Color.Aqua = Color.makeRGB(0, 255, 255);
874
+ Color.Cyan = Color.makeRGB(0, 255, 255);
875
+ Color.Aquamarine = Color.makeRGB(127, 255, 212);
876
+ Color.PaleTurquoise = Color.makeRGB(175, 238, 238);
877
+ Color.LightCyan = Color.makeRGB(224, 255, 255);
878
+ // Green colors
879
+ Color.DarkGreen = Color.makeRGB(0, 100, 0);
880
+ Color.Green = Color.makeRGB(0, 128, 0);
881
+ Color.DarkOliveGreen = Color.makeRGB(85, 107, 47);
882
+ Color.ForestGreen = Color.makeRGB(34, 139, 34);
883
+ Color.SeaGreen = Color.makeRGB(46, 139, 87);
884
+ Color.Olive = Color.makeRGB(128, 128, 0);
885
+ Color.OliveDrab = Color.makeRGB(107, 142, 35);
886
+ Color.MediumSeaGreen = Color.makeRGB(60, 179, 113);
887
+ Color.LimeGreen = Color.makeRGB(50, 205, 50);
888
+ Color.Lime = Color.makeRGB(0, 255, 0);
889
+ Color.SpringGreen = Color.makeRGB(0, 255, 127);
890
+ Color.MediumSpringGreen = Color.makeRGB(0, 250, 154);
891
+ Color.DarkSeaGreen = Color.makeRGB(143, 188, 143);
892
+ Color.MediumAquamarine = Color.makeRGB(102, 205, 170);
893
+ Color.YellowGreen = Color.makeRGB(154, 205, 50);
894
+ Color.LawnGreen = Color.makeRGB(124, 252, 0);
895
+ Color.Chartreuse = Color.makeRGB(127, 255, 0);
896
+ Color.LightGreen = Color.makeRGB(144, 238, 144);
897
+ Color.GreenYellow = Color.makeRGB(173, 255, 47);
898
+ Color.PaleGreen = Color.makeRGB(152, 251, 152);
899
+ // White colors
900
+ Color.MistyRose = Color.makeRGB(255, 228, 225);
901
+ Color.AntiqueWhite = Color.makeRGB(250, 235, 215);
902
+ Color.Linen = Color.makeRGB(250, 240, 230);
903
+ Color.Beige = Color.makeRGB(245, 245, 220);
904
+ Color.WhiteSmoke = Color.makeRGB(245, 245, 245);
905
+ Color.LavenderBlush = Color.makeRGB(255, 240, 245);
906
+ Color.OldLace = Color.makeRGB(253, 245, 230);
907
+ Color.AliceBlue = Color.makeRGB(240, 248, 255);
908
+ Color.Seashell = Color.makeRGB(255, 245, 238);
909
+ Color.GhostWhite = Color.makeRGB(248, 248, 255);
910
+ Color.Honeydew = Color.makeRGB(240, 255, 240);
911
+ Color.FloralWhite = Color.makeRGB(255, 250, 240);
912
+ Color.Azure = Color.makeRGB(240, 255, 255);
913
+ Color.MintCream = Color.makeRGB(245, 255, 250);
914
+ Color.Snow = Color.makeRGB(255, 250, 250);
915
+ Color.Ivory = Color.makeRGB(255, 255, 240);
916
+ Color.White = Color.makeRGB(255, 255, 255);
917
+ // Gray and black colors
918
+ Color.Black = Color.makeRGB(0, 0, 0);
919
+ Color.DarkSlateGray = Color.makeRGB(47, 79, 79);
920
+ Color.DimGray = Color.makeRGB(105, 105, 105);
921
+ Color.SlateGray = Color.makeRGB(112, 128, 144);
922
+ Color.Gray = Color.makeRGB(128, 128, 128);
923
+ Color.LightSlateGray = Color.makeRGB(119, 136, 153);
924
+ Color.DarkGray = Color.makeRGB(169, 169, 169);
925
+ Color.Silver = Color.makeRGB(192, 192, 192);
926
+ Color.LightGray = Color.makeRGB(211, 211, 211);
927
+ Color.Gainsboro = Color.makeRGB(220, 220, 220);
928
+ Color.CSS_COLORS = {
929
+ // Pink Color.XYZ,lors
930
+ MediumVioletRed: Color.MediumVioletRed,
931
+ DeepPink: Color.DeepPink,
932
+ PaleVioletRed: Color.PaleVioletRed,
933
+ HotPink: Color.HotPink,
934
+ LightPink: Color.LightPink,
935
+ Pink: Color.Pink,
936
+ // Red Color.XYZ,lors
937
+ DarkRed: Color.DarkRed,
938
+ Red: Color.Red,
939
+ Firebrick: Color.Firebrick,
940
+ Crimson: Color.Crimson,
941
+ IndianRed: Color.IndianRed,
942
+ LightCoral: Color.LightCoral,
943
+ Salmon: Color.Salmon,
944
+ DarkSalmon: Color.DarkSalmon,
945
+ LightSalmon: Color.LightSalmon,
946
+ // Orange Color.XYZ,lors
947
+ OrangeRed: Color.OrangeRed,
948
+ Tomato: Color.Tomato,
949
+ DarkOrange: Color.DarkOrange,
950
+ Coral: Color.Coral,
951
+ Orange: Color.Orange,
952
+ // Yellow Color.XYZ,lors
953
+ DarkKhaki: Color.DarkKhaki,
954
+ Gold: Color.Gold,
955
+ Khaki: Color.Khaki,
956
+ PeachPuff: Color.PeachPuff,
957
+ Yellow: Color.Yellow,
958
+ PaleGoldenrod: Color.PaleGoldenrod,
959
+ Moccasin: Color.Moccasin,
960
+ PapayaWhip: Color.PapayaWhip,
961
+ LightGoldenrodYellow: Color.LightGoldenrodYellow,
962
+ LemonChiffon: Color.LemonChiffon,
963
+ LightYellow: Color.LightYellow,
964
+ // Brown Color.XYZ,lors
965
+ Maroon: Color.Maroon,
966
+ Brown: Color.Brown,
967
+ SaddleBrown: Color.SaddleBrown,
968
+ Sienna: Color.Sienna,
969
+ Chocolate: Color.Chocolate,
970
+ DarkGoldenrod: Color.DarkGoldenrod,
971
+ Peru: Color.Peru,
972
+ RosyBrown: Color.RosyBrown,
973
+ Goldenrod: Color.Goldenrod,
974
+ SandyBrown: Color.SandyBrown,
975
+ Tan: Color.Tan,
976
+ Burlywood: Color.Burlywood,
977
+ Wheat: Color.Wheat,
978
+ NavajoWhite: Color.NavajoWhite,
979
+ Bisque: Color.Bisque,
980
+ BlanchedAlmond: Color.BlanchedAlmond,
981
+ Cornsilk: Color.Cornsilk,
982
+ // Purple, violet, and magenta Color.XYZ,lors
983
+ Indigo: Color.Indigo,
984
+ Purple: Color.Purple,
985
+ DarkMagenta: Color.DarkMagenta,
986
+ DarkViolet: Color.DarkViolet,
987
+ DarkSlateBlue: Color.DarkSlateBlue,
988
+ BlueViolet: Color.BlueViolet,
989
+ DarkOrchid: Color.DarkOrchid,
990
+ Fuchsia: Color.Fuchsia,
991
+ Magenta: Color.Magenta,
992
+ SlateBlue: Color.SlateBlue,
993
+ MediumSlateBlue: Color.MediumSlateBlue,
994
+ MediumOrchid: Color.MediumOrchid,
995
+ MediumPurple: Color.MediumPurple,
996
+ Orchid: Color.Orchid,
997
+ Violet: Color.Violet,
998
+ Plum: Color.Plum,
999
+ Thistle: Color.Thistle,
1000
+ Lavender: Color.Lavender,
1001
+ // Blue Colors
1002
+ MidnightBlue: Color.MidnightBlue,
1003
+ Navy: Color.Navy,
1004
+ DarkBlue: Color.DarkBlue,
1005
+ MediumBlue: Color.MediumBlue,
1006
+ Blue: Color.Blue,
1007
+ RoyalBlue: Color.RoyalBlue,
1008
+ SteelBlue: Color.SteelBlue,
1009
+ DodgerBlue: Color.DodgerBlue,
1010
+ DeepSkyBlue: Color.DeepSkyBlue,
1011
+ CornflowerBlue: Color.CornflowerBlue,
1012
+ SkyBlue: Color.SkyBlue,
1013
+ LightSkyBlue: Color.LightSkyBlue,
1014
+ LightSteelBlue: Color.LightSteelBlue,
1015
+ LightBlue: Color.LightBlue,
1016
+ PowderBlue: Color.PowderBlue,
1017
+ // Coyan Colors
1018
+ Teal: Color.Teal,
1019
+ DarkCyan: Color.DarkCyan,
1020
+ LightSeaGreen: Color.LightSeaGreen,
1021
+ CadetBlue: Color.CadetBlue,
1022
+ DarkTurquoise: Color.DarkTurquoise,
1023
+ MediumTurquoise: Color.MediumTurquoise,
1024
+ Turquoise: Color.Turquoise,
1025
+ Aqua: Color.Aqua,
1026
+ Cyan: Color.Cyan,
1027
+ Aquamarine: Color.Aquamarine,
1028
+ PaleTurquoise: Color.PaleTurquoise,
1029
+ LightCyan: Color.LightCyan,
1030
+ // Green Colors
1031
+ DarkGreen: Color.DarkGreen,
1032
+ Green: Color.Green,
1033
+ DarkOliveGreen: Color.DarkOliveGreen,
1034
+ ForestGreen: Color.ForestGreen,
1035
+ SeaGreen: Color.SeaGreen,
1036
+ Olive: Color.Olive,
1037
+ OliveDrab: Color.OliveDrab,
1038
+ MediumSeaGreen: Color.MediumSeaGreen,
1039
+ LimeGreen: Color.LimeGreen,
1040
+ Lime: Color.Lime,
1041
+ SpringGreen: Color.SpringGreen,
1042
+ MediumSpringGreen: Color.MediumSpringGreen,
1043
+ DarkSeaGreen: Color.DarkSeaGreen,
1044
+ MediumAquamarine: Color.MediumAquamarine,
1045
+ YellowGreen: Color.YellowGreen,
1046
+ LawnGreen: Color.LawnGreen,
1047
+ Chartreuse: Color.Chartreuse,
1048
+ LightGreen: Color.LightGreen,
1049
+ GreenYellow: Color.GreenYellow,
1050
+ PaleGreen: Color.PaleGreen,
1051
+ // White Color.XYZ,lors
1052
+ MistyRose: Color.MistyRose,
1053
+ AntiqueWhite: Color.AntiqueWhite,
1054
+ Linen: Color.Linen,
1055
+ Beige: Color.Beige,
1056
+ WhiteSmoke: Color.WhiteSmoke,
1057
+ LavenderBlush: Color.LavenderBlush,
1058
+ OldLace: Color.OldLace,
1059
+ AliceBlue: Color.AliceBlue,
1060
+ Seashell: Color.Seashell,
1061
+ GhostWhite: Color.GhostWhite,
1062
+ Honeydew: Color.Honeydew,
1063
+ FloralWhite: Color.FloralWhite,
1064
+ Azure: Color.Azure,
1065
+ MintCream: Color.MintCream,
1066
+ Snow: Color.Snow,
1067
+ Ivory: Color.Ivory,
1068
+ White: Color.White,
1069
+ // Gray and black Color.XYZ,lors
1070
+ Black: Color.Black,
1071
+ DarkSlateGray: Color.DarkSlateGray,
1072
+ DimGray: Color.DimGray,
1073
+ SlateGray: Color.SlateGray,
1074
+ Gray: Color.Gray,
1075
+ LightSlateGray: Color.LightSlateGray,
1076
+ DarkGray: Color.DarkGray,
1077
+ Silver: Color.Silver,
1078
+ LightGray: Color.LightGray,
1079
+ Gainsboro: Color.Gainsboro
1080
+ };
1081
+ return Color;
1082
+ }()); // END class
1083
+ exports.Color = Color;
1084
+ //# sourceMappingURL=Color.js.map