• ↖ 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
addToDefs
← Chapter 8. SVG DOM-Tree Access →

Name

svgdom::addToDefs

Synopsis

          addToDefs type \
             properties pnode ?subelements?
        

Description

Increases the <defs/> definition of the given node »pnode«. This defs section is used to define linearGradients, radialGradients, Styles and images.

Images are later used with <use/>.

Clients

Total client addToDefs usage is: 7.

Example 8.6. ::dumper::arrow using addToDefs

...


# 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]]]
   



← ↖ →
addStyle ↑ make
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider