File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 932
932
moves [ moves . length - 1 ] . deltas . push ( delta ) ;
933
933
break ;
934
934
case 'arc' :
935
+ //TODO this was hack to avoid out-of-bounds issue
936
+ // No move-to before drawing the arc
937
+ if ( moves . length == 0 ) {
938
+ moves . push ( { start : { x : 0 , y : 0 } , deltas : [ ] , abs : [ ] } ) ;
939
+ }
935
940
moves [ moves . length - 1 ] . arc = true ;
936
941
moves [ moves . length - 1 ] . abs . push ( pt ) ;
937
942
break ;
1130
1135
moves [ moves . length - 1 ] . deltas . push ( delta ) ;
1131
1136
break ;
1132
1137
case 'arc' :
1133
- //TODO this was hack to avoid out of bounds issue
1138
+ //TODO this was hack to avoid out-of-bounds issue
1139
+ // No move-to before drawing the arc
1134
1140
if ( moves . length == 0 ) {
1135
1141
moves . push ( { start : { x : 0 , y : 0 } , deltas : [ ] , abs : [ ] } ) ;
1136
1142
}
You can’t perform that action at this time.
0 commit comments