1- import { defaults , Element , helpers } from '../chart' ;
1+ import { defaults , Element , drawPoint } from '../chart' ;
22import { rnd } from '../data' ;
33
44export const baseDefaults = {
@@ -51,11 +51,11 @@ export class StatsBase extends Element {
5151
5252 if ( vert ) {
5353 props . items . forEach ( ( v ) => {
54- helpers . canvas . drawPoint ( ctx , pointOptions , props . x - props . width / 2 + random ( ) * props . width , v ) ;
54+ drawPoint ( ctx , pointOptions , props . x - props . width / 2 + random ( ) * props . width , v ) ;
5555 } ) ;
5656 } else {
5757 props . items . forEach ( ( v ) => {
58- helpers . canvas . drawPoint ( ctx , pointOptions , v , props . y - props . height / 2 + random ( ) * props . height ) ;
58+ drawPoint ( ctx , pointOptions , v , props . y - props . height / 2 + random ( ) * props . height ) ;
5959 } ) ;
6060 }
6161 ctx . restore ( ) ;
@@ -81,11 +81,11 @@ export class StatsBase extends Element {
8181
8282 if ( vert ) {
8383 props . outliers . forEach ( ( v ) => {
84- helpers . canvas . drawPoint ( ctx , pointOptions , props . x , v ) ;
84+ drawPoint ( ctx , pointOptions , props . x , v ) ;
8585 } ) ;
8686 } else {
8787 props . outliers . forEach ( ( v ) => {
88- helpers . canvas . drawPoint ( ctx , pointOptions , v , props . y ) ;
88+ drawPoint ( ctx , pointOptions , v , props . y ) ;
8989 } ) ;
9090 }
9191
0 commit comments