From ba2948bfad00906ffa3ba5ea7ff15ac0be517445 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sat, 28 Mar 2020 13:52:57 +1000 Subject: This is a big one... ### Fixed - fixed `zoom()` method of runner which was passed a wrong parameter - fixed positioning methods of `TSpan` to position them by its bounding box - fixed `flip()` method which flips correctly by center by default now and accepts correct arguments - fixed a case in `rbox()` where not always all values of the box were updated - fixed `getOrigin()` function used by `transform()` so that all origin (#1085) popssibilities specified in the docs are working - fixed positioning of text by its baseline when using `amove()` - fixed tons of typings in the svg.d.ts file ### Added - added second Parameter to `SVG(el, isHTML)` which allows to explicitely create elements in the HTML namespace (#1058) - added `unlink()` and `linker()` to hyperlinked elements to remove or access the underling `` element - added `wrap()` method to `Dom` which lets you wrap an element by another one - added `orient()` method to `Marker` - added `options` parameter to `dispatch()` and `fire()` to allow for more special needs - added `newLine()` constructor to `Text` to create a tspan marked as new line (#1088) - added lots of tests in es6 format --- src/elements/Pattern.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/elements/Pattern.js') diff --git a/src/elements/Pattern.js b/src/elements/Pattern.js index 99e8ded..72b7c59 100644 --- a/src/elements/Pattern.js +++ b/src/elements/Pattern.js @@ -6,8 +6,8 @@ import baseFind from '../modules/core/selector.js' export default class Pattern extends Container { // Initialize node - constructor (node) { - super(nodeOrNew('pattern', node), node) + constructor (node, attrs = node) { + super(nodeOrNew('pattern', node), attrs) } // Return the fill id -- cgit v1.2.3