forked from tensorflow/tensorboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
156 lines (142 loc) · 3.87 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
load("//tensorboard/defs:defs.bzl", "tf_js_binary", "tf_ng_web_test_suite", "tf_ts_library")
load("//tensorboard/defs:web.bzl", "tb_combine_html", "tf_web_library")
package(default_visibility = ["//tensorboard/plugins/projector:__subpackages__"])
licenses(["notice"])
tf_ts_library(
name = "vz_projector",
srcs = [
"analyticsLogger.ts",
"bundle.ts",
"data.ts",
"data-provider.ts",
"data-provider-demo.ts",
"data-provider-proto.ts",
"data-provider-server.ts",
"external.d.ts",
"knn.ts",
"label.ts",
"logging.ts",
"projectorEventContext.ts",
"projectorScatterPlotAdapter.ts",
"renderContext.ts",
"scatterPlot.ts",
"scatterPlotRectangleSelector.ts",
"scatterPlotVisualizer.ts",
"scatterPlotVisualizer3DLabels.ts",
"scatterPlotVisualizerCanvasLabels.ts",
"scatterPlotVisualizerPolylines.ts",
"scatterPlotVisualizerSprites.ts",
"styles.ts",
"util.ts",
"vector.ts",
"vz-projector.html.ts",
"vz-projector.ts",
"vz-projector-app.ts",
"vz-projector-bookmark-panel.html.ts",
"vz-projector-bookmark-panel.ts",
"vz-projector-dashboard.ts",
"vz-projector-data-panel.html.ts",
"vz-projector-data-panel.ts",
"vz-projector-input.ts",
"vz-projector-inspector-panel.html.ts",
"vz-projector-inspector-panel.ts",
"vz-projector-legend.ts",
"vz-projector-metadata-card.ts",
"vz-projector-projections-panel.html.ts",
"vz-projector-projections-panel.ts",
],
strict_checks = False,
deps = [
":bh_tsne",
":heap",
":sptree",
"//tensorboard/components:analytics",
"//tensorboard/components:security",
"//tensorboard/components/polymer:irons_and_papers",
"//tensorboard/components/polymer:legacy_element_mixin",
"//tensorboard/components/polymer:register_style_dom_module",
"//tensorboard/components/tf_wbr_string",
"//tensorboard/webapp/third_party:d3",
"//tensorboard/webapp/third_party:numeric",
"//tensorboard/webapp/third_party:tfjs",
"@npm//@polymer/decorators",
"@npm//@polymer/polymer",
"@npm//three",
"@npm//umap-js",
],
)
tf_ts_library(
name = "heap",
srcs = ["heap.ts"],
strict_checks = False,
)
tf_ts_library(
name = "sptree",
srcs = ["sptree.ts"],
strict_checks = False,
)
tf_ts_library(
name = "bh_tsne",
srcs = ["bh_tsne.ts"],
strict_checks = False,
deps = [":sptree"],
)
################# Standalone development #################
tf_js_binary(
name = "standalone_bundle_no_vendor",
compile = 1,
entry_point = "bundle.ts",
includes_polymer = True,
deps = [
":vz_projector",
],
)
genrule(
name = "standalone_bundle_js",
srcs = [
# DO NOT SORT.
# internal: umap_runtime_dep
":standalone_bundle_no_vendor.js",
],
outs = ["standalone_bundle.js"],
cmd = "cat $(SRCS) > $@",
)
tf_web_library(
name = "standalone_lib",
srcs = [
"standalone_lib.html",
"standalone_projector_config.json",
":standalone_bundle.js",
],
path = "/",
deps = [
"//tensorboard/components/tf_imports:roboto",
],
)
tb_combine_html(
name = "standalone",
input_path = "/standalone_lib.html",
js_path = "/standalone.js",
output_path = "/standalone.html",
deps = [
":standalone_lib",
],
)
################# Test ##################
tf_ts_library(
name = "vz_projector_test_lib",
testonly = True,
srcs = [
"knn_test.ts",
],
deps = [
":vz_projector",
"@npm//@types/jasmine",
],
)
tf_ng_web_test_suite(
name = "vz_projector_test",
deps = [
":vz_projector_test_lib",
],
)