EffectContextMenu

A context menu for effect range operations (edit or remove).

Constructor

new EffectContextMenu(x, y, callbacks)

Parameters:
NameTypeDescription
xnumberPreferred left position in viewport pixels.
ynumberPreferred top position in viewport pixels.
callbacksobjectCallback functions for menu actions.
Properties
NameTypeAttributesDescription
onEditfunction<optional>
Called when "Edit effect" is clicked.
onRemovefunction<optional>
Called when "Remove effect" is clicked.
onDismissfunction<optional>
Called when the menu is dismissed.
infoObject | null<optional>
Info widget config passed to the base ContextMenu.
Example
const menu = new EffectContextMenu(event.clientX, event.clientY, {
  onEdit:    () => openEditDialog(rangeId),
  onRemove:  () => removeRange(rangeId),
  onDismiss: () => { this._effectMenu = null; },
});

Classes

EffectContextMenu