@antv/g 5.16.3 → 5.16.4

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.umd.js CHANGED
@@ -8403,8 +8403,8 @@
8403
8403
  */_proto.getAttributeNames=function getAttributeNames(){return Object.keys(this.attributes);}/**
8404
8404
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute
8405
8405
  */;_proto.getAttribute=function getAttribute(name){// @see https://github.com/antvis/G/issues/1267
8406
- if(isSymbol(name)){return null;}var value=this.attributes[name];if(value===undefined){var attributeName=formatAttributeName(name);value=this.attributes[attributeName];// if the given attribute does not exist, the value returned will either be null or ""
8407
- return isNil(value)?null:value;}else {return value;}}/**
8406
+ if(isSymbol(name)){return runtime.enableCSSParsing?null:undefined;}var value=this.attributes[name];if(value===undefined){var attributeName=formatAttributeName(name);value=this.attributes[attributeName];// if the given attribute does not exist, the value returned will either be null or ""
8407
+ return runtime.enableCSSParsing?isNil(value)?null:value:value;}else {return value;}}/**
8408
8408
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute
8409
8409
  */;_proto.hasAttribute=function hasAttribute(qualifiedName){return this.getAttributeNames().includes(qualifiedName);}/**
8410
8410
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributes