Class: RainbowDiamondPlugin
Plugins.RainbowDiamondPlugin
Simple plugin to assign colors to diamond nodes in a rainbow pattern. The prefix must match the prefix for the name of the diamond nodes in the file.
Hierarchy
AViewerPlugin
<""
>↳
RainbowDiamondPlugin
Properties
PluginType
▪ Static
Readonly
PluginType: "RainbowDiamondPlugin"
enabled
• enabled: boolean
= true
Overrides
toJSON
• toJSON: any
= undefined
Overrides
prefix
• prefix: string
= ''
count
• count: number
= 50
loops
• loops: number
= 1
color
• color: Color
_dirty
• Protected
_dirty: boolean
= false
Inherited from
_viewer
• Protected
Optional
_viewer: ViewerApp
Inherited from
Constructors
constructor
• new RainbowDiamondPlugin()
Inherited from
Accessors
dirty
• get
dirty(): boolean
Returns
boolean
Inherited from
AViewerPlugin.dirty
• set
dirty(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
AViewerPlugin.dirty
viewer
• get
viewer(): undefined
| ViewerApp
Returns
undefined
| ViewerApp
Inherited from
AViewerPlugin.viewer
Methods
onAdded
▸ onAdded(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Inherited from
onDispose
▸ onDispose(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Inherited from
onRemove
▸ onRemove(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Inherited from
fromJSON
▸ fromJSON(data
, meta?
): null
| RainbowDiamondPlugin
| Promise
<null
| RainbowDiamondPlugin
>
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| RainbowDiamondPlugin
| Promise
<null
| RainbowDiamondPlugin
>
Inherited from
exportState
▸ exportState(): any
Returns
any
Inherited from
importState
▸ importState(state
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | any |
Returns
Promise
<void
>
Inherited from
storeState
▸ storeState(prefix?
, storage?
, data?
): void
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
data? | any |
Returns
void
Inherited from
loadState
▸ loadState(prefix?
, storage?
): Promise
<void
>
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
Returns
Promise
<void
>
Inherited from
colorItems
▸ colorItems(): void
Returns
void
_storeKey
▸ Protected
_storeKey(prefix?
): string
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
string