Class: SetMaterialValueCommand<T>
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:8
Extends
SetValueCommand
<Material
,T
>
Extended by
Type Parameters
T
T
= any
Constructors
Constructor
new SetMaterialValueCommand<
T
>(option
):SetMaterialValueCommand
<T
>
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:11
Parameters
option
Returns
SetMaterialValueCommand
<T
>
Overrides
SetValueCommand<Material, T>.constructor
Properties
attributePath
attributePath:
PropertyPath
=[]
Defined in: packages/core/sdk/src/editor/commands/Command.ts:23
Inherited from
SetValueCommand.attributePath
editor
editor:
Editor
Defined in: packages/core/sdk/src/editor/commands/Command.ts:22
Inherited from
SetValueCommand.editor
executeNum
executeNum:
number
=0
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:9
id
id:
number
=0
Defined in: packages/core/sdk/src/editor/commands/Command.ts:17
Inherited from
SetValueCommand.id
inMemory
inMemory:
boolean
=false
Defined in: packages/core/sdk/src/editor/commands/Command.ts:18
Inherited from
SetValueCommand.inMemory
name
name:
string
=''
Defined in: packages/core/sdk/src/editor/commands/Command.ts:21
Inherited from
SetValueCommand.name
newValue
newValue:
T
Defined in: packages/core/sdk/src/editor/commands/SetValueCommand.ts:16
Inherited from
SetValueCommand.newValue
object
object:
any
Defined in: packages/core/sdk/src/editor/commands/Command.ts:26
Inherited from
SetValueCommand.object
oldValue
oldValue:
T
Defined in: packages/core/sdk/src/editor/commands/SetValueCommand.ts:14
Inherited from
SetValueCommand.oldValue
source
source:
string
Defined in: packages/core/sdk/src/editor/commands/Command.ts:28
Inherited from
SetValueCommand.source
type
type:
string
='SetValueCommand'
Defined in: packages/core/sdk/src/editor/commands/SetValueCommand.ts:12
Inherited from
SetValueCommand.type
updatable
updatable:
boolean
=false
Defined in: packages/core/sdk/src/editor/commands/Command.ts:19
Inherited from
SetValueCommand.updatable
Methods
execute()
execute():
void
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:15
Returns
void
Overrides
SetValueCommand.execute
fromJSON()
fromJSON(
json
):void
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:54
Parameters
json
any
Returns
void
Overrides
SetValueCommand.fromJSON
getAttributeName()
getAttributeName():
string
[]
Defined in: packages/core/sdk/src/editor/commands/Command.ts:41
Returns
string
[]
Inherited from
SetValueCommand.getAttributeName
notice()
notice():
void
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:28
通知属性变化
Returns
void
toJSON()
toJSON():
CommandJson
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:43
Returns
Overrides
SetValueCommand.toJSON
undo()
undo():
void
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:20
Returns
void
Overrides
SetValueCommand.undo
update()
update(
cmd
):void
Defined in: packages/core/sdk/src/editor/commands/SetValueCommand.ts:40
Parameters
cmd
SetValueCommand
Returns
void
Inherited from
SetValueCommand.update