Decoration
The Decoration
class represents a decoration in the Minimap.
It has the same API than the Decoration
class of a text editor.
Static Method Summary
Static Public Methods | ||
public static |
Returns |
Constructor Summary
Public Constructor | ||
public |
constructor(marker: Marker, minimap: Minimap, properties: Object) Creates a new decoration. |
Method Summary
Public Methods | ||
public |
destroy() Destroy this marker. |
|
public |
An id unique across all Decoration objects. |
|
public |
getMarker(): Marker Returns the marker associated with this Decoration. |
|
public |
Returns the Decoration's properties. |
|
public |
Returns whether this decoration is destroyed or not. |
|
public |
Check if this decoration is of type |
|
public |
onDidChangeProperties(callback: function(change: Object): void): Disposable Registers an event listener to the |
|
public |
onDidDestroy(callback: function(): void): Disposable Registers an event listener to the |
|
public |
setProperties(newProperties: Object) Update the marker with new properties. |
Static Public Methods
Public Constructors
Public Methods
public destroy() source
Destroy this marker.
If you own the marker, you should use Marker#destroy
which will destroy
this decoration.
public getMarker(): Marker source
Returns the marker associated with this Decoration.
Return:
Marker | the decoration's marker |
public onDidChangeProperties(callback: function(change: Object): void): Disposable source
Registers an event listener to the did-change-properties
event.
This event is triggered when the decoration update method is called.
Return:
Disposable | a disposable to stop listening to the event |