Interface StylerContextBeta

Interface representing the context for a styler.

interface StylerContext {
    DesktopAPI: Desktop;
    OntologyAPI: Ontology;
    ee: EventEmitterType;
    eventTopicPrefix: string;
    graph: GraphSpec;
    onTaskCanceled?: (() => void);
    onTaskComplete?: ((x: Styler) => void);
    selected: GraphSpec;
    taskID?: string;
}

Properties

DesktopAPI: Desktop

The desktop API instance.

OntologyAPI: Ontology

The ontology API instance.

The event emitter instance.

eventTopicPrefix: string

The event topic prefix.

graph: GraphSpec

The graph specification.

onTaskCanceled?: (() => void)

Callback function to be called when the task is canceled.

onTaskComplete?: ((x: Styler) => void)

Callback function to be called when the task is complete.

The styler instance.

selected: GraphSpec

The selected graph specification.

taskID?: string

The task ID associated with the styler.