angular/devtools/projects/ng-devtools/src/lib/shared/tree-visualizer-host/BUILD.bazel
hawkgs 3eec4badab refactor(devtools): abstract and reuse the tree visualizer (#62264)
Abstract the injector tree visualizer so it can be used for both the Injector Tree and Router Tree tabs without having to rely on separate identical implementations.

PR Close #62264
2025-06-30 07:39:16 +00:00

29 lines
716 B
Text

load("//devtools/tools:ng_project.bzl", "ng_project")
load("//tools:defaults2.bzl", "sass_binary")
package(default_visibility = ["//:__subpackages__"])
sass_binary(
name = "tree_visualizer_host_styles",
src = "tree-visualizer-host.component.scss",
deps = ["//devtools/projects/ng-devtools/src/styles:typography"],
)
ng_project(
name = "tree-visualizer-host",
srcs = [
"graph-renderer.ts",
"tree-visualizer.ts",
"tree-visualizer-host.component.ts",
],
angular_assets = [
":tree_visualizer_host_styles",
],
interop_deps = [
"//packages/core",
],
deps = [
"//:node_modules/@types/d3",
"//:node_modules/d3",
],
)