// A heads up about embedding a SVG area into another SVG area.
// Getting the ID of the embedded object requires SVG Find element IDs by rect
// It does not seem to work using SVG Find element ID by coordinates
$svg:=SVG_New
$svgArea:=SVG_New
SVG_New_text ($svg;"This is a test";10;10)
$interPicture:=SVG_Export_to_picture ($svg)
$svgPictureRef:=SVG_New_embedded_image ($svgArea;$interPicture;5;0;".svg")
SVG_SET_ID ($svgPictureRef;"SVG_Codec")
SVG_CLEAR ($svg)
$PicMain:=SVG_Export_to_picture ($svgArea)
SVG_CLEAR ($svgArea)
ARRAY TEXT($a_GetsOneID;0)
SVG Find element IDs by rect($PicMain;5;0;1;1;$a_GetsOneID)
$ID_IsEmpty:=SVG Find element ID by coordinates($PicMain;6;1)
ALERT("SVG Find element IDs by rect gets ="+$a_GetsOneID{1}+Char(13)+"SVG Find
element ID by coordinates ="+$ID_IsEmpty)
// Keith - CDI
> On Oct 22, 2017, at 3:16 PM, Ortwin Zillgen via 4D_Tech
> <[email protected]> wrote:
>
> this works for me
> <http://dddd.mettre.de/wp/embedding-svg-inside-an-svg/?inug>
>
>
>
> Regards
> O r t w i n Z i l l g e n
> ---------------------------------------------
> <mailto:[email protected]> <http://dddd.mettre.de/wp/?4713>
> <feed://dddd.mettre.de/f/DDDD_Links.xml > <https://twitter.com/Ozett>
> member of developer-network <http://www.die4Dwerkstatt.de>
>
> **********************************************************************
> 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]
> **********************************************************************
**********************************************************************
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]
**********************************************************************