File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
tensorboard/plugins/projector/vz_projector Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 290290 </ div >
291291 < div class ="neighbor-image-controls ">
292292 < template is ="dom-if " if ="[[spriteImagesAvailable]] ">
293- < paper-checkbox
294- id ="neighbor-images-checkbox "
295- checked ="{{showNeighborImages}} "
293+ < paper-checkbox
294+ id ="neighbor-images-checkbox "
295+ checked ="{{showNeighborImages}} "
296+ >
297+ show images
298+ < paper-icon-button
299+ icon ="help "
300+ class ="help-icon "
301+ > </ paper-icon-button >
302+ < paper-tooltip
303+ position ="bottom "
304+ animation-delay ="0 "
305+ fit-to-visible-bounds
296306 >
297- show images
298- < paper-icon-button
299- icon ="help "
300- class ="help-icon "
301- > </ paper-icon-button >
302- < paper-tooltip
303- position ="bottom "
304- animation-delay ="0 "
305- fit-to-visible-bounds
306- >
307- Show the images of the nearest neighbors.
308- </ paper-tooltip >
309- </ paper-checkbox >
307+ Show the images of the nearest neighbors.
308+ </ paper-tooltip >
309+ </ paper-checkbox >
310310 </ template >
311311 </ div >
312312 </ div >
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ namespace vz_projector {
132132 spriteAndMetadata . spriteMetadata &&
133133 spriteAndMetadata . spriteMetadata . imagePath
134134 ) {
135-
136135 const [
137136 spriteWidth ,
138137 spriteHeight ,
@@ -171,7 +170,7 @@ namespace vz_projector {
171170 }
172171
173172 _updateNeighborsList ( ) {
174- if ( this . projector ) {
173+ if ( this . projector ) {
175174 const neighbors = this . projector . dataSet . findNeighbors (
176175 this . selectedPointIndices [ 0 ] ,
177176 this . distFunc ,
@@ -364,9 +363,10 @@ namespace vz_projector {
364363 Math . floor ( neighbor . index / nCols ) ,
365364 neighbor . index % nCols ,
366365 ] ;
367- neighborElementImage . style . backgroundPosition = (
368- `${ ( col / ( nCols - 1 ) ) * 100 } %
369- ${ ( row / ( nCols - 1 ) ) * 100 } %` ) ;
366+ neighborElementImage . style . backgroundPosition = `${ ( col /
367+ ( nCols - 1 ) ) *
368+ 100 } %
369+ ${ ( row / ( nCols - 1 ) ) * 100 } %` ;
370370 }
371371
372372 const neighborElementLink = document . createElement ( 'a' ) ;
You can’t perform that action at this time.
0 commit comments