Skip to content

Commit

Permalink
Release v0.0.63
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 11, 2024
1 parent 03b2b6c commit ab4c7e1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -93458,15 +93458,15 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
expandCollapse.setAttribute('role', 'button');
expandCollapse.ariaLabel = (cell.collapsed? 'Expand node' : 'Collapse node ') + cell.value.label;
const icon = cell.collapsed ? expandCollapsePaths.expand : expandCollapsePaths.collapse;
expandCollapse.style.backgroundImage = 'url(' + icon + ')';
expandCollapse.setAttribute ('class', cell.collapsed? 'graph-icon-badge-expand expanded' : 'graph-icon-badge-expand collapsed');
cellContainer.appendChild(expandCollapse);
mxEvent.addListener(expandCollapse, 'click', (evt) => {

const currentCell = cell;
const collapse = !currentCell.collapsed;
const icon = collapse ? expandCollapsePaths.expand : expandCollapsePaths.collapse;
expandCollapse.setAttribute ('class', cell.collapsed? 'graph-icon-badge-expand expanded' : 'graph-icon-badge-expand collapsed');
expandCollapse.ariaLabel = (cell.collapsed? 'Expand node' : 'Collapse node ') + cell.value.label;
expandCollapse.style.backgroundImage = 'url(' + icon + ')';

// undefined is for the middle parameter since the overwritten definition of foldCells doesn't reference it.
this.foldCells(collapse, undefined, [currentCell]);
Expand Down
4 changes: 2 additions & 2 deletions dist/js/azdata/azdataQueryPlan.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,15 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
expandCollapse.setAttribute('role', 'button');
expandCollapse.ariaLabel = (cell.collapsed? 'Expand node' : 'Collapse node ') + cell.value.label;
const icon = cell.collapsed ? expandCollapsePaths.expand : expandCollapsePaths.collapse;
expandCollapse.style.backgroundImage = 'url(' + icon + ')';
expandCollapse.setAttribute ('class', cell.collapsed? 'graph-icon-badge-expand expanded' : 'graph-icon-badge-expand collapsed');
cellContainer.appendChild(expandCollapse);
mxEvent.addListener(expandCollapse, 'click', (evt) => {

const currentCell = cell;
const collapse = !currentCell.collapsed;
const icon = collapse ? expandCollapsePaths.expand : expandCollapsePaths.collapse;
expandCollapse.setAttribute ('class', cell.collapsed? 'graph-icon-badge-expand expanded' : 'graph-icon-badge-expand collapsed');
expandCollapse.ariaLabel = (cell.collapsed? 'Expand node' : 'Collapse node ') + cell.value.label;
expandCollapse.style.backgroundImage = 'url(' + icon + ')';

// undefined is for the middle parameter since the overwritten definition of foldCells doesn't reference it.
this.foldCells(collapse, undefined, [currentCell]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azdataGraph",
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
"version": "0.0.62",
"version": "0.0.63",
"homepage": "https://github.com/microsoft/azdataGraph",
"author": "Microsoft",
"license": "Apache-2.0",
Expand Down
8 changes: 8 additions & 0 deletions src/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ td.mxPopupMenuIcon {
background-color: #FFFFFF;
}

.graph-cell .graph-icon-badge-expand.expanded {
background-image: url('../images/expanded.gif');
}

.graph-cell .graph-icon-badge-expand.collapsed {
background-image: url('../images/collapsed.gif');
}

.graph-cell-cost{
border-radius: 15px;
width: fit-content;
Expand Down
4 changes: 2 additions & 2 deletions src/js/azdata/azdataQueryPlan.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,15 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
expandCollapse.setAttribute('role', 'button');
expandCollapse.ariaLabel = (cell.collapsed? 'Expand node' : 'Collapse node ') + cell.value.label;
const icon = cell.collapsed ? expandCollapsePaths.expand : expandCollapsePaths.collapse;
expandCollapse.style.backgroundImage = 'url(' + icon + ')';
expandCollapse.setAttribute ('class', cell.collapsed? 'graph-icon-badge-expand expanded' : 'graph-icon-badge-expand collapsed');
cellContainer.appendChild(expandCollapse);
mxEvent.addListener(expandCollapse, 'click', (evt) => {

const currentCell = cell;
const collapse = !currentCell.collapsed;
const icon = collapse ? expandCollapsePaths.expand : expandCollapsePaths.collapse;
expandCollapse.setAttribute ('class', cell.collapsed? 'graph-icon-badge-expand expanded' : 'graph-icon-badge-expand collapsed');
expandCollapse.ariaLabel = (cell.collapsed? 'Expand node' : 'Collapse node ') + cell.value.label;
expandCollapse.style.backgroundImage = 'url(' + icon + ')';

// undefined is for the middle parameter since the overwritten definition of foldCells doesn't reference it.
this.foldCells(collapse, undefined, [currentCell]);
Expand Down

0 comments on commit ab4c7e1

Please sign in to comment.