@@ -225,7 +225,13 @@ describe('multiple transforms:', function() {
225
225
transforms : [ {
226
226
type : 'groupby' ,
227
227
groups : [ 'a' , 'a' , 'b' , 'a' , 'b' , 'b' , 'a' ] ,
228
- style : { a : { marker : { color : 'red' } } , b : { marker : { color : 'blue' } } }
228
+ style : [ {
229
+ target : 'a' ,
230
+ value : { marker : { color : 'red' } } ,
231
+ } , {
232
+ target : 'b' ,
233
+ value : { marker : { color : 'blue' } }
234
+ } ]
229
235
} , {
230
236
type : 'filter' ,
231
237
operation : '>'
@@ -239,7 +245,13 @@ describe('multiple transforms:', function() {
239
245
transforms : [ {
240
246
type : 'groupby' ,
241
247
groups : [ 'b' , 'a' , 'b' , 'b' , 'b' , 'a' , 'a' ] ,
242
- style : { a : { marker : { color : 'green' } } , b : { marker : { color : 'black' } } }
248
+ style : [ {
249
+ target : 'a' ,
250
+ value : { marker : { color : 'green' } }
251
+ } , {
252
+ target : 'b' ,
253
+ value : { marker : { color : 'black' } }
254
+ } ]
243
255
} , {
244
256
type : 'filter' ,
245
257
operation : '<' ,
@@ -329,7 +341,13 @@ describe('multiple transforms:', function() {
329
341
expect ( gd . _fullData [ 1 ] . marker . opacity ) . toEqual ( 1 ) ;
330
342
331
343
return Plotly . restyle ( gd , {
332
- 'transforms[0].style' : { a : { marker : { color : 'green' } } , b : { marker : { color : 'red' } } } ,
344
+ 'transforms[0].style' : [ [ {
345
+ target : 'a' ,
346
+ value : { marker : { color : 'green' } }
347
+ } , {
348
+ target : 'b' ,
349
+ value : { marker : { color : 'red' } }
350
+ } ] ] ,
333
351
'marker.opacity' : 0.4
334
352
} ) ;
335
353
} ) . then ( function ( ) {
@@ -437,7 +455,13 @@ describe('multiple traces with transforms:', function() {
437
455
transforms : [ {
438
456
type : 'groupby' ,
439
457
groups : [ 'a' , 'a' , 'b' , 'a' , 'b' , 'b' , 'a' ] ,
440
- style : { a : { marker : { color : 'red' } } , b : { marker : { color : 'blue' } } }
458
+ style : [ {
459
+ target : 'a' ,
460
+ value : { marker : { color : 'red' } } ,
461
+ } , {
462
+ target : 'b' ,
463
+ value : { marker : { color : 'blue' } }
464
+ } ]
441
465
} , {
442
466
type : 'filter' ,
443
467
operation : '>'
@@ -508,7 +532,13 @@ describe('multiple traces with transforms:', function() {
508
532
} ) ;
509
533
510
534
return Plotly . restyle ( gd , {
511
- 'transforms[0].style' : { a : { marker : { color : 'green' } } , b : { marker : { color : 'red' } } } ,
535
+ 'transforms[0].style' : [ [ {
536
+ target : 'a' ,
537
+ value : { marker : { color : 'green' } } ,
538
+ } , {
<
58C8
td data-grid-cell-id="diff-6f77d9bd8f901c22fc626b632c12695a5ee07ea469d0728fd958b758fda26196-511-539-1" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionNum-bgColor, var(--diffBlob-addition-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">539
+ target : 'b' ,
540
+ value : { marker : { color : 'red' } }
541
+ } ] ] ,
512
542
'marker.opacity' : [ 0.4 , 0.6 ]
513
543
} ) ;
514
544
} ) . then ( function ( ) {
0 commit comments