@@ -1812,6 +1812,8 @@ describe('treemap uniformtext', function() {
18121812 Plotly . plot ( gd , {
18131813 data : [ {
18141814 type : 'treemap' ,
1815+ tiling : { packing : 'dice' } ,
1816+ pathbar : { visible : false } ,
18151817 parents : [
18161818 '' ,
18171819 'Oscar' ,
@@ -1831,11 +1833,11 @@ describe('treemap uniformtext', function() {
18311833 'Oscar' ,
18321834 'Papa' ,
18331835 'Quebec' ,
1834- 'Romeo' ,
1836+ 'Romeo and Juliet ' ,
18351837 'Sierra' ,
18361838 'Tango' ,
18371839 'Uniform' ,
1838- 'Victor ' ,
1840+ 'ViKtor Korchnoi - Anatoly Karpov ' ,
18391841 'Whiskey' ,
18401842 'X ray' ,
18411843 'Yankee' ,
@@ -1844,29 +1846,29 @@ describe('treemap uniformtext', function() {
18441846 textinfo : 'label'
18451847 } ] ,
18461848 layout : {
1847- width : 350 ,
1849+ width : 850 ,
18481850 height : 350 ,
18491851 uniformtext : {
18501852 mode : 'hide' ,
1851- minsize : 10
1853+ minsize : 12
18521854 }
18531855 }
18541856 } )
18551857 . then ( assertTextSizes ( 'before click' , {
18561858 fontsizes : [ 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 ] ,
1857- scales : [ 0.84 , 0.84 , 0.84 , 0 , 0.84 , 0.84 , 0 , 0.84 , 0 , 0.84 , 0.84 , 0 ] ,
1859+ scales : [ 1 , 1 , 1 , 1 , 0 , 1 , 1 , 0 , 1 , 1 , 1 , 1 ] ,
18581860 } ) )
18591861 . then ( click ( gd , 2 ) ) // click on Uniform
18601862 . then ( delay ( constants . CLICK_TRANSITION_TIME + 1 ) )
18611863 . then ( assertTextSizes ( 'after click child' , {
1862- fontsizes : [ 12 , 12 , 12 , 12 , 12 , 12 , 12 ] ,
1863- scales : [ 0.86 , 0.86 , 0.86 , 0.86 , 0.86 , 0.86 , 0.86 ] ,
1864+ fontsizes : [ 12 , 12 , 12 , 12 , 12 , 12 ] ,
1865+ scales : [ 1 , 0 , 1 , 1 , 1 , 1 ] ,
18641866 } ) )
18651867 . then ( click ( gd , 1 ) ) // click on Oscar
18661868 . then ( delay ( constants . CLICK_TRANSITION_TIME + 1 ) )
18671869 . then ( assertTextSizes ( 'after click parent' , {
18681870 fontsizes : [ 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 ] ,
1869- scales : [ 0.84 , 0.84 , 0.84 , 0 , 0.84 , 0.84 , 0 , 0.84 , 0 , 0.84 , 0.84 , 0 ] ,
1871+ scales : [ 1 , 1 , 1 , 1 , 0 , 1 , 1 , 0 , 1 , 1 , 1 , 1 ] ,
18701872 } ) )
18711873 . catch ( failTest )
18721874 . then ( done ) ;
0 commit comments