Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SGraphCommand

Graph命令基类

author

庞利祥(sybotan@126.com)

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Protected constructor

  • 构造函数

    Parameters

    • scene: SGraphScene | null

      命令所属的场景类

    Returns SGraphCommand

Properties

desc

desc: string

scene

scene: SGraphScene | null = null

命令所属的场景类

Accessors

command

  • get command(): string
  • Returns string

Methods

id

  • id(): number
  • Returns number

mergeWith

  • mergeWith(command: SUndoCommand): boolean
  • Parameters

    • command: SUndoCommand

    Returns boolean

Abstract redo

  • redo(): void
  • Returns void

toString

  • toString(): string
  • Returns string

Abstract undo

  • undo(): void
  • Returns void