Hi Shamjith, Shamjith K V <[EMAIL PROTECTED]> wrote on 07/05/2006 01:27:09 AM:
> When I viewed the below rectangle.svg in squiggle, the rendered image > is displayed after an offset from left. > Can any body please help me to remove this offset ? I believe you are seeing the effects of viewBox/preserveAspectRatio. If this is the problem then you first need to decide how you want to handle mismatched aspect ratios. You might check the SVG specification for the allowed values of preserveAspectRatio in particular you might be interested in "xMinYMin meet" or "xMinYMin slice". You can also replace the viewBox/preserveAspectRatio handling in the JSVGCanvas by overiding the 'calculateViewingTransform' method. > <!------rectangle.svg --------------> > <?xml version="1.0" standalone="no"?>> > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3. > org/Graphics/SVG/1.1/DTD/svg11.dtd"> > <svg width="102400" height="76800" viewBox = "0 0 102400 76800" version = "1.1"> > <rect x="0" y="1000" width= "48000" height="5000" stroke = "blue" fill = "red" /> > </svg> > <!-----rectangle.svg ------------------> > > Thanks and Regards, > Shamjith > Try the all-new Yahoo! Mail . "The New Version is radically easier to use" ? > The Wall Street Journal ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/