in src/vis/SentenTreeVis.js [38:56]
constructor(element, options) {
super(element, options);
this.layers.create(['link', 'node']);
this.fontSizeScale = d3.scaleSqrt().clamp(true);
this.strokeSizeScale = d3.scaleSqrt()
.domain([1, 100])
.range([1, 6])
.clamp(true);
this.layouts = [];
this.updatePosition = this.updatePosition.bind(this);
this.visualize = this.visualize.bind(this);
this.on('data', this.visualize);
this.on('options', this.visualize);
// this.on('resize', this.visualize);
}