Skip to content

Commit ecf3cfc

Browse files
estellewbamberg
andauthored
New pages: SVGFESpotLightElement (#37430)
* New pages: SVGFESpotLightElement * New pages: SVGFESpotLightElement * New pages: SVGFESpotLightElement * New pages: SVGFESpotLightElement * Update files/en-us/web/api/svgfespotlightelement/y/index.md --------- Co-authored-by: wbamberg <[email protected]>
1 parent 537aeae commit ecf3cfc

File tree

3 files changed

+120
-0
lines changed

3 files changed

+120
-0
lines changed

Diff for: files/en-us/web/api/svgfespotlightelement/x/index.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "SVGFESpotLightElement: x property"
3+
short-title: x
4+
slug: Web/API/SVGFESpotLightElement/x
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpotLightElement.x
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`x`** read-only property of the {{domxref("SVGFESpotLightElement")}} interface describes the horizontal coordinate of the position of an SVG filter primitive as a {{domxref("SVGAnimatedNumber")}}.
12+
13+
It reflects the {{SVGAttr("x")}} attribute of the {{SVGElement("feSpotLight")}} element., which can be used to define the light source in a spotlight effect. The attribute is a [`<number>`](/en-US/docs/Web/SVG/Content_type#number). The default value is `0`.
14+
15+
## Value
16+
17+
An {{domxref("SVGAnimatedNumber")}}.
18+
19+
## Example
20+
21+
```js
22+
const feSpotLight = document.querySelector("feSpotLight");
23+
const leftPosition = feSpotLight.x;
24+
console.log(leftPosition.baseVal.value); // the `x` value
25+
```
26+
27+
## Specifications
28+
29+
{{Specifications}}
30+
31+
## Browser compatibility
32+
33+
{{Compat}}
34+
35+
## See also
36+
37+
- {{domxref("SVGFESpotLightElement.y")}}
38+
- {{domxref("SVGFESpotLightElement.z")}}
39+
- {{domxref("SVGFEDistantLightElement")}}
40+
- {{domxref("SVGFEPointLightElement")}}

Diff for: files/en-us/web/api/svgfespotlightelement/y/index.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "SVGFESpotLightElement: y property"
3+
short-title: "y"
4+
slug: Web/API/SVGFESpotLightElement/y
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpotLightElement.y
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`y`** read-only property of the {{domxref("SVGFESpotLightElement")}} interface describes the vertical coordinate of the position of an SVG filter primitive as a {{domxref("SVGAnimatedNumber")}}.
12+
13+
It reflects the {{SVGAttr("y")}} attribute of the {{SVGElement("feSpotLight")}} element., which can be used to define the light source in a spotlight effect. The attribute is a [`<number>`](/en-US/docs/Web/SVG/Content_type#number). The default value is `0`.
14+
15+
## Value
16+
17+
An {{domxref("SVGAnimatedNumber")}}.
18+
19+
## Example
20+
21+
```js
22+
const feSpotLight = document.querySelector("feSpotLight");
23+
const topPosition = feSpotLight.y;
24+
console.log(topPosition.baseVal.value); // the `y` value
25+
```
26+
27+
## Specifications
28+
29+
{{Specifications}}
30+
31+
## Browser compatibility
32+
33+
{{Compat}}
34+
35+
## See also
36+
37+
- {{domxref("SVGFESpotLightElement.x")}}
38+
- {{domxref("SVGFESpotLightElement.z")}}
39+
- {{domxref("SVGFEDistantLightElement")}}
40+
- {{domxref("SVGFEPointLightElement")}}

Diff for: files/en-us/web/api/svgfespotlightelement/z/index.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "SVGFESpotLightElement: z property"
3+
short-title: z
4+
slug: Web/API/SVGFESpotLightElement/z
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpotLightElement.z
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`z`** read-only property of the {{domxref("SVGFESpotLightElement")}} interface describes the z-axis value of the position of an SVG filter primitive as a {{domxref("SVGAnimatedNumber")}}. A positive Z-axis comes out towards the person viewing the content.
12+
13+
It reflects the {{SVGAttr("z")}} attribute of the {{SVGElement("feSpotLight")}} element, which can be used to define the light source in a spotlight effect. The attribute is a [`<number>`](/en-US/docs/Web/SVG/Content_type#number). The default value is `0`.
14+
15+
## Value
16+
17+
An {{domxref("SVGAnimatedNumber")}}.
18+
19+
## Example
20+
21+
```js
22+
const feSpotLight = document.querySelector("feSpotLight");
23+
const zVal = feSpotLight.z;
24+
console.log(zVal.baseVal.value); // the `z` value
25+
```
26+
27+
## Specifications
28+
29+
{{Specifications}}
30+
31+
## Browser compatibility
32+
33+
{{Compat}}
34+
35+
## See also
36+
37+
- {{domxref("SVGFESpotLightElement.x")}}
38+
- {{domxref("SVGFESpotLightElement.y")}}
39+
- {{domxref("SVGFEDistantLightElement")}}
40+
- {{domxref("SVGFEPointLightElement")}}

0 commit comments

Comments
 (0)