ivisionLevel = config.initialSubdivisionLevel !== undefined ? config.initialSubdivisionLevel : 1;
                this.baseCanvasSize = config.baseCanvasSize || 300;
                this.numSurfaceSegments = Math.max(5, Math.floor(15 * (this.baseCanvasSize / 500)));

                this.devicePixelRatio = window.devicePixelRatio || 1;

                this.mainPatch = new CubicBezierPatch(this.initialPoints);
                this.draggingPointInfo = null; 
                this.dragOffsetX = 0;
            