Skip to content

Commit

Permalink
Merge pull request #53 from buggregator/hotifx/callgraph-styles
Browse files Browse the repository at this point in the history
Improvements for the issue #33
  • Loading branch information
butschster authored Oct 26, 2023
2 parents 9318321 + 0d9ac3f commit 9e202c6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
11 changes: 6 additions & 5 deletions components/ProfilerPageCallGraph/ProfilerPageCallGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@
class="profiler-page-call-graph__toolbar profiler-page-call-graph__toolbar--right"
>
<label class="profiler-page-call-graph__toolbar-input-wr">
Threshold:
Threshold

<input
class="profiler-page-call-graph__toolbar-input"
type="number"
:value="threshold"
:min="0"
:max="100"
:max="10"
:step="0.1"
@input="setThreshold($event.target.value)"
/>
</label>
Expand Down Expand Up @@ -155,11 +156,11 @@ export default defineComponent({
}
.profiler-page-call-graph__toolbar {
@apply absolute top-5 left-5 flex bg-gray-200 p-2 rounded gap-x-5;
@apply absolute top-5 left-5 flex bg-gray-200 p-2 rounded gap-x-5 shadow-lg;
}
.profiler-page-call-graph__toolbar--right {
@apply right-5 left-auto;
@apply right-5 left-auto py-1;
}
.profiler-page-call-graph__toolbar-icon {
Expand All @@ -175,6 +176,6 @@ export default defineComponent({
}
.profiler-page-call-graph__toolbar-input {
@apply border-b bg-transparent border-gray-600 text-gray-600 w-8;
@apply border-gray-600 text-gray-600 w-10 font-bold text-right bg-gray-300 ml-1 py-1 rounded;
}
</style>
18 changes: 9 additions & 9 deletions components/RenderGraph/RenderGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,26 @@ const stylesConfig: Stylesheet[] = [
"text-wrap": "wrap",
width: "label",
height: "label",
"border-width": "1px",
"border-color": "#333",
"border-width": "2px",
"border-color": "#000",
},
},
{
selector: "edge",
style: {
"line-color": "data(color)",
"background-color": "data(color)",
"text-outline-width": "5px",
width: 1.5,
"text-outline-width": "2px",
width: 2,
height: "label",
"target-arrow-shape": "triangle",
"target-arrow-color": "data(color)",
content: "data(label)",
color: "#fff",
"curve-style": "bezier",
"loop-direction": "90deg",
"curve-style": "taxi",
"taxi-direction": "downward",
"edge-distances": "node-position",
"control-point-distance": "5px",
},
},
];
Expand Down Expand Up @@ -94,7 +96,7 @@ export default defineComponent({
name: "dagre",
nodeSep: 10,
edgeSep: 10,
rankSep: 50,
rankSep: 80,
rankDir: "TB",
} as DagreLayoutOptions,
style: stylesConfig,
Expand All @@ -113,8 +115,6 @@ export default defineComponent({
this.hoverNodeData = null;
});
cy.nodes().ungrabify();
this.renderer = cy;
},
beforeUnmount() {
Expand Down

0 comments on commit 9e202c6

Please sign in to comment.