File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 8282 "./core" : {
8383 "default" : " ./dist/core/main.js"
8484 },
85+ "./color" : " ./dist/color/index.js" ,
8586 "./shape" : " ./dist/shape/index.js" ,
8687 "./accessibility" : " ./dist/accessibility/index.js" ,
8788 "./friendlyErrors" : " ./dist/core/friendlyErrors/index.js" ,
Original file line number Diff line number Diff line change @@ -70,14 +70,18 @@ class Renderer2D extends Renderer {
7070 }
7171 this . scale ( this . _pixelDensity , this . _pixelDensity ) ;
7272
73- if ( ! this . filterRenderer ) {
74- this . filterRenderer = new FilterRenderer2D ( this ) ;
75- }
7673 // Set and return p5.Element
7774 this . wrappedElt = new Element ( this . elt , this . _pInst ) ;
7875 this . clipPath = null ;
7976 }
8077
78+ get filterRenderer ( ) {
79+ if ( ! this . _filterRenderer ) {
80+ this . _filterRenderer = new FilterRenderer2D ( this ) ;
81+ }
82+ return this . _filterRenderer ;
83+ }
84+
8185 remove ( ) {
8286 this . wrappedElt . remove ( ) ;
8387 this . wrappedElt = null ;
You can’t perform that action at this time.
0 commit comments