8000 refactor(devtools): add dagre-d3-es · angular/angular@07ef112 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07ef112

Browse files
committed
refactor(devtools): add dagre-d3-es
add dagre-d3-es for use by the signals graph pane. Additionally, add a patch so that html labels display correctly within d3-zoom
1 parent b0ee7ff commit 07ef112

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm2", pnpm_lock = "@//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=-1406867100
5-
package.json=-454885126
5+
package.json=-987988389
66
packages/compiler-cli/package.json=1094415146
77
packages/compiler/package.json=1190056499
8-
pnpm-lock.yaml=1545759099
8+
pnpm-lock.yaml=604739839
99
pnpm-workspace.yaml=353334404
1010
tools/bazel/rules_angular_store/package.json=-239561259
11-
yarn.lock=-647880827
11+
yarn.lock=-1336798803

WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ yarn_install(
8484
"//:.yarnrc",
8585
"//:tools/npm-patches/@angular+ng-dev+0.0.0-a6dcd24107d12114198251ee5d20cda814a1986a.patch",
8686
"//:tools/npm-patches/@bazel+jasmine+5.8.1.patch",
87+
"//:tools/npm-patches/dagre-d3-es+7.0.11.patch",
8788
"//tools:postinstall-patches.js",
8889
"//tools/esm-interop:patches/npm/@angular+build-tooling+0.0.0-2670abf637fa155971cdd1f7e570a7f234922a65.patch",
8990
"//tools/esm-interop:patches/npm/@bazel+concatjs+5.8.1.patch",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"chokidar": "^4.0.0",
111111
"convert-source-map": "^1.5.1",
112112
"d3": "^7.0.0",
113+
"dagre-d3-es": "^7.0.11",
113114
"diff": "^8.0.0",
114115
"domino": "https://github.com/angular/domino.git#93e720f143d0296dd2726ffbcf4fc12283363a7b",
115116
"hammerjs": "~2.0.8",

pnpm-lock.yaml

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js b/node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js
2+
index 94ee8a3..1983f45 100644
3+
--- a/node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js
4+
+++ b/node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js
5+
@@ -28,8 +28,8 @@ function addHtmlLabel(root, node) {
6+
// Fix for firefox
7+
div.style('white-space', 'nowrap');
8+
9+
- var client = div.node().getBoundingClientRect();
10+
- fo.attr('width', client.width).attr('height', client.height);
11+
+ var client = div.node();
12+
+ fo.attr('width', client.offsetWidth).attr('height', client.offsetHeight);
13+
14+
return fo;
15+
}

yarn.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7556,7 +7556,7 @@ d3@^7.0.0, d3@^7.9.0:
75567556
d3-transition "3"
75577557
d3-zoom "3"
75587558

7559-
dagre-d3-es@7.0.11:
7559+
dagre-d3-es@7.0.11, dagre-d3-es@^7.0.11:
75607560
version "7.0.11"
75617561
resolved "https://registry.yarnpkg.com/dagre-d3-es/-/dagre-d3-es-7.0.11.tgz#2237e726c0577bfe67d1a7cfd2265b9ab2c15c40"
75627562
integrity sha512-tvlJLyQf834SylNKax8Wkzco/1ias1OPw8DcUMDE7oUIoSEW25riQVuiu/0OWEFqT0cxHT3Pa9/D82Jr47IONw==
70F9
@@ -7952,8 +7952,7 @@ domhandler@^5.0.2, domhandler@^5.0.3:
79527952
domelementtype "^2.3.0"
79537953

79547954
"domino@https://github.com/angular/domino.git#93e720f143d0296dd2726ffbcf4fc12283363a7b":
7955-
version "2.1.6+git"
7956-
uid "93e720f143d0296dd2726ffbcf4fc12283363a7b"
7955+
version "2.1.6"
79577956
resolved "https://github.com/angular/domino.git#93e720f143d0296dd2726ffbcf4fc12283363a7b"
79587957

79597958
dompurify@^3.2.4:

0 commit comments

Comments
 (0)
0