From 72f3999a0301b4110f1aa2b21fc0aa8090c89e4a Mon Sep 17 00:00:00 2001 From: Simon Friis Vindum Date: Fri, 1 Dec 2023 14:44:09 +0100 Subject: [PATCH] Add additional text diagrams demonstrating overflow --- assets/widgets/text.png | Bin 1240 -> 0 bytes assets/widgets/text_ellipsis.png | Bin 789 -> 1067 bytes assets/widgets/text_fade_max_lines.png | Bin 0 -> 1328 bytes assets/widgets/text_fade_soft_wrap.png | Bin 0 -> 1202 bytes packages/diagrams/lib/src/text.dart | 46 +++++++++++++++---------- 5 files changed, 27 insertions(+), 19 deletions(-) delete mode 100644 assets/widgets/text.png create mode 100644 assets/widgets/text_fade_max_lines.png create mode 100644 assets/widgets/text_fade_soft_wrap.png diff --git a/assets/widgets/text.png b/assets/widgets/text.png deleted file mode 100644 index fa068eaa4d6388b3e990e01caeb64ca3b0902f28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1240 zcmeAS@N?(olHy`uVBq!ia0vp^AAq=r14uBW->d!tq!^2xJVQ91aYfGrbAsHR7}lMW zdC9=Q((38r7*cWT?e+WF!Ra!`KmOHy|GT&{uSk^R$s-2^0Vj^;hAC4O*G@UQA;{>& zigRUMf$8me2BmQ~8gDp>zMT`a#P4}RaOC!lsTpa$!MATkTo22fbzaYJ*0PJ-3uhYr zse6C!@aL10#h=^kzjrY@?7hT|18im+8hLXPn5C)0tm{6w)%j=Fxo6AcYzvj`_f1^; z_xPNtZ=1X~XuMSZW-@El2Z#4YpOT*II6OHJ6@2;VdhSaCd;eXw)$p3s6f>=4UP1NN zy?h5R-)6RNIX-FAm;FpT`V-2Ts%Fg+>M?2j-!@4_^FXR+axPna!*yoyTWosi%?IDq z2v?-E3)^qI$8%4)_h8Y@&so1tz7Ao!v!m@t!2w==@6;LDtl|Af=6pX^dib`c>K^%$ zd$-j+e;Gby*>yVV(;h?pm0N3$yxphlY4z@_*Y-U>s%%$k$AwwFt=+dzdFK+H+S{!D zQ@xhT{o49OkVh~wui?Ctz_)D;>z$W!nEDC@iOlI}V|ZY0+vX)(vn)hwu98lw0>k}t zhq44eohovgB1}i3IHJICFme(CjjPOrf%J)rsP3Df(Hi4}>jk!20|7dycuP^m9 z-mrsX=hCg2b0TF^944*eyRUtwyf;O-f@#;hd~q3XwaI#aU$wh1@#Qx>PxLF=ag&9O zL&!&E#yBB|YfN$@6~Atmk)rlNiU9SM2?JFR9$Q)Y80p{)7_yuEmPKmhc=8 zZTY>Hz28fH$9zvKp3tuke=(m|eV}kA89ZSm7j zHQtAFLNDdkyWa?U{dDW}xoY!mDo?Htliypip?+R&WsLUqomF-`_W7Q6^Vjlk+VsIn zk3ZS>^|jX;;zs#jwwX+ftX%t`wplzoUnJ*yB9$^Ps3iFFe{DUZyO5`X+@3jRpd!oD L)z4*}Q$iB}rPVeO diff --git a/assets/widgets/text_ellipsis.png b/assets/widgets/text_ellipsis.png index df3d787cafa0d96479d22583c501ff8a8f853daf..265b2c1c8f2d7eca8585f0e8e029281df984bfeb 100644 GIT binary patch literal 1067 zcmeAS@N?(olHy`uVBq!ia0vp^AAq=rgBeJcW?zv4Qq09po*^6@9Je3(KLBzWi-X*q z7}lMWc?o341o(uw0tIEHEs zLPJBsqoZQu;}VmSQc{xBaRUvHhucE88c_hnl)?Aym|BI z&s(ry{=!8I7cW}0WXY1H%a$!)zHG&cAer%s zrHhv?UAlbj+I1kfapT6#n>TOYzH{f!-TU|NKX~xq;lqcI9zJ^f=<$;$PoF(|_Wb$t z7cXACe)anG>o;%Syaj^y@85s;@Zr;^PoF=1{`~n15Pbdm_1m{^-@kwV@#DwOpFe;7 z`t|$w?>~S3{Qdj)-@kwV|Nl>GWU6IgV9N7!aSW-r_4dZ?;L8po2OiG*61O1Kpli|E zuTFc#j&_A`-&?&+qhjSE4X%(a5v@i4{!5x~^F926d7s9@{hv2@o}2ULjQP#GDZ&@* zx)~AuU7nA0Ec_gm8$ zXH*e-|HS9Ht&xTkS5+8sZ}&CMeH&d+Quy&>$Cav?#ftZvr@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Fv literal 0 HcmV?d00001 diff --git a/assets/widgets/text_fade_soft_wrap.png b/assets/widgets/text_fade_soft_wrap.png new file mode 100644 index 0000000000000000000000000000000000000000..051236c0acdcafbcfe660cafc4e84851f7ddfc76 GIT binary patch literal 1202 zcmbW1`8(Tp9KfTQ)?9l$>mC+to;{Dp)>Vr-`xK>8vXTZt7j@K~QpXtLio_i(6(sIp zaYlnm(70=uyJgO36IH|r5mylG+h>2l_Ih6L&--|u_vfe2^T|NKtrcV;vLFyh0cK<6 z0AwK$Su$YY{59||2#~`l4sHXbu_gdF< zZt5B68{alDH8Z_yVPOTevWD3_c<>V(Zilc(I662uIU!vhxu9H8ZXWJWyu5sTy!`?L zp9KX5M?^$MMPj0(Fqr5V3??=vCN4e>i%m#O#Nu#?cpNSXk55icPEAQkOHE17NGA{o zS($*D*~H(TKPTppNO`%r`FVNd{CqMwpF$xQ6c!W}7nhcll$MoIsb%Hm)QZZA-zzI= zG+I@4bxlomZEa0meI1=nZ+P*7!C*8tH8wXly?ogW*wWI%WHMPSR%>f(TU%TEt9CZ~ z6`RfO=wNqrc6N1l_w;o4_V)I@e%;^S|Hr_<;NalU(9oX%BO{}uqhsUa6O)r~-hN_g z3UF$Ac6JV6etv#oVS&TpEG@m`a=APnZ+Ut7!}5oZA6M7b*4Ee8`F#H7=GNAhKmaHZ z?Ck6ag~Hw4U6Dw%C)(TF+usM=-#_@oA;8hmkytD~K0ZD%9j9=J1BKIDSX%j&Hy-@2-M+ez<0m(OAVeDymf`(i>^R(h058*NCgVksKN`z(b=B@&&q76IZZ1AQwM_HZoSd z?qNP7j<8V9eGm5E(&HgvI^X0wU%3+`;MeB1%Sj%yS=MHBcj4yU{FwtdhbBgqmW1QN zEmjy>_l#mGw?3c5`Lc>wuJ@e+lN7}^8dZ=VCh%thfkFZo51xRdV@VVzb|1a3Ewu4( zN^DD!NXL{9+Vspdyde(=uHtI^4ds zr13T&VrSP!QEky*#36-NN3aaMlh&PzCEHMXcig*5Up(c>G@Ur4zv3oTFLboay6wm| zEYRh4>0HPYhwWz)FjXk;r1+jolc{zbuQ?{gWdrR2#d^T%z}u7}oU@4l#eC{(=}!|u zYgB~VXzEy!w_RXgOwc5!IgL0~mY}UbCM0hu1?%$W>Pu6+)ZN2y<|7F+qigX@PGS#v zxUk_S4HfZ5!O%h^!F?IE-g!Q)m-FZp> get diagrams async => [ - const TextDiagram(_text), const TextDiagram(_textEllipsis), + const TextDiagram(_textFadeMaxLines), + const TextDiagram(_textFadeSoftWrap), const TextDiagram(_textRich), const TextDiagram(_textBorder), const TextDiagram(_textGradient),