Hey Miyako,

> hurts your brain, doesn't it?

Ah a joke! And yes it’s never quite as simple as it seems. Change one thing and 
effects things downstream. But it does appear hat the svg is working as it’s 
designed to. I’m just not quite skilled enough yet.

> by the way,
> your SVG is not wrong,
> but the standard practice is to wrap the element in a <g> and add the 
> translate attribute to the group,
> as opposed to the graphic element itself.

Anyway, I have learned via many web examples that wrapping in a <g> is the 
suggested strategy.

A question please? following the technique you showed me to load the images as 
refs:

$defs:=SVG_Define_symbol ($domSvg_ptr->;"defs") to group all the 

Loop…
$symbol:=DOM Create XML 
element($defs;"image";"id";$name;"xlink:href";$image;"x";0;"y";0;"width";$width;"height";$height)
                       
And then to access in later places in code:

$glyph:=SVG_Use ($domSvg_ptr->;$whichAspect;0;0;0;0) 

And here are hundred of them in this svg document.

Are you say that I need to wrap each occurrence of the SVG_Use within a group 
<g>?

Thanks,
John…


> From: Keisuke Miyako <[email protected]>
> Subject: Re: Ref: Resize SVG_Use
> Date: December 5, 2017 at 5:08:16 PM PST
> To: 4D iNug Technical <[email protected]>
> 
> 
> this is an SVG question, not a 4D question, but the answer is "yes".
> 
> if you change the scale in transform then it applies to the coordinates you 
> pass to translate and rotate.
> it also inherits the scaling resulting from scaling on parent elements as 
> well as the viewBox/viewPort ratio at the top level.
> 
> hurts your brain, doesn't it?
> 
> by the way,
> your SVG is not wrong,
> but the standard practice is to wrap the element in a <g> and add the 
> translate attribute to the group,
> as opposed to the graphic element itself.
> 
> 2017/12/05 9:51、truegold via 4D_Tech 
> <[email protected]<mailto:[email protected]>> のメール:
> Does the SVG_SET_TRANSFORM_SCALE  change the image size and also the the area 
> size? In others words (even though the xml in the 4D SVG Viewer doesn’t show 
> it) is 500 pixel width still 500 pixels after the size transform? Or is 500 * 
> scale?

**********************************************************************
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:[email protected]
**********************************************************************

Reply via email to