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