Skip to main content

Home > @jsplumbtoolkit/browser-ui-plugin-background > SimpleBackground

SimpleBackground class

A background consisting of a single image.

Signature:

export declare class SimpleBackground implements ImageBackground 

Implements: ImageBackground

Constructors

ConstructorModifiersDescription
(constructor)(params)Constructs a new instance of the SimpleBackground class

Properties

PropertyModifiersTypeDescription
canvasHTMLElement
imageHTMLImageElement
imagePlaceholderHTMLImageElement
onBackgroundReadyOnBackgroundReadyCallback
surfaceSurface
typestring
typestaticstring
urlstring

Methods

MethodModifiersDescription
_init(params)
destroy()
getHeight()
getWidth()
owns(el)
pan()
setUrl(url)
setZoom(zoom, doNotDebounce)