Skip to content

Commit dca2c86

Browse files
authored
releasing 0.0.12 (#36)
1 parent efeb59a commit dca2c86

4 files changed

Lines changed: 19 additions & 31 deletions

File tree

dist/build.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93170,22 +93170,18 @@ azdataQueryPlan.prototype.enablePanning = function(panning) {
9317093170
};
9317193171

9317293172
azdataQueryPlan.prototype.setIconBackgroundColor = function(color) {
93173-
let cells = this.graph.selectCells(true, false);
93174-
this.graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, color, cells);
93175-
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, cells);
93176-
this.graph.getSelectionModel().clear();
93173+
const allVertices = this.graph.model.getChildCells(this.graph.getDefaultParent());
93174+
this.graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, color, allVertices);
93175+
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, allVertices);
93176+
9317793177
};
9317893178

9317993179
azdataQueryPlan.prototype.setTextFontColor = function(color) {
93180-
let cells = this.graph.selectCells(true, false);
93181-
this.graph.setCellStyles(mxConstants.STYLE_FONTCOLOR, color, cells);
93182-
this.graph.getSelectionModel().clear();
93180+
this.graph.setCellStyles(mxConstants.STYLE_FONTCOLOR, color, this.graph.model.getChildCells(this.graph.getDefaultParent()));
9318393181
};
9318493182

9318593183
azdataQueryPlan.prototype.setEdgeColor = function(color) {
93186-
let cells = this.graph.selectCells(false, true);
93187-
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, cells);
93188-
this.graph.getSelectionModel().clear();
93184+
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, this.graph.model.getChildEdges(this.graph.getDefaultParent()));
9318993185
};
9319093186

9319193187
azdataQueryPlan.prototype.destroy = function () {

dist/js/azdata/azdataQueryPlan.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -416,22 +416,18 @@ azdataQueryPlan.prototype.enablePanning = function(panning) {
416416
};
417417

418418
azdataQueryPlan.prototype.setIconBackgroundColor = function(color) {
419-
let cells = this.graph.selectCells(true, false);
420-
this.graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, color, cells);
421-
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, cells);
422-
this.graph.getSelectionModel().clear();
419+
const allVertices = this.graph.model.getChildCells(this.graph.getDefaultParent());
420+
this.graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, color, allVertices);
421+
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, allVertices);
422+
423423
};
424424

425425
azdataQueryPlan.prototype.setTextFontColor = function(color) {
426-
let cells = this.graph.selectCells(true, false);
427-
this.graph.setCellStyles(mxConstants.STYLE_FONTCOLOR, color, cells);
428-
this.graph.getSelectionModel().clear();
426+
this.graph.setCellStyles(mxConstants.STYLE_FONTCOLOR, color, this.graph.model.getChildCells(this.graph.getDefaultParent()));
429427
};
430428

431429
azdataQueryPlan.prototype.setEdgeColor = function(color) {
432-
let cells = this.graph.selectCells(false, true);
433-
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, cells);
434-
this.graph.getSelectionModel().clear();
430+
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, this.graph.model.getChildEdges(this.graph.getDefaultParent()));
435431
};
436432

437433
azdataQueryPlan.prototype.destroy = function () {

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.11",
4+
"version": "0.0.12",
55
"homepage": "https://github.com/microsoft/azdataGraph",
66
"author": "Microsoft",
77
"license": "Apache-2.0",

src/js/azdata/azdataQueryPlan.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -416,22 +416,18 @@ azdataQueryPlan.prototype.enablePanning = function(panning) {
416416
};
417417

418418
azdataQueryPlan.prototype.setIconBackgroundColor = function(color) {
419-
let cells = this.graph.selectCells(true, false);
420-
this.graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, color, cells);
421-
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, cells);
422-
this.graph.getSelectionModel().clear();
419+
const allVertices = this.graph.model.getChildCells(this.graph.getDefaultParent());
420+
this.graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, color, allVertices);
421+
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, allVertices);
422+
423423
};
424424

425425
azdataQueryPlan.prototype.setTextFontColor = function(color) {
426-
let cells = this.graph.selectCells(true, false);
427-
this.graph.setCellStyles(mxConstants.STYLE_FONTCOLOR, color, cells);
428-
this.graph.getSelectionModel().clear();
426+
this.graph.setCellStyles(mxConstants.STYLE_FONTCOLOR, color, this.graph.model.getChildCells(this.graph.getDefaultParent()));
429427
};
430428

431429
azdataQueryPlan.prototype.setEdgeColor = function(color) {
432-
let cells = this.graph.selectCells(false, true);
433-
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, cells);
434-
this.graph.getSelectionModel().clear();
430+
this.graph.setCellStyles(mxConstants.STYLE_STROKECOLOR, color, this.graph.model.getChildEdges(this.graph.getDefaultParent()));
435431
};
436432

437433
azdataQueryPlan.prototype.destroy = function () {

0 commit comments

Comments
 (0)