Skip to content

Release v0.4.0

Compare
Choose a tag to compare
@f2face f2face released this 08 Nov 16:47
· 8 commits to main since this release
1692d27

This release introduces a way to append multiple/nested elements.
✅ No breaking changes.

Example:

const svg = new Svg();
svg.appendChild([
    RawElement.create('a', {}, [
        RawElement.create('b', {}, [
            node.text({}, [
                node.tspan({}, 'Lorem'),
                node.tspan({}, 'ipsum'),
            ]),
            'raw text',
            'another raw text',
        ]),
        RawElement.create('some-other-element'),
    ]),
]);

Full Changelog: v0.3.0...v0.4.0