File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 681
681
x = this . _wrapX ( x ) ;
682
682
y = this . _wrapY ( y ) ;
683
683
684
- //TODO angles and radius need to be transformed
685
- var xpt = this . _matrix_map_point ( this . ctx . _transform , [ x , y ] ) ;
686
- x = xpt [ 0 ] ;
687
- y = xpt [ 1 ] ;
684
+ if ( ! this . _matrix_is_identity ( this . ctx . _transform ) ) {
685
+ var xpt = this . _matrix_map_point ( this . ctx . _transform , [ x , y ] ) ;
686
+ x = xpt [ 0 ] ;
687
+ y = xpt [ 1 ] ;
688
+
689
+ var x_radPt0 = this . _matrix_map_point ( this . ctx . _transform , [ 0 , 0 ] ) ;
690
+ var x_radPt = this . _matrix_map_point ( this . ctx . _transform , [ 0 , radius ] ) ;
691
+ radius = Math . sqrt ( Math . pow ( x_radPt [ 0 ] - x_radPt0 [ 0 ] , 2 ) + Math . pow ( x_radPt [ 1 ] - x_radPt0 [ 1 ] , 2 ) ) ;
692
+
693
+ //TODO angles need to be transformed
694
+ }
688
695
689
696
var obj = {
690
697
type : 'arc' ,
You can’t perform that action at this time.
0 commit comments