Lines Matching defs:x1
282 drawSmallMap(nodes, x1, x2, y1, y2) {
283 if (x1 === x2 || y2 === y1) {
289 let sw = w / (x2 - x1);
298 let dx = n.pos.x - x1;
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);
449 let x1 = 9999;
458 if (n.pos.x < x1) {
459 x1 = n.pos.x;
472 x1 = Math.min(mmx1[0] - this.offx_, x1) - Scr.logicw / 3;
477 x1: x1,
482 let scrollW = x2 - x1;
494 this.scrollX_.setBarOff(-(this.offx_ + this.dragScoll.x1) / this.dragScoll.ww);
498 this.offx_ = (-this.scrollX_.getBarOff()) * this.dragScoll.ww - this.dragScoll.x1;
507 this.drawSmallMap(nodes, x1, x2, y1, y2);
573 let x1 = n1.pos.x + n1.nameWidth - 5 + offx - n1.ltypes.indexOf(l.lineType) * 5;
584 x1 += this.drapSelect_.dx;
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]);
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]);
636 drawLine(x1, y1, x2, y2, c, lw = 1) {
637 if (x1 === x2) {
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)) {
647 if (x1 > x2) {
648 [x1, x2] = [x2, x1];
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)) {
668 this.scrollX_.setBarOff(-(this.offx_ + this.dragScoll.x1) / this.dragScoll.ww);
670 this.offx_ = (-this.scrollX_.getBarOff()) * this.dragScoll.ww - this.dragScoll.x1;
683 let [x1, y1, x2, y2] = [this.dragScoll.x1, this.dragScoll.y1, this.dragScoll.x2, this.dragScoll.y2];
684 if (x1 === x2 || y1 === y2) {
687 let sw = w / (x2 - x1);
689 this.offx_ = (tx - x + Scr.logicw * sw / 2) / sw - x1;
692 this.scrollX_.setBarOff(-(this.offx_ + this.dragScoll.x1) / this.dragScoll.ww);
694 this.offx_ = (-this.scrollX_.getBarOff()) * this.dragScoll.ww - this.dragScoll.x1;