Home
Categories
Dictionnary
Download
Project Details
FAQ
License

SVG shapes support


    1  Attributes supported for all elements
    2  G
    3  Rect
    4  Line
    5  Circle
    6  Ellipse
    7  Polyline
    8  Polygon
    9  Path
    10  Text
       10.1  Tspan
    11  Notes

This article presents the support for SVG shapes[1] .

Attributes supported for all elements

All elements support the following attributes:

G

No attributes are supported besides those supported for all elements.

Rect

The following attributes are supported:
  • x
  • y
  • width
  • height
  • rx
  • ry
  • color
  • fill-color
  • opacity
  • fill-opacity
  • The attributes for Strokes support

Line

The following attributes are supported:

Circle

The following attributes are supported:
  • cx
  • cy
  • r
  • stroke
  • fill-color
  • opacity
  • fill-opacity
  • The attributes for Strokes support

Ellipse

The following attributes are supported:
  • cx
  • cy
  • rx
  • ry
  • stroke
  • fill-color
  • opacity
  • fill-opacity
  • The attributes for Strokes support

Polyline

The following attributes are supported: Note that the fill attribute is unsupported. All polylines are not filled.

Polygon

The following attributes are supported:
  • points
  • stroke
  • fill-color
  • opacity
  • fill-opacity
  • The attributes for Strokes support

Path

The following attributes are supported:
  • d
  • stroke
  • fill-color
  • opacity
  • fill-opacity
  • The attributes for Strokes support

Text

The following attributes are supported:
  • x
  • y
  • font-family
  • font-size
  • font-style
  • text-decoration
Note: only the underline and line-through values are supported for the text-decoration attribute.

Tspan

Text can contain tspan elements.

The following attributes are supported:
  • x
  • y
  • font-family
  • font-size
  • font-style
  • text-decoration
  • baseline-shift

Notes


Categories: fromsvgsupport

Copyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License