---
description: Summarizes Fire_ events.
---

# EVENT

## Basic Event

> Events that are integrated with the engine through HTML Canvas event registration

```javascript
var canvas = document.createElement("canvas");
canvas.id = "canvas";

canvas.addEventListener("Fire_~~~~", function (e) {
    // Implement functionality
});
```

| Index | Name                                  | Description                                       |
| ----- | ------------------------------------- | ------------------------------------------------- |
| 0     | Fire\_EventSelectedObject             | Event when an object is selected                  |
| 1     | Fire\_EventRotateCompass              | Event when the compass is rotated                 |
| 2     | Fire\_EventCameraMoveEnd              | Event when camera movement ends                   |
| 3     | Fire\_JSEventResize                   | Event when the canvas is resized                  |
| 4     | Fire\_EventAddRadius                  | Event when creating a vertical plane radius       |
| 5     | Fire\_EventAddDistancePoint           | Event when returning distance measurement values  |
| 6     | Fire\_EventAddAreaPoint               | Event when returning area measurement values      |
| 7     | Fire\_EventAddAltitudePoint           | Event when returning altitude measurement values  |
| 8     | Fire\_EventFinishTransparencyAutoMove | Event when automatic movement for excavation ends |
| 9     | Fire\_EventCompleteShadowSimulation   | Event when sun analysis (shadow) simulation ends  |

* Unless otherwise noted, the event does not provide variables.

### Fire\_EventRotateCompass

| Variable Name    | Data Type | Description                                       |
| ---------------- | --------- | ------------------------------------------------- |
| dCameraHeadAngle | number    | Compass (navigation) direction angle (in degrees) |

### Fire\_EventAddDistancePoint

| Variable Name  | Data Type | Description                                                                                                        |
| -------------- | --------- | ------------------------------------------------------------------------------------------------------------------ |
| dDistance      | number    | Partial measurement distance value (distance between the previous input point and the last input point, in meters) |
| dTotalDistance | number    | Total measurement distance value (distance between the first input point and the last input point, in meters)      |
| dMidLon        | number    | Longitude for displaying partial measurement distance value (in degrees)                                           |
| dMidLat        | number    | Latitude for displaying partial measurement distance value (in degrees)                                            |
| dMidAlt        | number    | Altitude for displaying partial measurement distance value (in meters)                                             |
| dLon           | number    | Longitude for displaying total measurement distance value (in degrees)                                             |
| dLat           | number    | Latitude for displaying total measurement distance value (in degrees)                                              |
| dAlt           | number    | Altitude for displaying total measurement distance value (in meters)                                               |

### Fire\_EventAddAreaPoint

| Variable Name | Data Type | Description                                            |
| ------------- | --------- | ------------------------------------------------------ |
| dArea         | number    | Area measurement value (in square meters)              |
| dLon          | number    | Longitude for displaying area measurement (in degrees) |
| dLat          | number    | Latitude for displaying area measurement (in degrees)  |
| dAlt          | number    | Altitude for displaying area measurement (in meters)   |

### Fire\_EventAddAltitudePoint

| Variable Name   | Data Type | Description                                                                 |
| --------------- | --------- | --------------------------------------------------------------------------- |
| dGroundAltitude | number    | Altitude measurement value (in meters)                                      |
| dObjectAltitude | number    | Height measurement value from the terrain to the selected point (in meters) |
| dLon            | number    | Longitude for displaying altitude measurement (in degrees)                  |
| dLat            | number    | Latitude for displaying altitude measurement (in degrees)                   |
| dAlt            | number    | Altitude for displaying altitude measurement (in meters)                    |

## Ghost Symbol Event

> Events integrated with the engine through ghost symbol event registration

```javascript
var canvas = document.createElement('canvas');
canvas.id = "canvas";
canvas.addEventListener("Fire_GhostSymbolRegistComplete", function(e){
		// Implement functionality
});

~
Module.getGhostSymbolMap().addGhostSymbolBy3DS()
~

```

| Index | Name                            | Description                             |
| ----- | ------------------------------- | --------------------------------------- |
| 0     | Fire\_GhostSymbolRegistComplete | Event when a ghost symbol is registered |
