Skip to content

Commit 354f7c6

Browse files
saschanazsandersn
authored andcommitted
add Filter Effects types (#689)
1 parent f0ca302 commit 354f7c6

6 files changed

Lines changed: 556 additions & 17 deletions

File tree

baselines/dom.generated.d.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ interface CSSStyleDeclaration {
26672667
clipPath: string | null;
26682668
clipRule: string | null;
26692669
color: string | null;
2670-
colorInterpolationFilters: string | null;
2670+
colorInterpolationFilters: string;
26712671
columnCount: string;
26722672
columnFill: string;
26732673
columnGap: string;
@@ -2692,16 +2692,16 @@ interface CSSStyleDeclaration {
26922692
fill: string | null;
26932693
fillOpacity: string | null;
26942694
fillRule: string | null;
2695-
filter: string | null;
2695+
filter: string;
26962696
flex: string | null;
26972697
flexBasis: string | null;
26982698
flexDirection: string | null;
26992699
flexFlow: string | null;
27002700
flexGrow: string | null;
27012701
flexShrink: string | null;
27022702
flexWrap: string | null;
2703-
floodColor: string | null;
2704-
floodOpacity: string | null;
2703+
floodColor: string;
2704+
floodOpacity: string;
27052705
font: string;
27062706
fontFamily: string;
27072707
fontFeatureSettings: string;
@@ -2755,7 +2755,7 @@ interface CSSStyleDeclaration {
27552755
left: string | null;
27562756
readonly length: number;
27572757
letterSpacing: string | null;
2758-
lightingColor: string | null;
2758+
lightingColor: string;
27592759
lineBreak: string | null;
27602760
lineHeight: string | null;
27612761
listStyle: string | null;
@@ -13459,18 +13459,12 @@ declare var SVGFETurbulenceElement: {
1345913459

1346013460
/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
1346113461
interface SVGFilterElement extends SVGElement, SVGURIReference {
13462-
/** @deprecated */
13463-
readonly filterResX: SVGAnimatedInteger;
13464-
/** @deprecated */
13465-
readonly filterResY: SVGAnimatedInteger;
1346613462
readonly filterUnits: SVGAnimatedEnumeration;
1346713463
readonly height: SVGAnimatedLength;
1346813464
readonly primitiveUnits: SVGAnimatedEnumeration;
1346913465
readonly width: SVGAnimatedLength;
1347013466
readonly x: SVGAnimatedLength;
1347113467
readonly y: SVGAnimatedLength;
13472-
/** @deprecated */
13473-
setFilterRes(filterResX: number, filterResY: number): void;
1347413468
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1347513469
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1347613470
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -18707,10 +18701,10 @@ declare function addEventListener<K extends keyof WindowEventMap>(type: K, liste
1870718701
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1870818702
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1870918703
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
18710-
type BlobPart = BufferSource | Blob | string;
1871118704
type HeadersInit = Headers | string[][] | Record<string, string>;
1871218705
type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string;
1871318706
type RequestInfo = Request | string;
18707+
type BlobPart = BufferSource | Blob | string;
1871418708
type DOMHighResTimeStamp = number;
1871518709
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext;
1871618710
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4742,10 +4742,10 @@ declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEven
47424742
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
47434743
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
47444744
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
4745-
type BlobPart = BufferSource | Blob | string;
47464745
type HeadersInit = Headers | string[][] | Record<string, string>;
47474746
type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string;
47484747
type RequestInfo = Request | string;
4748+
type BlobPart = BufferSource | Blob | string;
47494749
type DOMHighResTimeStamp = number;
47504750
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
47514751
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | WebGLRenderingContext;

inputfiles/addedTypes.json

Lines changed: 204 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@
281281
}
282282
},
283283
"extends": "SVGElement",
284-
"implements": ["SVGFilterPrimitiveStandardAttributes"]
284+
"implements": [
285+
"SVGFilterPrimitiveStandardAttributes"
286+
]
285287
},
286288
"AbortSignal": {
287289
"events": {
@@ -1843,7 +1845,7 @@
18431845
}
18441846
},
18451847
"methods": {
1846-
"method": {
1848+
"method": {
18471849
"getStartTime": {
18481850
"name": "getStartTime",
18491851
"override-signatures": [
@@ -1904,6 +1906,206 @@
19041906
}
19051907
]
19061908
},
1909+
"SVGFEBlendElement": {
1910+
"element": [
1911+
{
1912+
"namespace": "SVG",
1913+
"name": "feBlend"
1914+
}
1915+
]
1916+
},
1917+
"SVGFEColorMatrixElement": {
1918+
"element": [
1919+
{
1920+
"namespace": "SVG",
1921+
"name": "feColorMatrix"
1922+
}
1923+
]
1924+
},
1925+
"SVGFEComponentTransferElement": {
1926+
"element": [
1927+
{
1928+
"namespace": "SVG",
1929+
"name": "feComponentTransfer"
1930+
}
1931+
]
1932+
},
1933+
"SVGFECompositeElement": {
1934+
"element": [
1935+
{
1936+
"namespace": "SVG",
1937+
"name": "feComposite"
1938+
}
1939+
]
1940+
},
1941+
"SVGFEConvolveMatrixElement": {
1942+
"element": [
1943+
{
1944+
"namespace": "SVG",
1945+
"name": "feConvolveMatrix"
1946+
}
1947+
]
1948+
},
1949+
"SVGFEDiffuseLightingElement": {
1950+
"element": [
1951+
{
1952+
"namespace": "SVG",
1953+
"name": "feDiffuseLighting"
1954+
}
1955+
]
1956+
},
1957+
"SVGFEDisplacementMapElement": {
1958+
"element": [
1959+
{
1960+
"namespace": "SVG",
1961+
"name": "feDisplacementMap"
1962+
}
1963+
]
1964+
},
1965+
"SVGFEDistantLightElement": {
1966+
"element": [
1967+
{
1968+
"namespace": "SVG",
1969+
"name": "feDistantLight"
1970+
}
1971+
]
1972+
},
1973+
"SVGFEFloodElement": {
1974+
"element": [
1975+
{
1976+
"namespace": "SVG",
1977+
"name": "feFlood"
1978+
}
1979+
]
1980+
},
1981+
"SVGFEFuncAElement": {
1982+
"element": [
1983+
{
1984+
"namespace": "SVG",
1985+
"name": "feFuncA"
1986+
}
1987+
]
1988+
},
1989+
"SVGFEFuncBElement": {
1990+
"element": [
1991+
{
1992+
"namespace": "SVG",
1993+
"name": "feFuncB"
1994+
}
1995+
]
1996+
},
1997+
"SVGFEFuncGElement": {
1998+
"element": [
1999+
{
2000+
"namespace": "SVG",
2001+
"name": "feFuncG"
2002+
}
2003+
]
2004+
},
2005+
"SVGFEFuncRElement": {
2006+
"element": [
2007+
{
2008+
"namespace": "SVG",
2009+
"name": "feFuncR"
2010+
}
2011+
]
2012+
},
2013+
"SVGFEGaussianBlurElement": {
2014+
"element": [
2015+
{
2016+
"namespace": "SVG",
2017+
"name": "feGaussianBlur"
2018+
}
2019+
]
2020+
},
2021+
"SVGFEImageElement": {
2022+
"element": [
2023+
{
2024+
"namespace": "SVG",
2025+
"name": "feImage"
2026+
}
2027+
]
2028+
},
2029+
"SVGFEMergeElement": {
2030+
"element": [
2031+
{
2032+
"namespace": "SVG",
2033+
"name": "feMerge"
2034+
}
2035+
]
2036+
},
2037+
"SVGFEMergeNodeElement": {
2038+
"element": [
2039+
{
2040+
"namespace": "SVG",
2041+
"name": "feMergeNode"
2042+
}
2043+
]
2044+
},
2045+
"SVGFEMorphologyElement": {
2046+
"element": [
2047+
{
2048+
"namespace": "SVG",
2049+
"name": "feMorphology"
2050+
}
2051+
]
2052+
},
2053+
"SVGFEOffsetElement": {
2054+
"element": [
2055+
{
2056+
"namespace": "SVG",
2057+
"name": "feOffset"
2058+
}
2059+
]
2060+
},
2061+
"SVGFEPointLightElement": {
2062+
"element": [
2063+
{
2064+
"namespace": "SVG",
2065+
"name": "fePointLight"
2066+
}
2067+
]
2068+
},
2069+
"SVGFESpecularLightingElement": {
2070+
"element": [
2071+
{
2072+
"namespace": "SVG",
2073+
"name": "feSpecularLighting"
2074+
}
2075+
]
2076+
},
2077+
"SVGFESpotLightElement": {
2078+
"element": [
2079+
{
2080+
"namespace": "SVG",
2081+
"name": "feSpotLight"
2082+
}
2083+
]
2084+
},
2085+
"SVGFETileElement": {
2086+
"element": [
2087+
{
2088+
"namespace": "SVG",
2089+
"name": "feTile"
2090+
}
2091+
]
2092+
},
2093+
"SVGFETurbulenceElement": {
2094+
"element": [
2095+
{
2096+
"namespace": "SVG",
2097+
"name": "feTurbulence"
2098+
}
2099+
]
2100+
},
2101+
"SVGFilterElement": {
2102+
"element": [
2103+
{
2104+
"namespace": "SVG",
2105+
"name": "filter"
2106+
}
2107+
]
2108+
},
19072109
"SVGLineElement": {
19082110
"element": [
19092111
{

0 commit comments

Comments
 (0)