diff --git a/src/component/1d/multiplicityTree/MultiplicityTree.tsx b/src/component/1d/multiplicityTree/MultiplicityTree.tsx index 2a72f9efa..81f09d2c9 100644 --- a/src/component/1d/multiplicityTree/MultiplicityTree.tsx +++ b/src/component/1d/multiplicityTree/MultiplicityTree.tsx @@ -18,7 +18,7 @@ import { AssignmentActionsButtons } from '../ranges/AssignmentActionsButtons'; import LevelNode from './LevelNode'; import StringNode from './StringNode'; import TreeNodes from './TreeNodes'; -import createTreeNodes, { treeNodeData } from './buildTreeNode'; +import createTreeNodes, { TreeNodeData } from './buildTreeNode'; const styles = { cursor: 'default', @@ -163,7 +163,7 @@ interface TreeResult { width: number; height: number; levelHeight: number; - nodes: treeNodeData[]; + nodes: TreeNodeData[]; signal: Signal1D; range: Omit; } @@ -179,7 +179,7 @@ function getTree(range: Range, spectrum: Spectrum1D, scale) { let width = 0; let height = 0; let levelHeight = 0; - const nodes: treeNodeData[] = []; + const nodes: TreeNodeData[] = []; let startX = 0; const { from, to } = range; diff --git a/src/component/1d/multiplicityTree/buildTreeNode.ts b/src/component/1d/multiplicityTree/buildTreeNode.ts index c031adb37..4e40f51a3 100644 --- a/src/component/1d/multiplicityTree/buildTreeNode.ts +++ b/src/component/1d/multiplicityTree/buildTreeNode.ts @@ -9,18 +9,19 @@ import { import { TREE_LEVEL_COLORS } from './TreeColors'; -export interface treeNodeData { +export interface TreeNodeData { startX: number; _startX: number; ratio: number; multiplicityIndex: number; color: string; } + function createTreeNodes(signal: Signal1D, spectrumData: Spectrum1D) { function buildTreeNodesData( multiplicityIndex: number, jIndices: number[], - treeNodesData: treeNodeData[], + treeNodesData: TreeNodeData[], startX: number, ) { if (!signal.multiplicity) {