Re: SVG scale

2017-09-20 Thread Tom DeMeo via 4D_Tech
Hi Ortwin, > On Sep 20, 2017, at 3:00 PM, 4d_tech-requ...@lists.4d.com wrote: > >> >> SVG is a whole lot easier to manage in JavaScript. > > I'm wondering about modern myths … Perhaps you’ve primarily used SVG to render fixed images, or if the images do change, the triggers come from event

Re: SVG Scale

2017-09-20 Thread David Adams via 4D_Tech
nd. You can also double click on an object to see the sizing > and scaling attribute dialog. The whole site you see is built using an SVG > based layout scheme. Traditional HTML layout strategies are not used. > > > > Tom DeMeo > > > > > > > > >

Re: SVG Scale

2017-09-20 Thread David Adams via 4D_Tech
> SVG is a whole lot easier to manage in JavaScript. > I'm wondering about modern myths … Hey Ortwin, you may not have had the same experience as me, but I find JS easier for dealing with SVG. Just having foreach is a help, at a start. And D3 is lightyears ahead, if you want to get that far into

Re: SVG Scale

2017-09-20 Thread Tom DeMeo via 4D_Tech
ategies are not used. Tom DeMeo > -- > > Message: 5 > Date: Wed, 20 Sep 2017 09:02:08 +1000 > From: David Adams > To: 4D iNug Technical <4d_tech@lists.4d.com> > Subject: Re: SVG Scale > Message-ID: > > Content-Type: text/plain; char

Re: SVG Scale

2017-09-20 Thread Ortwin Zillgen via 4D_Tech
> SVG is a whole lot easier to manage in JavaScript. I'm wondering about modern myths … There is a wonderful component in every copy of 4D, which is called 4D SVG. This is a gem of a component and makes working wi

Re: SVG Scale

2017-09-19 Thread David Adams via 4D_Tech
SVG is a whole lot easier to manage in JavaScript. If for no other reason, you've got access to the D3 libraries. In V4, Mike Bostock wen to a lot of effort to break bits out into stand-alone libraries to make reuse easier without the whole D3 environment, and to encourage contributions from other

Re: SVG Scale

2017-09-19 Thread Tom DeMeo via 4D_Tech
Hi Jim, It’s a common misperception that scaling in SVG is easy. You can apply a transform to get one specific scaling scheme, but there are a number of possible rules you might need for how you might want an object to scale. How an object might scale using a simple transform is baked in. If y

Re: SVG Scale

2017-09-19 Thread Jim Dorrance via 4D_Tech
Thanks Kieth, I'm sure you have set me on the right path! On Tue, Sep 19, 2017 at 6:58 PM, Keith Culotta via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Sorry, there is also this: SVG_SCALING_CENTERED ( svgObject ; scale {; x ; > y} ) > http://doc.4d.com/4Dv16/4D/16/SVG-SCALING-CENTERED.301-3202422.

Re: SVG Scale

2017-09-19 Thread Keith Culotta via 4D_Tech
Sorry, there is also this: SVG_SCALING_CENTERED ( svgObject ; scale {; x ; y} ) http://doc.4d.com/4Dv16/4D/16/SVG-SCALING-CENTERED.301-3202422.en.html 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 qui

Re: SVG Scale

2017-09-19 Thread Keith Culotta via 4D_Tech
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_pi

SVG Scale

2017-09-19 Thread Jim Dorrance via 4D_Tech
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 canc