@@ -59,8 +59,7 @@ function pointsFromBuffer(buffer: ArrayBuffer, useInts = false) {
5959 return testArray as number [ ] ;
6060}
6161
62- export function arrayoNativeArray ( array , useInts = false ) {
63- console . log ( 'arrayoNativeArray' , Array . isArray ( array ) ) ;
62+ export function arrayToNativeArray ( array , useInts = false ) {
6463 if ( ! Array . isArray ( array ) ) {
6564 return array ;
6665 }
@@ -169,7 +168,7 @@ class Canvas {
169168 } else if ( methodName === 'drawColor' ) {
170169 args [ 0 ] = createColorParam ( args [ 0 ] ) ;
171170 } else if ( methodName === 'drawLines' ) {
172- args [ 0 ] = arrayoNativeArray ( args [ 0 ] ) ;
171+ args [ 0 ] = arrayToNativeArray ( args [ 0 ] ) ;
173172 const last = args [ args . length - 1 ] ;
174173 if ( last instanceof android . graphics . Matrix ) {
175174 last . mapPoints ( args [ 0 ] ) ;
@@ -368,7 +367,7 @@ export class DashPathEffect {
368367 return this . _native ;
369368 }
370369 constructor ( intervals : number [ ] , phase : number ) {
371- this . _native = new android . graphics . DashPathEffect ( arrayoNativeArray ( intervals ) , phase ) ;
370+ this . _native = new android . graphics . DashPathEffect ( arrayToNativeArray ( intervals ) , phase ) ;
372371 return new Proxy ( this , this ) ;
373372 }
374373 get ( target , name , receiver ) {
@@ -403,8 +402,7 @@ export class Path {
403402 if ( element && element . _native ) {
404403 args [ index ] = element . getNative ( ) ;
405404 } else if ( Array . isArray ( element ) ) {
406- console . log ( 'test' , 'methodName' , index , element ) ;
407- args [ index ] = arrayoNativeArray ( element ) ;
405+ args [ index ] = arrayToNativeArray ( element ) ;
408406 }
409407 }
410408 return native [ methodName ] ( ...args ) ;
0 commit comments