Files
Joey 15330c3e66 NodeGraph: Add node graph algorithm layout option (#102760)
* Add layout buttons

* Add config for node graph panel

* Tests

* Update test

* Updates

* Move grid button and cache nodes

* Remove limit and add warning

* Update default
2025-04-02 15:56:22 +01:00

67 lines
1.5 KiB
TypeScript

// Code generated - EDITING IS FUTILE. DO NOT EDIT.
//
// Generated by:
// public/app/plugins/gen.go
// Using jennies:
// TSTypesJenny
// PluginTsTypesJenny
//
// Run 'make gen-cue' from repository root to regenerate.
export interface ArcOption {
/**
* The color of the arc.
*/
color?: string;
/**
* Field from which to get the value. Values should be less than 1, representing fraction of a circle.
*/
field?: string;
}
export enum ZoomMode {
Cooperative = 'cooperative',
Greedy = 'greedy',
}
export enum LayoutAlgorithm {
Force = 'force',
Grid = 'grid',
Layered = 'layered',
}
export interface Options {
edges?: {
/**
* Unit for the main stat to override what ever is set in the data frame.
*/
mainStatUnit?: string;
/**
* Unit for the secondary stat to override what ever is set in the data frame.
*/
secondaryStatUnit?: string;
};
/**
* How to layout the nodes in the node graph
*/
layoutAlgorithm?: LayoutAlgorithm;
nodes?: {
/**
* Unit for the main stat to override what ever is set in the data frame.
*/
mainStatUnit?: string;
/**
* Unit for the secondary stat to override what ever is set in the data frame.
*/
secondaryStatUnit?: string;
/**
* Define which fields are shown as part of the node arc (colored circle around the node).
*/
arcs?: Array<ArcOption>;
};
/**
* How to handle zoom/scroll events in the node graph
*/
zoomMode?: ZoomMode;
}