Skip to content

Commit 5b1bdc4

Browse files
committed
add xmlns namespaces constant file
1 parent 20e0bc9 commit 5b1bdc4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/constants/xmlns_namespaces.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright 2012-2016, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
10+
'use strict';
11+
12+
13+
exports.xmlns = 'http://www.w3.org/2000/xmlns/';
14+
exports.svg = 'http://www.w3.org/2000/svg';
15+
exports.xlink = 'http://www.w3.org/1999/xlink';
16+
17+
// the 'old' d3 quirk got fix in v3.5.7
18+
// https://github.com/mbostock/d3/commit/a6f66e9dd37f764403fc7c1f26be09ab4af24fed
19+
exports.svgAttrs = {
20+
xmlns: exports.svg,
21+
'xmlns:xlink': exports.xlink
22+
};

0 commit comments

Comments
 (0)