Konva 基本操作
創建舞臺
? ? new? Konva.stage({
? ? ? ? container:""
? ? ? ? width:
? ? ? ? height:
? ? })
創建層
? ? new Konva.Layer({
? ? })
創建組
? ? new Konva.Group({
? ? })
Konva基本圖形
? ? rect
? ? star
? ? line
? ? ....
動畫系統
Tween 配置
? ? new Tween({
? ? ? ? node: shape,
? ? ? ? duration:
? ? ? ? easing:
? ? ? ? yoyo:
? ? ? ? onFinish:function(){
? ? ? ? }
? ? ? ? /*要變的參數*/
? ? })
Tween對象的方法
? ? paly()
? ? pause()
? ? reset()
? ? reverse()
? ? finsh()
to方法
? ? Animation