mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Canvas: Connection properties based on data (#64360)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import { RegistryItem } from '@grafana/data';
|
||||
import { PanelOptionsSupplier } from '@grafana/data/src/panel/PanelPlugin';
|
||||
import { config } from 'app/core/config';
|
||||
|
||||
import { DimensionContext } from '../dimensions/context';
|
||||
import { DimensionContext, ColorDimensionConfig, ScaleDimensionConfig } from '../dimensions';
|
||||
|
||||
import { BackgroundConfig, Constraint, LineConfig, Placement } from './types';
|
||||
|
||||
@@ -46,6 +46,8 @@ export interface CanvasConnection {
|
||||
target: ConnectionCoordinates;
|
||||
targetName?: string;
|
||||
path: ConnectionPath;
|
||||
color?: ColorDimensionConfig;
|
||||
size?: ScaleDimensionConfig;
|
||||
// See https://github.com/anseki/leader-line#options for more examples of more properties
|
||||
}
|
||||
|
||||
|
||||
@@ -144,6 +144,8 @@ export class Scene {
|
||||
this.initMoveable(destroySelecto, enableEditing);
|
||||
this.currentLayer = this.root;
|
||||
this.selection.next([]);
|
||||
this.connections.select(undefined);
|
||||
this.connections.updateState();
|
||||
}
|
||||
});
|
||||
return this.root;
|
||||
|
||||
Reference in New Issue
Block a user