Here is a sample with the attributes hard coded: 100 and 2. Comment out (and in) the middle section to see the effect.
$svg:=SVG_New $ref:=SVG_New_circle ($svg;100;100;20) SVG_SET_TRANSFORM_SCALE ($ref;2;2) SVG_SET_ATTRIBUTES ($ref;"cx";String(100/2);"cy";String(100/2)) vPic:=SVG_Export_to_picture ($svg) SVG_CLEAR ($svg) Keith - CDI > On Sep 19, 2017, at 11:03 AM, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi, > > I am looking for a very quick way to scale a SVG object (circle, rect etc.) > but not move the center of the object. > > I use: > > *DOM SET XML ATTRIBUTE*($tObjectRef;"transform";"scale(2)") > > > And of course, the object is moved xy*2 > > > Any ideas how to scale on object but not its position on the cancas. > > > Thanks > > Jim > > -- > Jim Dorrance > jim.dorra...@gmail.com > 4...@dorrance.eu > www.4d.dorrance.eu > > PS: If you know of anyone that needs an experienced 4D programmer to add > energy and experience to their team, please let me know. I have > experience in many areas. Reasonable rates. Remote or Paris only. > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************