@@ -18,17 +18,6 @@ export class Config {
18
18
19
19
this . _renderlet = null ;
20
20
21
- this . _d3compat = {
22
- eventHandler : handler => function eventHandler ( a , b ) {
23
- console . warn ( 'No d3.js compatbility event handler registered, defaulting to v6 behavior.' ) ;
24
- handler . call ( this , b , a ) ;
25
- } ,
26
- nester : ( { key, sortKeys, sortValues, entries} ) => {
27
- throw new Error ( 'No d3.js compatbility nester registered, load v5 or v6 compability layer.' ) ;
28
- } ,
29
- pointer : ( ) => { throw new Error ( 'No d3.js compatbility pointer registered, load v5 or v6 compability layer.' ) ; }
30
- } ;
31
-
32
21
/**
33
22
* If this boolean is set truthy, all transitions will be disabled, and changes to the charts will happen
34
23
* immediately.
@@ -84,4 +73,13 @@ export const config = new Config();
84
73
/**
85
74
* d3.js compatiblity layer
86
75
*/
87
- export const d3compat = { } ;
76
+ export const d3compat = {
77
+ eventHandler : handler => function eventHandler ( a , b ) {
78
+ console . warn ( 'No d3.js compatbility event handler registered, defaulting to v6 behavior.' ) ;
79
+ handler . call ( this , b , a ) ;
80
+ } ,
81
+ nester : ( { key, sortKeys, sortValues, entries} ) => {
82
+ throw new Error ( 'No d3.js compatbility nester registered, load v5 or v6 compability layer.' ) ;
83
+ } ,
84
+ pointer : ( ) => { throw new Error ( 'No d3.js compatbility pointer registered, load v5 or v6 compability layer.' ) ; }
85
+ } ;
0 commit comments