Skip to content

EVENTS

symbol

Back to Helios Web API

Kind
symbol
Source
src/Helios.js:2070

Description

Stable event names emitted by Helios instances.

Signature

export const EVENTS = Object.freeze({

Notes

Event payloads are delivered through CustomEvent.detail where the browser supports CustomEvent. Use these constants instead of string literals when wiring app behavior to render, layout, camera, picking, mapper, filter, or network replacement changes.

Example

helios.on(EVENTS.NODE_HOVER, (event) => {
  console.log(event.detail?.index);
});