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
22 lines (21 loc) • 521 B
TypeScript
export interface DisplayVariable {
name: string;
label: string;
tooltip?: string;
}
export interface DisplayFieldConstructor {
root: HTMLElement;
context: DisplayVariable[];
title?: string;
id?: string;
}
/**
* Shows the value of variables in a draggable pane.
*/
export default class DisplayField {
context: DisplayVariable[];
private refs;
constructor(opts: DisplayFieldConstructor);
update(name: string, value: string | number | boolean): void;
private initDisplay;
}