|
1 | 1 | import React from 'react'; |
2 | 2 | import { DataGrid } from '@mui/x-data-grid'; |
3 | 3 | import { ChartProps } from './Chart'; |
4 | | -import { getRecordType, getRendererForValue, RenderSubValue, valueIsNode, valueIsRelationship } from '../report/RecordProcessing'; |
5 | | -import { Chip, Tooltip, withStyles } from '@material-ui/core'; |
6 | | - |
7 | | -function addDirection(relationship, start) { |
8 | | - relationship.direction = (relationship.start.low == start.identity.low); |
9 | | - return relationship; |
10 | | -} |
11 | | - |
12 | | -const rightRelationship = "polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, 100% calc(100% - 50%), calc(100% - 10px) 100%, 0px 100%, 0% calc(100% - 0px), 0% 0px)" |
13 | | -const leftRelationship = "polygon(10px 0%, calc(100% - 0%) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 0%) 100%, 10px 100%, 0% calc(100% - 50%), 0% 50%)" |
14 | | - |
15 | | -const HtmlTooltip = withStyles((theme) => ({ |
16 | | - tooltip: { |
17 | | - color: 'white', |
18 | | - fontSize: theme.typography.pxToRem(12), |
19 | | - border: '1px solid #fcfffa', |
20 | | - }, |
21 | | -}))(Tooltip); |
| 4 | +import { getRecordType, getRendererForValue, rendererForType, RenderSubValue, valueIsNode, valueIsRelationship } from '../report/RecordProcessing'; |
22 | 5 |
|
23 | 6 |
|
24 | 7 | function ApplyColumnType(column, value) { |
25 | 8 | const renderer = getRendererForValue(value); |
26 | | - const columnProperties = (renderer ? {type:renderer.type, renderCell: renderer.renderValue} : customColumnProperties["string"]); |
| 9 | + const columnProperties = (renderer ? {type:renderer.type, renderCell: renderer.renderValue} : rendererForType["string"]); |
27 | 10 |
|
28 | 11 | if (columnProperties) { |
29 | 12 | column = { ...column, ...columnProperties } |
|
0 commit comments