Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中使用KonvaJS。我需要有这样的箭头:
箭头将位于两个形状之间。形状是可拖动的。箭头线的长度应随着用户拖动形状而增加或减少。作为一种解决方法,我Konva.Arrow在这个plunkr中使用了两个实例。但是我不想使用两个实例,因为当用户拖动形状时很难管理它们的位置。我不知道我该怎么做。
Konva.Arrow
只有一种方法可以实现您自己Arrow使用Konva.Shape http://konvajs.github.io/docs/shapes/Custom.html
Arrow
Konva.Shape