We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7d1c5 commit c91eb44Copy full SHA for c91eb44
src/core/p5.Renderer2D.js
@@ -74,10 +74,7 @@ class Renderer2D extends Renderer {
74
this.filterRenderer = new FilterRenderer2D(this);
75
}
76
// Set and return p5.Element
77
- // this.wrappedElt = new Element(this.elt, this._pInst);
78
- // Pass the *sketch* (p5) instance, not the Graphics buffer itself
79
- const sketch = this._pInst && this._pInst._pInst ? this._pInst._pInst : this._pInst;
80
- this.wrappedElt = new Element(this.elt, sketch);
+ this.wrappedElt = new Element(this.elt, this._pInst);
81
this.clipPath = null;
82
83
0 commit comments