From 3fa4f46609c441a70df18a12d44cd3bea7edfb75 Mon Sep 17 00:00:00 2001 From: Jinny Cho <35614147+jinnycho503@users.noreply.github.com> Date: Tue, 2 Oct 2018 11:49:25 -0400 Subject: [PATCH] Updated SVG support (markdown) --- SVG-support.md | 323 ++++++++++++++++++------------------------------- 1 file changed, 116 insertions(+), 207 deletions(-) diff --git a/SVG-support.md b/SVG-support.md index b8442f9..79bd41a 100644 --- a/SVG-support.md +++ b/SVG-support.md @@ -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 | | -### `` - -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| width | | -| height | | -| viewBox | | - - -### `` -#### Global attributes -[transform](#Global-attributes) -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| d | | - - -### `` - -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| points | | - -### `` - -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| points | | - -### `` - -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| x1 | | -| y1 | | -| x2 | | -| y2 | | - -### `` - -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| x | | -| y | | -| width | | -| height | | -| rx | | -| ry | | - -### `` - -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| cx | | -| cy | | -| r | | - - -### `` - -#### Specific attributes - -| attribute | value | -| --------- | ----- | -| cx | | -| cy | | -| rx | | -| ry | | - -### `` -#### Global attributes - -##### transform - -#### Specific attributes - - -### `` - -#### Specific attributes - -### `` - -#### Specific attributes - -### `` - -#### Specific attributes - -### `` - -#### Specific attributes - -### `` - -#### Specific attributes +### Not-supported +| **Elements** | +|:------------:| +| marker | +| view | +| text | +| switch | +| image | +| a | +| symbol | __________________________________ -### 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 | -#### `` - -_Not supported_ - ------------------------- - -### Global attributes - -#### `transform` - ------------------------- - -### Presentation attributes - -#### ~~`alignment-baseline`~~ - -#### ~~`baseline-shift`~~ - -#### ~~`clip`~~ - -#### ~~`clip-path`~~ - -#### ~~`clip-rule`~~ - -#### `color` - -#### ~~`color-interpolation`~~ - -#### ~~`color-interpolation-filters`~~ - -#### ~~`color-profile`~~ - -#### ~~`color-rendering`~~ - -#### ~~`cursor`~~ - -#### ~~`direction`~~ - -#### `display` - -#### ~~`dominant-baseline`~~ - -#### ~~`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`~~ +### Not-supported +| **Not support** | +|:----------------------------:| +| alignment-baseline | +| baseline-shift | +| clip | +| clip-path | +| clip-rule | +| color-interpolation | +| color-interpolation-filters | +| color-profile | +| color-rendering | +| cursor | +| direction | +| dominant-baseline | +| enable-background | +| 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 | +| overflow | +| pointer-events | +| shape-rendering | +| text-anchor | +| text-decoration | +| text-rendering | +| unicode-bidi | +| word-spacing | +| writing-mode |