@antv/g-lite 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -7989,14 +7989,14 @@ var Element = /*#__PURE__*/function (_Node) {
|
|
|
7989
7989
|
_proto.getAttribute = function getAttribute(name) {
|
|
7990
7990
|
// @see https://github.com/antvis/G/issues/1267
|
|
7991
7991
|
if (isSymbol(name)) {
|
|
7992
|
-
return null;
|
|
7992
|
+
return runtime.enableCSSParsing ? null : undefined;
|
|
7993
7993
|
}
|
|
7994
7994
|
var value = this.attributes[name];
|
|
7995
7995
|
if (value === undefined) {
|
|
7996
7996
|
var attributeName = formatAttributeName(name);
|
|
7997
7997
|
value = this.attributes[attributeName];
|
|
7998
7998
|
// if the given attribute does not exist, the value returned will either be null or ""
|
|
7999
|
-
return isNil(value) ? null : value;
|
|
7999
|
+
return runtime.enableCSSParsing ? isNil(value) ? null : value : value;
|
|
8000
8000
|
} else {
|
|
8001
8001
|
return value;
|
|
8002
8002
|
}
|
package/dist/index.js
CHANGED
|
@@ -7989,14 +7989,14 @@ var Element = /*#__PURE__*/function (_Node) {
|
|
|
7989
7989
|
_proto.getAttribute = function getAttribute(name) {
|
|
7990
7990
|
// @see https://github.com/antvis/G/issues/1267
|
|
7991
7991
|
if (isSymbol(name)) {
|
|
7992
|
-
return null;
|
|
7992
|
+
return runtime.enableCSSParsing ? null : undefined;
|
|
7993
7993
|
}
|
|
7994
7994
|
var value = this.attributes[name];
|
|
7995
7995
|
if (value === undefined) {
|
|
7996
7996
|
var attributeName = formatAttributeName(name);
|
|
7997
7997
|
value = this.attributes[attributeName];
|
|
7998
7998
|
// if the given attribute does not exist, the value returned will either be null or ""
|
|
7999
|
-
return util.isNil(value) ? null : value;
|
|
7999
|
+
return runtime.enableCSSParsing ? util.isNil(value) ? null : value : value;
|
|
8000
8000
|
} else {
|
|
8001
8001
|
return value;
|
|
8002
8002
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -14963,14 +14963,14 @@
|
|
|
14963
14963
|
_proto.getAttribute = function getAttribute(name) {
|
|
14964
14964
|
// @see https://github.com/antvis/G/issues/1267
|
|
14965
14965
|
if (isSymbol(name)) {
|
|
14966
|
-
return null;
|
|
14966
|
+
return runtime.enableCSSParsing ? null : undefined;
|
|
14967
14967
|
}
|
|
14968
14968
|
var value = this.attributes[name];
|
|
14969
14969
|
if (value === undefined) {
|
|
14970
14970
|
var attributeName = formatAttributeName(name);
|
|
14971
14971
|
value = this.attributes[attributeName];
|
|
14972
14972
|
// if the given attribute does not exist, the value returned will either be null or ""
|
|
14973
|
-
return isNil(value) ? null : value;
|
|
14973
|
+
return runtime.enableCSSParsing ? isNil(value) ? null : value : value;
|
|
14974
14974
|
} else {
|
|
14975
14975
|
return value;
|
|
14976
14976
|
}
|