Search
Preparing search index...
The search index is not available
博锐尚格绘制引擎
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
SGraphAddCommand
Class SGraphAddCommand
添加item命令
author
panglixiang
Hierarchy
SGraphCommand
SGraphAddCommand
Index
Constructors
constructor
Properties
command
desc
item
parent
scene
Methods
id
merge
With
redo
to
String
undo
Constructors
constructor
new SGraph
Add
Command
(
scene
:
SGraphScene
, item
:
SGraphItem
)
:
SGraphAddCommand
构造函数
Parameters
scene:
SGraphScene
item所在场景
item:
SGraphItem
命令item对象
Returns
SGraphAddCommand
Properties
Readonly
command
command
:
string
命令名称
desc
desc
:
string
item
item
:
SGraphItem
命令item对象
parent
parent
:
SGraphItem
|
null
命令item的父类
scene
scene
:
SGraphScene
|
null
= null
命令所属的场景类
Methods
id
id
(
)
:
number
Returns
number
merge
With
merge
With
(
command
:
SUndoCommand
)
:
boolean
合并命令
Parameters
command:
SUndoCommand
Returns
boolean
boolean 是否已执行合并
redo
redo
(
)
:
void
重做
Returns
void
to
String
to
String
(
)
:
string
Returns
string
undo
undo
(
)
:
void
撤销
Returns
void
Globals
SGraph
Add
Command
constructor
command
desc
item
parent
scene
id
merge
With
redo
to
String
undo
添加item命令
panglixiang