@@ -536,7 +536,7 @@ describe('Test geo interactions', function() {
536
536
it ( 'should contain the correct fields' , function ( ) {
537
537
expect ( Object . keys ( ptData ) ) . toEqual ( [
538
538
'data' , 'fullData' , 'curveNumber' , 'pointNumber' ,
539
- 'lon' , 'lat' , 'location'
539
+ 'lon' , 'lat' , 'location' , 'marker.size'
540
540
] ) ;
541
541
expect ( cnt ) . toEqual ( 1 ) ;
542
542
} ) ;
@@ -547,6 +547,7 @@ describe('Test geo interactions', function() {
547
547
expect ( ptData . location ) . toBe ( null ) ;
548
548
expect ( ptData . curveNumber ) . toEqual ( 0 ) ;
549
549
expect ( ptData . pointNumber ) . toEqual ( 0 ) ;
550
+ expect ( ptData [ 'marker.size' ] ) . toEqual ( 20 ) ;
550
551
expect ( cnt ) . toEqual ( 1 ) ;
551
552
} ) ;
552
553
@@ -598,7 +599,7 @@ describe('Test geo interactions', function() {
598
599
it ( 'should contain the correct fields' , function ( ) {
599
600
expect ( Object . keys ( ptData ) ) . toEqual ( [
600
601
'data' , 'fullData' , 'curveNumber' , 'pointNumber' ,
601
- 'lon' , 'lat' , 'location'
602
+ 'lon' , 'lat' , 'location' , 'marker.size'
602
603
] ) ;
603
604
} ) ;
604
605
@@ -608,6 +609,7 @@ describe('Test geo interactions', function() {
608
609
expect ( ptData . location ) . toBe ( null ) ;
609
610
expect ( ptData . curveNumber ) . toEqual ( 0 ) ;
610
611
expect ( ptData . pointNumber ) . toEqual ( 0 ) ;
612
+ expect ( ptData [ 'marker.size' ] ) . toEqual ( 20 ) ;
611
613
} ) ;
612
614
} ) ;
613
615
@@ -629,7 +631,7 @@ describe('Test geo interactions', function() {
629
631
it ( 'should contain the correct fields' , function ( ) {
630
632
expect ( Object . keys ( ptData ) ) . toEqual ( [
631
633
'data' , 'fullData' , 'curveNumber' , 'pointNumber' ,
632
- 'lon' , 'lat' , 'location'
634
+ 'lon' , 'lat' , 'location' , 'marker.size'
633
635
] ) ;
634
636
} ) ;
635
637
@@ -639,6 +641,7 @@ describe('Test geo interactions', function() {
639
641
expect ( ptData . location ) . toBe ( null ) ;
640
642
expect ( ptData . curveNumber ) . toEqual ( 0 ) ;
641
643
expect ( ptData . pointNumber ) . toEqual ( 0 ) ;
644
+ expect ( ptData [ 'marker.size' ] ) . toEqual ( 20 ) ;
642
645
} ) ;
643
646
} ) ;
644
647
@@ -1100,7 +1103,7 @@ describe('Test event property of interactions on a geo plot:', function() {
1100
1103
1101
1104
expect ( Object . keys ( pt ) ) . toEqual ( [
1102
1105
'data' , 'fullData' , 'curveNumber' , 'pointNumber' , 'lon' , 'lat' ,
1103
- 'location'
1106
+ 'location' , 'text' , 'marker.size'
1104
1107
] ) ;
1105
1108
1106
1109
expect ( pt . curveNumber ) . toEqual ( 0 , 'points[0].curveNumber' ) ;
@@ -1110,6 +1113,8 @@ describe('Test event property of interactions on a geo plot:', function() {
1110
1113
expect ( pt . lon ) . toEqual ( 57.75 , 'points[0].lon' ) ;
1111
1114
expect ( pt . location ) . toEqual ( 57.75 , 'points[0].location' ) ;
1112
1115
expect ( pt . pointNumber ) . toEqual ( 0 , 'points[0].pointNumber' ) ;
1116
+ expect ( pt . text ) . toEqual ( 20 , 'points[0].text' ) ;
1117
+ expect ( pt [ 'marker.size' ] ) . toEqual ( 20 , 'points[0][\'marker.size\']' ) ;
1113
1118
1114
1119
expect ( evt . clientX ) . toEqual ( pointPos [ 0 ] , 'event.clientX' ) ;
1115
1120
expect ( evt . clientY ) . toEqual ( pointPos [ 1 ] , 'event.clientY' ) ;
@@ -1146,7 +1151,7 @@ describe('Test event property of interactions on a geo plot:', function() {
1146
1151
1147
1152
expect ( Object . keys ( pt ) ) . toEqual ( [
1148
1153
'data' , 'fullData' , 'curveNumber' , 'pointNumber' , 'lon' , 'lat' ,
1149
- 'location'
1154
+ 'location' , 'text' , 'marker.size'
1150
1155
] ) ;
1151
1156
1152
1157
expect ( pt . curveNumber ) . toEqual ( 0 , 'points[0].curveNumber' ) ;
@@ -1156,6 +1161,8 @@ describe('Test event property of interactions on a geo plot:', function() {
1156
1161
expect ( pt . lon ) . toEqual ( 57.75 , 'points[0].lon' ) ;
1157
1162
expect ( pt . location ) . toEqual ( 57.75 , 'points[0].location' ) ;
1158
1163
expect ( pt . pointNumber ) . toEqual ( 0 , 'points[0].pointNumber' ) ;
1164
+ expect ( pt . text ) . toEqual ( 20 , 'points[0].text' ) ;
1165
+ expect ( pt [ 'marker.size' ] ) . toEqual ( 20 , 'points[0][\'marker.size\']' ) ;
1159
1166
1160
1167
expect ( evt . clientX ) . toEqual ( pointPos [ 0 ] , 'event.clientX' ) ;
1161
1168
expect ( evt . clientY ) . toEqual ( pointPos [ 1 ] , 'event.clientY' ) ;
@@ -1185,7 +1192,7 @@ describe('Test event property of interactions on a geo plot:', function() {
1185
1192
1186
1193
expect ( Object . keys ( pt ) ) . toEqual ( [
1187
1194
'data' , 'fullData' , 'curveNumber' , 'pointNumber' , 'lon' , 'lat' ,
1188
- 'location'
1195
+ 'location' , 'text' , 'marker.size'
1189
1196
] ) ;
1190
1197
1191
1198
expect ( pt . curveNumber ) . toEqual ( 0 , 'points[0].curveNumber' ) ;
@@ -1195,6 +1202,8 @@ describe('Test event property of interactions on a geo plot:', function() {
1195
1202
expect ( pt . lon ) . toEqual ( 57.75 , 'points[0].lon' ) ;
1196
1203
expect ( pt . location ) . toEqual ( 57.75 , 'points[0].location' ) ;
1197
1204
expect ( pt . pointNumber ) . toEqual ( 0 , 'points[0].pointNumber' ) ;
1205
+ expect ( pt . text ) . toEqual ( 20 , 'points[0].text' ) ;
1206
+ expect ( pt [ 'marker.size' ] ) . toEqual ( 20 , 'points[0][\'marker.size\']' ) ;
1198
1207
1199
1208
expect ( evt . clientX ) . toEqual ( pointPos [ 0 ] , 'event.clientX' ) ;
1200
1209
expect ( evt . clientY ) . toEqual ( pointPos [ 1 ] , 'event.clientY' ) ;
@@ -1219,7 +1228,7 @@ describe('Test event property of interactions on a geo plot:', function() {
1219
1228
1220
1229
expect ( Object . keys ( pt ) ) . toEqual ( [
1221
1230
'data' , 'fullData' , 'curveNumber' , 'pointNumber' , 'lon' , 'lat' ,
1222
- 'location'
1231
+ 'location' , 'text' , 'marker.size'
1223
1232
] ) ;
1224
1233
1225
1234
expect ( pt . curveNumber ) . toEqual ( 0 , 'points[0].curveNumber' ) ;
@@ -1229,6 +1238,8 @@ describe('Test event property of interactions on a geo plot:', function() {
1229
1238
expect ( pt . lon ) . toEqual ( 57.75 , 'points[0].lon' ) ;
1230
1239
expect ( pt . location ) . toEqual ( 57.75 , 'points[0].location' ) ;
1231
1240
expect ( pt . pointNumber ) . toEqual ( 0 , 'points[0].pointNumber' ) ;
1241
+ expect ( pt . text ) . toEqual ( 20 , 'points[0].text' ) ;
1242
+ expect ( pt [ 'marker.size' ] ) . toEqual ( 20 , 'points[0][\'marker.size\']' ) ;
1232
1243
1233
1244
expect ( evt . clientX ) . toEqual ( nearPos [ 0 ] , 'event.clientX' ) ;
1234
1245
expect ( evt . clientY ) . toEqual ( nearPos [ 1 ] , 'event.clientY' ) ;
0 commit comments