44
55### Added
66
7- - Upgraded all dependencies
8- - Moved to DTS (tsdx fork) instead of nx
9- - Add cypress tests
7+ - Add cypress tests for all props and events
108- Added ` onStroke ` prop to get last stroke on pointer up
119- Adds a point on click (without moving) #45
12- - Fix partial transparent erase (eraser stroke color changed to black for masking) #44
10+
11+ ### Changed
12+
13+ - Upgraded all dependencies
14+ - Moved to DTS (tsdx fork) instead of nx
15+ - Switched codebase to hook based implementation (support react >= 16.8)
16+ - Removed immer dependency
1317
1418### Fixed
1519
1620- Changed React import to \* from React #40
1721- Export image fails when the background is not an image [ beta] #46
22+ - Fix partial transparent erase (eraser stroke color changed to black for masking, add maskUnits) #44
1823
1924### Breaking changes
2025
@@ -119,7 +124,7 @@ Added README :)
119124
120125- Fixed sketch offset issue when the canvas is scrolled
121126
122- #### Changed
127+ ### Changed
123128
124129- Updated undo/redo/reset strategy
125130- Updated demo in storybook
@@ -137,13 +142,13 @@ Added README :)
137142
138143## [ 3.0.1]
139144
140- #### Changed
145+ ### Changed
141146
142147- Moved immutable dependency from Canvas file
143148
144149## [ 3.0.0]
145150
146- #### Changed
151+ ### Changed
147152
148153Removed onUpdate feature and made the system modular
149154
@@ -189,7 +194,7 @@ allowOnlyPointerType
189194- Export and load paths
190195- Erase mode and eraser width
191196
192- #### Changed
197+ ### Changed
193198
194199- Rename exportAsImage() to exportImage() for naming consistency
195200
0 commit comments