Hi Andres,

[EMAIL PROTECTED] wrote:

SVGOMPathElement.getNormalizedPathSegList() is NOT IMPLEMENTED!

I have filed a bugzilla for this lack of implementation,
http://issues.apache.org/bugzilla/show_bug.cgi?id=35773

   Thanks.

Also, I am interested in offering at least some partial implementation of
this problem. I definitely would like some guidance as to the complexities
involved in the live (Animated) attributes.

   This is great.  However for us to use it we would likely need to
have a Contributors License Agreement (CLA) on file:
        http://www.apache.org/licenses/#clas

In the meanwhile I have created a base implementation of
getNormalizedPathSegList(), by extending the following classes:
-SVGOMAnimatedNormPathData extends SVGOMAnimatedPathData
-AbstractSVGNormPathSegList extends AbstractSVGPathSegList

My implementation is made follwing how the method getPathSegList() is
implemented. But I am not sure I am approaching the AnimatedPathData
constraints in a proper manner.

   The basic thing is to implement the attrAdded/Modified/Removed
methods to invalidate the current path segments.  Also you
need to provide the getValueAsString and setAttributeValue.

I am aware that this implementation would
be better off incorporating it directly into the classes mentioned above
(instead of extending them). I hope to have time this week to propose a
basic implementation, specifically of
SVGOMPathElement.getNormalizedPathSegList().

   Yah, I would be tempted to have an extra bit that indicates if the
segment should be normalized before returning it.  One thing that
isn't clear to me is what the proper behavior is when the list is
modified (are you expected to keep the same base type or can you
replace the previous seg type with the abs segment type).

I still need to figure out how to Normalize a arc segment, all others I have succesfully Normalized.

   The Arc is simple you simply need to make the destination point
an absolute point rather than a relative one.  There is no way to
normalize the radii or the arc flags (or they are already normalized).

Also, I imagine this thread should be moved to the devel list, right?

   Yes, and done.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to