File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-image-markup" ,
3- "version" : " 3.0.4 " ,
3+ "version" : " 3.0.5 " ,
44 "description" : " vue-image-markup will provide you to edit uploaded image easily and save it." ,
55 "main" : " src/Editor.vue" ,
66 "repository" : {
Original file line number Diff line number Diff line change 105105 this .cancelCroppingImage ()
106106 },
107107 set (type , params ) {
108- this .canvas .off (" mouse:down" );
108+ this .canvas .off (' mouse:down' );
109109 switch (type) {
110110 case " text" :
111111 this .currentActiveTool = type;
245245 case ' eraser' :
246246 this .currentActiveTool = type;
247247 let inst = this ;
248+ this .canvas .isDrawingMode = false ;
249+ inst .selectable = true ;
248250 this .canvas .on (" mouse:down" , function () {
249251 if (inst .canvas .getActiveObject ()) {
250- inst .canvas .remove (inst .canvas .getActiveObject ())
252+ inst .canvas .remove (inst .canvas .getActiveObject ());
253+ new CanvasHistory (inst .canvas )
251254 }
252255 });
253256 break ;
467470
468471 }
469472 </script >
470- <style >
471-
472- </style >
You can’t perform that action at this time.
0 commit comments