konvajs / ng2-konva

Angular & Canvas - JavaScript library for drawing complex canvas graphics using Angular.
http://rafaelescala.com/ng2-konva/
119 stars 33 forks source link

Demo for Angular Konva not working as intended #24

Open raparri01 opened 5 years ago

raparri01 commented 5 years ago

On the page for the ng2-konva library, the "Draggable Star" demo is not reflecting the item config changes within the handleDragStart and handleDragEnd functions. It appears that ngComponent.config.next({ shadowOffsetX: 15, shadowOffsetY: 15, scaleX: ngComponent.getConfig().startScale * 1.2, scaleY: ngComponent.getConfig().startScale * 1.2, });

and

shape.to({ duration: 0.5, easing: Konva.Easings.ElasticEaseOut, scaleX: ngComponent.getConfig().startScale, scaleY: ngComponent.getConfig().startScale, shadowOffsetX: 5, shadowOffsetY: 5 });

are not being applied on drag and drop.