0
KineticJS를 사용하여 오프셋 된 객체를 움직일 수 있습니까?움직이지 않고 KineticJS 이미지의 오프셋을 설정하십시오.
//this moves it
img.offsetX(100);
//this also moves it
img.offset({x:100,y:0};
ive 시도;
img.setoffset({x:100,y:100});
하지만 아무것도하지 않는 것 같습니다.
내가 이미지를 만들 때 오프셋을 설정할 수 있다는 것을 알고 있습니다.
var newImg = new Kinetic.Image({
x: x,
y: y,
image: imgObject,
name: 'image',
offset: {x:offX, y:offY}
})