Skip to content

Commit a7376d7

Browse files
committed
adding release files
1 parent dca2c86 commit a7376d7

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

dist/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68611,6 +68611,7 @@ azdataGraph.prototype.getStyledTooltipForCell = function (cell) {
6861168611
const tooltipLineHeight = 'padding-top: .13em; line-height: .5em;';
6861268612
const centerText = 'text-align: center;';
6861368613
const headerBottomMargin = 'margin-bottom: 1.5em;';
68614+
const headerTopMargin = 'margin-top: 1.5em;';
6861468615
const footerTopMargin = 'margin-top: 1.5em;';
6861568616
const metricLabelMargin = 'margin-right: 4em;';
6861668617

@@ -68620,7 +68621,9 @@ azdataGraph.prototype.getStyledTooltipForCell = function (cell) {
6862068621
// tooltip heading for vertices only
6862168622
if (!cell.edge) {
6862268623
tooltip += `<div style=\"${centerText}\"><span style=\"${boldText}\">${cell.value.label}</span></div>`;
68623-
tooltip += `<div style=\"${headerBottomMargin}\"><span>[Description of operation here]</span></div>`;
68624+
if(cell.value.description){
68625+
tooltip += `<div style=\"${headerBottomMargin} ${headerTopMargin}\"><span>${cell.value.description}</span></div>`;
68626+
}
6862468627
}
6862568628

6862668629
// tooltip body

dist/js/azdata/view/azDataGraph.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ azdataGraph.prototype.getStyledTooltipForCell = function (cell) {
109109
const tooltipLineHeight = 'padding-top: .13em; line-height: .5em;';
110110
const centerText = 'text-align: center;';
111111
const headerBottomMargin = 'margin-bottom: 1.5em;';
112+
const headerTopMargin = 'margin-top: 1.5em;';
112113
const footerTopMargin = 'margin-top: 1.5em;';
113114
const metricLabelMargin = 'margin-right: 4em;';
114115

@@ -118,7 +119,9 @@ azdataGraph.prototype.getStyledTooltipForCell = function (cell) {
118119
// tooltip heading for vertices only
119120
if (!cell.edge) {
120121
tooltip += `<div style=\"${centerText}\"><span style=\"${boldText}\">${cell.value.label}</span></div>`;
121-
tooltip += `<div style=\"${headerBottomMargin}\"><span>[Description of operation here]</span></div>`;
122+
if(cell.value.description){
123+
tooltip += `<div style=\"${headerBottomMargin} ${headerTopMargin}\"><span>${cell.value.description}</span></div>`;
124+
}
122125
}
123126

124127
// tooltip body

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azdataGraph",
33
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
4-
"version": "0.0.12",
4+
"version": "0.0.13",
55
"homepage": "https://github.com/microsoft/azdataGraph",
66
"author": "Microsoft",
77
"license": "Apache-2.0",

src/js/azdata/view/azDataGraph.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ azdataGraph.prototype.getStyledTooltipForCell = function (cell) {
109109
const tooltipLineHeight = 'padding-top: .13em; line-height: .5em;';
110110
const centerText = 'text-align: center;';
111111
const headerBottomMargin = 'margin-bottom: 1.5em;';
112+
const headerTopMargin = 'margin-top: 1.5em;';
112113
const footerTopMargin = 'margin-top: 1.5em;';
113114
const metricLabelMargin = 'margin-right: 4em;';
114115

@@ -118,7 +119,9 @@ azdataGraph.prototype.getStyledTooltipForCell = function (cell) {
118119
// tooltip heading for vertices only
119120
if (!cell.edge) {
120121
tooltip += `<div style=\"${centerText}\"><span style=\"${boldText}\">${cell.value.label}</span></div>`;
121-
tooltip += `<div style=\"${headerBottomMargin}\"><span>[Description of operation here]</span></div>`;
122+
if(cell.value.description){
123+
tooltip += `<div style=\"${headerBottomMargin} ${headerTopMargin}\"><span>${cell.value.description}</span></div>`;
124+
}
122125
}
123126

124127
// tooltip body

test/queryplan/src/js/graph.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)