LibWeb: Add SVGComponentTransferFunctionElement

This will be the base for <feFuncR>, <feFuncG>, <feFuncB> and <feFuncA>.
This commit is contained in:
Jelle Raaijmakers
2025-11-05 16:44:24 +01:00
committed by Jelle Raaijmakers
parent 03a8de566b
commit db321cb74f
Notes: github-actions[bot] 2025-11-09 00:23:58 +00:00
10 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#import <SVG/SVGElement.idl>
// https://www.w3.org/TR/filter-effects-1/#InterfaceSVGComponentTransferFunctionElement
[Exposed=Window]
interface SVGComponentTransferFunctionElement : SVGElement {
// Component Transfer Types
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
readonly attribute SVGAnimatedEnumeration type;
readonly attribute SVGAnimatedNumberList tableValues;
readonly attribute SVGAnimatedNumber slope;
readonly attribute SVGAnimatedNumber intercept;
readonly attribute SVGAnimatedNumber amplitude;
readonly attribute SVGAnimatedNumber exponent;
readonly attribute SVGAnimatedNumber offset;
};