paper 0.17.0 → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/CHANGELOG.md +199 -0
  2. package/LICENSE.txt +1 -1
  3. package/MIGRATION.md +402 -0
  4. package/README.md +137 -143
  5. package/dist/esm/anim/Tween.js +404 -0
  6. package/dist/esm/basic/Line.js +252 -0
  7. package/dist/esm/basic/Matrix.js +603 -0
  8. package/dist/esm/basic/Point.js +738 -0
  9. package/dist/esm/basic/Rectangle.js +788 -0
  10. package/dist/esm/basic/Size.js +368 -0
  11. package/dist/esm/boolean/graph.js +950 -0
  12. package/dist/esm/boolean/index.js +143 -0
  13. package/dist/esm/boolean/operations.js +94 -0
  14. package/dist/esm/boolean/split.js +89 -0
  15. package/dist/esm/canvas/blendModes.js +115 -0
  16. package/dist/esm/canvas/canvasProvider.js +102 -0
  17. package/dist/esm/constants.js +130 -0
  18. package/dist/esm/core/Base.js +52 -0
  19. package/dist/esm/core/Emitter.js +215 -0
  20. package/dist/esm/core/features.js +53 -0
  21. package/dist/esm/core/serialization.js +174 -0
  22. package/dist/esm/core.js +15 -0
  23. package/dist/esm/dom/domElement.js +112 -0
  24. package/dist/esm/dom/domEvent.js +106 -0
  25. package/dist/esm/env.js +66 -0
  26. package/dist/esm/event/DrawEvent.js +38 -0
  27. package/dist/esm/event/Event.js +79 -0
  28. package/dist/esm/event/Key.js +236 -0
  29. package/dist/esm/event/KeyEvent.js +39 -0
  30. package/dist/esm/event/MouseEvent.js +91 -0
  31. package/dist/esm/hosted/HostItem.js +60 -0
  32. package/dist/esm/hosted/Hosting.js +1061 -0
  33. package/dist/esm/hosted/index.js +20 -0
  34. package/dist/esm/index.js +38 -0
  35. package/dist/esm/internal.js +115 -0
  36. package/dist/esm/item/Effect.js +256 -0
  37. package/dist/esm/item/EffectInstance.js +184 -0
  38. package/dist/esm/item/Group.js +293 -0
  39. package/dist/esm/item/HitResult.js +126 -0
  40. package/dist/esm/item/Item.js +3339 -0
  41. package/dist/esm/item/ItemDefinition.js +95 -0
  42. package/dist/esm/item/Layer.js +69 -0
  43. package/dist/esm/item/Project.js +1013 -0
  44. package/dist/esm/item/Raster.js +722 -0
  45. package/dist/esm/item/Shape.js +355 -0
  46. package/dist/esm/item/SymbolDefinition.js +68 -0
  47. package/dist/esm/item/SymbolItem.js +131 -0
  48. package/dist/esm/item/bounds.js +324 -0
  49. package/dist/esm/item/draw.js +525 -0
  50. package/dist/esm/item/effects.js +124 -0
  51. package/dist/esm/item/expand.js +87 -0
  52. package/dist/esm/item/hitTest.js +203 -0
  53. package/dist/esm/item/hosting.js +12 -0
  54. package/dist/esm/item/props.js +12 -0
  55. package/dist/esm/item/query.js +139 -0
  56. package/dist/esm/item/sampling.js +67 -0
  57. package/dist/esm/item/transform.js +128 -0
  58. package/dist/esm/net/http.js +26 -0
  59. package/dist/esm/node/CanvasAdapter.js +137 -0
  60. package/dist/esm/node/index.js +150 -0
  61. package/dist/esm/node/peers.js +27 -0
  62. package/dist/esm/offset/curves.js +866 -0
  63. package/dist/esm/offset/index.js +70 -0
  64. package/dist/esm/offset/offset.js +178 -0
  65. package/dist/esm/offset/outline.js +91 -0
  66. package/dist/esm/offset/pen.js +298 -0
  67. package/dist/esm/offset/profile.js +772 -0
  68. package/dist/esm/offset/round.js +213 -0
  69. package/dist/esm/offset/sweep.js +100 -0
  70. package/dist/esm/paperscript/PaperScript.js +832 -0
  71. package/dist/esm/paperscript/autoload.js +27 -0
  72. package/dist/esm/paperscript/index.js +17 -0
  73. package/dist/esm/path/CompoundPath.js +367 -0
  74. package/dist/esm/path/Curve.js +996 -0
  75. package/dist/esm/path/CurveLocation.js +462 -0
  76. package/dist/esm/path/Path.js +1761 -0
  77. package/dist/esm/path/PathFlattener.js +186 -0
  78. package/dist/esm/path/PathItem.js +757 -0
  79. package/dist/esm/path/Segment.js +640 -0
  80. package/dist/esm/path/SegmentPoint.js +106 -0
  81. package/dist/esm/path/StrokeProfile.js +387 -0
  82. package/dist/esm/path/StrokeProfileStop.js +207 -0
  83. package/dist/esm/path/boolean.js +284 -0
  84. package/dist/esm/path/bounds.js +257 -0
  85. package/dist/esm/path/crossing.js +114 -0
  86. package/dist/esm/path/draw.js +161 -0
  87. package/dist/esm/path/hitTest.js +259 -0
  88. package/dist/esm/path/offset.js +152 -0
  89. package/dist/esm/path/shapes.js +231 -0
  90. package/dist/esm/path/smooth.js +84 -0
  91. package/dist/esm/path/values.js +40 -0
  92. package/dist/esm/scope/PaperScope.js +288 -0
  93. package/dist/esm/scope/PaperScopeItem.js +74 -0
  94. package/dist/esm/smoothing/index.js +71 -0
  95. package/dist/esm/style/Color.js +917 -0
  96. package/dist/esm/style/Gradient.js +191 -0
  97. package/dist/esm/style/GradientStop.js +168 -0
  98. package/dist/esm/style/PatternDefinition.js +383 -0
  99. package/dist/esm/style/Style.js +503 -0
  100. package/dist/esm/svg/index.js +27 -0
  101. package/dist/esm/svg/svgElement.js +97 -0
  102. package/dist/esm/svg/svgExport.js +847 -0
  103. package/dist/esm/svg/svgImport.js +1101 -0
  104. package/dist/esm/svg/svgStyles.js +96 -0
  105. package/dist/esm/text/AreaText.js +190 -0
  106. package/dist/esm/text/PathText.js +111 -0
  107. package/dist/esm/text/PointText.js +92 -0
  108. package/dist/esm/text/TextItem.js +538 -0
  109. package/dist/esm/text/TextRange.js +169 -0
  110. package/dist/esm/text/TextStory.js +394 -0
  111. package/dist/esm/text/areaLayout.js +439 -0
  112. package/dist/esm/text/layout.js +265 -0
  113. package/dist/esm/text/measure.js +57 -0
  114. package/dist/esm/text/pathLayout.js +93 -0
  115. package/dist/esm/tool/Tool.js +284 -0
  116. package/dist/esm/tool/ToolEvent.js +232 -0
  117. package/dist/esm/util/Formatter.js +57 -0
  118. package/dist/esm/util/collisions.js +216 -0
  119. package/dist/esm/util/list.js +110 -0
  120. package/dist/esm/util/numerical.js +656 -0
  121. package/dist/esm/util/object.js +81 -0
  122. package/dist/esm/util/string.js +29 -0
  123. package/dist/esm/util/uid.js +31 -0
  124. package/dist/esm/values/arcs.js +243 -0
  125. package/dist/esm/values/curve.js +975 -0
  126. package/dist/esm/values/fit.js +290 -0
  127. package/dist/esm/values/index.js +23 -0
  128. package/dist/esm/values/intersections.js +869 -0
  129. package/dist/esm/values/matrix.js +114 -0
  130. package/dist/esm/values/path.js +174 -0
  131. package/dist/esm/values/profile.js +221 -0
  132. package/dist/esm/values/region.js +63 -0
  133. package/dist/esm/values/smooth.js +248 -0
  134. package/dist/esm/values/svg.js +287 -0
  135. package/dist/esm/view/CanvasView.js +106 -0
  136. package/dist/esm/view/View.js +775 -0
  137. package/dist/esm/view/input.js +527 -0
  138. package/dist/paper-full.js +32941 -26371
  139. package/dist/paper-full.min.js +36 -31
  140. package/dist/paper-hosted.js +33623 -27236
  141. package/dist/paper-hosted.min.js +37 -0
  142. package/dist/paper-slim.js +28581 -0
  143. package/dist/paper-slim.min.js +17 -0
  144. package/dist/types/anim/Tween.d.ts +164 -0
  145. package/dist/types/basic/Line.d.ts +136 -0
  146. package/dist/types/basic/Matrix.d.ts +387 -0
  147. package/dist/types/basic/Point.d.ts +781 -0
  148. package/dist/types/basic/Rectangle.d.ts +550 -0
  149. package/dist/types/basic/Size.d.ts +457 -0
  150. package/dist/types/boolean/graph.d.ts +123 -0
  151. package/dist/types/boolean/index.d.ts +74 -0
  152. package/dist/types/boolean/operations.d.ts +9 -0
  153. package/dist/types/boolean/split.d.ts +19 -0
  154. package/dist/types/canvas/blendModes.d.ts +18 -0
  155. package/dist/types/canvas/canvasProvider.d.ts +32 -0
  156. package/dist/types/constants.d.ts +112 -0
  157. package/dist/types/core/Base.d.ts +50 -0
  158. package/dist/types/core/Emitter.d.ts +49 -0
  159. package/dist/types/core/features.d.ts +41 -0
  160. package/dist/types/core/serialization.d.ts +44 -0
  161. package/dist/types/core.d.ts +18 -0
  162. package/dist/types/dom/domElement.d.ts +33 -0
  163. package/dist/types/dom/domEvent.d.ts +29 -0
  164. package/dist/types/env.d.ts +26 -0
  165. package/dist/types/event/DrawEvent.d.ts +27 -0
  166. package/dist/types/event/Event.d.ts +47 -0
  167. package/dist/types/event/Key.d.ts +82 -0
  168. package/dist/types/event/KeyEvent.d.ts +35 -0
  169. package/dist/types/event/MouseEvent.d.ts +78 -0
  170. package/dist/types/hosted/HostItem.d.ts +26 -0
  171. package/dist/types/hosted/Hosting.d.ts +273 -0
  172. package/dist/types/hosted/index.d.ts +10 -0
  173. package/dist/types/index.d.ts +64 -0
  174. package/dist/types/internal.d.ts +101 -0
  175. package/dist/types/item/Effect.d.ts +128 -0
  176. package/dist/types/item/EffectInstance.d.ts +81 -0
  177. package/dist/types/item/Group.d.ts +225 -0
  178. package/dist/types/item/HitResult.d.ts +94 -0
  179. package/dist/types/item/Item.d.ts +2927 -0
  180. package/dist/types/item/ItemDefinition.d.ts +25 -0
  181. package/dist/types/item/Layer.d.ts +80 -0
  182. package/dist/types/item/Project.d.ts +748 -0
  183. package/dist/types/item/Raster.d.ts +431 -0
  184. package/dist/types/item/Shape.d.ts +219 -0
  185. package/dist/types/item/SymbolDefinition.d.ts +98 -0
  186. package/dist/types/item/SymbolItem.d.ts +92 -0
  187. package/dist/types/item/bounds.d.ts +56 -0
  188. package/dist/types/item/draw.d.ts +23 -0
  189. package/dist/types/item/effects.d.ts +22 -0
  190. package/dist/types/item/expand.d.ts +7 -0
  191. package/dist/types/item/hitTest.d.ts +10 -0
  192. package/dist/types/item/hosting.d.ts +20 -0
  193. package/dist/types/item/props.d.ts +35 -0
  194. package/dist/types/item/query.d.ts +14 -0
  195. package/dist/types/item/sampling.d.ts +5 -0
  196. package/dist/types/item/transform.d.ts +3 -0
  197. package/dist/types/net/http.d.ts +6 -0
  198. package/dist/types/node/CanvasAdapter.d.ts +19 -0
  199. package/dist/types/node/index.d.ts +60 -0
  200. package/dist/types/node/peers.d.ts +2 -0
  201. package/dist/types/offset/curves.d.ts +22 -0
  202. package/dist/types/offset/index.d.ts +65 -0
  203. package/dist/types/offset/offset.d.ts +18 -0
  204. package/dist/types/offset/outline.d.ts +14 -0
  205. package/dist/types/offset/pen.d.ts +36 -0
  206. package/dist/types/offset/profile.d.ts +37 -0
  207. package/dist/types/offset/round.d.ts +18 -0
  208. package/dist/types/offset/sweep.d.ts +44 -0
  209. package/dist/types/paperscript/PaperScript.d.ts +114 -0
  210. package/dist/types/paperscript/autoload.d.ts +1 -0
  211. package/dist/types/paperscript/index.d.ts +7 -0
  212. package/dist/types/path/CompoundPath.d.ts +183 -0
  213. package/dist/types/path/Curve.d.ts +567 -0
  214. package/dist/types/path/CurveLocation.d.ts +164 -0
  215. package/dist/types/path/Path.d.ts +1361 -0
  216. package/dist/types/path/PathFlattener.d.ts +48 -0
  217. package/dist/types/path/PathItem.d.ts +1190 -0
  218. package/dist/types/path/Segment.d.ts +335 -0
  219. package/dist/types/path/SegmentPoint.d.ts +1 -0
  220. package/dist/types/path/StrokeProfile.d.ts +74 -0
  221. package/dist/types/path/StrokeProfileStop.d.ts +110 -0
  222. package/dist/types/path/boolean.d.ts +24 -0
  223. package/dist/types/path/bounds.d.ts +24 -0
  224. package/dist/types/path/crossing.d.ts +2 -0
  225. package/dist/types/path/draw.d.ts +6 -0
  226. package/dist/types/path/hitTest.d.ts +8 -0
  227. package/dist/types/path/offset.d.ts +14 -0
  228. package/dist/types/path/shapes.d.ts +20 -0
  229. package/dist/types/path/smooth.d.ts +18 -0
  230. package/dist/types/path/values.d.ts +8 -0
  231. package/dist/types/scope/PaperScope.d.ts +182 -0
  232. package/dist/types/scope/PaperScopeItem.d.ts +26 -0
  233. package/dist/types/smoothing/index.d.ts +26 -0
  234. package/dist/types/style/Color.d.ts +829 -0
  235. package/dist/types/style/Gradient.d.ts +130 -0
  236. package/dist/types/style/GradientStop.d.ts +126 -0
  237. package/dist/types/style/PatternDefinition.d.ts +185 -0
  238. package/dist/types/style/Style.d.ts +757 -0
  239. package/dist/types/svg/index.d.ts +14 -0
  240. package/dist/types/svg/svgElement.d.ts +32 -0
  241. package/dist/types/svg/svgExport.d.ts +19 -0
  242. package/dist/types/svg/svgImport.d.ts +13 -0
  243. package/dist/types/svg/svgStyles.d.ts +20 -0
  244. package/dist/types/text/AreaText.d.ts +104 -0
  245. package/dist/types/text/PathText.d.ts +78 -0
  246. package/dist/types/text/PointText.d.ts +50 -0
  247. package/dist/types/text/TextItem.d.ts +163 -0
  248. package/dist/types/text/TextRange.d.ts +98 -0
  249. package/dist/types/text/TextStory.d.ts +119 -0
  250. package/dist/types/text/areaLayout.d.ts +3 -0
  251. package/dist/types/text/layout.d.ts +43 -0
  252. package/dist/types/text/measure.d.ts +7 -0
  253. package/dist/types/text/pathLayout.d.ts +3 -0
  254. package/dist/types/tool/Tool.d.ts +356 -0
  255. package/dist/types/tool/ToolEvent.d.ts +134 -0
  256. package/dist/types/util/Formatter.d.ts +34 -0
  257. package/dist/types/util/collisions.d.ts +77 -0
  258. package/dist/types/util/list.d.ts +23 -0
  259. package/dist/types/util/numerical.d.ts +196 -0
  260. package/dist/types/util/object.d.ts +19 -0
  261. package/dist/types/util/string.d.ts +12 -0
  262. package/dist/types/util/uid.d.ts +7 -0
  263. package/dist/types/values/arcs.d.ts +10 -0
  264. package/dist/types/values/curve.d.ts +42 -0
  265. package/dist/types/values/fit.d.ts +26 -0
  266. package/dist/types/values/index.d.ts +10 -0
  267. package/dist/types/values/intersections.d.ts +11 -0
  268. package/dist/types/values/matrix.d.ts +19 -0
  269. package/dist/types/values/path.d.ts +26 -0
  270. package/dist/types/values/profile.d.ts +41 -0
  271. package/dist/types/values/region.d.ts +13 -0
  272. package/dist/types/values/smooth.d.ts +39 -0
  273. package/dist/types/values/svg.d.ts +47 -0
  274. package/dist/types/view/CanvasView.d.ts +37 -0
  275. package/dist/types/view/View.d.ts +700 -0
  276. package/dist/types/view/input.d.ts +28 -0
  277. package/package.json +89 -59
  278. package/dist/docs/assets/css/docs.css +0 -414
  279. package/dist/docs/assets/js/codemirror.js +0 -4
  280. package/dist/docs/assets/js/docs.js +0 -493
  281. package/dist/docs/assets/js/jquery.js +0 -6
  282. package/dist/docs/assets/js/paper.js +0 -27591
  283. package/dist/docs/classes/AreaText.html +0 -9186
  284. package/dist/docs/classes/ChangeFlag.html +0 -385
  285. package/dist/docs/classes/Color.html +0 -2402
  286. package/dist/docs/classes/CompoundPath.html +0 -10018
  287. package/dist/docs/classes/Curve.html +0 -2326
  288. package/dist/docs/classes/CurveLocation.html +0 -673
  289. package/dist/docs/classes/DrawEvent.html +0 -69
  290. package/dist/docs/classes/Effect.html +0 -434
  291. package/dist/docs/classes/EffectInstance.html +0 -304
  292. package/dist/docs/classes/Event.html +0 -177
  293. package/dist/docs/classes/Gradient.html +0 -241
  294. package/dist/docs/classes/GradientStop.html +0 -274
  295. package/dist/docs/classes/Group.html +0 -7688
  296. package/dist/docs/classes/HitResult.html +0 -241
  297. package/dist/docs/classes/HostItem.html +0 -7314
  298. package/dist/docs/classes/Item.html +0 -7427
  299. package/dist/docs/classes/Key.html +0 -140
  300. package/dist/docs/classes/KeyEvent.html +0 -309
  301. package/dist/docs/classes/Layer.html +0 -7671
  302. package/dist/docs/classes/Matrix.html +0 -1745
  303. package/dist/docs/classes/MouseEvent.html +0 -356
  304. package/dist/docs/classes/PaperScope.html +0 -548
  305. package/dist/docs/classes/PaperScript.html +0 -204
  306. package/dist/docs/classes/Path.html +0 -13007
  307. package/dist/docs/classes/PathItem.html +0 -9780
  308. package/dist/docs/classes/PathText.html +0 -9056
  309. package/dist/docs/classes/PatternDefinition.html +0 -367
  310. package/dist/docs/classes/Point.html +0 -2860
  311. package/dist/docs/classes/PointText.html +0 -8967
  312. package/dist/docs/classes/Project.html +0 -1774
  313. package/dist/docs/classes/Raster.html +0 -8547
  314. package/dist/docs/classes/Rectangle.html +0 -1698
  315. package/dist/docs/classes/Segment.html +0 -1017
  316. package/dist/docs/classes/Shape.html +0 -8048
  317. package/dist/docs/classes/Size.html +0 -1915
  318. package/dist/docs/classes/StrokeProfileStop.html +0 -346
  319. package/dist/docs/classes/Style.html +0 -1765
  320. package/dist/docs/classes/SymbolDefinition.html +0 -338
  321. package/dist/docs/classes/SymbolItem.html +0 -7477
  322. package/dist/docs/classes/TextItem.html +0 -8810
  323. package/dist/docs/classes/TextRange.html +0 -186
  324. package/dist/docs/classes/TextStory.html +0 -355
  325. package/dist/docs/classes/Tool.html +0 -888
  326. package/dist/docs/classes/ToolEvent.html +0 -525
  327. package/dist/docs/classes/Tween.html +0 -390
  328. package/dist/docs/classes/View.html +0 -2108
  329. package/dist/docs/classes/global.html +0 -426
  330. package/dist/docs/classes/index.html +0 -88
  331. package/dist/docs/index.html +0 -11
  332. package/dist/node/browser.js +0 -15
  333. package/dist/node/canvas.js +0 -68
  334. package/dist/node/extend.js +0 -156
  335. package/dist/node/self.js +0 -67
  336. package/dist/paper-core.d.ts +0 -1
  337. package/dist/paper-core.js +0 -25636
  338. package/dist/paper-core.min.js +0 -32
  339. package/dist/paper.d.ts +0 -10481
  340. package/examples/Animated/AnimatedStar.html +0 -53
  341. package/examples/Animated/BooleanOperations.html +0 -115
  342. package/examples/Animated/CandyCrash.html +0 -151
  343. package/examples/Animated/Extruded.html +0 -50
  344. package/examples/Animated/Lines.html +0 -53
  345. package/examples/Animated/Smoothing.html +0 -70
  346. package/examples/Animated/Space.html +0 -86
  347. package/examples/Animated/SpaceUsingShapes.html +0 -79
  348. package/examples/Games/Paperoids.html +0 -569
  349. package/examples/JSON/Circle Testing.html +0 -34
  350. package/examples/JSON/Compound Path.html +0 -25
  351. package/examples/JSON/Empty Path Testing.html +0 -31
  352. package/examples/JSON/Gradients.html +0 -34
  353. package/examples/JSON/Group Transform.html +0 -28
  354. package/examples/JSON/Line Testing.html +0 -44
  355. package/examples/JSON/Random Path Testing.html +0 -42
  356. package/examples/JSON/Raster.html +0 -29
  357. package/examples/JSON/Rect and Attribute Testing.html +0 -56
  358. package/examples/JSON/Rotated Primitives.html +0 -55
  359. package/examples/JSON/Selection.html +0 -43
  360. package/examples/JSON/Shapes.html +0 -54
  361. package/examples/JSON/Symbols.html +0 -30
  362. package/examples/JSON/Text Testing.html +0 -38
  363. package/examples/JSON/Tiger.html +0 -19
  364. package/examples/JSON/Transform Test 1.html +0 -32
  365. package/examples/JSON/Transform Test 2.html +0 -30
  366. package/examples/Node.js/AnimatedStar.js +0 -52
  367. package/examples/Node.js/BooleanOperations.js +0 -36
  368. package/examples/Node.js/JSONtoPDF.js +0 -20
  369. package/examples/Node.js/Raster.js +0 -32
  370. package/examples/Node.js/RasterRemote.js +0 -33
  371. package/examples/Node.js/SvgExport.js +0 -52
  372. package/examples/Node.js/SvgImport.js +0 -23
  373. package/examples/Node.js/Tadpoles.js +0 -16
  374. package/examples/Node.js/Tadpoles.pjs +0 -278
  375. package/examples/Node.js/in.json +0 -1
  376. package/examples/Node.js/in.svg +0 -16
  377. package/examples/Paperjs.org/BooleanOperattions.html +0 -115
  378. package/examples/Paperjs.org/BouncingBalls.html +0 -103
  379. package/examples/Paperjs.org/Chain.html +0 -54
  380. package/examples/Paperjs.org/DivisionRaster.html +0 -72
  381. package/examples/Paperjs.org/FutureSplash.html +0 -122
  382. package/examples/Paperjs.org/HitTesting.html +0 -103
  383. package/examples/Paperjs.org/InteractiveTiger.html +0 -777
  384. package/examples/Paperjs.org/LiveEffects.html +0 -366
  385. package/examples/Paperjs.org/MetaBalls.html +0 -132
  386. package/examples/Paperjs.org/NyanRainbow.html +0 -202
  387. package/examples/Paperjs.org/Offsetting.html +0 -379
  388. package/examples/Paperjs.org/PathIntersections.html +0 -76
  389. package/examples/Paperjs.org/Qbertify.html +0 -146
  390. package/examples/Paperjs.org/RadialRainbows.html +0 -80
  391. package/examples/Paperjs.org/RoundedRectangles.html +0 -41
  392. package/examples/Paperjs.org/SatieLikedToDraw.html +0 -140
  393. package/examples/Paperjs.org/Simplify.html +0 -63
  394. package/examples/Paperjs.org/SpiralRaster.html +0 -120
  395. package/examples/Paperjs.org/StrokeProfiles.html +0 -706
  396. package/examples/Paperjs.org/Tadpoles.html +0 -283
  397. package/examples/Paperjs.org/Voronoi.html +0 -134
  398. package/examples/Rasters/PhyllotaxisRaster.html +0 -96
  399. package/examples/Rasters/Raster.html +0 -34
  400. package/examples/Rasters/RotationRaster.html +0 -44
  401. package/examples/Rasters/Smoothing.html +0 -36
  402. package/examples/SVG Export/Circle Testing.html +0 -32
  403. package/examples/SVG Export/Clipping.html +0 -17
  404. package/examples/SVG Export/Compound Path.html +0 -22
  405. package/examples/SVG Export/Empty Path Testing.html +0 -28
  406. package/examples/SVG Export/Gradients.html +0 -52
  407. package/examples/SVG Export/Group Transform.html +0 -25
  408. package/examples/SVG Export/Line Testing.html +0 -41
  409. package/examples/SVG Export/Random Path Testing.html +0 -39
  410. package/examples/SVG Export/Raster.html +0 -21
  411. package/examples/SVG Export/Rect and Attribute Testing.html +0 -53
  412. package/examples/SVG Export/Rotated Primitives.html +0 -80
  413. package/examples/SVG Export/Shapes.html +0 -58
  414. package/examples/SVG Export/Symbols.html +0 -27
  415. package/examples/SVG Export/Text Testing.html +0 -45
  416. package/examples/SVG Export/Tiger.html +0 -23
  417. package/examples/SVG Export/Transform Test 1.html +0 -29
  418. package/examples/SVG Export/Transform Test 2.html +0 -27
  419. package/examples/SVG Import/Arcs.html +0 -78
  420. package/examples/SVG Import/Butterfly.html +0 -223
  421. package/examples/SVG Import/Circle and Ellipse Testing.html +0 -26
  422. package/examples/SVG Import/Clipping.html +0 -100
  423. package/examples/SVG Import/From File.html +0 -30
  424. package/examples/SVG Import/Gradient.html +0 -138
  425. package/examples/SVG Import/Gradients.html +0 -30
  426. package/examples/SVG Import/Inkscape Pivot.html +0 -52
  427. package/examples/SVG Import/Inkscape.html +0 -88
  428. package/examples/SVG Import/Line Testing.html +0 -24
  429. package/examples/SVG Import/MoreGradients.html +0 -107
  430. package/examples/SVG Import/Multiple Paths Test 1.html +0 -42
  431. package/examples/SVG Import/Multiple Paths Test 2.html +0 -33
  432. package/examples/SVG Import/Nested Groups Test.html +0 -78
  433. package/examples/SVG Import/Polybezier.html +0 -43
  434. package/examples/SVG Import/Rect Testing.html +0 -25
  435. package/examples/SVG Import/Symbols.html +0 -24
  436. package/examples/SVG Import/Testing.html +0 -40
  437. package/examples/SVG Import/Text Testing.html +0 -19
  438. package/examples/SVG Import/Tiger.html +0 -742
  439. package/examples/SVG Import/Transform Testing.html +0 -22
  440. package/examples/SVG Import/Viewbox.html +0 -38
  441. package/examples/Scripts/Arcs.html +0 -39
  442. package/examples/Scripts/AreaText.html +0 -65
  443. package/examples/Scripts/BlendModes.html +0 -77
  444. package/examples/Scripts/BooleanOperations.html +0 -937
  445. package/examples/Scripts/CompoundPath.html +0 -19
  446. package/examples/Scripts/CurveTimeParameterization.html +0 -61
  447. package/examples/Scripts/HslColor.html +0 -53
  448. package/examples/Scripts/PathStructure.html +0 -82
  449. package/examples/Scripts/PathTangents.html +0 -73
  450. package/examples/Scripts/PathText.html +0 -48
  451. package/examples/Scripts/Patterns.html +0 -57
  452. package/examples/Scripts/Resize.html +0 -42
  453. package/examples/Scripts/RoundRectangle.html +0 -28
  454. package/examples/Scripts/Shapes.html +0 -54
  455. package/examples/Scripts/StrokeBounds.html +0 -101
  456. package/examples/Scripts/StrokeScaling.html +0 -65
  457. package/examples/Scripts/TextRanges.html +0 -51
  458. package/examples/Tools/BezierTool.html +0 -90
  459. package/examples/Tools/Circles.html +0 -28
  460. package/examples/Tools/Clouds.html +0 -35
  461. package/examples/Tools/DrippingBrush.html +0 -73
  462. package/examples/Tools/FancyBrush.html +0 -82
  463. package/examples/Tools/Grid.html +0 -44
  464. package/examples/Tools/MultiLines.html +0 -44
  465. package/examples/Tools/MultipleTools.html +0 -44
  466. package/examples/Tools/PathEditing.html +0 -95
  467. package/examples/Tools/SquareRounded.html +0 -76
  468. package/examples/Tools/Stars.html +0 -38
  469. package/examples/Tools/Vektor.html +0 -200
  470. package/examples/Tools/Wave.html +0 -50
  471. package/examples/Tools/WormFarm.html +0 -88
  472. package/examples/Worker/Main.html +0 -53
  473. package/examples/Worker/Worker.js +0 -14
  474. package/examples/css/style.css +0 -12
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Paper.js - The Swiss Army Knife of Vector Graphics Scripting [![CI](https://github.com/paperjs/paper.js/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/paperjs/paper.js/actions/workflows/ci.yml) [![NPM](https://img.shields.io/npm/v/paper.svg)](https://www.npmjs.com/package/paper)
1
+ # Paper.js - The Swiss Army Knife of Vector Graphics Scripting [![CI](https://github.com/paperjs/paper.js/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/paperjs/paper.js/actions/workflows/ci.yml) [![NPM](https://img.shields.io/npm/v/paper.svg)](https://www.npmjs.com/package/paper)
2
2
 
3
3
  If you want to work with Paper.js, simply download the latest "stable" version
4
4
  from [http://paperjs.org/download/](http://paperjs.org/download/)
@@ -14,6 +14,9 @@ from [http://paperjs.org/download/](http://paperjs.org/download/)
14
14
  and [`prebuilt/dist`](https://github.com/paperjs/paper.js/tree/prebuilt/dist)
15
15
  branches.
16
16
 
17
+ Upgrading from Paper.js 0.17? [MIGRATION.md](MIGRATION.md) lists the changes in
18
+ 1.0 that can break existing code, and what to write instead.
19
+
17
20
  ## Installing Paper.js
18
21
 
19
22
  The recommended way to install and maintain Paper.js as a dependency in your
@@ -40,12 +43,11 @@ set it up with a canvas element:
40
43
 
41
44
  ```js
42
45
  import paper from 'paper'
43
- // Or, with CommonJS: const paper = require('paper')
44
46
 
45
47
  paper.setup(document.getElementById('canvas'))
46
48
 
47
49
  const { Path } = paper
48
- const circle = new Path.Circle({
50
+ const circle = Path.circle({
49
51
  center: paper.view.center,
50
52
  radius: 30,
51
53
  fillColor: 'red'
@@ -56,22 +58,48 @@ paper.view.onFrame = event => {
56
58
  }
57
59
  ```
58
60
 
59
- The module exports the global `paper` scope as its default export, with all
60
- classes as its properties. Use `paper.view` and `paper.project` after calling
61
- `paper.setup()`, rather than importing them, as they only exist from then on.
62
- To use the core version without PaperScript, import `'paper/dist/paper-core'`
63
- instead. With TypeScript, the default import requires `esModuleInterop`.
64
-
65
- ### Which Version to Use
66
-
67
- The various distributions come with two different pre-build versions of
68
- Paper.js, in minified and normal variants:
69
-
70
- - `paper-full.js` – The full version for the browser, including PaperScript
71
- support and Acorn.js
72
- - `paper-core.js` – The core version for the browser, without PaperScript
73
- support nor Acorn.js. You can use this to shave off some bytes and compilation
74
- time when working with JavaScript directly.
61
+ The default export is the `paper` object, with all classes as its properties,
62
+ and the classes are named exports too. Use `paper.view` and `paper.project`
63
+ after calling `paper.setup()`, rather than importing them, as they only exist
64
+ from then on.
65
+
66
+ ### Package Entries
67
+
68
+ The package has these entries:
69
+
70
+ - `paper` – The library with all its features, and the `paper` object as its
71
+ default export.
72
+ - `paper/core` – The classes only, without the `paper` object and without side
73
+ effects, so bundlers keep only what an app uses. Add the features it leaves
74
+ out with `use()`: `use(boolean, offset, svg)` with each imported from its
75
+ entry below, and `use(effects, tween, raster)` for live effects, tweens and
76
+ `rasterize()`, imported from `paper/core` itself.
77
+ - `paper/paperscript` – PaperScript, which adds the operators, and exports
78
+ `PaperScript` to compile, execute and load code. `PaperScript.load()` runs
79
+ the `<script type="text/paperscript">` tags of the page, which the script
80
+ files do on their own. It brings Acorn.js along.
81
+ - `paper/node` – The library on Node.js, see
82
+ [Using Paper.js on Node.js](#using-paperjs-on-nodejs).
83
+ - `paper/hosted` – The library for apps that keep a project's items in their
84
+ own documents, and load them on demand.
85
+ - `paper/svg` – SVG import and export, as `svg` for `use(svg)`.
86
+ - `paper/boolean` – Boolean operations on plain path data, without items, and
87
+ of path items as `boolean` for `use(boolean)`.
88
+ - `paper/offset` – Offsetting and outlining of plain path data, without items,
89
+ and of path items as `offset` for `use(offset)`.
90
+ - `paper/smoothing` – Smoothing and simplifying of plain path data.
91
+
92
+ ### Script Files
93
+
94
+ For `<script>` tags, the package also comes with three script files, in
95
+ minified and normal variants, which set the global `paper`:
96
+
97
+ - `dist/paper-full.js` – The full version, including PaperScript and Acorn.js.
98
+ - `dist/paper-slim.js` – The slim version, without PaperScript and Acorn.js.
99
+ You can use this to shave off some bytes and compilation time when working
100
+ with JavaScript directly.
101
+ - `dist/paper-hosted.js` – The full version with `paper/hosted`, for apps that
102
+ keep a project's items in their own documents, see `Project#host`.
75
103
 
76
104
  ### Installing Node.js and NPM
77
105
 
@@ -90,89 +118,56 @@ maintain multiple versions of Node.js on the same platform, as often required by
90
118
  different projects:
91
119
  <https://nodesource.com/blog/installing-node-js-tutorial-using-nvm-on-mac-os-x-and-ubuntu/>
92
120
 
93
- Homebrew is recommended on macOS also if you intend to install Paper.js with
94
- rendering to the Canvas on Node.js, as described in the next paragraph.
95
-
96
121
  For Linux, see <https://nodejs.org/download/> to locate 32-bit and 64-bit
97
122
  Node.js binaries as well as sources, or use NVM, as described in the paragraph
98
123
  above.
99
124
 
100
- ### Installing Paper.js Using NPM
101
-
102
- Paper.js comes in three different versions on NPM: `paper`, `paper-jsdom` and
103
- `paper-jsdom-canvas`. Depending on your use case, you need to required a
104
- different one:
105
-
106
- - `paper` is the main library, and can be used directly in a browser
107
- context, e.g. a web browser or worker.
108
- - `paper-jsdom` is a shim module for Node.js, offering headless use with SVG
109
- importing and exporting through [jsdom](https://github.com/tmpvar/jsdom).
110
- - `paper-jsdom-canvas` is a shim module for Node.js, offering canvas rendering
111
- through [Node-Canvas](https://github.com/Automattic/node-canvas) as well as
112
- SVG importing and exporting through [jsdom](https://github.com/tmpvar/jsdom).
113
-
114
- In order to install `paper-jsdom-canvas`, you need the [Cairo Graphics
115
- library](https://cairographics.org/) installed in your system:
116
-
117
- ### Installing Native Dependencies
118
-
119
- Paper.js relies on [Node-Canvas](https://github.com/Automattic/node-canvas) for
120
- rendering, which in turn relies on the native libraries
121
- [Cairo](https://cairographics.org/) and [Pango](https://www.pango.org/).
122
-
123
- #### Installing Native Dependencies on macOS
124
-
125
- Paper.js relies on Node-Canvas for rendering, which in turn relies on Cairo and
126
- Pango. The easiest way to install Cairo is through
127
- [Homebrew](https://brew.sh/), by issuing the command:
128
-
129
- brew install cairo pango
130
-
131
- Note that currently there is an issue on macOS with Cairo. If the above causes
132
- errors, the following will most likely fix it:
133
-
134
- PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/ npm install paper
135
-
136
- Also, whenever you would like to update the modules, you will need to execute:
137
-
138
- PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/ npm update
139
-
140
- If you keep forgetting about this requirement, or would like to be able to type
141
- simple and clean commands, add this to your `.bash_profile` file:
142
-
143
- # PKG Config for Pango / Cairo
144
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig
125
+ ### Using Paper.js on Node.js
145
126
 
146
- After adding this line, your commands should work in the expected way:
127
+ On Node.js, Paper.js draws through
128
+ [happy-dom](https://github.com/capricorn86/happy-dom) and
129
+ [@napi-rs/canvas](https://github.com/Brooooooklyn/canvas), which come with
130
+ prebuilt binaries and need no native libraries. Install them next to Paper.js:
147
131
 
148
- npm install paper
149
- npm update
132
+ npm install paper happy-dom @napi-rs/canvas
150
133
 
151
- #### Installing Native Dependencies on Debian/Ubuntu Linux
134
+ Then import the `paper/node` entry, which sets up a window for Paper.js to draw
135
+ in:
152
136
 
153
- sudo apt-get install pkg-config libcairo2-dev libpango1.0-dev libssl-dev libjpeg62-dev libgif-dev
154
-
155
- You might also need to install the build-essential package if you don't usually
156
- build from c++ sources:
157
-
158
- sudo apt-get install build-essential
137
+ ```js
138
+ import paper from 'paper/node'
159
139
 
160
- #### Installing Native Dependencies for Electron
140
+ paper.setup(new paper.Size(300, 200))
141
+ paper.Path.circle({ center: [150, 100], radius: 50, fillColor: 'red' })
142
+ await paper.view.exportImage('circle.png')
143
+ ```
161
144
 
162
- In order to build Node-Canvas for use of `paper-jsdom-canvas` in Electron, which
163
- is likely to use a different version of V8 than the Node binary installed in
164
- your system, you need to manually specify the location of Electron’s headers.
165
- Follow these steps to do so:
145
+ Views on Node.js can write their image with `exportImage(path)`, and the frames
146
+ of their animation with `exportFrames(options)`. Fonts for text are registered
147
+ with the exported `GlobalFonts`, e.g.
148
+ `GlobalFonts.registerFromPath('fonts/Inter.ttf', 'Inter')`. Paper.js needs
149
+ Node.js 22.22 or newer.
166
150
 
167
- [Electron — Using Native Node
168
- Modules](https://electron.atom.io/docs/tutorial/using-native-node-modules/)
151
+ #### Running PaperScript on Node.js
169
152
 
170
- #### After Native Dependencies have been installed
153
+ PaperScript files run in a scope of their own: set one up, and execute the
154
+ file's code in it:
171
155
 
172
- You should now be able to install the Paper.js module with jsdom and Canvas
173
- rendering from NPM:
156
+ ```js
157
+ import { readFile } from 'node:fs/promises'
158
+ import paper, { PaperScope } from 'paper/node'
159
+ import { PaperScript } from 'paper/paperscript'
160
+
161
+ const scope = new PaperScope()
162
+ scope.setup(new paper.Size(300, 200))
163
+ PaperScript.execute(await readFile('drawing.pjs', 'utf8'), scope, {
164
+ url: 'drawing.pjs'
165
+ })
166
+ await scope.view.exportImage('drawing.png')
167
+ ```
174
168
 
175
- npm install paper-jsdom-canvas
169
+ Version 0.17 also ran `.pjs` files through `require()`, which ES modules don't
170
+ support.
176
171
 
177
172
  ## Development
178
173
 
@@ -197,8 +192,9 @@ run:
197
192
 
198
193
  ### Setting Up For Building
199
194
 
200
- Paper.js uses [Gulp.js](https://gulpjs.com/) for building, and has a couple of
201
- dependencies as NPM modules. Read the chapter [Installing Node.js and
195
+ Paper.js is written in TypeScript, builds with
196
+ [Rolldown](https://rolldown.rs/), and has a couple of dependencies as NPM
197
+ modules. Read the chapter [Installing Node.js and
202
198
  NPM](#installing-nodejs-and-npm) if you still need to install these.
203
199
 
204
200
  Development uses [pnpm](https://pnpm.io/), which needs to be installed too. See
@@ -213,73 +209,74 @@ following commands from the Paper.js directory:
213
209
  ### Building the Library
214
210
 
215
211
  The Paper.js sources are distributed across many separate files, organised in
216
- subfolders inside the `src` folder. To compile them all into distributable
217
- files, you can run the `build` task:
212
+ subfolders inside the `src` folder. To build them into the distributed files,
213
+ run:
218
214
 
219
215
  pnpm build
220
216
 
221
- You will then find the built library files inside the `dist` folder, named
222
- `paper-full.js` and `paper-core.js`, along with their minified versions. Read
223
- more about this in [Which Version to Use?](#which-version-to-use).
217
+ You will then find the ES modules of the entries in `dist/esm`, their type
218
+ declarations in `dist/types`, and the script files `paper-full.js` and
219
+ `paper-slim.js` in `dist`, along with their minified versions.
220
+ Read more about this in [Script Files](#script-files).
224
221
 
225
- ### Running Directly from Separate Source Files
222
+ ### Running Directly from the Sources
226
223
 
227
- As a handy alternative to building the library after each change to try it out
228
- in your scripts, there is the `load` task, that replaces the built libraries
229
- with symbolic links to the `scrc/load.js` script. This script then load the
230
- library directly from all the separate source files in the `src` folder, through
231
- the [Prepro.js](https://github.com/lehni/prepro.js) JavaScript preprocessing
232
- library.
224
+ The sources are ES modules in TypeScript that Node.js runs without a build,
225
+ and so do the tests, so changes can be tried without building the library.
233
226
 
234
- This means you can switch between loading from sources and loading a built
235
- library simply by running.
227
+ Browsers need the script files, which the examples load from `dist`. To rebuild
228
+ them on every change in the sources, run:
236
229
 
237
- pnpm load
230
+ pnpm watch
238
231
 
239
- And to go back to a built library
232
+ ### Building the Documentation
240
233
 
241
- pnpm build
234
+ The reference is built from the doc comments in the sources, after building the
235
+ library, whose script file runs the examples in it:
242
236
 
243
- Note that your PaperScripts examples do not need to change, they can keep
244
- loading `dist/paper-full.js`, which will always do the right thing. Note also
245
- that `src/load.js` handles both browsers and Node.js, as supported by Prepro.js.
237
+ pnpm build:docs
246
238
 
247
- ### Other Build Tasks
239
+ You will then find the offline docs in `dist/docs`, and the fragments of the
240
+ website's reference in `dist/serverdocs`.
248
241
 
249
- Create a final zipped distribution file inside the `dist` folder:
242
+ ### Other Build Tasks
250
243
 
251
- pnpm dist
244
+ Create a zipped distribution file of the script files, the examples and the
245
+ offline docs inside the `dist` folder, after building them:
252
246
 
253
- ### Branch structure
247
+ pnpm zip
254
248
 
255
- Since the release of version `0.9.22`, Paper.js has adopted aspects of the Git-
256
- Flow workflow. All development is taking place in the
257
- [`develop`](https://github.com/paperjs/paper.js/tree/develop) branch, which is
258
- only merged into [`main`](https://github.com/paperjs/paper.js/tree/main)
259
- when a new release occurs.
249
+ Release the version in `package.json` from the `main` branch, or from a
250
+ maintenance branch, see below, which commits, tags and pushes it for the
251
+ release workflow to build and publish:
260
252
 
261
- As of version `0.9.26`, the `dist` folder is excluded on all branches, and the
262
- building is now part of the `pnpm publish` process by way of the `prepublish`
263
- script.
253
+ pnpm release
264
254
 
265
- We also offer prebuilt versions of the latest state of the `develop` branch on
266
- [`prebuilt/module`](https://github.com/paperjs/paper.js/tree/prebuilt/module)
267
- and [`prebuilt/dist`](https://github.com/paperjs/paper.js/tree/prebuilt/dist).
255
+ ### Branch structure
268
256
 
269
- ### Building the Documentation
257
+ All development is taking place in the
258
+ [`main`](https://github.com/paperjs/paper.js/tree/main) branch, through pull
259
+ requests. Each release is a tag on it, such as `v1.0.0`. The `develop` branch
260
+ that earlier versions were developed in stays at the state where `main` took
261
+ over until version `1.0.0`, and is removed then. Clones that track `main` from
262
+ before 1.0 reset it once: `git fetch && git reset --hard origin/main`.
270
263
 
271
- Similarly to building the library, you can run the `docs` task to build the
272
- documentation:
264
+ Fixes for earlier versions go to maintenance branches such as `release/0.17`,
265
+ started from the tag of the version that they fix, where `pnpm release`
266
+ releases them too. npm only makes a release `latest` if it is newer than the
267
+ current one, and publishes older ones under `legacy`.
273
268
 
274
- pnpm docs
269
+ The `dist` folder is excluded on all branches, and the release workflow on
270
+ GitHub Actions builds the library from the tag of each release.
275
271
 
276
- Your docs will then be located at `dist/docs`.
272
+ We also offer prebuilt versions of the latest state of the `main` branch on
273
+ [`prebuilt/module`](https://github.com/paperjs/paper.js/tree/prebuilt/module)
274
+ and [`prebuilt/dist`](https://github.com/paperjs/paper.js/tree/prebuilt/dist).
277
275
 
278
276
  ### Testing
279
277
 
280
278
  The tests run with [Vitest](https://vitest.dev/), on Node.js and in Chromium
281
- through [Playwright](https://playwright.dev/), against the library built from
282
- the sources:
279
+ through [Playwright](https://playwright.dev/), on the sources:
283
280
 
284
281
  pnpm test
285
282
 
@@ -292,10 +289,8 @@ The browser tests need Chromium for Playwright, which this installs once:
292
289
 
293
290
  pnpm exec playwright install chromium
294
291
 
295
- Once the library is built in `dist`, the tests run against that instead. Select
296
- another build than `paper-full.js` with `PAPER_BUILD`, e.g.
297
- `PAPER_BUILD=hosted pnpm test:node`. Vitest also runs single files, and watches
298
- for changes with `pnpm exec vitest`.
292
+ Vitest also runs single files, and watches for changes with
293
+ `pnpm exec vitest`.
299
294
 
300
295
  The screenshot tests in `test/screenshots` compare what the library draws with
301
296
  reference images. Rendering differs between systems, so they run in Playwright's
@@ -352,8 +347,8 @@ As mentioned above, we prefer that you send a
352
347
  2. Clone of your repository: `git clone
353
348
  https://yourusername@github.com/yourusername/paper.js.git`
354
349
 
355
- 3. This is important: Create a so-called *topic branch* based on the `develop`
356
- branch: `git checkout -tb name-of-my-patch develop` where `name-of-my-patch`
350
+ 3. This is important: Create a so-called *topic branch* based on the `main`
351
+ branch: `git checkout -tb name-of-my-patch main` where `name-of-my-patch`
357
352
  is a short but descriptive name of the patch you're about to create. Don't
358
353
  worry about the perfect name though -- you can change this name at any time
359
354
  later on.
@@ -365,14 +360,13 @@ As mentioned above, we prefer that you send a
365
360
 
366
361
  5. Send a pull request to the upstream repository's owner by visiting your
367
362
  repository's site at GitHub (i.e. https://github.com/yourusername/paper.js)
368
- and press the "Pull Request" button. Make sure you are creating the pull
369
- request to the `develop` branch, not the `main` branch. Here's a good guide
370
- on pull requests: <https://help.github.com/articles/about-pull-requests/>
363
+ and press the "Pull Request" button, for a pull request to the `main`
364
+ branch. Here's a good guide on pull requests: <https://help.github.com/articles/about-pull-requests/>
371
365
 
372
366
  ##### Use one topic branch per feature:
373
367
 
374
368
  Don't mix different kinds of patches in the same branch. Instead, merge them all
375
- together into your `develop` branch (or develop everything in your `develop`
369
+ together into your `main` branch (or develop everything in your `main`
376
370
  branch and then cherry-pick-and-merge into the different topic branches). Git
377
371
  provides for an extremely flexible workflow, which in many ways causes more
378
372
  confusion than it helps you when new to collaborative software development. The
@@ -388,4 +382,4 @@ For a list of authors and contributors, please see
388
382
 
389
383
  Distributed under the MIT license. See
390
384
  [LICENSE](https://github.com/paperjs/paper.js/blob/main/LICENSE.txt)
391
- for details.
385
+ for details.