new ArtboardCommandLogic
ArtboardCommandLogic
ArtboardCommandLogicはh5.ui.components.artboard.logic.DrawingLogicによって生成されたコマンドのトランザクション管理を行います。
Methods
-
_dispatchExecuteResult
-
コマンドのexecute(またはundo)実行時に返ってきたイベントオブジェクトについて、そのイベントをコマンドマネージャから上げる
Parameters:
Name Type Description ret
Any -
abortTransaction
-
トランザクションの中断
Parameters:
Name Type Description transactionId
-
appendCommand
-
コマンドを実行して登録する
noExecuteがtrueの場合はコマンドを実行せずに登録します。
Parameters:
Name Type Description command
Command コマンド transactionId
Integer トランザクションID noExecute
boolean 実行しない場合はtrueを指定 -
beginUpdate
-
アップデートセッションを開始します
アップデートセッショントランザクションを作成し、アップデートセッション中は、 appendCommandでtransactionIdを指定しないでコマンドが追加されたとき、アップデートセッショントランザクションに登録されます。
-
clearAll
-
履歴をすべて削除
-
commitTransaction
-
トランザクションのコミット
Parameters:
Name Type Description transactionId
トランザクションID noExecute
boolean 実行しない場合はtrueを指定 -
createTransaction
-
トランザクションを生成し、トランザクションIDを返します
Returns:
トランザクションID- Type
- Integer
-
endUpdate
-
アップデートセッションを終了します
Parameters:
Name Type Description noExecute
boolean アップデートセッション中に生成されたコマンドのうち、未実行のものを実行しない場合はtrueを指定 -
init
-
初期化
Parameters:
Name Type Description commandManager
CommandManager -
redo
-
やり直し
-
undo
-
取り消し