pattern(ctx, w, h) {
        const tw = w * this.model.scale;
        const th = h * this.model.scale;

        const total = this.model.data.length;
        let i, d;
        for (i = 0; i < total; i++) {
            d = this.model.data[i];
            Pattern(ctx, d, tw, th);
        }
    }
Draw rectangle shapes at each path point.
@param {CanvasRenderingContext2D} ctx
@param {number} w pattern width
@param {number} h pattern height