viewer2d.dblclick
Invoked when the user double clicks inside the viewer.
Example
Usage
const onDoubleClick = function (event, location, objectId) {
console.log("viewer2d.dblclick", "location:", location, "objectId:", objectId);
};
$("#viewer-2d").on("viewer2d.dblclick", onDoubleClick);Parameters
onDoubleClick
Function called when the user double clicks inside the viewer.
Type |
|---|
(event: Object, location: Object, objectId: String?) => Boolean/Void |
event
location
Coordinates of the position clicked.
Name | Type | Description |
|---|---|---|
x | Number | X coordinate of position clicked in pixels |
y | Number | Y coordinate of position clicked in pixels |
z | Number | Height of the last storey shown in meters |
objectId
Id of the object clicked, undefined if no object under cursor.