Skip to content

Commit

Permalink
fix changeColor() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lilitsimonyan98 committed Dec 18, 2019
1 parent 8adb503 commit bca423f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-image-markup",
"version": "1.0.0",
"description": "Vue Image Markup",
"version": "1.0.1",
"description": "vue-image-markup will provide you to edit uploaded image easily and save it.",
"main": "src/Editor.vue",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/assets/js/arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ export default (function () {

if(color && color !== params.stroke){
color = params.stroke;
drag = true;
// drag = true;
new Arrow(canvas,draggable,params)
return Arrow;
}

properties = params;
if(properties){
fillArrow = params.fill;
Expand Down
6 changes: 4 additions & 2 deletions src/assets/js/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ export default (function () {
}
if(color && color !== params.stroke){
color = params.stroke;
shape = type;
new Shape(canvas,true,shape,params)
return Shape;
}
if((shape && shape !== type) ){
if((shape && shape !== type)){
shape = type;
drag = true;
new Shape(canvas,draggable,shape,params)
new Shape(canvas,true,shape,params)
return Shape;
}
properties = params;
Expand Down

0 comments on commit bca423f

Please sign in to comment.