Skip to main content

Home > @jsplumbtoolkit/browser-ui > BackgroundOptions > urlGenerator

BackgroundOptions.urlGenerator property#

For tiled backgrounds, an optional function you can supply to generate the URL for a given tile. See url for an explanation of the default syntax for urls when using a tiled background.

Signature:

urlGenerator?: (z: number, x: number, y: number) => string;