Delegate getAttribute/setAttribute

This commit is contained in:
Validark 2022-02-27 06:08:54 -06:00 committed by GitHub
parent aad3657347
commit b4dde7078f
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; 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; export default SVGCanvasElement;