js-draw 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/bundle.js +1 -1
  3. package/dist/src/Editor.d.ts +2 -2
  4. package/dist/src/EditorImage.d.ts +1 -1
  5. package/dist/src/EventDispatcher.d.ts +1 -1
  6. package/dist/src/SVGLoader.d.ts +2 -2
  7. package/dist/src/UndoRedoHistory.d.ts +2 -2
  8. package/dist/src/Viewport.d.ts +1 -1
  9. package/dist/src/commands/SerializableCommand.d.ts +1 -1
  10. package/dist/src/components/AbstractComponent.d.ts +4 -3
  11. package/dist/src/components/AbstractComponent.js +6 -0
  12. package/dist/src/components/ImageComponent.d.ts +1 -0
  13. package/dist/src/components/ImageComponent.js +4 -0
  14. package/dist/src/components/SVGGlobalAttributesObject.d.ts +1 -1
  15. package/dist/src/components/Stroke.d.ts +2 -0
  16. package/dist/src/components/Stroke.js +5 -0
  17. package/dist/src/components/TextComponent.d.ts +1 -0
  18. package/dist/src/components/TextComponent.js +3 -0
  19. package/dist/src/components/builders/FreehandLineBuilder.js +4 -3
  20. package/dist/src/components/builders/PressureSensitiveFreehandLineBuilder.js +1 -1
  21. package/dist/src/components/builders/types.d.ts +1 -1
  22. package/dist/src/components/util/StrokeSmoother.d.ts +1 -1
  23. package/dist/src/components/util/StrokeSmoother.js +11 -7
  24. package/dist/src/math/Mat33.d.ts +3 -1
  25. package/dist/src/math/Mat33.js +7 -0
  26. package/dist/src/math/Path.d.ts +1 -1
  27. package/dist/src/math/Path.js +3 -0
  28. package/dist/src/math/Vec2.d.ts +2 -2
  29. package/dist/src/rendering/Display.js +5 -2
  30. package/dist/src/rendering/caching/RenderingCache.js +5 -1
  31. package/dist/src/rendering/caching/RenderingCacheNode.js +5 -2
  32. package/dist/src/rendering/caching/testUtils.d.ts +1 -1
  33. package/dist/src/rendering/caching/testUtils.js +1 -1
  34. package/dist/src/rendering/caching/types.d.ts +4 -4
  35. package/dist/src/toolbar/IconProvider.d.ts +3 -2
  36. package/dist/src/toolbar/IconProvider.js +23 -3
  37. package/dist/src/toolbar/localization.d.ts +1 -0
  38. package/dist/src/toolbar/localization.js +1 -0
  39. package/dist/src/toolbar/makeColorInput.d.ts +2 -2
  40. package/dist/src/toolbar/widgets/BaseWidget.d.ts +1 -1
  41. package/dist/src/toolbar/widgets/PenToolWidget.js +2 -1
  42. package/dist/src/tools/BaseTool.js +4 -4
  43. package/dist/src/tools/PanZoom.js +13 -3
  44. package/dist/src/tools/PipetteTool.d.ts +1 -1
  45. package/dist/src/tools/SelectionTool/SelectionHandle.d.ts +3 -3
  46. package/dist/src/tools/ToolbarShortcutHandler.d.ts +1 -1
  47. package/dist/src/types.d.ts +8 -8
  48. package/package.json +1 -1
  49. package/src/components/AbstractComponent.ts +8 -0
  50. package/src/components/ImageComponent.ts +5 -0
  51. package/src/components/Stroke.ts +11 -0
  52. package/src/components/TextComponent.ts +4 -0
  53. package/src/components/builders/FreehandLineBuilder.ts +4 -3
  54. package/src/components/builders/PressureSensitiveFreehandLineBuilder.ts +1 -1
  55. package/src/components/util/StrokeSmoother.ts +14 -11
  56. package/src/math/Mat33.ts +9 -0
  57. package/src/math/Path.ts +4 -0
  58. package/src/rendering/Display.ts +7 -2
  59. package/src/rendering/caching/RenderingCache.ts +10 -2
  60. package/src/rendering/caching/RenderingCacheNode.ts +6 -2
  61. package/src/rendering/caching/testUtils.ts +2 -2
  62. package/src/rendering/caching/types.ts +2 -2
  63. package/src/toolbar/IconProvider.ts +28 -3
  64. package/src/toolbar/localization.ts +3 -0
  65. package/src/toolbar/widgets/PenToolWidget.ts +3 -1
  66. package/src/tools/PanZoom.ts +16 -3
  67. package/.firebase/hosting.ZG9jcw.cache +0 -338
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 0.10.2
2
+ * Performance improvements
3
+
4
+ # 0.10.1
5
+ * Different icons for rounded pens.
6
+ * Bug fixes
7
+ * Different pen types, for the same size, previously had different actual widths.
8
+ * Inertial touchscreen scrolling previously sometimes started even if the initiating gesture was, just before stopping, stationary for several seconds.
9
+
1
10
  # 0.10.0
2
11
  * Inertial touchscreen scrolling.
3
12
  * Bug fixes