surfer97301
08-07-2004, 01:24 PM
Hi,
I am trying to generate a set of lines that span the entire width of my canvas. I am doing this by dynamically inserting the <use xlink:href=#myline> into my canvas element. The problem I am encountering is that my lines are only being translated onto the first 3rd of my canvas. I have been trying to use percentage for translate( 10%, 0) but this turns out to have the same effect as translate(10, 0).
Anyone have ideas? Other than hardcoding the width of my canvas and then caculating the translation with that?
Thanks
I am trying to generate a set of lines that span the entire width of my canvas. I am doing this by dynamically inserting the <use xlink:href=#myline> into my canvas element. The problem I am encountering is that my lines are only being translated onto the first 3rd of my canvas. I have been trying to use percentage for translate( 10%, 0) but this turns out to have the same effect as translate(10, 0).
Anyone have ideas? Other than hardcoding the width of my canvas and then caculating the translation with that?
Thanks