就业培训     下载中心     Wiki     联络
登录   注册

Log
  1. 首页
  2. SVG:可伸缩向量图形
  3. SVG Attribute reference
  4. kernelUnitLength

内容表

  • feConvolveMatrix
  • feDiffuseLighting
  • feSpecularLighting
  • 规范

kernelUnitLength

  1. SVG 元素
    1. A
      1. <a>
      2. <altGlyph>
      3. <altGlyphDef>
      4. <altGlyphItem>
      5. <animate>
      6. <animateColor>
      7. <animateMotion>
      8. <animateTransform>
    2. B-C
      1. <circle>
      2. <clipPath>
      3. <color-profile>
      4. <cursor>
    3. D
      1. <defs>
      2. <desc>
    4. E
      1. <ellipse>
    5. F
      1. <feBlend>
      2. <feColorMatrix>
      3. <feComponentTransfer>
      4. <feComposite>
      5. <feConvolveMatrix>
      6. <feDiffuseLighting>
      7. <feDisplacementMap>
      8. <feDistantLight>
      9. <feFlood>
      10. <feFuncA>
      11. <feFuncB>
      12. <feFuncG>
      13. <feFuncR>
      14. <feGaussianBlur>
      15. <feImage>
      16. <feMerge>
      17. <feMergeNode>
      18. <feMorphology>
      19. <feOffset>
      20. <fePointLight>
      21. <feSpecularLighting>
      22. <feSpotLight>
      23. <feTile>
      24. <feTurbulence>
      25. <filter>
      26. <font>
      27. <font-face>
      28. <font-face-format>
      29. <font-face-name>
      30. <font-face-src>
      31. <font-face-uri>
      32. <foreignObject>
    6. G
      1. <g>
      2. <glyph>
      3. <glyphRef>
    7. H
      1. <hkern>
    8. I
      1. <image>
    9. J-L
      1. <line>
      2. <linearGradient>
    10. M
      1. <marker>
      2. <mask>
      3. <metadata>
      4. <missing-glyph>
      5. <mpath>
    11. N-P
      1. <path>
      2. <pattern>
      3. <polygon>
      4. <polyline>
    12. Q-R
      1. <radialGradient>
      2. <rect>
    13. S
      1. <script>
      2. <set>
      3. <stop>
      4. <style>
      5. <svg>
      6. <switch>
      7. <symbol>
    14. T
      1. <text>
      2. <textPath>
      3. <title>
      4. <tref>
      5. <tspan>
    15. U
      1. <use>
    16. V-Z
      1. <view>
      2. <vkern>

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the 兼容性表格 at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

kernelUnitLength attribute has two meanings based on the context it's used in. For lighting filter primitives, it indicates the intended distance for the x and y coordinates, for <feConvolveMatrix> , it indicates the intended distance between successive columns and rows in the kernel matrix.

You can use this attribute with the following SVG elements:

  • <feConvolveMatrix>
  • <feDiffuseLighting>
  • <feSpecularLighting>

feConvolveMatrix

对于 <feConvolveMatrix> , kernelUnitLength indicates the intended distance in current filter units (i.e., units as determined by the value of primitiveUnits attribute) between successive columns and rows, respectively, in the kernelMatrix . By specifying value(s) for kernelUnitLength , the kernel becomes defined in a scalable, abstract coordinate system. If the attribute is not specified, the default value is one pixel in the offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable.

If a negative or zero value is specified the default value will be used instead.

值 <number-optional-number>
默认值 Pixel in offscreen bitmap
Animatable Yes
<number-optional-number>

The first number is the x value. The second number is the y value. If the x value is not specified, it defaults to the same value as x.

feDiffuseLighting

对于 <feDiffuseLighting> , kernelUnitLength indicates the intended distance in current filter units (i.e., units as determined by the value of attribute primitiveUnits ) for the x and y coordinate, respectively, in the surface normal calculation formulas.

The first number is the x value. The second number is the y value. If the y value is not specified, it defaults to the same value as x. By specifying value(s) for kernelUnitLength , the kernel becomes defined in a scalable, abstract coordinate system. If the attribute is not specified, the x and y values represent very small deltas relative to a given position, which might be implemented in some cases as one pixel in the intermediate image offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable.

If a negative or zero value is specified the default value will be used instead.

值 <number-optional-number>
默认值 Pixel in offscreen bitmap
Animatable Yes

feSpecularLighting

对于 <feSpecularLighting> , kernelUnitLength indicates the intended distance in current filter units (i.e., units as determined by the value of attribute primitiveUnits ) for the x and y coordinate, respectively, in the surface normal calculation formulas.

The first number is the x value. The second number is the y value. If the y value is not specified, it defaults to the same value as x. By specifying value(s) for kernelUnitLength , the kernel becomes defined in a scalable, abstract coordinate system. If the attribute is not specified, the x and y values represent very small deltas relative to a given position, which might be implemented in some cases as one pixel in the intermediate image offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable.

If a negative or zero value is specified the default value will be used instead.

值 <number-optional-number>
默认值 Pixel in offscreen bitmap
Animatable Yes

规范

规范 状态 注释
Filter Effects Module Level 1
The definition of 'kernelUnitLength for <feSpecularLighting>' in that specification.
工作草案 Marked the attribute as deprecated.
Filter Effects Module Level 1
The definition of 'kernelUnitLength for <feDiffuseLighting>' in that specification.
工作草案 Marked the attribute as deprecated.
Filter Effects Module Level 1
The definition of 'kernelUnitLength for <feConvolveMatrix>' in that specification.
工作草案 Marked the attribute as deprecated.
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'kernelUnitLength for <feSpecularLighting>' in that specification.
推荐 Initial definition for <feSpecularLighting>
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'kernelUnitLength for <feDiffuseLighting>' in that specification.
推荐 Initial definition for <feDiffuseLighting>
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'kernelUnitLength for <feConvolveMatrix>' in that specification.
推荐 Initial definition for <feConvolveMatrix>

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide .

最后修改: Sep 23, 2021 , 由 MDN 贡献者

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1