Preparing search index...
The search index is not available
ThreePipe
ThreePipe
UndoManagerPlugin
Class UndoManagerPlugin
Base Class for Sync Viewer Plugins
Hierarchy (
View Summary
)
AViewerPluginSync
<
""
>
UndoManagerPlugin
Index
Constructors
constructor
Properties
_dirty
_viewer?
_viewer
Listeners
constructor
enabled
limit
toJSON
ui
Config?
undo
Manager?
Old
Plugin
Type?
Plugin
Type
Accessors
dirty
Methods
_on
Viewer
Event
_refresh
_store
Key
disable
dispose
enable
export
State
fromJSON
import
State
is
Disabled
on
Added
on
Remove
set
Dirty?
Constructors
constructor
new
UndoManagerPlugin
(
enabled
?:
boolean
,
limit
?:
number
)
:
UndoManagerPlugin
Parameters
enabled
:
boolean
= true
limit
:
number
= 1000
Returns
UndoManagerPlugin
Properties
Protected
_dirty
_dirty
:
boolean
= false
Protected
Optional
_viewer
_viewer
?:
ThreeViewer
Protected
_viewer
Listeners
_viewerListeners
:
PartialRecord
<
|
"dispose"
|
"*"
|
"update"
|
"preRender"
|
"postRender"
|
"preFrame"
|
"postFrame"
|
"addPlugin"
|
"removePlugin"
|
"renderEnabled"
|
"renderDisabled"
,
(
e
:
IViewerEvent
)
=>
void
,
>
= {}
constructor
constructor
:
typeof
AViewerPluginSync
&
typeof
AViewerPlugin
enabled
enabled
:
boolean
= true
limit
limit
:
number
= 1000
toJSON
toJSON
:
any
= undefined
Optional
ui
Config
uiConfig
?:
UiObjectConfig
= undefined
Optional
undo
Manager
undoManager
?:
JSUndoManager
Static
Optional
Readonly
Old
Plugin
Type
OldPluginType
?:
string
Static
Readonly
Plugin
Type
PluginType
:
"UndoManagerPlugin"
= 'UndoManagerPlugin'
Accessors
dirty
get
dirty
()
:
boolean
Returns
boolean
set
dirty
(
value
:
boolean
)
:
void
Parameters
value
:
boolean
Returns
void
Methods
Protected
_on
Viewer
Event
_onViewerEvent
(
e
:
IViewerEvent
)
:
IViewerEvent
Parameters
e
:
IViewerEvent
Returns
IViewerEvent
Protected
_refresh
_refresh
()
:
void
Returns
void
Protected
_store
Key
_storeKey
(
prefix
?:
string
)
:
string
Parameters
Optional
prefix
:
string
Returns
string
disable
disable
(
key
:
any
)
:
void
Parameters
key
:
any
Returns
void
dispose
dispose
()
:
void
Returns
void
enable
enable
(
key
:
any
)
:
void
Parameters
key
:
any
Returns
void
export
State
exportState
()
:
ISerializedConfig
|
Record
<
string
,
never
>
Returns
ISerializedConfig
|
Record
<
string
,
never
>
fromJSON
fromJSON
(
data
:
ISerializedConfig
,
meta
?:
SerializationMetaType
,
)
:
null
|
UndoManagerPlugin
|
Promise
<
null
|
UndoManagerPlugin
>
Parameters
data
:
ISerializedConfig
Optional
meta
:
SerializationMetaType
Returns
null
|
UndoManagerPlugin
|
Promise
<
null
|
UndoManagerPlugin
>
import
State
importState
(
state
:
any
)
:
Promise
<
void
>
Parameters
state
:
any
Returns
Promise
<
void
>
is
Disabled
isDisabled
()
:
boolean
Returns
boolean
on
Added
onAdded
(
viewer
:
ThreeViewer
)
:
void
Parameters
viewer
:
ThreeViewer
Returns
void
on
Remove
onRemove
(
viewer
:
ThreeViewer
)
:
void
Parameters
viewer
:
ThreeViewer
Returns
void
Optional
set
Dirty
setDirty
(
...
args
:
any
[]
)
:
any
Parameters
...
args
:
any
[]
Returns
any
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_dirty
_viewer
_viewer
Listeners
constructor
enabled
limit
toJSON
ui
Config
undo
Manager
Old
Plugin
Type
Plugin
Type
Accessors
dirty
Methods
_on
Viewer
Event
_refresh
_store
Key
disable
dispose
enable
export
State
fromJSON
import
State
is
Disabled
on
Added
on
Remove
set
Dirty
ThreePipe
Loading...
Base Class for Sync Viewer Plugins