Lines Matching defs:y1

282   drawSmallMap(nodes, x1, x2, y1, y2) {
283 if (x1 === x2 || y2 === y1) {
290 let sh = h / (y2 - y1);
299 let dy = n.pos.y - y1;
332 X2DFast.gi().drawRect(tx - (this.offx_ + x1) * sw, ty - (this.offy_ + y1) * sh, Math.min(Scr.logicw * sw, w), Math.min(Scr.logich * sh, h), 0xff00ff00, 1);
450 let y1 = 9999;
465 if (n.pos.y < y1) {
466 y1 = n.pos.y;
474 y1 = y1 - Scr.logich / 3;
479 y1: y1,
483 let scrollH = y2 - y1;
493 this.scrollY_.setBarOff(-(this.offy_ + this.dragScoll.y1) / this.dragScoll.hh);
497 this.offy_ = (-this.scrollY_.getBarOff()) * this.dragScoll.hh - this.dragScoll.y1;
507 this.drawSmallMap(nodes, x1, x2, y1, y2);
574 let y1 = n1.pos.y + 10 + offy;
585 y1 += this.drapSelect_.dy;
611 ls.push([x1, y1, x1, y1 + n1.outh[l.outNum], c, lw]);
612 ls.push([x1, y1 + n1.outh[l.outNum], x2, y1 + n1.outh[l.outNum], c, lw]);
613 ls.push([x2, y1 + n1.outh[l.outNum], x2, y2, c, lw]);
619 ls.push([x1, y1, x1, y1 + n1.outh[l.outNum], c, lw]);
620 ls.push([x1, y1 + n1.outh[l.outNum], lx, y1 + n1.outh[l.outNum], c, lw]);
621 ls.push([lx, y1 + n1.outh[l.outNum], lx, y2 - ly, c, lw]);
636 drawLine(x1, y1, x2, y2, c, lw = 1) {
638 if (y1 > y2) {
639 [y1, y2] = [y2, y1];
641 X2DFast.px2f.fillRect(x1, y1, lw, y2 - y1 + lw, c);
642 if (XTools.InRect(XTools.MOUSE_POS.x, XTools.MOUSE_POS.y, x1 - 1, y1, lw + 2, y2 - y1)) {
646 else if (y1 === y2) {
650 X2DFast.px2f.fillRect(x1, y1, x2 - x1, lw, c);
651 if (XTools.InRect(XTools.MOUSE_POS.x, XTools.MOUSE_POS.y, x1, y1 - 1, x2 - x1, lw + 2)) {
667 this.scrollY_.setBarOff(-(this.offy_ + this.dragScoll.y1) / this.dragScoll.hh);
669 this.offy_ = (-this.scrollY_.getBarOff()) * this.dragScoll.hh - this.dragScoll.y1;
683 let [x1, y1, x2, y2] = [this.dragScoll.x1, this.dragScoll.y1, this.dragScoll.x2, this.dragScoll.y2];
684 if (x1 === x2 || y1 === y2) {
688 let sh = h / (y2 - y1);
690 this.offy_ = (ty - y + Scr.logich * sh / 2) / sh - y1;
691 this.scrollY_.setBarOff(-(this.offy_ + this.dragScoll.y1) / this.dragScoll.hh);
693 this.offy_ = (-this.scrollY_.getBarOff()) * this.dragScoll.hh - this.dragScoll.y1;