非常教程

SVG参考手册

属性 | Attributes

kernelunitlength

基于它所处的上下文,kernelUnitLength属性有两个含义。

第一个数字是<dx>值。第二个数字是<dy>值。如果未指定<dy>值,则默认为与<dx>相同的值。

  • 对于照明滤镜基元(lighting filter primitives),它表示在表面法线计算公式中分别针对dx和dy在当前滤波器单位下(即,由属性primitiveUnits确定的单位)的预期距离。
  • 对于<feconvolvematrix>图元,它表示kernelMatrix中,在当前过滤器单位下,连续的列之间和行之间分别的预期距离(即,由属性值primitiveUnits确定的单位)。

通过指定kernelUnitLength的值,kernel就变成了一个可伸缩的抽象坐标系统。

如果没有指定kernelUnitLength,则在很多情况下,它被定义为中间图像离屏位图中的一个像素,这是一个基于像素的坐标系统,因此可能无法扩展,从而对SVG内容产生严重的视觉影响。

用法上下文

Categories

None

Value

<number-optional-number>

Animatable

Yes

Normative document

SVG 1.1 (2nd Edition) : feConvolveMatrix SVG 1.1 (2nd Edition) : feDiffuseLighting SVG 1.1 (2nd Edition) : feSpecularLighting

实例

适用元素

以下元素可以使用该kernelUnitLength属性

  • <feconvolvematrix>
  • <fediffuselighting>
  • <fespecularlighting>

属性 | Attributes相关

1.accent-height(焦点高度)
2.accumulate(积累)
3.additive
4.alignment-baseline(对齐基线)
5.ascent
6.attributename(属性名字)
7.Attributes(属性)
8.attributetype(属性类型)
9.azimuth(方位)
10.basefrequency
11.baseline-shift(基线漂移)
12.baseprofile
13.begin(开始)
14.bias(偏压)
15.calcmode
16.class
17.clip(剪辑)
18.clip-path(剪辑路径)
19.clip-rule(剪辑规则)
20.clippathunits
21.color(颜色)
22.color-interpolation(彩色插值)
23.color-interpolation-filters(色彩插值滤波器)
24.color-profile(彩色轮廓)
25.color-rendering(显色)
26.contentscripttype
27.contentstyletype
28.cursor(光标)
29.cx
30.cy
31.d
32.diffuseconstant
33.direction(方向)
34.display(显示)
35.divisor
36.dominant-baseline(显性基线)
37.dur
38.dx
39.dy
40.edgemode
41.elevation
42.end
43.externalresourcesrequired
44.fill
45.fill-opacity
46.fill-rule
47.filter
48.filterres
49.filterunits
50.flood-color
51.flood-opacity
52.font-family
53.font-size
54.font-size-adjust
55.font-stretch
56.font-style
57.font-variant
58.font-weight
59.fr
60.from
61.fx
62.fy
63.gradienttransform
64.gradientunits
65.height
66.href
67.image-rendering
68.in
69.in2
70.k1
71.k2
72.k3
73.k4
74.kernelmatrix
75.kerning
76.keysplines
77.keytimes
78.lengthadjust
79.letter-spacing
80.lighting-color
81.limitingconeangle
82.local
83.marker-end
84.marker-mid
85.marker-start
86.markerheight
87.markerunits
88.markerwidth
89.mask
90.maskcontentunits
91.maskunits
92.max
93.min
94.mode
95.numoctaves
96.opacity
97.operator
98.order
99.overflow
100.overline-position
SVG

可缩放矢量图形是基于可扩展标记语言(标准通用标记语言的子集),用于描述二维矢量图形的一种图形格式。它由万维网联盟制定,是一个开放标准。