Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search enhancements: recursive search; search on event attributes #1208

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
6 changes: 3 additions & 3 deletions client/src/visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2778,7 +2778,7 @@ Util.profileStart('rows');
var text;
if (rtlmode) {
text = svg.text(sentNumGroup, canvasWidth - sentNumMargin + Configuration.visual.margin.x, y - rowPadding,
'' + row.sentence, { 'data-sent': row.sentence });
'' + row.sentence, { 'data-sent': row.sentence });
} else {
text = svg.text(sentNumGroup, sentNumMargin - Configuration.visual.margin.x, y - rowPadding,
'' + row.sentence, { 'data-sent': row.sentence });
Expand Down Expand Up @@ -2835,8 +2835,8 @@ Util.profileStart('chunkFinish');
var nextChunk = data.chunks[chunkNo + 1];
var nextSpace = nextChunk ? nextChunk.space : '';
if (rtlmode) {
// Render every text chunk as a SVG text so we maintain control over the layout. When
// rendering as a SVG span (as brat does), then the browser changes the layout on the
// Render every text chunk as a SVG text so we maintain control over the layout. When
// rendering as a SVG span (as brat does), then the browser changes the layout on the
// X-axis as it likes in RTL mode.
svg.text(textGroup, chunk.textX, chunk.row.textY, chunk.text + nextSpace, {
'data-chunk-id': chunk.index
Expand Down
Loading