Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SGraphAddCommand

添加item命令

author

panglixiang

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly command

command: string

命令名称

desc

desc: string

item

命令item对象

parent

parent: SGraphItem | null

命令item的父类

scene

scene: SGraphScene | null = null

命令所属的场景类

Methods

id

  • id(): number
  • Returns number

mergeWith

  • mergeWith(command: SUndoCommand): boolean
  • 合并命令

    Parameters

    • command: SUndoCommand

    Returns boolean

    boolean 是否已执行合并

redo

  • redo(): void
  • 重做

    Returns void

toString

  • toString(): string
  • Returns string

undo

  • undo(): void
  • 撤销

    Returns void