Properties
autoAdjustOffset
autoAdjustOffset: boolean
autoDetectRetina
autoDetectRetina: boolean
backgroundColor
backgroundColor: string
Optional
blur
blur?: number
Optional
brightness
brightness?: number
canvas
canvas: string | HTMLCanvasElement | SVGElement
canvasHeightFactor
canvasHeightFactor: number
canvasWidthFactor
canvasWidthFactor: number
Optional
contrast
contrast?: number
cssScaleX
cssScaleX: number
cssScaleY
cssScaleY: number
cssUniformScale
cssUniformScale: boolean
defaultCanvasHeight
defaultCanvasHeight: number
defaultCanvasWidth
defaultCanvasWidth: number
drawOrigin
drawOrigin: boolean
drawRaster
drawRaster: boolean
Optional
dropShadow
dropShadow?: number
Optional
dropShadowColor
dropShadowColor?: string
Optional
effectFilterColor
effectFilterColor?: string
Optional
enableGL
enableGL?: boolean
enableKeys
enableKeys: boolean
enableMouse
enableMouse: boolean
enableMouseWheel
enableMouseWheel: boolean
enablePan
enablePan: boolean
enableSVGExport
enableSVGExport: boolean
enableTouch
enableTouch: boolean
enableZoom
enableZoom: boolean
fitToParent
fitToParent: boolean
fullSize
fullSize: boolean
Optional
grayscale
grayscale?: number
Optional
hueRotate
hueRotate?: number
Optional
invert
invert?: number
Optional
isBackdropFiltersEnabled
isBackdropFiltersEnabled?: boolean
Optional
isBlurEnabled
isBlurEnabled?: boolean
Optional
isBrightnessEnabled
isBrightnessEnabled?: boolean
Optional
isContrastEnabled
isContrastEnabled?: boolean
Optional
isDropShadowEnabled
isDropShadowEnabled?: boolean
Optional
isEffectsColorEnabled
isEffectsColorEnabled?: boolean
Optional
isGrayscaleEnabled
isGrayscaleEnabled?: boolean
Optional
isHueRotateEnabled
isHueRotateEnabled?: boolean
Optional
isInvertEnabled
isInvertEnabled?: boolean
Optional
isOpacityEnabled
isOpacityEnabled?: boolean
Optional
isSaturateEnabled
isSaturateEnabled?: boolean
Optional
isSepiaEnabled
isSepiaEnabled?: boolean
offsetAdjustXPercent
offsetAdjustXPercent: number
offsetAdjustYPercent
offsetAdjustYPercent: number
Optional
opacity
opacity?: number
Optional
postDraw
postDraw?: ((draw, fill) => void)
Type declaration
- (draw, fill): void
Returns void
Optional
preClear
preClear?: (() => void)
Optional
preDraw
preDraw?: ((draw, fill) => void)
Type declaration
- (draw, fill): void
Returns void
rasterAdjustFactor
rasterAdjustFactor: number
rasterGrid
rasterGrid: boolean
rasterScaleX
rasterScaleX: number
rasterScaleY
rasterScaleY: number
redrawOnResize
redrawOnResize: boolean
Optional
saturate
saturate?: number
Optional
saveFile
saveFile?: (() => void)
Optional
sepia
sepia?: number
Optional
setToRetina
setToRetina?: (() => void)
Optional
title
title?: string
For initialization the constructor needs a mix of config and draw-settings.