/usr/share/grafana/public/app/plugins/panel/nodeGraph
// Copyright 2023 Grafana Labs // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package grafanaplugin composableKinds: PanelCfg: { maturity: "experimental" lineage: { schemas: [{ version: [0, 0] schema: // v0.0 { ArcOption: { // Field from which to get the value. Values should be less than 1, representing fraction of a circle. field?: string // The color of the arc. color?: string } @cuetsy(kind="interface") NodeOptions: { // 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?: [...ArcOption] } EdgeOptions: { // 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 } ZoomMode: "cooperative" | "greedy" @cuetsy(kind="enum") LayoutAlgorithm: "layered" | "force" | "grid" @cuetsy(kind="enum") Options: { nodes?: NodeOptions edges?: EdgeOptions // How to handle zoom/scroll events in the node graph zoomMode?: ZoomMode // How to layout the nodes in the node graph layoutAlgorithm?: LayoutAlgorithm } @cuetsy(kind="interface") } }] lenses: [] } }
.
Edit
..
Edit
Edge.tsx
Edit
EdgeArrowMarker.tsx
Edit
EdgeLabel.tsx
Edit
Legend.test.tsx
Edit
Legend.tsx
Edit
Marker.tsx
Edit
Node.test.tsx
Edit
Node.tsx
Edit
NodeGraph.test.tsx
Edit
NodeGraph.tsx
Edit
NodeGraphPanel.tsx
Edit
README.md
Edit
ViewControls.tsx
Edit
createLayoutWorker.ts
Edit
editor
Edit
forceLayout.js
Edit
img
Edit
layeredLayout.js
Edit
layeredLayout.test.ts
Edit
layeredLayout.worker.js
Edit
layout.test.ts
Edit
layout.ts
Edit
layout.worker.js
Edit
module.tsx
Edit
panelcfg.cue
Edit
panelcfg.gen.ts
Edit
plugin.json
Edit
suggestions.ts
Edit
types.ts
Edit
useCategorizeFrames.ts
Edit
useContextMenu.tsx
Edit
useFocusPositionOnLayout.ts
Edit
useHighlight.ts
Edit
useNodeLimit.ts
Edit
usePanning.ts
Edit
useZoom.ts
Edit
utils.test.ts
Edit
utils.ts
Edit