File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ const Canvas = class extends React.Component {
121
121
## List of Props
122
122
123
123
| Props | Expected datatype | Default value | Description |
124
- | ---------------------------------- | ----------------- | --------------------- | --------------------------------------------------------------------------------------------------- |
124
+ | ------------------------------------ | ------------------- | --------------------- | ----------------------------------------------------------------------------------------------------- |
125
125
| width | PropTypes.string | 100% | canvas width (em/rem/px) |
126
126
| height | PropTypes.string | 100% | canvas width (em/rem/px) |
127
127
| id | PropTypes.string | "react-sketch-canvas" | ID field to uniquely identify a SVG canvas (Supports multiple canvases in a single page) |
@@ -136,6 +136,7 @@ const Canvas = class extends React.Component {
136
136
| allowOnlyPointerType | PropTypes.string | all | allow pointer type ("all"/"mouse"/"pen"/"touch") |
137
137
| onChange | PropTypes.func | | Returns the current sketch path in ` CanvasPath ` type on every path change |
138
138
| onStroke | PropTypes.func | | Returns the the last stroke path and whether it is an eraser stroke on every pointer up event |
139
+ | scrollOnTouch | PropTypes.bool | false | Scroll overflowing component instead of sketching if pointerType === touch |
139
140
| style | PropTypes.object | false | Add CSS styling as CSS-in-JS object |
140
141
| svgStyle | PropTypes.object | {} | Add CSS styling as CSS-in-JS object for the SVG |
141
142
| withTimestamp | PropTypes.bool | false | Add timestamp to individual strokes for measuring sketching time |
You can’t perform that action at this time.
0 commit comments