• ↖ Home
  • Developer´s Guide
    • ↑ Contents
    • Code
    • Embedding
    • Tcl
    • SVG
    • SVG-Import
    • Projects
    • License
    • Index
  • Download
    • Jeszra: Source Code

    • Ruby Wrapper Classes
    • Python Wrapper Classes
    • Lisp Wrapper Classes
  • Books@Lulu.com...
    • Jeszra: Design by Gestalt
    • Jeszra Library: Design by Gestalt

    • Gestalt Items
    • Runtime Library
  • Manual
    • Jeszra Book

    • Tcl Manual
    • Ruby Manual
    • Python Manual
    • Lisp Manual

    • API
  • About
getRoot
← Chapter 8. SVG DOM-Tree Access →

Name

svgdom::getRoot

Synopsis

          getRoot doc
        

Description

Retrieve the root element of this SVG Dom.

Clients

getRoot is being used by ::svgdom::make.

Total client getRoot usage is: 16.

Example 8.2. ::dumper::arrow using getRoot

...


# Put the shape into the marker.
svgdom::addElement path  \
    [concat  \
    [list d $shape($type)] $properties] {}  \
    [svgdom::addToDefs  marker \
    [list id $ID  refX $refx($type)  orient "auto"  markerUnits userSpaceOnUse  markerWidth $b  markerHeight \
    [expr { 2*$c}]  viewBox $view($type)]  \
    [svgdom::getNodeByID $window \
    [svgdom::getRoot $_doc]]]
   



← ↖ →
addTextElement ↑ dump.style
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider