mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
29 lines
716 B
Text
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",
|
|
],
|
|
)
|