UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

35 lines 1.25 kB
import { NotImplementedException } from "@aurigma/design-atoms-model/Exception"; import { BaseItemsCommand } from "./BaseItemsCommand"; import { AlignItemsCommand } from "./AlignItemsCommand"; /** @deprecated */ export class GroupAlignCommand extends BaseItemsCommand { constructor(productHandler, historyArgs, args, _canvas) { super(null, historyArgs, args); this._canvas = _canvas; const alignItemsArgs = { items: [], align: args.align, target: "auto" }; this._alignItemsCommand = new AlignItemsCommand(productHandler, historyArgs, alignItemsArgs, _canvas); console.warn("GroupAlignCommand is deprecated. Please use AlignItemsCommand directly."); } async _executeCommandBody() { if (this._canvas != null) this._canvas.pauseRedraw(); try { this._alignItemsCommand.execute(); } finally { if (this._canvas != null) this._canvas.continueRedraw(); } } redo() { throw new NotImplementedException(); } undo() { throw new NotImplementedException(); } } //# sourceMappingURL=GroupAlignCommand.js.map