Skip to content

Commit

Permalink
Fixed Minimap
Browse files Browse the repository at this point in the history
Signed-off-by: Prathamesh Mutkure <pmutkure009@gmail.com>
  • Loading branch information
prathamesh-mutkure committed Nov 29, 2023
1 parent f9c602e commit a5cd722
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/jaeger-ui/src/components/DependencyGraph/DAG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@

import React, { ReactNode } from 'react';

import { Digraph, LayoutManager, cacheAs } from '@jaegertracing/plexus';
import { Digraph, LayoutManager } from '@jaegertracing/plexus';
import { TEdge, TVertex } from '@jaegertracing/plexus/lib/types';
import { TMeasureNodeUtils } from '@jaegertracing/plexus/src/Digraph/types';

import './dag.css';

Expand Down Expand Up @@ -75,6 +74,8 @@ const formatServiceCalls = (
return { nodes, edges };
};

const { classNameIsSmall } = Digraph.propsFactories;

export default class DAG extends React.Component<TProps> {
static defaultProps = {
serviceCalls: [],
Expand Down Expand Up @@ -110,6 +111,7 @@ export default class DAG extends React.Component<TProps> {
zoom
minimap
className="DAG--dag"
setOnGraph={classNameIsSmall}
minimapClassName="u-miniMap"
layoutManager={this.layoutManager}
measurableNodesKey="nodes"
Expand Down

0 comments on commit a5cd722

Please sign in to comment.