W3C home > Mailing lists > Public > www-svg@w3.org > October 2010

Missing setters in feConvolveMatrix filter

From: Renata Hodovan <reni@inf.u-szeged.hu>
Date: Fri, 15 Oct 2010 17:24:44 +0200 (CEST)
Message-ID: <41150.>
To: www-svg@w3.org

I've found a point in SVG Specification that seems a bit weird to me.
Correct me if I'm wrong but I think the tradition for changing the value
of SVG attributes is the following: for two dimensional attributes there
is a setter method which makes possible to change their value from SVGDOM.
For example feGaussainBlur's stdDeviation attribute. Here you can see
its idl:

interface SVGFEGaussianBlurElement : SVGElement,
                                     SVGFilterPrimitiveStandardAttributes {

  readonly attribute SVGAnimatedString in1;
  readonly attribute SVGAnimatedNumber stdDeviationX;
  readonly attribute SVGAnimatedNumber stdDeviationY;

  void setStdDeviation(in float stdDeviationX, in float stdDeviationY)

But getting feConvolveMatrix filter's order or kernelUnitLength attributes
- which both have two dimensions - we don't have similar setter
methods. Its interface:

interface SVGFEConvolveMatrixElement : SVGElement,
                                       SVGFilterPrimitiveStandardAttributes {

  // Edge Mode Values
  const unsigned short SVG_EDGEMODE_UNKNOWN = 0;
  const unsigned short SVG_EDGEMODE_DUPLICATE = 1;
  const unsigned short SVG_EDGEMODE_WRAP = 2;
  const unsigned short SVG_EDGEMODE_NONE = 3;

  readonly attribute SVGAnimatedString in1;
  readonly attribute SVGAnimatedInteger orderX;
  readonly attribute SVGAnimatedInteger orderY;
  readonly attribute SVGAnimatedNumberList kernelMatrix;
  readonly attribute SVGAnimatedNumber divisor;
  readonly attribute SVGAnimatedNumber bias;
  readonly attribute SVGAnimatedInteger targetX;
  readonly attribute SVGAnimatedInteger targetY;
  readonly attribute SVGAnimatedEnumeration edgeMode;
  readonly attribute SVGAnimatedNumber kernelUnitLengthX;
  readonly attribute SVGAnimatedNumber kernelUnitLengthY;
  readonly attribute SVGAnimatedBoolean preserveAlpha;

It seems inconsistent to me.
Would it be possible to update this part of specification similar to the
other filters?

Thanks in advance,
Received on Friday, 15 October 2010 16:58:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:23 UTC