Merge pull request #8 from Validark/patch-1

Delegate getAttribute/setAttribute
This commit is contained in:
Zeno Zeng 2022-03-01 20:59:22 +08:00 committed by GitHub
commit dd7a2eb520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,4 +95,12 @@ SVGCanvasElement.prototype.getElement = function() {
return this.wrapper;
};
SVGCanvasElement.prototype.getAttribute = function(prop) {
return this.wrapper.getAttribute(prop);
};
SVGCanvasElement.prototype.setAttribute = function(prop, val) {
this.wrapper.setAttribute(prop, val);
};
export default SVGCanvasElement;