Updated SVG support (markdown)

Jinny Cho 2018-10-02 11:49:25 -04:00
parent 04fa21612f
commit 3fa4f46609

@ -1,213 +1,122 @@
## Supported SVG elements ## Elements
https://github.com/mapnik/mapnik/tree/svg-strict-parsing ### Supported
| **Elements** | **Attributes** |
|:--------------:|:-----------------------------:|
| rect | (x, y, width, height, rx, ry) |
| path | (d) |
| polygon | (points) |
| polyline | (points) |
| line | (x1, y1, x2, y2) |
| circle | (cx, cy, r) |
| ellipse | (cx, cy, rx, ry) |
| svg | (width, height, viewBox) |
| linearGradient | |
| radialGradient | |
| g | |
| use | |
| defs | |
### `<svg>` ### Not-supported
| **Elements** |
#### Specific attributes |:------------:|
| marker |
| attribute | value | | view |
| --------- | ----- | | text |
| width | | | switch |
| height | | | image |
| viewBox | | | a |
| symbol |
### `<path>`
#### Global attributes
[transform](#Global-attributes)
#### Specific attributes
| attribute | value |
| --------- | ----- |
| d | |
### `<polygon>`
#### Specific attributes
| attribute | value |
| --------- | ----- |
| points | |
### `<polyline>`
#### Specific attributes
| attribute | value |
| --------- | ----- |
| points | |
### `<line>`
#### Specific attributes
| attribute | value |
| --------- | ----- |
| x1 | |
| y1 | |
| x2 | |
| y2 | |
### `<rect>`
#### Specific attributes
| attribute | value |
| --------- | ----- |
| x | |
| y | |
| width | |
| height | |
| rx | |
| ry | |
### `<circle>`
#### Specific attributes
| attribute | value |
| --------- | ----- |
| cx | |
| cy | |
| r | |
### `<ellipse>`
#### Specific attributes
| attribute | value |
| --------- | ----- |
| cx | |
| cy | |
| rx | |
| ry | |
### `<g>`
#### Global attributes
##### transform
#### Specific attributes
### `<use>`
#### Specific attributes
### `<linearGradient>`
#### Specific attributes
### `<radialGradient>`
#### Specific attributes
### `<symbol>`
#### Specific attributes
### `<defs>`
#### Specific attributes
__________________________________ __________________________________
### Style Attributes ## Attributes
### Supported
| **Support** |
|:-------------------:|
| transform |
| fill |
| fill-opacity |
| fill-rule |
| stroke |
| stroke-width |
| stroke-opacity |
| stroke-linecap |
| stroke-linejoin |
| stroke-miterlimit |
| stroke-dasharray |
| stroke-dashoffset |
| opacity |
| visibility |
| display |
| stop-color |
| stop-opacity |
| preserveAspectRatio |
| viewBox |
| height |
| width |
| href |
| id |
| d |
| x |
| x1 |
| x2 |
| y |
| y1 |
| y2 |
| cs |
| cy |
| r |
| fx |
| fy |
| style |
| gradientUnits |
| gradientTransform |
| points |
| offset |
#### `<style` ### Not-supported
| **Not support** |
|:----------------------------:|
#### `<class>` | alignment-baseline |
| baseline-shift |
_Not supported_ | clip |
| clip-path |
------------------------ | clip-rule |
| color-interpolation |
### Global attributes | color-interpolation-filters |
| color-profile |
#### `transform` | color-rendering |
| cursor |
------------------------ | direction |
| dominant-baseline |
### Presentation attributes | enable-background |
| filter |
#### ~~`alignment-baseline`~~ | flood-color |
| flood-opacity |
#### ~~`baseline-shift`~~ | font-family |
| font-size |
#### ~~`clip`~~ | font-size-adjust |
| font-stretch |
#### ~~`clip-path`~~ | font-style |
| font-variant |
#### ~~`clip-rule`~~ | font-weight |
| glyph-orientation-horizontal |
#### `color` | glyph-orientation-vertical |
| image-rendering |
#### ~~`color-interpolation`~~ | kerning |
| letter-spacing |
#### ~~`color-interpolation-filters`~~ | lighting-color |
| marker-end |
#### ~~`color-profile`~~ | marker-mid |
| marker-start |
#### ~~`color-rendering`~~ | mask |
| overflow |
#### ~~`cursor`~~ | pointer-events |
| shape-rendering |
#### ~~`direction`~~ | text-anchor |
| text-decoration |
#### `display` | text-rendering |
| unicode-bidi |
#### ~~`dominant-baseline`~~ | word-spacing |
| writing-mode |
#### ~~`enable-background`~~
#### `fill`
#### `fill-opacity`
#### `fill-rule`
#### ~~`filter`~~
#### ~~`flood-color`~~
#### ~~`flood-opacity`~~
#### ~~`font-family`~~
#### ~~`font-size`~~
#### ~~`font-size-adjust`~~
#### ~~`font-stretch`~~
#### ~~`font-style`~~
#### ~~`font-variant`~~
#### ~~`font-weight`~~
#### ~~`glyph-orientation-horizontal`~~
#### ~~`glyph-orientation-vertical`~~
#### ~~`image-rendering`~~
#### ~~`kerning`~~
#### ~~`letter-spacing`~~
#### ~~`lighting-color`~~
#### ~~`marker-end`~~
#### ~~`marker-mid`~~
#### ~~`marker-start`~~
#### ~~`mask`~~
#### `opacity`
#### ~~`overflow`~~
#### ~~`pointer-events`~~
#### ~~`shape-rendering`~~
#### `stop-color`
#### `stop-opacity`
#### `stroke`
#### `stroke-dasharray`
#### `stroke-dashoffset`
#### `stroke-linecap`
#### `stroke-linejoin`
#### `stroke-miterlimit`
#### `stroke-opacity`
#### `stroke-width`
#### ~~`text-anchor`~~
#### ~~`text-decoration`~~
#### ~~`text-rendering`~~
#### ~~`unicode-bidi`~~
#### `visibility`
#### ~~`word-spacing`~~
#### ~~`writing-mode`~~