You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix:improve history behavior
Close#170
* fix:fixed cannot undo to empty state bug
* fix:improve loadPath function
When using loadPath, set to the initial value of history
* fix timing issue with setting history
* add test for undo after clear
* Fix undo behavior with loadPaths and add tests
* Fix reset canvas history logic
* Use event queue for undo/redo/etc.
* Fix order of operations
* refactor: standardize string quotes and improve callback formatting
---------
Co-authored-by: heruiwoniou <[email protected]>
Co-authored-by: Vinoth Pandian <[email protected]>
| id | PropTypes.string | "react-sketch-canvas" | ID field to uniquely identify a SVG canvas (Supports multiple canvases in a single page) |
116
+
| className | PropTypes.string | "" | Class for using with CSS selectors |
117
+
| strokeColor | PropTypes.string | black | Pen color |
118
+
| canvasColor | PropTypes.string | white | canvas color (HTML colors) |
119
+
| backgroundImage | PropTypes.string | '' | Set SVG background with image URL |
120
+
| exportWithBackgroundImage | PropTypes.bool | false | Keep background image on image/SVG export (on false, canvasColor will be set as background) |
121
121
| preserveBackgroundImageAspectRatio | PropTypes.string | none | Set aspect ratio of the background image. For possible values check [MDN docs][preserveaspectratio]|
| id | PropTypes.string | "react-sketch-canvas" | ID field to uniquely identify a SVG canvas (Supports multiple canvases in a single page) |
116
+
| className | PropTypes.string | "" | Class for using with CSS selectors |
117
+
| strokeColor | PropTypes.string | black | Pen color |
118
+
| canvasColor | PropTypes.string | white | canvas color (HTML colors) |
119
+
| backgroundImage | PropTypes.string | '' | Set SVG background with image URL |
120
+
| exportWithBackgroundImage | PropTypes.bool | false | Keep background image on image/SVG export (on false, canvasColor will be set as background) |
121
121
| preserveBackgroundImageAspectRatio | PropTypes.string | none | Set aspect ratio of the background image. For possible values check [MDN docs][preserveaspectratio]|
0 commit comments