1
|
|
|
<?php |
2
|
|
|
namespace nstdio\svg\light; |
3
|
|
|
|
4
|
|
|
/** |
5
|
|
|
* Class SpotLight |
6
|
|
|
* |
7
|
|
|
* @link https://www.w3.org/TR/SVG11/filters.html#fefeSpotLightElement |
8
|
|
|
* |
9
|
|
|
* @property float x = "<number>" X location for the light source in the coordinate system established |
10
|
|
|
* by attribute ‘primitiveUnits’ on the ‘filter’ element. If the attribute is not specified, then the effect |
11
|
|
|
* is as if a value of 0 were specified. |
12
|
|
|
* @property float y = "<number>" Y location for the light source in the coordinate system established |
13
|
|
|
* by attribute ‘primitiveUnits’ on the ‘filter’ element. If the attribute is not specified, then the effect |
14
|
|
|
* is as if a value of 0 were specified. |
15
|
|
|
* @property float z = "<number>" Z location for the light source in the coordinate system established |
16
|
|
|
* by attribute ‘primitiveUnits’ on the ‘filter’ element, assuming that, in the initial coordinate system, |
17
|
|
|
* the positive Z-axis comes out towards the person viewing the content and assuming that one unit along the |
18
|
|
|
* Z-axis equals one unit in X and Y. If the attribute is not specified, then the effect is as if a value of |
19
|
|
|
* 0 were specified. |
20
|
|
|
* @property float pointsAtX = "<number>" X location in the coordinate system established by attribute |
21
|
|
|
* ‘primitiveUnits’ on the ‘filter’ element of the point at which the light source is pointing. If the |
22
|
|
|
* attribute is not specified, then the effect is as if a value of 0 were specified. |
23
|
|
|
* @property float pointsAtY = "<number>" Y location in the coordinate system established by attribute |
24
|
|
|
* ‘primitiveUnits’ on the ‘filter’ element of the point at which the light source is pointing. If the |
25
|
|
|
* attribute is not specified, then the effect is as if a value of 0 were specified. |
26
|
|
|
* @property float pointsAtZ = "<number>" Z location in the coordinate system established by attribute |
27
|
|
|
* ‘primitiveUnits’ on the ‘filter’ element of the point at which the light source is pointing, assuming |
28
|
|
|
* that, in the initial coordinate system, the positive Z-axis comes out towards the person viewing the |
29
|
|
|
* content and assuming that one unit along the Z-axis equals one unit in X and Y. If the attribute is not |
30
|
|
|
* specified, then the effect is as if a value of 0 were specified. |
31
|
|
|
* @property float specularExponent = "<number>" Exponent value controlling the focus for the light source. If the |
32
|
|
|
* attribute is not specified, then the effect is as if a value of 1 were specified. |
33
|
|
|
* @property float limitingConeAngle = "<number>" A limiting cone which restricts the region where the light is |
34
|
|
|
* projected. No light is projected outside the cone. ‘limitingConeAngle’ represents the angle in degrees |
35
|
|
|
* between the spot light axis (i.e. the axis between the light source and the point to which it is pointing |
36
|
|
|
* at) and the spot light cone. User agents should apply a smoothing technique such as anti-aliasing at the |
37
|
|
|
* boundary of the cone. If no value is specified, then no limiting cone will be applied. |
38
|
|
|
* @package nstdio\svg\light |
39
|
|
|
* @author Edgar Asatryan <[email protected]> |
40
|
|
|
*/ |
41
|
|
|
class SpotLight extends BaseLight |
42
|
|
|
{ |
43
|
|
|
|
44
|
2 |
|
public function getName() |
45
|
|
|
{ |
46
|
2 |
|
return 'feSpotLight'; |
47
|
|
|
} |
48
|
|
|
} |