UNPKG

agentscape

Version:

Agentscape is a library for creating agent-based simulations. It provides a simple API for defining agents and their behavior, and for defining the environment in which the agents interact. Agentscape is designed to be flexible and extensible, allowing

16 lines (15 loc) 380 B
export interface Action { label: string; action: () => void; } export interface ActionPaletteConstructor { root: HTMLDivElement; actions: Action[]; } /** * ActionPalette is a draggable pane that contains a list of buttons. * Each button triggers an action when clicked. */ export default class ActionPalette { constructor(opts: ActionPaletteConstructor); }