aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Marker.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Marker.js')
-rw-r--r--src/elements/Marker.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/elements/Marker.js b/src/elements/Marker.js
index d6a599d..b3077b1 100644
--- a/src/elements/Marker.js
+++ b/src/elements/Marker.js
@@ -4,8 +4,8 @@ import Container from './Container.js'
export default class Marker extends Container {
// Initialize node
- constructor (node) {
- super(nodeOrNew('marker', node), node)
+ constructor (node, attrs = node) {
+ super(nodeOrNew('marker', node), attrs)
}
// Set width of element
@@ -18,6 +18,10 @@ export default class Marker extends Container {
return this.attr('markerHeight', height)
}
+ orient (orient) {
+ return this.attr('orient', orient)
+ }
+
// Set marker refX and refY
ref (x, y) {
return this.attr('refX', x).attr('refY', y)