ideogram
Version:
Chromosome visualization for the web
33 lines (28 loc) • 511 B
JavaScript
import {d3} from '../lib';
/**
* Chromosome's view utility class
*/
export class ChromosomeUtil {
constructor(node) {
this._node = node;
}
getLabel() {
var label =
d3
.select(this._node.parentNode)
.select('text.chrLabel')
.text();
return label;
}
/**
* Get chromosome set label
*/
getSetLabel() {
var setLabel =
d3
.select(this._node.parentNode)
.select('text.chrSetLabel')
.text();
return setLabel;
}
}