@xtctwins/tctwins-core 1.1.19 → 1.1.21
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/README.md +4 -4
- package/dist/tctwins-core.es5.js +27557 -27494
- package/dist/tctwins-core.min.es5.js +4 -4
- package/package.json +84 -84
- package/types/extras/ContextMenu/ContextMenu.d.ts +127 -127
- package/types/extras/ContextMenu/index.d.ts +1 -1
- package/types/extras/PointerCircle/PointerCircle.d.ts +51 -51
- package/types/extras/PointerCircle/index.d.ts +1 -1
- package/types/extras/PointerLens/PointerLens.d.ts +146 -146
- package/types/extras/index.d.ts +3 -3
- package/types/index.d.ts +3 -3
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +204 -204
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +91 -91
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +125 -125
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +151 -151
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -86
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +124 -124
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -135
- package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +172 -172
- package/types/plugins/AnnotationsPlugin/index.d.ts +2 -2
- package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +148 -148
- package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -1
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +253 -253
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +96 -96
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +102 -102
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +192 -192
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -83
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +103 -103
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +223 -223
- package/types/plugins/FastNavPlugin/index.d.ts +1 -1
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +142 -142
- package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +240 -240
- package/types/plugins/LASLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +177 -177
- package/types/plugins/NavCubePlugin/index.d.ts +1 -1
- package/types/plugins/ObjectEditPlugin/ObjectEditPlugin.d.ts +242 -242
- package/types/plugins/ObjectEditPlugin/index.d.ts +1 -1
- package/types/plugins/SectionPlanesPlugin/SectionBoxControl.d.ts +36 -36
- package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +186 -186
- package/types/plugins/SectionPlanesPlugin/index.d.ts +2 -2
- package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +66 -66
- package/types/plugins/SkyboxesPlugin/index.d.ts +1 -1
- package/types/plugins/StoreyViewsPlugin/Storey.d.ts +69 -69
- package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -41
- package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -180
- package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -24
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +71 -71
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +267 -267
- package/types/plugins/TreeViewPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -128
- package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -34
- package/types/plugins/ViewCullPlugin/index.d.ts +1 -1
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +236 -236
- package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
- package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/index.d.ts +30 -30
- package/types/viewer/Configs.d.ts +46 -46
- package/types/viewer/Plugin.d.ts +69 -69
- package/types/viewer/Viewer.d.ts +282 -282
- package/types/viewer/index.d.ts +6 -6
- package/types/viewer/localization/LocaleService.d.ts +183 -183
- package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -9
- package/types/viewer/metadata/MetaModel.d.ts +94 -102
- package/types/viewer/metadata/MetaObject.d.ts +74 -74
- package/types/viewer/metadata/MetaScene.d.ts +135 -135
- package/types/viewer/metadata/Property.d.ts +29 -29
- package/types/viewer/metadata/PropertySet.d.ts +31 -31
- package/types/viewer/metadata/index.d.ts +6 -6
- package/types/viewer/scene/Bitmap/Bitmap.d.ts +255 -255
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +777 -777
- package/types/viewer/scene/Component.d.ts +155 -155
- package/types/viewer/scene/Entity.d.ts +401 -401
- package/types/viewer/scene/LineSet/LineSet.d.ts +111 -111
- package/types/viewer/scene/camera/Camera.d.ts +364 -364
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -167
- package/types/viewer/scene/camera/CameraPath.d.ts +28 -28
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -95
- package/types/viewer/scene/camera/CustomProjection.d.ts +57 -57
- package/types/viewer/scene/camera/Frustum.d.ts +166 -166
- package/types/viewer/scene/camera/Ortho.d.ts +115 -115
- package/types/viewer/scene/camera/Perspective.d.ts +136 -136
- package/types/viewer/scene/camera/index.d.ts +4 -4
- package/types/viewer/scene/geometry/Geometry.d.ts +7 -7
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -95
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +62 -62
- package/types/viewer/scene/geometry/builders/buildBoxGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildCylinderGeometry.d.ts +27 -27
- package/types/viewer/scene/geometry/builders/buildGridGeometry.d.ts +17 -17
- package/types/viewer/scene/geometry/builders/buildPlaneGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildSphereGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildTorusGeometry.d.ts +25 -25
- package/types/viewer/scene/geometry/builders/buildVectorTextGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/index.d.ts +8 -8
- package/types/viewer/scene/geometry/index.d.ts +2 -2
- package/types/viewer/scene/index.d.ts +23 -23
- package/types/viewer/scene/input/input.d.ts +69 -69
- package/types/viewer/scene/lights/AmbientLight.d.ts +19 -19
- package/types/viewer/scene/lights/DirLight.d.ts +25 -25
- package/types/viewer/scene/lights/Light.d.ts +3 -3
- package/types/viewer/scene/lights/PointLight.d.ts +30 -30
- package/types/viewer/scene/lights/index.d.ts +2 -2
- package/types/viewer/scene/marker/Marker.d.ts +136 -136
- package/types/viewer/scene/marker/SpriteMarker.d.ts +185 -185
- package/types/viewer/scene/marker/index.d.ts +2 -2
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -83
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -241
- package/types/viewer/scene/materials/Fresnel.d.ts +148 -148
- package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -71
- package/types/viewer/scene/materials/Material.d.ts +3 -3
- package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -468
- package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -206
- package/types/viewer/scene/materials/Texture.d.ts +260 -260
- package/types/viewer/scene/materials/index.d.ts +6 -6
- package/types/viewer/scene/math/Frustum.d.ts +41 -41
- package/types/viewer/scene/math/index.d.ts +1 -1
- package/types/viewer/scene/math/math.d.ts +104 -104
- package/types/viewer/scene/mementos/CameraMemento.d.ts +28 -28
- package/types/viewer/scene/mementos/ModelMemento.d.ts +44 -44
- package/types/viewer/scene/mementos/ObjectsMemento.d.ts +39 -39
- package/types/viewer/scene/mementos/index.d.ts +3 -3
- package/types/viewer/scene/mesh/Mesh.d.ts +793 -793
- package/types/viewer/scene/mesh/index.d.ts +1 -1
- package/types/viewer/scene/models/PerformanceModel/PerformanceModel.d.ts +9 -9
- package/types/viewer/scene/models/PerformanceModel/index.d.ts +1 -1
- package/types/viewer/scene/models/SceneModel.d.ts +757 -762
- package/types/viewer/scene/models/SceneModelEntity.d.ts +417 -417
- package/types/viewer/scene/models/SceneModelMesh.d.ts +68 -68
- package/types/viewer/scene/models/SceneModelTexture.d.ts +16 -16
- package/types/viewer/scene/models/SceneModelTextureSet.d.ts +51 -51
- package/types/viewer/scene/models/SceneModelTransform.d.ts +197 -197
- package/types/viewer/scene/models/VBOSceneModel/VBOSceneModel.d.ts +7 -7
- package/types/viewer/scene/models/index.d.ts +7 -7
- package/types/viewer/scene/nodes/Node.d.ts +664 -664
- package/types/viewer/scene/nodes/index.d.ts +1 -1
- package/types/viewer/scene/postfx/CrossSections.d.ts +42 -42
- package/types/viewer/scene/postfx/SAO.d.ts +209 -209
- package/types/viewer/scene/scene/Scene.d.ts +1068 -1068
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +110 -110
- package/types/viewer/scene/sectionPlane/index.d.ts +1 -1
- package/types/viewer/scene/stats.d.ts +40 -40
- package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
- package/types/viewer/scene/viewport/index.d.ts +1 -1
- package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
- package/types/viewer/scene/webgl/index.d.ts +1 -1
- package/dist/tctwins-core.umd.js +0 -37
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import { Marker } from "../../viewer/scene/marker";
|
|
2
|
-
import { AnnotationsPlugin } from "./AnnotationsPlugin";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A {@link Marker} with an HTML label attached to it, managed by an {@link AnnotationsPlugin}.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Annotation extends Marker {
|
|
8
|
-
/**
|
|
9
|
-
* The {@link AnnotationsPlugin} this Annotation was created by.
|
|
10
|
-
* @type {AnnotationsPlugin}
|
|
11
|
-
*/
|
|
12
|
-
plugin: AnnotationsPlugin;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Optional World-space position for {@link Camera.eye}, used when this Annotation is associated with a {@link Camera} position.
|
|
16
|
-
*
|
|
17
|
-
* Undefined by default.
|
|
18
|
-
*
|
|
19
|
-
* @type {Number[]} Eye position.
|
|
20
|
-
*/
|
|
21
|
-
eye: number[];
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Optional World-space position for {@link Camera.look}, used when this Annotation is associated with a {@link Camera} position.
|
|
25
|
-
*
|
|
26
|
-
* Undefined by default.
|
|
27
|
-
*
|
|
28
|
-
* @type {Number[]} The "look" vector.
|
|
29
|
-
*/
|
|
30
|
-
look: number[];
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Optional World-space position for {@link Camera.up}, used when this Annotation is associated with a {@link Camera} position.
|
|
34
|
-
*
|
|
35
|
-
* Undefined by default.
|
|
36
|
-
*
|
|
37
|
-
* @type {Number[]} The "up" vector.
|
|
38
|
-
*/
|
|
39
|
-
up: number[];
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Optional projection type for {@link Camera.projection}, used when this Annotation is associated with a {@link Camera} position.
|
|
43
|
-
*
|
|
44
|
-
* Undefined by default.
|
|
45
|
-
*
|
|
46
|
-
* @type {String} The projection type - "perspective" or "ortho"..
|
|
47
|
-
*/
|
|
48
|
-
projection: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Sets whether or not to show this Annotation's marker.
|
|
52
|
-
*
|
|
53
|
-
* The marker shows the Annotation's position.
|
|
54
|
-
*
|
|
55
|
-
* The marker is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
56
|
-
*
|
|
57
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
58
|
-
*
|
|
59
|
-
* @param {Boolean} shown Whether to show the marker.
|
|
60
|
-
*/
|
|
61
|
-
setMarkerShown(shown: boolean): void;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Gets whether or not to show this Annotation's marker.
|
|
65
|
-
*
|
|
66
|
-
* The marker shows the Annotation's position.
|
|
67
|
-
*
|
|
68
|
-
* The marker is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
69
|
-
*
|
|
70
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
71
|
-
*
|
|
72
|
-
* @returns {Boolean} Whether to show the marker.
|
|
73
|
-
*/
|
|
74
|
-
getMarkerShown(): boolean;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Sets whether or not to show this Annotation's label.
|
|
78
|
-
*
|
|
79
|
-
* The label is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
80
|
-
*
|
|
81
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
82
|
-
*
|
|
83
|
-
* @param {Boolean} shown Whether to show the label.
|
|
84
|
-
*/
|
|
85
|
-
setLabelShown(shown: boolean): void;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Gets whether or not to show this Annotation's label.
|
|
89
|
-
*
|
|
90
|
-
* The label is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
91
|
-
*
|
|
92
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
93
|
-
*
|
|
94
|
-
* @returns {Boolean} Whether to show the label.
|
|
95
|
-
*/
|
|
96
|
-
getLabelShown(): boolean;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Sets the value of a field within the HTML templates for either the Annotation's marker or label.
|
|
100
|
-
*
|
|
101
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
102
|
-
*
|
|
103
|
-
* @param {String} key Identifies the field.
|
|
104
|
-
* @param {String} value The field's value.
|
|
105
|
-
*/
|
|
106
|
-
setField(key: string, value: string): void;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Gets the value of a field within the HTML templates for either the Annotation's marker or label.
|
|
110
|
-
*
|
|
111
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
112
|
-
*
|
|
113
|
-
* @param {String} key Identifies the field.
|
|
114
|
-
* @returns {String} The field's value.
|
|
115
|
-
*/
|
|
116
|
-
getField(key: string): string;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Sets values for multiple placeholders within the Annotation's HTML templates for marker and label.
|
|
120
|
-
*
|
|
121
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
122
|
-
*
|
|
123
|
-
* @param {{String:(String|Number)}} values Map of field values.
|
|
124
|
-
*/
|
|
125
|
-
setValues(values: { [key:string] : string | number }): void;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Gets the values that were set for the placeholders within this Annotation's HTML marker and label templates.
|
|
129
|
-
*
|
|
130
|
-
* See {@link AnnotationsPlugin} for more info.
|
|
131
|
-
*
|
|
132
|
-
* @RETURNS {{String:(String|Number)}} Map of field values.
|
|
133
|
-
*/
|
|
134
|
-
getValues(): { [key:string] : string | number };
|
|
135
|
-
}
|
|
1
|
+
import { Marker } from "../../viewer/scene/marker";
|
|
2
|
+
import { AnnotationsPlugin } from "./AnnotationsPlugin";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A {@link Marker} with an HTML label attached to it, managed by an {@link AnnotationsPlugin}.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Annotation extends Marker {
|
|
8
|
+
/**
|
|
9
|
+
* The {@link AnnotationsPlugin} this Annotation was created by.
|
|
10
|
+
* @type {AnnotationsPlugin}
|
|
11
|
+
*/
|
|
12
|
+
plugin: AnnotationsPlugin;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Optional World-space position for {@link Camera.eye}, used when this Annotation is associated with a {@link Camera} position.
|
|
16
|
+
*
|
|
17
|
+
* Undefined by default.
|
|
18
|
+
*
|
|
19
|
+
* @type {Number[]} Eye position.
|
|
20
|
+
*/
|
|
21
|
+
eye: number[];
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Optional World-space position for {@link Camera.look}, used when this Annotation is associated with a {@link Camera} position.
|
|
25
|
+
*
|
|
26
|
+
* Undefined by default.
|
|
27
|
+
*
|
|
28
|
+
* @type {Number[]} The "look" vector.
|
|
29
|
+
*/
|
|
30
|
+
look: number[];
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Optional World-space position for {@link Camera.up}, used when this Annotation is associated with a {@link Camera} position.
|
|
34
|
+
*
|
|
35
|
+
* Undefined by default.
|
|
36
|
+
*
|
|
37
|
+
* @type {Number[]} The "up" vector.
|
|
38
|
+
*/
|
|
39
|
+
up: number[];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Optional projection type for {@link Camera.projection}, used when this Annotation is associated with a {@link Camera} position.
|
|
43
|
+
*
|
|
44
|
+
* Undefined by default.
|
|
45
|
+
*
|
|
46
|
+
* @type {String} The projection type - "perspective" or "ortho"..
|
|
47
|
+
*/
|
|
48
|
+
projection: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Sets whether or not to show this Annotation's marker.
|
|
52
|
+
*
|
|
53
|
+
* The marker shows the Annotation's position.
|
|
54
|
+
*
|
|
55
|
+
* The marker is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
56
|
+
*
|
|
57
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
58
|
+
*
|
|
59
|
+
* @param {Boolean} shown Whether to show the marker.
|
|
60
|
+
*/
|
|
61
|
+
setMarkerShown(shown: boolean): void;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Gets whether or not to show this Annotation's marker.
|
|
65
|
+
*
|
|
66
|
+
* The marker shows the Annotation's position.
|
|
67
|
+
*
|
|
68
|
+
* The marker is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
69
|
+
*
|
|
70
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
71
|
+
*
|
|
72
|
+
* @returns {Boolean} Whether to show the marker.
|
|
73
|
+
*/
|
|
74
|
+
getMarkerShown(): boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Sets whether or not to show this Annotation's label.
|
|
78
|
+
*
|
|
79
|
+
* The label is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
80
|
+
*
|
|
81
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
82
|
+
*
|
|
83
|
+
* @param {Boolean} shown Whether to show the label.
|
|
84
|
+
*/
|
|
85
|
+
setLabelShown(shown: boolean): void;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Gets whether or not to show this Annotation's label.
|
|
89
|
+
*
|
|
90
|
+
* The label is only visible when both this property and {@link Annotation.visible} are ````true````.
|
|
91
|
+
*
|
|
92
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
93
|
+
*
|
|
94
|
+
* @returns {Boolean} Whether to show the label.
|
|
95
|
+
*/
|
|
96
|
+
getLabelShown(): boolean;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Sets the value of a field within the HTML templates for either the Annotation's marker or label.
|
|
100
|
+
*
|
|
101
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
102
|
+
*
|
|
103
|
+
* @param {String} key Identifies the field.
|
|
104
|
+
* @param {String} value The field's value.
|
|
105
|
+
*/
|
|
106
|
+
setField(key: string, value: string): void;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Gets the value of a field within the HTML templates for either the Annotation's marker or label.
|
|
110
|
+
*
|
|
111
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
112
|
+
*
|
|
113
|
+
* @param {String} key Identifies the field.
|
|
114
|
+
* @returns {String} The field's value.
|
|
115
|
+
*/
|
|
116
|
+
getField(key: string): string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Sets values for multiple placeholders within the Annotation's HTML templates for marker and label.
|
|
120
|
+
*
|
|
121
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
122
|
+
*
|
|
123
|
+
* @param {{String:(String|Number)}} values Map of field values.
|
|
124
|
+
*/
|
|
125
|
+
setValues(values: { [key:string] : string | number }): void;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Gets the values that were set for the placeholders within this Annotation's HTML marker and label templates.
|
|
129
|
+
*
|
|
130
|
+
* See {@link AnnotationsPlugin} for more info.
|
|
131
|
+
*
|
|
132
|
+
* @RETURNS {{String:(String|Number)}} Map of field values.
|
|
133
|
+
*/
|
|
134
|
+
getValues(): { [key:string] : string | number };
|
|
135
|
+
}
|
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
import { PickResult } from "../../viewer/scene/webgl/PickResult";
|
|
2
|
-
import { Entity, Plugin, Viewer } from "../../viewer";
|
|
3
|
-
import { Annotation } from "./Annotation";
|
|
4
|
-
|
|
5
|
-
export declare type AnnotationsPluginConfiguration = {
|
|
6
|
-
/** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
|
|
7
|
-
id?: string;
|
|
8
|
-
/** HTML text template for Annotation markers. Defaults to ````<div></div>````. Ignored on {@link Annotation}s configured with a ````markerElementId````. */
|
|
9
|
-
markerHTML?: string;
|
|
10
|
-
/** HTML text template for Annotation labels. Defaults to ````<div></div>````. Ignored on {@link Annotation}s configured with a ````labelElementId````. */
|
|
11
|
-
labelHTML?: string;
|
|
12
|
-
/** Container DOM element for markers and labels. Defaults to ````document.body````. */
|
|
13
|
-
container?: HTMLElement;
|
|
14
|
-
/** Map of default values to insert into the HTML templates for the marker and label. */
|
|
15
|
-
values?: { [key: string]: string | number };
|
|
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
|
-
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 };
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* {@link Viewer} plugin that creates {@link Annotation}s.
|
|
26
|
-
*/
|
|
27
|
-
export declare class AnnotationsPlugin extends Plugin {
|
|
28
|
-
/**
|
|
29
|
-
* @constructor
|
|
30
|
-
* @param {Viewer} viewer The Viewer.
|
|
31
|
-
* @param {AnnotationsPluginConfiguration} cfg Plugin configuration.
|
|
32
|
-
*/
|
|
33
|
-
constructor(viewer: Viewer, cfg: AnnotationsPluginConfiguration);
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* The {@link Annotation}s created by {@link AnnotationsPlugin.createAnnotation}, each mapped to its {@link Annotation.id}.
|
|
37
|
-
* @type {{String:Annotation}}
|
|
38
|
-
*/
|
|
39
|
-
annotations: { [key: string]: Annotation };
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Sets the amount by which each {@link Annotation} is offset from the surface of its {@link Entity}, when we
|
|
43
|
-
* create the Annotation by supplying a {@link PickResult} to {@link AnnotationsPlugin.createAnnotation}.
|
|
44
|
-
*
|
|
45
|
-
* See the class comments for more info.
|
|
46
|
-
*
|
|
47
|
-
* This is ````0.3```` by default.
|
|
48
|
-
*
|
|
49
|
-
* @param {Number} surfaceOffset The surface offset.
|
|
50
|
-
*/
|
|
51
|
-
set surfaceOffset(arg: number);
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Gets the amount by which an {@link Annotation} is offset from the surface of its {@link Entity} when
|
|
55
|
-
* created by {@link AnnotationsPlugin.createAnnotation}, when we
|
|
56
|
-
* create the Annotation by supplying a {@link PickResult} to {@link AnnotationsPlugin.createAnnotation}.
|
|
57
|
-
*
|
|
58
|
-
* This is ````0.3```` by default.
|
|
59
|
-
*
|
|
60
|
-
* @returns {Number} The surface offset.
|
|
61
|
-
*/
|
|
62
|
-
get surfaceOffset(): number;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Creates an {@link Annotation}.
|
|
66
|
-
*
|
|
67
|
-
* The Annotation is then registered by {@link Annotation.id} in {@link AnnotationsPlugin.annotations}.
|
|
68
|
-
*
|
|
69
|
-
* @param {Object} params Annotation configuration.
|
|
70
|
-
* @param {String} params.id Unique ID to assign to {@link Annotation.id}. The Annotation will be registered by this in {@link AnnotationsPlugin.annotations} and {@link Scene.components}. Must be unique among all components in the {@link Viewer}.
|
|
71
|
-
* @param {String} [params.markerElementId] ID of pre-existing DOM element to render the marker. This overrides ````markerHTML```` and does not support ````values```` (data is baked into the label DOM element).
|
|
72
|
-
* @param {String} [params.labelElementId] ID of pre-existing DOM element to render the label. This overrides ````labelHTML```` and does not support ````values```` (data is baked into the label DOM element).
|
|
73
|
-
* @param {String} [params.markerHTML] HTML text template for the Annotation marker. Defaults to the marker HTML given to the AnnotationsPlugin constructor. Ignored if you provide ````markerElementId````.
|
|
74
|
-
* @param {String} [params.labelHTML] HTML text template for the Annotation label. Defaults to the label HTML given to the AnnotationsPlugin constructor. Ignored if you provide ````labelElementId````.
|
|
75
|
-
* @param {Number[]} [params.worldPos=[0,0,0]] World-space position of the Annotation marker, assigned to {@link Annotation.worldPos}.
|
|
76
|
-
* @param {Entity} [params.entity] Optional {@link Entity} to associate the Annotation with. Causes {@link Annotation.visible} to be ````false```` whenever {@link Entity.visible} is also ````false````.
|
|
77
|
-
* @param {PickResult} [params.pickResult] Sets the Annotation's World-space position and direction vector from the given {@link PickResult}'s {@link PickResult.worldPos} and {@link PickResult.worldNormal}, and the Annotation's Entity from {@link PickResult.entity}. Causes ````worldPos```` and ````entity```` parameters to be ignored, if they are also given.
|
|
78
|
-
* @param {Boolean} [params.occludable=false] Indicates whether or not the {@link Annotation} marker and label are hidden whenever the marker occluded by {@link Entity}s in the {@link Scene}. The
|
|
79
|
-
* {@link Scene} periodically occlusion-tests all Annotations on every 20th "tick" (which represents a rendered frame). We can adjust that frequency via property {@link Scene.ticksPerOcclusionTest}.
|
|
80
|
-
* @param {{String:(String|Number)}} [params.values={}] Map of values to insert into the HTML templates for the marker and label. These will be inserted in addition to any values given to the AnnotationsPlugin constructor.
|
|
81
|
-
* @param {Boolean} [params.markerShown=true] Whether to initially show the {@link Annotation} marker.
|
|
82
|
-
* @param {Boolean} [params.labelShown=false] Whether to initially show the {@link Annotation} label.
|
|
83
|
-
* @param {Number[]} [params.eye] Optional World-space position for {@link Camera.eye}, used when this Annotation is associated with a {@link Camera} position.
|
|
84
|
-
* @param {Number[]} [params.look] Optional World-space position for {@link Camera.look}, used when this Annotation is associated with a {@link Camera} position.
|
|
85
|
-
* @param {Number[]} [params.up] Optional World-space position for {@link Camera.up}, used when this Annotation is associated with a {@link Camera} position.
|
|
86
|
-
* @param {String} [params.projection] Optional projection type for {@link Camera.projection}, used when this Annotation is associated with a {@link Camera} position.
|
|
87
|
-
* @returns {Annotation} The new {@link Annotation}.
|
|
88
|
-
*/
|
|
89
|
-
createAnnotation(params: {
|
|
90
|
-
id: string;
|
|
91
|
-
markerElementId?: string;
|
|
92
|
-
labelElementId?: string;
|
|
93
|
-
markerHTML?: string;
|
|
94
|
-
labelHTML?: string;
|
|
95
|
-
labelPlacement?: "right" | "above";
|
|
96
|
-
labelOffset?: { x?: number; y?: number };
|
|
97
|
-
worldPos?: number[];
|
|
98
|
-
entity?: Entity;
|
|
99
|
-
pickResult?: PickResult;
|
|
100
|
-
occludable?: boolean;
|
|
101
|
-
values?: { [key: string]: string | number };
|
|
102
|
-
markerShown?: boolean;
|
|
103
|
-
labelShown?: boolean;
|
|
104
|
-
eye?: number[];
|
|
105
|
-
look?: number[];
|
|
106
|
-
up?: number[];
|
|
107
|
-
projection?: string;
|
|
108
|
-
}): Annotation;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Destroys an {@link Annotation}.
|
|
112
|
-
*
|
|
113
|
-
* @param {String} id ID of Annotation to destroy.
|
|
114
|
-
*/
|
|
115
|
-
destroyAnnotation(id: string): void;
|
|
116
|
-
|
|
117
|
-
setAllVisible(visible: boolean): void;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Destroys all {@link Annotation}s.
|
|
121
|
-
*/
|
|
122
|
-
clear(): void;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Fires when a annotation is created.
|
|
126
|
-
* @param {String} event The annotationCreated event
|
|
127
|
-
* @param {Function} callback Callback fired on the event
|
|
128
|
-
*/
|
|
129
|
-
on(event: "annotationCreated", callback: (annotationId: string) => void): void;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Fires when a annotation is destroyed.
|
|
133
|
-
* @param {String} event The annotationDestroyed event
|
|
134
|
-
* @param {Function} callback Callback fired on the event
|
|
135
|
-
*/
|
|
136
|
-
on(event: "annotationDestroyed", callback: (annotationId: string) => void): void;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Fires when a mouse enters a annotation.
|
|
140
|
-
* @param {String} event The markerMouseEnter event
|
|
141
|
-
* @param {Function} callback Callback fired on the event
|
|
142
|
-
*/
|
|
143
|
-
on(event: "markerMouseEnter", callback: (annotation: Annotation) => void): void;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Fires when a mouse leave an annotation.
|
|
147
|
-
* @param {String} event The markerMouseLeave event
|
|
148
|
-
* @param {Function} callback Callback fired on the event
|
|
149
|
-
*/
|
|
150
|
-
on(event: "markerMouseLeave", callback: (annotation: Annotation) => void): void;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Fires when a mouse click an annotation.
|
|
154
|
-
* @param {String} event The markerClicked event
|
|
155
|
-
* @param {Function} callback Callback fired on the event
|
|
156
|
-
*/
|
|
157
|
-
on(event: "markerClicked", callback: (annotation: Annotation) => void): void;
|
|
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
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Fires when a mouse dbclick an annotation.
|
|
168
|
-
* @param {String} event The markerDoubleClicked event
|
|
169
|
-
* @param {Function} callback Callback fired on the event
|
|
170
|
-
*/
|
|
171
|
-
on(event: "markerDoubleClicked", callback: (annotation: Annotation) => void): void;
|
|
172
|
-
}
|
|
1
|
+
import { PickResult } from "../../viewer/scene/webgl/PickResult";
|
|
2
|
+
import { Entity, Plugin, Viewer } from "../../viewer";
|
|
3
|
+
import { Annotation } from "./Annotation";
|
|
4
|
+
|
|
5
|
+
export declare type AnnotationsPluginConfiguration = {
|
|
6
|
+
/** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** HTML text template for Annotation markers. Defaults to ````<div></div>````. Ignored on {@link Annotation}s configured with a ````markerElementId````. */
|
|
9
|
+
markerHTML?: string;
|
|
10
|
+
/** HTML text template for Annotation labels. Defaults to ````<div></div>````. Ignored on {@link Annotation}s configured with a ````labelElementId````. */
|
|
11
|
+
labelHTML?: string;
|
|
12
|
+
/** Container DOM element for markers and labels. Defaults to ````document.body````. */
|
|
13
|
+
container?: HTMLElement;
|
|
14
|
+
/** Map of default values to insert into the HTML templates for the marker and label. */
|
|
15
|
+
values?: { [key: string]: string | number };
|
|
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
|
+
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 };
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* {@link Viewer} plugin that creates {@link Annotation}s.
|
|
26
|
+
*/
|
|
27
|
+
export declare class AnnotationsPlugin extends Plugin {
|
|
28
|
+
/**
|
|
29
|
+
* @constructor
|
|
30
|
+
* @param {Viewer} viewer The Viewer.
|
|
31
|
+
* @param {AnnotationsPluginConfiguration} cfg Plugin configuration.
|
|
32
|
+
*/
|
|
33
|
+
constructor(viewer: Viewer, cfg: AnnotationsPluginConfiguration);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The {@link Annotation}s created by {@link AnnotationsPlugin.createAnnotation}, each mapped to its {@link Annotation.id}.
|
|
37
|
+
* @type {{String:Annotation}}
|
|
38
|
+
*/
|
|
39
|
+
annotations: { [key: string]: Annotation };
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Sets the amount by which each {@link Annotation} is offset from the surface of its {@link Entity}, when we
|
|
43
|
+
* create the Annotation by supplying a {@link PickResult} to {@link AnnotationsPlugin.createAnnotation}.
|
|
44
|
+
*
|
|
45
|
+
* See the class comments for more info.
|
|
46
|
+
*
|
|
47
|
+
* This is ````0.3```` by default.
|
|
48
|
+
*
|
|
49
|
+
* @param {Number} surfaceOffset The surface offset.
|
|
50
|
+
*/
|
|
51
|
+
set surfaceOffset(arg: number);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Gets the amount by which an {@link Annotation} is offset from the surface of its {@link Entity} when
|
|
55
|
+
* created by {@link AnnotationsPlugin.createAnnotation}, when we
|
|
56
|
+
* create the Annotation by supplying a {@link PickResult} to {@link AnnotationsPlugin.createAnnotation}.
|
|
57
|
+
*
|
|
58
|
+
* This is ````0.3```` by default.
|
|
59
|
+
*
|
|
60
|
+
* @returns {Number} The surface offset.
|
|
61
|
+
*/
|
|
62
|
+
get surfaceOffset(): number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates an {@link Annotation}.
|
|
66
|
+
*
|
|
67
|
+
* The Annotation is then registered by {@link Annotation.id} in {@link AnnotationsPlugin.annotations}.
|
|
68
|
+
*
|
|
69
|
+
* @param {Object} params Annotation configuration.
|
|
70
|
+
* @param {String} params.id Unique ID to assign to {@link Annotation.id}. The Annotation will be registered by this in {@link AnnotationsPlugin.annotations} and {@link Scene.components}. Must be unique among all components in the {@link Viewer}.
|
|
71
|
+
* @param {String} [params.markerElementId] ID of pre-existing DOM element to render the marker. This overrides ````markerHTML```` and does not support ````values```` (data is baked into the label DOM element).
|
|
72
|
+
* @param {String} [params.labelElementId] ID of pre-existing DOM element to render the label. This overrides ````labelHTML```` and does not support ````values```` (data is baked into the label DOM element).
|
|
73
|
+
* @param {String} [params.markerHTML] HTML text template for the Annotation marker. Defaults to the marker HTML given to the AnnotationsPlugin constructor. Ignored if you provide ````markerElementId````.
|
|
74
|
+
* @param {String} [params.labelHTML] HTML text template for the Annotation label. Defaults to the label HTML given to the AnnotationsPlugin constructor. Ignored if you provide ````labelElementId````.
|
|
75
|
+
* @param {Number[]} [params.worldPos=[0,0,0]] World-space position of the Annotation marker, assigned to {@link Annotation.worldPos}.
|
|
76
|
+
* @param {Entity} [params.entity] Optional {@link Entity} to associate the Annotation with. Causes {@link Annotation.visible} to be ````false```` whenever {@link Entity.visible} is also ````false````.
|
|
77
|
+
* @param {PickResult} [params.pickResult] Sets the Annotation's World-space position and direction vector from the given {@link PickResult}'s {@link PickResult.worldPos} and {@link PickResult.worldNormal}, and the Annotation's Entity from {@link PickResult.entity}. Causes ````worldPos```` and ````entity```` parameters to be ignored, if they are also given.
|
|
78
|
+
* @param {Boolean} [params.occludable=false] Indicates whether or not the {@link Annotation} marker and label are hidden whenever the marker occluded by {@link Entity}s in the {@link Scene}. The
|
|
79
|
+
* {@link Scene} periodically occlusion-tests all Annotations on every 20th "tick" (which represents a rendered frame). We can adjust that frequency via property {@link Scene.ticksPerOcclusionTest}.
|
|
80
|
+
* @param {{String:(String|Number)}} [params.values={}] Map of values to insert into the HTML templates for the marker and label. These will be inserted in addition to any values given to the AnnotationsPlugin constructor.
|
|
81
|
+
* @param {Boolean} [params.markerShown=true] Whether to initially show the {@link Annotation} marker.
|
|
82
|
+
* @param {Boolean} [params.labelShown=false] Whether to initially show the {@link Annotation} label.
|
|
83
|
+
* @param {Number[]} [params.eye] Optional World-space position for {@link Camera.eye}, used when this Annotation is associated with a {@link Camera} position.
|
|
84
|
+
* @param {Number[]} [params.look] Optional World-space position for {@link Camera.look}, used when this Annotation is associated with a {@link Camera} position.
|
|
85
|
+
* @param {Number[]} [params.up] Optional World-space position for {@link Camera.up}, used when this Annotation is associated with a {@link Camera} position.
|
|
86
|
+
* @param {String} [params.projection] Optional projection type for {@link Camera.projection}, used when this Annotation is associated with a {@link Camera} position.
|
|
87
|
+
* @returns {Annotation} The new {@link Annotation}.
|
|
88
|
+
*/
|
|
89
|
+
createAnnotation(params: {
|
|
90
|
+
id: string;
|
|
91
|
+
markerElementId?: string;
|
|
92
|
+
labelElementId?: string;
|
|
93
|
+
markerHTML?: string;
|
|
94
|
+
labelHTML?: string;
|
|
95
|
+
labelPlacement?: "right" | "above";
|
|
96
|
+
labelOffset?: { x?: number; y?: number };
|
|
97
|
+
worldPos?: number[];
|
|
98
|
+
entity?: Entity;
|
|
99
|
+
pickResult?: PickResult;
|
|
100
|
+
occludable?: boolean;
|
|
101
|
+
values?: { [key: string]: string | number };
|
|
102
|
+
markerShown?: boolean;
|
|
103
|
+
labelShown?: boolean;
|
|
104
|
+
eye?: number[];
|
|
105
|
+
look?: number[];
|
|
106
|
+
up?: number[];
|
|
107
|
+
projection?: string;
|
|
108
|
+
}): Annotation;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Destroys an {@link Annotation}.
|
|
112
|
+
*
|
|
113
|
+
* @param {String} id ID of Annotation to destroy.
|
|
114
|
+
*/
|
|
115
|
+
destroyAnnotation(id: string): void;
|
|
116
|
+
|
|
117
|
+
setAllVisible(visible: boolean): void;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Destroys all {@link Annotation}s.
|
|
121
|
+
*/
|
|
122
|
+
clear(): void;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Fires when a annotation is created.
|
|
126
|
+
* @param {String} event The annotationCreated event
|
|
127
|
+
* @param {Function} callback Callback fired on the event
|
|
128
|
+
*/
|
|
129
|
+
on(event: "annotationCreated", callback: (annotationId: string) => void): void;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Fires when a annotation is destroyed.
|
|
133
|
+
* @param {String} event The annotationDestroyed event
|
|
134
|
+
* @param {Function} callback Callback fired on the event
|
|
135
|
+
*/
|
|
136
|
+
on(event: "annotationDestroyed", callback: (annotationId: string) => void): void;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Fires when a mouse enters a annotation.
|
|
140
|
+
* @param {String} event The markerMouseEnter event
|
|
141
|
+
* @param {Function} callback Callback fired on the event
|
|
142
|
+
*/
|
|
143
|
+
on(event: "markerMouseEnter", callback: (annotation: Annotation) => void): void;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Fires when a mouse leave an annotation.
|
|
147
|
+
* @param {String} event The markerMouseLeave event
|
|
148
|
+
* @param {Function} callback Callback fired on the event
|
|
149
|
+
*/
|
|
150
|
+
on(event: "markerMouseLeave", callback: (annotation: Annotation) => void): void;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Fires when a mouse click an annotation.
|
|
154
|
+
* @param {String} event The markerClicked event
|
|
155
|
+
* @param {Function} callback Callback fired on the event
|
|
156
|
+
*/
|
|
157
|
+
on(event: "markerClicked", callback: (annotation: Annotation) => void): void;
|
|
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
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Fires when a mouse dbclick an annotation.
|
|
168
|
+
* @param {String} event The markerDoubleClicked event
|
|
169
|
+
* @param {Function} callback Callback fired on the event
|
|
170
|
+
*/
|
|
171
|
+
on(event: "markerDoubleClicked", callback: (annotation: Annotation) => void): void;
|
|
172
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./AnnotationsPlugin";
|
|
2
|
-
export * from "./Annotation";
|
|
1
|
+
export * from "./AnnotationsPlugin";
|
|
2
|
+
export * from "./Annotation";
|