Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aznar committed Nov 14, 2016
2 parents 5e8f33a + a035458 commit 9052589
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -477,3 +477,22 @@ Write ```use3```
<use xlink:href="#$1" x="$4" y="$5"/>
```

##Scalable with Inverted Y-Axis

Write ```scalablei```

```html

/* after */

<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"
viewBox="$1 $2 $3 $4" width="$5" height="$6" aria-labelledby="title desc">
<title id="title">$7</title>
<desc id="desc">$8</desc>
<g transform="translate(0,$4) scale(1,-1)">
${9:<!-- content -->}
</g>

</svg>
```

15 changes: 15 additions & 0 deletions scalableinverted.sublime-snippet
@@ -0,0 +1,15 @@
<snippet>
<content><![CDATA[
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"
viewBox="$1 $2 $3 $4" width="$5" height="$6" aria-labelledby="title desc">
<title id="title">$7</title>
<desc id="desc">$8</desc>
<g transform="translate(0,$4) scale(1,-1)">
${9:<!-- content -->}
</g>
</svg>
]]></content>
<description>SVG - STRUCTURE: Inverted Y-Axis</description>
<tabTrigger>scalablei</tabTrigger>
<scope>text.html, text.xml, source.js</scope>
</snippet>

0 comments on commit 9052589

Please sign in to comment.