fix nearest mode for hover on multi-lines
@@ -230,12 +230,12 @@ export class HoverToolView extends InspectToolView
jj = j+1
when "nearest"
- d1x = renderer.glyph.sx[i][j]
- d1y = renderer.glyph.sy[i][j]
+ d1x = renderer.glyph.sxs[i][j]
+ d1y = renderer.glyph.sys[i][j]
dist1 = hittest.dist_2_pts(d1x, d1y, sx, sy)
- d2x = renderer.glyph.sx[i][j+1]
- d2y = renderer.glyph.sy[i][j+1]
+ d2x = renderer.glyph.sxs[i][j+1]
+ d2y = renderer.glyph.sys[i][j+1]
dist2 = hittest.dist_2_pts(d2x, d2y, sx, sy)
if dist1 < dist2
@@ -244,8 +244,8 @@ export class HoverToolView extends InspectToolView
[sdatax, sdatay] = [d2x, d2y]
jj = j+1
- data_x = renderer.glyph._x[i][j]
- data_y = renderer.glyph._y[i][j]
+ data_x = renderer.glyph._xs[i][j]
+ data_y = renderer.glyph._ys[i][j]
rx = canvas.sx_to_vx(sdatax)
ry = canvas.sy_to_vy(sdatay)
