From ca8ac554bfafe6b4d7985fe3130ff3dffa6029ca Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 3 Sep 2023 09:49:01 +0200 Subject: doscontinue use of svgjs:data in favor of data-svg --- src/elements/Svg.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/elements/Svg.js') diff --git a/src/elements/Svg.js b/src/elements/Svg.js index 7b36daa..40d50c9 100644 --- a/src/elements/Svg.js +++ b/src/elements/Svg.js @@ -4,7 +4,7 @@ import { register, wrapWithAttrCheck } from '../utils/adopter.js' -import { svg, svgjs, xlink, xmlns } from '../modules/core/namespaces.js' +import { svg, xlink, xmlns } from '../modules/core/namespaces.js' import { registerMethods } from '../utils/methods.js' import Container from './Container.js' import Defs from './Defs.js' @@ -34,9 +34,11 @@ export default class Svg extends Container { // Add namespaces namespace() { if (!this.isRoot()) return this.root().namespace() - return this.attr({ xmlns: svg, version: '1.1' }) - .attr('xmlns:xlink', xlink, xmlns) - .attr('xmlns:svgjs', svgjs, xmlns) + return this.attr({ xmlns: svg, version: '1.1' }).attr( + 'xmlns:xlink', + xlink, + xmlns + ) } removeNamespace() { -- cgit v1.2.3