-
Theo như bài trên diễn đàn thì mình xài group để gom nhóm đối tượng cần hiển thị ưu tiên theo thứ tự và nhìn nó logic.
http://www.html5gamedevs.com/topic/14729-how-to-set-z-index-for-a-sprite/
cái …
-
I tested a simple page with my iPad mini2 (iOS version: 10.2.1) and iPhone6 Plus (iOS version: 10.2.1). I added three images into one layer. Then I tried to drag images. Sometimes I can dragged all of…
-
I tried to migrate from KineticJS to KonvaJS, and found out, that draggable layers will not get the click or dblclick event. I think (cannot confirm now), that tap and dbltap would also not work.
-
Konva is awesome.
However, konva from npm is an all-in-one file, not every part is used in our project.
Is there anyway to require files like this?
```
npm install konva
# app.js
let Konva = requir…
beata updated
7 years ago
-
Hello -
I have a draggable stage which has a scale property. I've hooked the scale property to change based on the mousewheel event and it's looking good.
The issue I'm facing is that the canva…
-
I had a Layer with some Rectangles and Circles.
I will update the layer periodically.
(Remove all Rectangles and Circles and then add them).
(Due to these Rectangles and Circles maybe different)
…
-
I'd like to see a demo where screen size changes and canvas would adjust (responsive design). I think it would be a very useful demo because today applications have to adapt their size to many screen …
ghost updated
7 years ago
-
-
Works:
```
var layer = new Konva.Layer({
draggable: true,
dragBoundFunc : function(pos) {
return {
x: this.getAbsolutePosition().x,
y: pos.y
}
}});
```
Doesn't work:
```
var …
-
Hi,
how can I add different kind of Text (for example one text is bold, the other one not) to a Konva.Label (https://konvajs.github.io/docs/shapes/Label.html) or is it even possbile?
Also I would ne…