Showing
1 changed file
with
0 additions
and
6 deletions
... | @@ -8,10 +8,6 @@ class Brush extends ComponentInterface { | ... | @@ -8,10 +8,6 @@ class Brush extends ComponentInterface { |
8 | this.color = new Color(fabricObj.stroke); | 8 | this.color = new Color(fabricObj.stroke); |
9 | this.paths = fabricObj.path; | 9 | this.paths = fabricObj.path; |
10 | this.size = fabricObj.strokeWidth; | 10 | this.size = fabricObj.strokeWidth; |
11 | - this.position = { | ||
12 | - top: fabricObj.top, | ||
13 | - left: fabricObj.left, | ||
14 | - }; | ||
15 | } | 11 | } |
16 | 12 | ||
17 | getCurrentFabricObject() { | 13 | getCurrentFabricObject() { |
... | @@ -24,8 +20,6 @@ class Brush extends ComponentInterface { | ... | @@ -24,8 +20,6 @@ class Brush extends ComponentInterface { |
24 | paths[paths.length - 1][0] = "L"; | 20 | paths[paths.length - 1][0] = "L"; |
25 | } | 21 | } |
26 | return new fabric.Path(paths, { | 22 | return new fabric.Path(paths, { |
27 | - top: this.position.top, | ||
28 | - left: this.position.left, | ||
29 | stroke: this.color.getRgba(), | 23 | stroke: this.color.getRgba(), |
30 | strokeWidth: this.size, | 24 | strokeWidth: this.size, |
31 | }); | 25 | }); | ... | ... |
-
Please register or login to post a comment