summaryrefslogtreecommitdiffstats
path: root/src/default.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-06-24 13:46:58 +0100
committerwout <wout@impinc.co.uk>2013-06-24 13:46:58 +0100
commitb1669697a9c05401673e87e84b6713af15be9e05 (patch)
tree7ae56f7cf68c4857c1f66b2fa8a49b3202edabeb /src/default.js
parent65f915f1f3c878d97634ed360337d0ab2ea2d0d3 (diff)
downloadsvg.js-b1669697a9c05401673e87e84b6713af15be9e05.tar.gz
svg.js-b1669697a9c05401673e87e84b6713af15be9e05.zip
Added default stroke-linejoin and stroke-linecap values
Diffstat (limited to 'src/default.js')
-rw-r--r--src/default.js38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/default.js b/src/default.js
index fd85228..113e283 100644
--- a/src/default.js
+++ b/src/default.js
@@ -6,28 +6,30 @@ SVG.defaults = {
// Default attribute values
, attrs: {
/* fill and stroke */
- 'fill-opacity': 1
- , 'stroke-opacity': 1
- , 'stroke-width': 0
- , fill: '#000'
- , stroke: '#000'
- , opacity: 1
+ 'fill-opacity': 1
+ , 'stroke-opacity': 1
+ , 'stroke-width': 0
+ , 'stroke-linejoin': 'miter'
+ , 'stroke-linecap': 'butt'
+ , fill: '#000'
+ , stroke: '#000'
+ , opacity: 1
/* position */
- , x: 0
- , y: 0
- , cx: 0
- , cy: 0
+ , x: 0
+ , y: 0
+ , cx: 0
+ , cy: 0
/* size */
- , width: 0
- , height: 0
+ , width: 0
+ , height: 0
/* radius */
- , r: 0
- , rx: 0
- , ry: 0
+ , r: 0
+ , rx: 0
+ , ry: 0
/* gradient */
- , offset: 0
- , 'stop-opacity': 1
- , 'stop-color': '#000'
+ , offset: 0
+ , 'stop-opacity': 1
+ , 'stop-color': '#000'
}
// Default transformation values