Bug #2268
closedSVG - Backward Compatibility
0%
Description
- Need to add code so old SVG icons are translated to have their origin at the
top-left corner. They are currently cropped when displayed in batik, because
Ptolemy's default origin for svg components is at the center of each actor icon,
whereas the svg/batik standard is to have the origin at top-left.
Another possibility (and one which would temporarily help with the memory usage
problems - see bug #2267) would be to continue using PTII's SVG rendering for
the old "simple" svg icons, and use batik only for the new icons.
Related issues
Updated by Matthew Brooke about 19 years ago
Another back-compat issue:
In EML simple example plot, text at bottom is rendered using SVG, and it does
not wrap, but extends off the screen. (but the text did wrap OK in the
old-style svg handling). Note, however, that if annotation actor is re-created
and text is pasted in again, it does wrap in the new instance.
Updated by Matthew Brooke almost 19 years ago
fixed translation issue by reverting to diva renderign for old-style icons, and
using batik only if batik switch is active in config.
Also - issue of attribute in EML simple example plot: haven't seen that in any
other workflows - maybe "Attribute" shouldn't really have been used in this
instance - probably shoudl have been annnotation actor? Anyway, future workflows
will behave correctly