@xtctwins/tctwins-core 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,6 +15,10 @@ export declare type AnnotationsPluginConfiguration = {
|
|
|
15
15
|
values?: { [key: string]: string | number };
|
|
16
16
|
/** The amount by which each {@link Annotation} is offset from the surface of its {@link Entity} when we create the Annotation by supplying a {@link PickResult} to {@link AnnotationsPlugin.createAnnotation}.*/
|
|
17
17
|
surfaceOffset?: number;
|
|
18
|
+
/** Label placement relative to the marker. `"right"` (default) or `"above"`. */
|
|
19
|
+
labelPlacement?: "right" | "above";
|
|
20
|
+
/** Pixel offset applied to the label relative to its default placement. */
|
|
21
|
+
labelOffset?: { x?: number; y?: number };
|
|
18
22
|
};
|
|
19
23
|
|
|
20
24
|
/**
|
|
@@ -88,6 +92,8 @@ export declare class AnnotationsPlugin extends Plugin {
|
|
|
88
92
|
labelElementId?: string;
|
|
89
93
|
markerHTML?: string;
|
|
90
94
|
labelHTML?: string;
|
|
95
|
+
labelPlacement?: "right" | "above";
|
|
96
|
+
labelOffset?: { x?: number; y?: number };
|
|
91
97
|
worldPos?: number[];
|
|
92
98
|
entity?: Entity;
|
|
93
99
|
pickResult?: PickResult;
|
|
@@ -150,6 +156,13 @@ export declare class AnnotationsPlugin extends Plugin {
|
|
|
150
156
|
*/
|
|
151
157
|
on(event: "markerClicked", callback: (annotation: Annotation) => void): void;
|
|
152
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Fires when a mouse clicks an annotation label.
|
|
161
|
+
* @param {String} event The labelClicked event
|
|
162
|
+
* @param {Function} callback Callback fired on the event
|
|
163
|
+
*/
|
|
164
|
+
on(event: "labelClicked", callback: (annotation: Annotation) => void): void;
|
|
165
|
+
|
|
153
166
|
/**
|
|
154
167
|
* Fires when a mouse dbclick an annotation.
|
|
155
168
|
* @param {String} event The markerDoubleClicked event
|