Skip to main content

ChangeBackgroundCommand

Classes​

ChangeBackgroundCommand​

Extends​

Constructors​

Constructor​
new ChangeBackgroundCommand(
productHandler,
historyArgs,
product,
args,
commandManager,
productThemeManager,
canvas,
eventManager): ChangeBackgroundCommand;
Parameters​
ParameterType
productHandlerProductHandler
historyArgsIHistoryArgs
productProduct
argsIChangeBgArgs
commandManagerCommandManager
productThemeManagerProductThemeManager
canvasCanvas
eventManagerEventManager
Returns​

ChangeBackgroundCommand

Overrides​

BaseProductCommand.constructor

Methods​

changeBackground()​
Call Signature​
changeBackground(
surfaces,
type,
changeBgItem,
value?): any;
Parameters​
ParameterType
surfacesSurface[]
type"image"
changeBgItem(bgItem) => void
value?any
Returns​

any

Call Signature​
changeBackground(
surfaces,
type,
changeBgItem,
value?): any;
Parameters​
ParameterType
surfacesSurface[]
type"solidColor"
changeBgItem(bgItem) => Promise<void>
value?any
Returns​

any

execute()​
execute(): Promise<void>;
Returns​

Promise<void>

Inherited from​

BaseProductCommand.execute

executeCommandBody()​
executeCommandBody(): Promise<void>;
Returns​

Promise<void>

Overrides​
BaseProductCommand._executeCommandBody
getOrCreateBgItems()​
Call Signature​
getOrCreateBgItems(surface, type): ShapeItem[];
Parameters​
ParameterType
surfaceSurface
type"image"
Returns​

ShapeItem[]

Call Signature​
getOrCreateBgItems(surface, type): ShapeItem[];
Parameters​
ParameterType
surfaceSurface
type"solidColor"
Returns​

ShapeItem[]

redo()​
redo(): Promise<void>;
Returns​

Promise<void>

Overrides​

BaseProductCommand.redo

undo()​
undo(): Promise<void>;
Returns​

Promise<void>

Overrides​

BaseProductCommand.undo

Interfaces​

IChangeBgArgs​

Properties​

data​
data: any;
surfaces​
surfaces: Surface[];
Was this page helpful?