UNPKG

ideogram

Version:

Chromosome visualization for the web

50 lines (49 loc) 1.38 kB
// import {Chromosome} from './chromosome'; // // export class TelocentricChromosome extends Chromosome { // // constructor(model, config, ideo) { // super(model, config, ideo); // this._class = 'TelocentricChromosome'; // this._pArmOffset = 3; // } // // _addPArmShape(clipPath) { // return clipPath.concat(this._getPArmShape()); // }; // // _getPArmShape() { // var d = this._getShapeData(); // d.o = this._pArmOffset; // // return [{ // class: 'acen', // path: 'M' + (d.x2 + 2) + ',1' + // 'L' + (d.x2 + d.o + 3.25) + ',1 ' + // 'L' + (d.x2 + d.o + 3.25) + ',' + (d.w - 1) + ' ' + // 'L' + (d.x2 + 2) + ',' + (d.w - 1) // }, { // class: 'gpos66', // path: 'M' + (d.x2 - d.o + 5) + ',0' + // 'L' + (d.x2 - d.o + 3) + ',0 ' + // 'L' + (d.x2 - d.o + 3) + ',' + d.w + ' ' + // 'L' + (d.x2 - d.o + 5) + ',' + d.w, // strokeWidth: 0.5 // }]; // }; // // _getQArmShape() { // var d = this._getShapeData(), // x = d.x3 - d.b, // o = this._pArmOffset + 3; // // return { // class: '', // path: // 'M' + (d.x2 + o) + ',0 ' + // 'L' + x + ',0 ' + // 'Q' + (d.x3 + d.b) + ',' + (d.w / 2) + ',' + x + ',' + d.w + ' ' + // 'L' + (d.x2 + o) + ',' + d.w // }; // }; // }