@@ -13,10 +13,10 @@ class ZKNode {
1313 String id = "" ;
1414 String type = "ZKNode" ;
1515
16- Point position = new Point (0.0 , 0.0 );
17- Point anchor = new Point (0.5 , 0.5 );
18- Point scale = new Point (1.0 , 1.0 );
19- Point skew = new Point (0.0 , 0.0 );
16+ Point position = Point (0.0 , 0.0 );
17+ Point anchor = Point (0.5 , 0.5 );
18+ Point scale = Point (1.0 , 1.0 );
19+ Point skew = Point (0.0 , 0.0 );
2020
2121 double oriWidth = 0 ;
2222 double oriHeight = 0 ;
@@ -28,24 +28,24 @@ class ZKNode {
2828 ZKNode ? parent;
2929 Canvas ? canvas;
3030 Data data = Data ();
31- Paint paint = new Paint ();
31+ Paint paint = Paint ();
3232
3333 ZKContext ? context;
3434 dynamic expansion;
3535 double worldAlpha = 1 ;
3636
37- Matrix matrix = new Matrix ();
37+ Matrix matrix = Matrix ();
3838 double _alpha = 1 ;
3939 bool _debug = false ;
4040 Color ? _color;
4141
4242 ZKNode () {
4343 this .id = Util .uuid ();
44- // this.position = new Point(0.0, 0.0);
45- // this.anchor = new Point(0.5, 0.5);
46- // this.scale = new Point(1.0, 1.0);
47- // this.skew = new Point(0.0, 0.0);
48- // this.matrix = new Matrix();
44+ // this.position = Point(0.0, 0.0);
45+ // this.anchor = Point(0.5, 0.5);
46+ // this.scale = Point(1.0, 1.0);
47+ // this.skew = Point(0.0, 0.0);
48+ // this.matrix = Matrix();
4949
5050 this .init ();
5151 }
@@ -55,7 +55,7 @@ class ZKNode {
5555 }
5656
5757 void createPaint () {
58- //this.paint = new Paint();
58+ //this.paint = Paint();
5959 this .paint.color = Colors .blue;
6060 this .paint.style = PaintingStyle .fill;
6161 }
@@ -141,6 +141,10 @@ class ZKNode {
141141 return Offset (regX, regY);
142142 }
143143
144+ double getTimeRatio (int milliseconds) {
145+ return MathUtil .getTimeRatio (milliseconds);
146+ }
147+
144148 ////////////////////////////////////////////////////////////
145149 ///
146150 /// Update, render and other related functions
0 commit comments