ding-image-editor 3.15.8 → 3.15.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for TOAST UI Image Editor v3.15.3
1
+ // Type definitions for TOAST UI Image Editor v3.15.8
2
2
  // TypeScript Version: 3.2.2
3
3
 
4
4
  declare namespace tuiImageEditor {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ding-image-editor",
3
- "version": "3.15.8",
3
+ "version": "3.15.9",
4
4
  "description": "TOAST UI ImageEditor",
5
5
  "keywords": [
6
6
  "nhn",
@@ -57,7 +57,10 @@ class FreeDrawing extends Component {
57
57
  * @param {{width: ?number, color: ?string}} [setting] - Brush width & color
58
58
  */
59
59
  setBrush(setting) {
60
- const brush = this.getCanvas().freeDrawingBrush;
60
+ const canvas = this.getCanvas()
61
+ let pencilBrush = new fabric.PencilBrush(canvas)
62
+ canvas.freeDrawingBrush = pencilBrush;
63
+ const brush = canvas.freeDrawingBrush;
61
64
 
62
65
  setting = setting || {};
63
66
  this.width = setting.width || this.width;
@@ -85,8 +88,6 @@ class FreeDrawing extends Component {
85
88
  */
86
89
  setMosaic(setting) {
87
90
 
88
- // this.imageEditor = setting.imageEditor;
89
- // this.width = setting.width;
90
91
  const canvas = this.getCanvas();
91
92
  canvas.selection = false;
92
93
  canvas.isDrawingMode = true;