aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorboard/components/vz_projector/BUILD
blob: c1adeabbf5314c47266f3fb1f37bac5e409382fa (plain)
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
package(default_visibility = ["//tensorflow:internal"])

load("@io_bazel_rules_closure//closure:defs.bzl", "web_library")
load("//tensorflow/tensorboard:hacks.bzl", "tensorboard_typescript_bundle")
load("//tensorflow/tensorboard:defs.bzl", "tensorboard_typescript_genrule")

licenses(["notice"])  # Apache 2.0

web_library(
    name = "vz_projector",
    srcs = [
        "bundle.html",
        "bundle.js",
        "styles.html",
        "vz-projector.html",
        "vz-projector-app.html",
        "vz-projector-bookmark-panel.html",
        "vz-projector-colab.html",
        "vz-projector-dashboard.html",
        "vz-projector-data-panel.html",
        "vz-projector-input.html",
        "vz-projector-inspector-panel.html",
        "vz-projector-legend.html",
        "vz-projector-metadata-card.html",
        "vz-projector-projections-panel.html",
    ],
    path = "/vz-projector",
    visibility = ["//visibility:public"],
    deps = [
        "//tensorflow/tensorboard/components/tf_dashboard_common",
        "//tensorflow/tensorboard/components/tf_imports:d3",
        "//tensorflow/tensorboard/components/tf_imports:numericjs",
        "//tensorflow/tensorboard/components/tf_imports:threejs",
        "//tensorflow/tensorboard/components/tf_imports:weblas",
        "@org_polymer",
        "@org_polymer_iron_collapse",
        "@org_polymer_iron_icons",
        "@org_polymer_paper_button",
        "@org_polymer_paper_checkbox",
        "@org_polymer_paper_dialog",
        "@org_polymer_paper_dialog_scrollable",
        "@org_polymer_paper_dropdown_menu",
        "@org_polymer_paper_icon_button",
        "@org_polymer_paper_input",
        "@org_polymer_paper_item",
        "@org_polymer_paper_listbox",
        "@org_polymer_paper_slider",
        "@org_polymer_paper_spinner",
        "@org_polymer_paper_styles",
        "@org_polymer_paper_toast",
        "@org_polymer_paper_toggle_button",
        "@org_polymer_paper_tooltip",
    ],
)

tensorboard_typescript_genrule(
    name = "ts",
    srcs = ["bundle.ts"],
    typings = [
        "external.d.ts",
        "@org_definitelytyped//:polymer.d.ts",
        "@org_definitelytyped//:three.d.ts",
        "@org_definitelytyped//:webcomponents.js.d.ts",
        "//tensorflow/tensorboard/components/tf_imports:d3.d.ts",
    ],
)

tensorboard_typescript_bundle(
    name = "bundle",
    out = "bundle.ts",
    namespace_srcs = {
        "VZ.Projector.Heap": ["heap.ts"],
        "VZ.Projector.Label": ["label.ts"],
        "VZ.Projector.SPTree": ["sptree.ts"],
        "VZ.Projector.BhTsne": ["bh_tsne.ts"],
        "VZ.Projector.Logging": ["logging.ts"],
        "VZ.Projector.RenderContext": ["renderContext.ts"],
        "VZ.Projector.ScatterPlotRectangleSelector": ["scatterPlotRectangleSelector.ts"],
        "VZ.Projector.AnalyticsLogger": ["analyticsLogger.ts"],
        "VZ.Projector.Util": ["util.ts"],
        "VZ.Projector.Vector": ["vector.ts"],
        "VZ.Projector.Knn": ["knn.ts"],
        "VZ.Projector.Data": ["data.ts"],
        "VZ.Projector.DataProvider": ["data-provider.ts"],
        "VZ.Projector.DataProviderDemo": ["data-provider-demo.ts"],
        "VZ.Projector.DataProviderProto": ["data-provider-proto.ts"],
        "VZ.Projector.DataProviderServer": ["data-provider-server.ts"],
        "VZ.Projector.ProjectorEventContext": ["projectorEventContext.ts"],
        "VZ.Projector.ScatterPlot": ["scatterPlot.ts"],
        "VZ.Projector.ScatterPlotVisualizer3DLabels": ["scatterPlotVisualizer3DLabels.ts"],
        "VZ.Projector.ScatterPlotVisualizerCanvasLabels": ["scatterPlotVisualizerCanvasLabels.ts"],
        "VZ.Projector.ScatterPlotVisualizerPolylines": ["scatterPlotVisualizerPolylines.ts"],
        "VZ.Projector.ScatterPlotVisualizerSprites": ["scatterPlotVisualizerSprites.ts"],
        "VZ.Projector.ScatterPlotVisualizer": ["scatterPlotVisualizer.ts"],
        "VZ.Projector.ProjectorScatterPlotAdapter": ["projectorScatterPlotAdapter.ts"],
        "VZ.Projector.ProjectorUtil": ["vz-projector-util.ts"],
        "VZ.Projector.ProjectorBookmarkPanel": ["vz-projector-bookmark-panel.ts"],
        "VZ.Projector.ProjectorDataPanel": ["vz-projector-data-panel.ts"],
        "VZ.Projector.ProjectorInput": ["vz-projector-input.ts"],
        "VZ.Projector.ProjectorInspectorPanel": ["vz-projector-inspector-panel.ts"],
        "VZ.Projector.ProjectorLegend": ["vz-projector-legend.ts"],
        "VZ.Projector.ProjectorMetadataCard": ["vz-projector-metadata-card.ts"],
        "VZ.Projector.ProjectorProjectionsPanel": ["vz-projector-projections-panel.ts"],
        "VZ.Projector": ["vz-projector.ts"],
    },
    namespace_symbol_aliases = {
        "VZ.Projector.AnalyticsLogger": {
            "ProjectionType": "VZ.Projector.Data.ProjectionType",
        },
        "VZ.Projector.BhTsne": {
            "SPNode": "VZ.Projector.SPTree.SPNode",
            "SPTree": "VZ.Projector.SPTree.SPTree",
        },
        "VZ.Projector.DataProviderDemo": {
            "DataProvider": "VZ.Projector.DataProvider.DataProvider",
            "DataSet": "VZ.Projector.Data.DataSet",
            "EmbeddingInfo": "VZ.Projector.DataProvider.EmbeddingInfo",
            "ProjectorConfig": "VZ.Projector.DataProvider.ProjectorConfig",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "State": "VZ.Projector.Data.State",
            "TENSORS_MSG_ID": "VZ.Projector.DataProvider.TENSORS_MSG_ID",
            "dataProvider": "VZ.Projector.DataProvider",
            "logging": "VZ.Projector.Logging",
        },
        "VZ.Projector.DataProviderProto": {
            "DataPoint": "VZ.Projector.Data.DataPoint",
            "DataProto": "VZ.Projector.Data.DataProto",
            "DataProvider": "VZ.Projector.DataProvider.DataProvider",
            "DataSet": "VZ.Projector.Data.DataSet",
            "PointMetadata": "VZ.Projector.Data.PointMetadata",
            "ProjectorConfig": "VZ.Projector.DataProvider.ProjectorConfig",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "State": "VZ.Projector.Data.State",
            "analyzeMetadata": "VZ.Projector.DataProvider.analyzeMetadata",
        },
        "VZ.Projector.DataProviderServer": {
            "DataProvider": "VZ.Projector.DataProvider.DataProvider",
            "DataSet": "VZ.Projector.Data.DataSet",
            "EmbeddingInfo": "VZ.Projector.DataProvider.EmbeddingInfo",
            "ProjectorConfig": "VZ.Projector.DataProvider.ProjectorConfig",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "State": "VZ.Projector.Data.State",
            "dataProvider": "VZ.Projector.DataProvider",
            "logging": "VZ.Projector.Logging",
        },
        "VZ.Projector.DataProvider": {
            "ColumnStats": "VZ.Projector.Data.ColumnStats",
            "DataPoint": "VZ.Projector.Data.DataPoint",
            "DataSet": "VZ.Projector.Data.DataSet",
            "PointMetadata": "VZ.Projector.Data.PointMetadata",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "State": "VZ.Projector.Data.State",
            "logging": "VZ.Projector.Logging",
            "runAsyncTask": "VZ.Projector.Util.runAsyncTask",
        },
        "VZ.Projector.Data": {
            "SpriteMetadata": "VZ.Projector.DataProvider.SpriteMetadata",
            "TSNE": "VZ.Projector.BhTsne.TSNE",
            "knn": "VZ.Projector.Knn",
            "logging": "VZ.Projector.Logging",
            "scatterPlot": "VZ.Projector.ScatterPlot",
            "util": "VZ.Projector.Util",
            "vector": "VZ.Projector.Vector",
        },
        "VZ.Projector.Knn": {
            "KMin": "VZ.Projector.Heap.KMin",
            "Vector": "VZ.Projector.Vector.Vector",
            "logging": "VZ.Projector.Logging",
            "runAsyncTask": "VZ.Projector.Util.runAsyncTask",
            "vector": "VZ.Projector.Vector",
        },
        "VZ.Projector.ProjectorEventContext": {
            "DistanceFunction": "VZ.Projector.Data.DistanceFunction",
            "NearestEntry": "VZ.Projector.Knn.NearestEntry",
            "Projection": "VZ.Projector.Data.Projection",
        },
        "VZ.Projector.ProjectorScatterPlotAdapter": {
            "DataSet": "VZ.Projector.Data.DataSet",
            "DistanceFunction": "VZ.Projector.Data.DistanceFunction",
            "LabelRenderParams": "VZ.Projector.RenderContext.LabelRenderParams",
            "NearestEntry": "VZ.Projector.Knn.NearestEntry",
            "Projection": "VZ.Projector.Data.Projection",
            "ProjectionComponents3D": "VZ.Projector.Data.ProjectionComponents3D",
            "ProjectorEventContext": "VZ.Projector.ProjectorEventContext.ProjectorEventContext",
            "ScatterPlot": "VZ.Projector.ScatterPlot.ScatterPlot",
            "ScatterPlotVisualizer3DLabels": "VZ.Projector.ScatterPlotVisualizer3DLabels.ScatterPlotVisualizer3DLabels",
            "ScatterPlotVisualizerCanvasLabels": "VZ.Projector.ScatterPlotVisualizerCanvasLabels.ScatterPlotVisualizerCanvasLabels",
            "ScatterPlotVisualizerPolylines": "VZ.Projector.ScatterPlotVisualizerPolylines.ScatterPlotVisualizerPolylines",
            "ScatterPlotVisualizerSprites": "VZ.Projector.ScatterPlotVisualizerSprites.ScatterPlotVisualizerSprites",
            "State": "VZ.Projector.Data.State",
            "vector": "VZ.Projector.Vector",
        },
        "VZ.Projector.ScatterPlot": {
            "BoundingBox": "VZ.Projector.ScatterPlotRectangleSelector.BoundingBox",
            "CameraType": "VZ.Projector.RenderContext.CameraType",
            "LabelRenderParams": "VZ.Projector.RenderContext.LabelRenderParams",
            "Point2D": "VZ.Projector.Vector.Point2D",
            "Point3D": "VZ.Projector.Vector.Point3D",
            "ProjectorEventContext": "VZ.Projector.ProjectorEventContext.ProjectorEventContext",
            "RenderContext": "VZ.Projector.RenderContext.RenderContext",
            "ScatterPlotRectangleSelector": "VZ.Projector.ScatterPlotRectangleSelector.ScatterPlotRectangleSelector",
            "ScatterPlotVisualizer": "VZ.Projector.ScatterPlotVisualizer.ScatterPlotVisualizer",
            "util": "VZ.Projector.Util",
        },
        "VZ.Projector.ScatterPlotVisualizer3DLabels": {
            "RenderContext": "VZ.Projector.RenderContext.RenderContext",
            "ScatterPlotVisualizer": "VZ.Projector.ScatterPlotVisualizer.ScatterPlotVisualizer",
            "util": "VZ.Projector.Util",
        },
        "VZ.Projector.ScatterPlotVisualizerCanvasLabels": {
            "BoundingBox": "VZ.Projector.Label.BoundingBox",
            "CameraType": "VZ.Projector.RenderContext.CameraType",
            "CollisionGrid": "VZ.Projector.Label.CollisionGrid",
            "RenderContext": "VZ.Projector.RenderContext.RenderContext",
            "ScatterPlotVisualizer": "VZ.Projector.ScatterPlotVisualizer.ScatterPlotVisualizer",
            "util": "VZ.Projector.Util",
        },
        "VZ.Projector.ScatterPlotVisualizerPolylines": {
            "DataSet": "VZ.Projector.Data.DataSet",
            "RenderContext": "VZ.Projector.RenderContext.RenderContext",
            "ScatterPlotVisualizer": "VZ.Projector.ScatterPlotVisualizer.ScatterPlotVisualizer",
            "util": "VZ.Projector.Util",
        },
        "VZ.Projector.ScatterPlotVisualizerSprites": {
            "CameraType": "VZ.Projector.RenderContext.CameraType",
            "RenderContext": "VZ.Projector.RenderContext.RenderContext",
            "ScatterPlotVisualizer": "VZ.Projector.ScatterPlotVisualizer.ScatterPlotVisualizer",
            "util": "VZ.Projector.Util",
        },
        "VZ.Projector.ScatterPlotVisualizer": {
            "RenderContext": "VZ.Projector.RenderContext.RenderContext",
        },
        "VZ.Projector.Util": {
            "DataPoint": "VZ.Projector.Data.DataPoint",
            "Point2D": "VZ.Projector.Vector.Point2D",
            "logging": "VZ.Projector.Logging",
        },
        "VZ.Projector.Vector": {
            "assert": "VZ.Projector.Util.assert",
        },
        "VZ.Projector.ProjectorBookmarkPanel": {
            "DataProvider": "VZ.Projector.DataProvider.DataProvider",
            "EmbeddingInfo": "VZ.Projector.DataProvider.EmbeddingInfo",
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
            "Projector": "VZ.Projector.Projector",
            "ProjectorEventContext": "VZ.Projector.ProjectorEventContext.ProjectorEventContext",
            "State": "VZ.Projector.Data.State",
            "logging": "VZ.Projector.Logging",
        },
        "VZ.Projector.ProjectorDataPanel": {
            "ColorLegendRenderInfo": "VZ.Projector.ProjectorLegend.ColorLegendRenderInfo",
            "ColorLegendThreshold": "VZ.Projector.ProjectorLegend.ColorLegendThreshold",
            "ColorOption": "VZ.Projector.Data.ColorOption",
            "ColumnStats": "VZ.Projector.Data.ColumnStats",
            "DataProvider": "VZ.Projector.DataProvider.DataProvider",
            "EmbeddingInfo": "VZ.Projector.DataProvider.EmbeddingInfo",
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
            "Projector": "VZ.Projector.Projector",
            "ProjectorConfig": "VZ.Projector.DataProvider.ProjectorConfig",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "parseRawMetadata": "VZ.Projector.DataProvider.parseRawMetadata",
            "parseRawTensors": "VZ.Projector.DataProvider.parseRawTensors",
            "util": "VZ.Projector.Util",
        },
        "VZ.Projector.ProjectorInput": {
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
        },
        "VZ.Projector.ProjectorInspectorPanel": {
            "DistanceFunction": "VZ.Projector.Data.DistanceFunction",
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
            "Projector": "VZ.Projector.Projector",
            "ProjectorEventContext": "VZ.Projector.ProjectorEventContext.ProjectorEventContext",
            "ProjectorInput": "VZ.Projector.ProjectorInput.ProjectorInput",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "State": "VZ.Projector.Data.State",
            "adapter": "VZ.Projector.ProjectorScatterPlotAdapter",
            "knn": "VZ.Projector.Knn",
            "util": "VZ.Projector.Util",
            "vector": "VZ.Projector.Vector",
        },
        "VZ.Projector.ProjectorLegend": {
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
        },
        "VZ.Projector.ProjectorMetadataCard": {
            "PointMetadata": "VZ.Projector.Data.PointMetadata",
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
        },
        "VZ.Projector.ProjectorProjectionsPanel": {
            "DataSet": "VZ.Projector.Data.DataSet",
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
            "Projection": "VZ.Projector.Data.Projection",
            "ProjectionType": "VZ.Projector.Data.ProjectionType",
            "Projector": "VZ.Projector.Projector",
            "ProjectorInput": "VZ.Projector.ProjectorInput.ProjectorInput",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "State": "VZ.Projector.Data.State",
            "Vector": "VZ.Projector.Vector.Vector",
            "data": "VZ.Projector.Data",
            "util": "VZ.Projector.Util",
            "vector": "VZ.Projector.Vector",
        },
        "VZ.Projector": {
            "AnalyticsLogger": "VZ.Projector.AnalyticsLogger.AnalyticsLogger",
            "BookmarkPanel": "VZ.Projector.ProjectorBookmarkPanel.BookmarkPanel",
            "ColorOption": "VZ.Projector.Data.ColorOption",
            "ColumnStats": "VZ.Projector.Data.ColumnStats",
            "DataPanel": "VZ.Projector.ProjectorDataPanel.DataPanel",
            "DataPoint": "VZ.Projector.Data.DataPoint",
            "DataProto": "VZ.Projector.Data.DataProto",
            "DataProvider": "VZ.Projector.DataProvider.DataProvider",
            "DataSet": "VZ.Projector.Data.DataSet",
            "DemoDataProvider": "VZ.Projector.DataProviderDemo.DemoDataProvider",
            "DistanceFunction": "VZ.Projector.Data.DistanceFunction",
            "DistanceMetricChangedListener": "VZ.Projector.ProjectorEventContext.DistanceMetricChangedListener",
            "EmbeddingInfo": "VZ.Projector.DataProvider.EmbeddingInfo",
            "HoverListener": "VZ.Projector.ProjectorEventContext.HoverListener",
            "InspectorPanel": "VZ.Projector.ProjectorInspectorPanel.InspectorPanel",
            "MetadataCard": "VZ.Projector.ProjectorMetadataCard.MetadataCard",
            "MouseMode": "VZ.Projector.ScatterPlot.MouseMode",
            "PointMetadata": "VZ.Projector.Data.PointMetadata",
            "PolymerElement": "VZ.Projector.ProjectorUtil.PolymerElement",
            "PolymerHTMLElement": "VZ.Projector.ProjectorUtil.PolymerHTMLElement",
            "Projection": "VZ.Projector.Data.Projection",
            "ProjectionChangedListener": "VZ.Projector.ProjectorEventContext.ProjectionChangedListener",
            "ProjectionsPanel": "VZ.Projector.ProjectorProjectionsPanel.ProjectionsPanel",
            "ProjectorEventContext": "VZ.Projector.ProjectorEventContext.ProjectorEventContext",
            "ProjectorScatterPlotAdapter": "VZ.Projector.ProjectorScatterPlotAdapter.ProjectorScatterPlotAdapter",
            "ProtoDataProvider": "VZ.Projector.DataProviderProto.ProtoDataProvider",
            "SelectionChangedListener": "VZ.Projector.ProjectorEventContext.SelectionChangedListener",
            "ServerDataProvider": "VZ.Projector.DataProviderServer.ServerDataProvider",
            "ServingMode": "VZ.Projector.DataProvider.ServingMode",
            "SpriteAndMetadataInfo": "VZ.Projector.Data.SpriteAndMetadataInfo",
            "State": "VZ.Projector.Data.State",
            "data": "VZ.Projector.Data",
            "knn": "VZ.Projector.Knn",
            "logging": "VZ.Projector.Logging",
            "stateGetAccessorDimensions": "VZ.Projector.Data.stateGetAccessorDimensions",
            "util": "VZ.Projector.Util",
        },
    },
)

filegroup(
    name = "all_files",
    srcs = glob(["**"]),
    tags = ["notsan"],
)

#### Legacy for other consumers
load(
    "//tensorflow/tensorboard:defs.bzl",
    "tensorboard_webcomponent_library",
    "tensorboard_ts_library",
    "tensorboard_ts_declaration",
)

# Standalone embedding projector demos should depend on this target. We
# exclude the HTML file for the dashboard itself. Demos do not need that
# HTML file. This was introduced because standalone demos as of today
# have an additional Closure pass that uses a compilation configuration
# stricter than that of TensorBoard.

_PROJECTOR_LIB_TS_LIB_DEPS = [
    ":ts_lib",
    ":tsne_ts_lib",
]

_PROJECTOR_DESTDIR = "vz-projector"

_PROJECTOR_LIB_DEPS = [
    "//third_party/javascript/polymer/v1/iron-collapse:lib",
    "//third_party/javascript/polymer/v1/iron-icons:lib",
    "//third_party/javascript/polymer/v1/paper-button:lib",
    "//third_party/javascript/polymer/v1/paper-checkbox:lib",
    "//third_party/javascript/polymer/v1/paper-dialog:lib",
    "//third_party/javascript/polymer/v1/paper-dialog-scrollable:lib",
    "//third_party/javascript/polymer/v1/paper-dropdown-menu:lib",
    "//third_party/javascript/polymer/v1/paper-icon-button:lib",
    "//third_party/javascript/polymer/v1/paper-input:lib",
    "//third_party/javascript/polymer/v1/paper-item:lib",
    "//third_party/javascript/polymer/v1/paper-listbox:lib",
    "//third_party/javascript/polymer/v1/paper-slider:lib",
    "//third_party/javascript/polymer/v1/paper-spinner:lib",
    "//third_party/javascript/polymer/v1/paper-toast:lib",
    "//third_party/javascript/polymer/v1/paper-toggle-button:lib",
    "//third_party/javascript/polymer/v1/paper-tooltip:lib",
    "//third_party/javascript/polymer/v1/polymer:lib",
]

tensorboard_ts_library(
    name = "tsne_ts_lib",
    srcs = [
        "bh_tsne.ts",
        "sptree.ts",
    ],
)

tensorboard_ts_declaration(
    name = "external",
    srcs = ["external.d.ts"],
)

tensorboard_ts_library(
    name = "ts_lib",
    srcs = glob(
        ["*.ts"],
        exclude = [
            "*.d.ts",
            "*_test.ts",
            "bh_tsne.ts",
            "sptree.ts",
        ],
    ),
    runtime_deps = [
        "//third_party/javascript/d3/v4:d3",
        "//third_party/javascript/numericjs",
        "//third_party/javascript/threejs/r77:threejs",
        "//third_party/javascript/threejs/r77/examples/js/controls:orbitcontrols",
        "//third_party/javascript/weblas",
    ],
    deps = [
        ":external",
        ":tsne_ts_lib",
        "//third_party/javascript/node_modules/typescript:es2015.promise",
        "//third_party/javascript/typings/d3_v4:bundle",
        "//third_party/javascript/typings/polymer:polymer_without_externs",
        "//third_party/javascript/typings/threejs:three",
        "//third_party/javascript/typings/webcomponents_js",
    ],
)

tensorboard_webcomponent_library(
    name = "lib",
    srcs = glob(
        ["*.html"],
        exclude = ["vz-projector-dashboard.html"],
    ),
    ts_lib_deps = _PROJECTOR_LIB_TS_LIB_DEPS,
    destdir = _PROJECTOR_DESTDIR,
    deps = _PROJECTOR_LIB_DEPS,
)