You can buy this project and download/modify it how often you want.
Pattern Region Test, B patternRegion, x, y, width, height, viewBox Pattern (4 times actual size) Exact Fit in patternRegion pattern content offset to the right pattern content offset to the bottom pattern content offset to the bottom/right Exact Fit in patternRegion pattern content X stretch pattern content Y stretch pattern content X/Y stretch