We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3bcd97 commit 246a60fCopy full SHA for 246a60f
src/SketchField.jsx
@@ -457,6 +457,11 @@ class SketchField extends PureComponent {
457
return discarded
458
};
459
460
+ hasSelection = () => {
461
+ let canvas = this._fc;
462
+ return !!canvas.getActiveObject();
463
+ }
464
+
465
/**
466
* Remove selected object from the canvas
467
*/
types/index.d.ts
@@ -154,6 +154,8 @@ declare module 'react-sketch' {
154
155
clear(propertiesToInclude?: ArrayLike<string>): string
156
157
+ hasSelection(): boolean
158
159
160
161
0 commit comments