Loading ...
Sorry, an error occurred while loading the content.
 

Working with scrolling viewbox ??

Expand Messages
  • robby.pelssers@vodafone.com
    Hi all, Suppose i have an dynamic generated SVG image ...
    Message 1 of 1 , Apr 13, 2004
      Hi all,

      Suppose i have an dynamic generated SVG image ...


      <svg xmlns:svg="http://www.w3.org/2000/svg" width="300" heigth="200">
      <defs>
      <g id="Object">
      <rect x="0" y="20" rx="5" ry="5" width="50" height="30"
      style="fill:#DDDDDD;stroke:grey;stroke-width:1"/>
      <path d="M0,30 h+50" style="stroke:grey"/>
      <path d="M0,40 h+50" style="stroke:grey"/>
      </g>
      </defs>

      <g transform="translate(100,150)">
      <use xlink:href="#Object"/>
      </g>

      <g transform="translate(200,200)">
      <use xlink:href="#Object"/>
      </g>

      <g transform="translate(300,250)">
      <use xlink:href="#Object"/>
      </g>
      </svg>

      I designed the size of object for optimal view and want the users to see the
      objects at this size.
      Because my svg is dynamically generated, some objects are not shown inside
      the (300,200) framework. I would like to
      add somekind of button that slides the viewbox


      "viewbox 0 -10 (relative to actual
      coordinates) 300 200"
      up
      |
      |

      "viewbox -10 (relative to actual coordinates) 0 300 200" <-- -->
      ""viewbox +10 (relative to actual coordinates) 0 300 200"

      |
      |
      down
      ""viewbox 0 +10 (relative to actual
      coordinates) 300 200"

      Anyone who wrote some scripting to do this job ??


      Thx in advance,

      robby
    Your message has been successfully submitted and would be delivered to recipients shortly.