Skip to content

Commit

Permalink
fix mousehovers
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Jan 19, 2018
1 parent 1eb7214 commit 1fc584e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/core_plugins/tagcloud/public/tag_cloud_visualization.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import TagCloud from 'plugins/tagcloud/tag_cloud';
import AggConfigResult from 'ui/vis/agg_config_result';
import {Observable} from 'rxjs';
import { Observable } from 'rxjs';

const MAX_TAG_COUNT = 200;

Expand All @@ -9,8 +8,8 @@ export class TagCloudVisualization {
constructor(node, vis) {
this._containerNode = node;

const nodeContens = document.createElement('div');
nodeContens.innerHTML = `
const nodeContents = document.createElement('div');
nodeContents.innerHTML = `
<div class="tagcloud-vis">
<div class="tagcloud-custom-label"></div>
<div class="tagcloud-notifications">
Expand All @@ -23,18 +22,18 @@ export class TagCloudVisualization {
</div>
</div>
`;

this._containerNode.appendChild(nodeContens);
this._containerNode.appendChild(nodeContents);

this._vis = vis;
this._bucketAgg = null;
this._truncated = false;
this._tagCloud = new TagCloud(node);
const cloudContainer = this._containerNode.querySelector('.tagcloud-vis');
this._tagCloud = new TagCloud(cloudContainer);
this._tagCloud.on('select', (event) => {
if (!this._bucketAgg) {
return;
}
const filter = bucketAgg.createFilter(event);
const filter = this._bucketAgg.createFilter(event);
this._vis.API.queryFilter.addFilters(filter);
});
this._renderComplete$ = Observable.fromEvent(this._tagCloud, 'renderComplete');
Expand Down

0 comments on commit 1fc584e

Please sign in to comment.