Skip to content

Commit

Permalink
Fixing zoomed badges (microsoft#19178)
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimkhan30 authored Apr 22, 2022
1 parent 5875828 commit 7554fbc
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"angular2-grid": "2.0.6",
"ansi_up": "^5.1.0",
"applicationinsights": "1.0.8",
"azdataGraph": "github:Microsoft/azdataGraph#0.0.20",
"azdataGraph": "github:Microsoft/azdataGraph#0.0.21",
"chart.js": "^2.9.4",
"chokidar": "3.5.2",
"graceful-fs": "4.2.6",
Expand Down
2 changes: 1 addition & 1 deletion remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"applicationinsights": "1.0.8",
"angular2-grid": "2.0.6",
"ansi_up": "^5.1.0",
"azdataGraph": "github:Microsoft/azdataGraph#0.0.20",
"azdataGraph": "github:Microsoft/azdataGraph#0.0.21",
"chart.js": "^2.9.4",
"chokidar": "3.5.2",
"cookie": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion remote/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@vscode/vscode-languagedetection": "1.0.18",
"angular2-grid": "2.0.6",
"ansi_up": "^5.1.0",
"azdataGraph": "github:Microsoft/azdataGraph#0.0.20",
"azdataGraph": "github:Microsoft/azdataGraph#0.0.21",
"chart.js": "^2.9.4",
"gridstack": "^3.1.3",
"kburtram-query-plan": "2.6.1",
Expand Down
6 changes: 3 additions & 3 deletions remote/web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ array-uniq@^1.0.2:
resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=

"azdataGraph@github:Microsoft/azdataGraph#0.0.20":
version "0.0.20"
resolved "https://codeload.github.com/Microsoft/azdataGraph/tar.gz/d685f37f72f0b22c42d15fbb725b3a5a5b3d71ae"
"azdataGraph@github:Microsoft/azdataGraph#0.0.21":
version "0.0.21"
resolved "https://codeload.github.com/Microsoft/azdataGraph/tar.gz/59f38fc96ab8beadb5ed2b6986ae3f39d662d040"

chalk@^2.3.0, chalk@^2.4.1:
version "2.4.2"
Expand Down
6 changes: 3 additions & 3 deletions remote/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ array-uniq@^1.0.2:
resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=

"azdataGraph@github:Microsoft/azdataGraph#0.0.20":
version "0.0.20"
resolved "https://codeload.github.com/Microsoft/azdataGraph/tar.gz/d685f37f72f0b22c42d15fbb725b3a5a5b3d71ae"
"azdataGraph@github:Microsoft/azdataGraph#0.0.21":
version "0.0.21"
resolved "https://codeload.github.com/Microsoft/azdataGraph/tar.gz/59f38fc96ab8beadb5ed2b6986ae3f39d662d040"

binary-extensions@^2.0.0:
version "2.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,22 @@ export class AzdataGraphView {
* Zooms in to the diagram.
*/
public zoomIn(): void {
this._diagram.graph.zoomIn();
this._diagram.zoomIn();
}


/**
* Zooms out of the diagram
*/
public zoomOut(): void {
this._diagram.graph.zoomOut();
this._diagram.zoomOut();
}

/**
* Fits the diagram into the parent container size.
*/
public zoomToFit(): void {
this._diagram.graph.fit();
this._diagram.graph.view.rendering = true;
this._diagram.graph.view.refresh();
this._diagram.zoomToFit();
}

/**
Expand All @@ -146,7 +144,7 @@ export class AzdataGraphView {
if (level < 1) {
throw new Error(localize('invalidExecutionPlanZoomError', "Zoom level cannot be 0 or negative"));
}
this._diagram.graph.view.setScale(level / 100);
this._diagram.zoomTo(level);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1831,9 +1831,9 @@ aws4@^1.8.0:
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f"
integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==

"azdataGraph@github:Microsoft/azdataGraph#0.0.20":
version "0.0.20"
resolved "https://codeload.github.com/Microsoft/azdataGraph/tar.gz/d685f37f72f0b22c42d15fbb725b3a5a5b3d71ae"
"azdataGraph@github:Microsoft/azdataGraph#0.0.21":
version "0.0.21"
resolved "https://codeload.github.com/Microsoft/azdataGraph/tar.gz/59f38fc96ab8beadb5ed2b6986ae3f39d662d040"

azure-storage@^2.10.2:
version "2.10.2"
Expand Down

0 comments on commit 7554fbc

Please sign in to comment.