Opened 14 years ago
Closed 14 years ago
#2438 closed defect (invalid)
changed dojo.gfx image shape from HTML to an actual VML shape
Reported by: | Aaron Staves | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | gfx (svg+vml) | Version: | 0.4.1 |
Keywords: | vml image gfx | Cc: | |
Blocked By: | Blocking: |
Description
The VML image shape is currently an HTML element within a <v:group> element. This causes the image to function differently than expected. A VML surface seems to clip shapes exceeding the boundaries automatically; however, when HTML is introduced, it seems to turn clipping off. This can be viewed here: http://aaron.schoolinsummertime.com/gfxVML/VML.html. Instead of clipping the shape that exceeds the boundaries, it scales the VML surface to fit the new shape. As a result, any existing shapes are also scaled, which makes the image appear smaller.
This patch makes the dojo.gfx Image an acutal <v:image> object, which seems to fix all of the problems discussed above. A test/example can be viewed here: http://aaron.schoolinsummertime.com/gfxVML/imageTest.html.
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | vml.js.patch added |
---|
comment:1 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Rejected for now due to performance issues. I'll experiment with clip() to implement require functionality.
Patch for image fix