Plugin
Direct Subclass:
Base class for Viewer plugin classes.
Constructor Summary
Public Constructor | ||
public |
constructor(id: string, viewer: Viewer, cfg: Object) Creates this Plugin and installs it into the given Viewer. |
Member Summary
Public Members | ||
public |
ID for this Plugin, unique within its Viewer. |
|
public |
The Viewer that contains this Plugin. |
Method Summary
Public Methods | ||
public |
destroy() Destroys this Plugin and removes it from its Viewer. |
|
public |
Logs an error message to the JavaScript developer console, prefixed with the ID of this Plugin. |
|
public |
Fires an event at this Plugin. |
|
public |
Logs a message to the JavaScript developer console, prefixed with the ID of this Plugin. |
|
public |
Subscribes to an event fired at this Plugin. |
|
public |
Logs a warning message to the JavaScript developer console, prefixed with the ID of this Plugin. |
Public Constructors
Public Members
Public Methods
public error(msg: String) source
Logs an error message to the JavaScript developer console, prefixed with the ID of this Plugin.
Params:
Name | Type | Attribute | Description |
msg | String | The error message |
public log(msg: String) source
Logs a message to the JavaScript developer console, prefixed with the ID of this Plugin.
Params:
Name | Type | Attribute | Description |
msg | String | The error message |