UNPKG

762 BTypeScriptView Raw
1import { DecorationLayerOptions, DisplayMarker, Marker } from '../index';
2
3/**
4 * Represents a decoration that applies to every marker on a given layer. Created via
5 * TextEditor::decorateMarkerLayer.
6 */
7export interface LayerDecoration {
8 /** Destroys the decoration. */
9 destroy(): void;
10
11 /** Determine whether this decoration is destroyed. */
12 isDestroyed(): boolean;
13
14 /** Get this decoration's properties. */
15 getProperties(): DecorationLayerOptions;
16
17 /** Set this decoration's properties. */
18 setProperties(newProperties: DecorationLayerOptions): void;
19
20 /** Override the decoration properties for a specific marker. */
21 setPropertiesForMarker(marker: DisplayMarker | Marker, properties: DecorationLayerOptions): void;
22}