Skip to content

Commit 788d3fe

Browse files
Siwei Zhangbhufmann
authored andcommitted
Add generic xy view
Implement the new generic xy view to support non-time x-axis xy view. This new view uses a new endpoint in the tsp introduced in: eclipse-cdt-cloud/trace-server-protocol#114 Signed-off-by: Siwei Zhang <[email protected]>
1 parent 6b35edf commit 788d3fe

File tree

5 files changed

+925
-3
lines changed

5 files changed

+925
-3
lines changed

base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"src"
1717
],
1818
"dependencies": {
19-
"tsp-typescript-client": "^0.7.0"
19+
"tsp-typescript-client": "^0.8.0"
2020
},
2121
"devDependencies": {
2222
"@typescript-eslint/eslint-plugin": "^6.0.0",

react-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"react-virtualized": "^9.21.0",
3737
"timeline-chart": "^0.4.2",
3838
"traceviewer-base": "0.9.1",
39-
"tsp-typescript-client": "^0.7.0"
39+
"tsp-typescript-client": "^0.8.0"
4040
},
4141
"devDependencies": {
4242
"@testing-library/react": "^15.0.6",

react-components/src/components/abstract-tree-output-component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ export abstract class AbstractTreeOutputComponent<
130130

131131
public getTreeWidth(): number {
132132
// Make tree thinner when chart has a y-axis
133-
const yAxisWidth = this.props.outputDescriptor.type === 'TREE_TIME_XY' ? this.getYAxisWidth() : 0;
133+
const type = this.props.outputDescriptor.type;
134+
const yAxisWidth = type === 'TREE_TIME_XY' || type === 'TREE_GENERIC_XY' ? this.getYAxisWidth() : 0;
134135
return Math.max(0, this.props.style.chartOffset - this.getHandleWidth() - yAxisWidth - this.getSashWidth());
135136
}
136137

0 commit comments

Comments
 (0)