delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/03/18/15:14:29

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:from:date:message-id:subject:to;
bh=wlxqm3Aje68i81qW/7YyRUaNnoH1Yv0IiaUGteKpgu0=;
b=LsGm+ypnHrH83BFzadlPZQ2YIfTPmJqY9EXI2KhfLGQlqQlU7Fp7yz0oxSJy3tfP9H
Ey76PUOQGCUgnZWshP5Lw2/PYqIRgVpXh8+NTL+gk+avQZ2i6MiSA+sy+ET0Wg8Ck984
kmmQVCwX1nxYgt5YykqTfcfT7vz2vxCqv/qTJnVY/CvfHRoP+JGKyWBTgTt6qaEw0PYW
/0vkvZS+4/6sMi5TW+I6nD5quNvLJJdqWsDaMhlAyAndLJr7YrKmKly+9vqqNR1dWxFY
SpRcAhGDmXzbJLON0hHZA5cJZXjxIER/gh7p9OuTPdsPR2gs7EF+BvlmInOR5jhn9ihL
ryOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=wlxqm3Aje68i81qW/7YyRUaNnoH1Yv0IiaUGteKpgu0=;
b=U/jQ5X2kPoWYHQi4029xQf4HQnP05XI1IaPj0mlaXvQluxGXf/+Biup7L49DztfXt+
fPghSNTDl0TKznLXeFtTscuV1+VX7qVmTRZGVOCkQ/sujOQlEvUk8SMbtHvPoDkn63cC
BMqxzK84lGC7gcLwboZFaun8FZXdQQ+zdDsMnPfOUlGLEePoRnvvBovC5cHdUvOYFBB2
vnWLwU5ThszXEVG12cezq9y+vTo/kxbflVMRx8JyTiK2ZU/lkzgUCCJHx1zgetDWoHxY
AlP/PfFKwj8l2sEHLhpyjHjuVr7U/kgiMen89pFN+6sLQVWaFios2z6w/VZr2Am4ibGB
t6yQ==
X-Gm-Message-State: AFeK/H05EI+OF72Y5fBxon6/EdYzjFqfrHMmqyiydnu6GxU3Onz2NlEv4O/DnyhPDQFW3JVjpp59ri0DHuDcxA==
X-Received: by 10.223.149.66 with SMTP id 60mr17819766wrs.29.1489864392784;
Sat, 18 Mar 2017 12:13:12 -0700 (PDT)
MIME-Version: 1.0
From: "Luis de Arquer (ldearquer AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Sat, 18 Mar 2017 20:13:11 +0100
Message-ID: <CAGqyy=Z2HfTZuPif=Y5MndGyiVXdyUQFq0AEs+PmCEkuWAJXTg@mail.gmail.com>
Subject: [geda-user] Rubberband keeping lines direction
To: geda-user <geda-user AT delorie DOT com>
Reply-To: geda-user AT delorie DOT com

--94eb2c0defcee56dbe054b061541
Content-Type: text/plain; charset=UTF-8

The rubberband "Keep-direction" mod is very much finished! It can
already be used as is, even though it may interfere legacy rubberband
mode.

Though there are still a couple of corner cases where it can still get
more annoying than helpful, it works fine otherwise.

I am attaching the full patch to the latest git HEAD. If you can give
it a go, please do, feedback is appreciated.

Luis

--94eb2c0defcee56dbe054b061541
Content-Type: text/x-patch; charset=UTF-8; name="rubberband.patch"
Content-Disposition: attachment; filename="rubberband.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: file0

ZGlmZiAtLWdpdCBhL3NyYy9NYWtlZmlsZS5hbSBiL3NyYy9NYWtlZmlsZS5hbQppbmRleCAwNThj
MTBmLi5kODhmYjY2IDEwMDY0NAotLS0gYS9zcmMvTWFrZWZpbGUuYW0KKysrIGIvc3JjL01ha2Vm
aWxlLmFtCkBAIC02NCw2ICs2NCw4IEBAIFBDQl9TUkNTID0gXAogCWVkaWZfcGFyc2UuaCBcCiAJ
ZXJyb3IuYyBcCiAJZXJyb3IuaCBcCisJZmdlb21ldHJ5LmMgXAorCWZnZW9tZXRyeS5oIFwKIAlm
aWxlLmMgXAogCWZpbGUuaCBcCiAJZmluZC5jIFwKZGlm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otCSAgICAgICAgICAg
ICAgICAgICAgICAgcHRyLT5MaW5lLT5UaGlja25lc3MpOworCSAgICBpZiAocHRyLT5EWCA9PSAt
MSkKKyAgICAgIHsKKwkgICAgICBYT1JEcmF3QXR0YWNoZWRMaW5lIChnYywgcG9pbnQxLT5YLCBw
b2ludDEtPlksCisJICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBvaW50Mi0+WCArIGR4LCBw
b2ludDItPlkgKyBkeSwKKwkgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHRyLT5MaW5lLT5U
aGlja25lc3MpOworCSAgICB9CisJICAgIGVsc2UKKwkgICAgeworCSAgICAgIFhPUkRyYXdBdHRh
Y2hlZExpbmUgKGdjLCBwb2ludDEtPlgsIHBvaW50MS0+WSwKKwkgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgcG9pbnQyLT5YICsgcHRyLT5EWCwgcG9pbnQyLT5ZICsgcHRyLT5EWSwKKwkgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgcHRyLT5MaW5lLT5UaGlja25lc3MpOworCSAgICB9CiAJ
fQogICAgICAgZWxzZSBpZiAocHRyLT5Nb3ZlZFBvaW50ID09ICZwdHItPkxpbmUtPlBvaW50MSkK
IAlYT1JEcmF3QXR0YWNoZWRMaW5lIChnYywKQEAgLTEwMjEsNiArMTA0Miw5NCBAQCBGaXRDcm9z
c2hhaXJJbnRvR3JpZCAoQ29vcmQgWCwgQ29vcmQgWSkKIAkgIGVsc2UKIAkgICAgbmVhcmVzdF9n
cmlkX3ggPSBNYXJrZWQuWDsKIAl9CisJICAgIC8qIE1vdmUga2VlcGluZyBydWJiZXJiYW5kIGxp
bmVzIGRpcmVjdGlvbiAqLworICAgICAgaWYgKCBDcm9zc2hhaXIuQXR0YWNoZWRPYmplY3QuVHlw
ZSA9PSBMSU5FX1RZUEUgJiYKKyAgICAgICAgICAgIENyb3NzaGFpci5BdHRhY2hlZE9iamVjdC5S
dWJiZXJiYW5kTiA9PSAyKQorICAgICA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lZDsKKworICAgICAg
ICAgICAgLyogVXBkYXRlIHZhbHVlcyBmb3IgbmVhcmVzdF9ncmlkIGFuZCBSdWJiZXJiYW5kIGxp
bmVzICovCisgICAgICAgICAgICBuZWFyZXN0X2dyaWRfeCA9IE1hcmtlZC5YICsgZm1vdmVfdG90
YWwueDsKKyAgICAgICAgICAgIG5lYXJlc3RfZ3JpZF95ID0gTWFya2VkLlkgKyBmbW92ZV90b3Rh
bC55OworCisgICAgICAgICAgICAvKiBNb3ZlIHJ1YmJlcmJhbmQ6IGZtb3ZlX3RvdGFswrdub3Jt
YWwgPSBmbW92ZV9ydWJiZXJiYW5kwrdub3JtYWwKKyAgICAgICAgICAgICAqIHdoZXJlIG5vcm1h
bCBpcyB0aGUgbW92aW5nIGxpbmUgbm9ybWFsCisgICAgICAgICAgICAgKi8KKyAgICAgICAgICAg
IGZ2ZWN0b3IgZm5vcm1hbDsKKyAgICAgICAgICAgIGZub3JtYWwueCA9IGZtYWluLmRpcmVjdGlv
bi55OworICAgICAgICAgICAgZm5vcm1hbC55ID0gLWZtYWluLmRpcmVjdGlvbi54OworICAgICAg
ICAgICAgaWYgKGZ2ZWN0b3JfZG90KGZub3JtYWwsIGZtb3ZlKSA8IDApCisgICAgICAgICAgICB7
CisgICAgICAgICAgICAgIGZub3JtYWwueCA9IC1mbm9ybWFsLng7CisgICAgICAgICAgICAgIGZu
b3JtYWwueSA9IC1mbm9ybWFsLnk7CisgICAgICAgICAgICB9CisgICAgICAgICAgICBkb3VibGUg
cnViMV9tb3ZlID0gYW1vdW50X21vdmVkICogZnZlY3Rvcl9kb3QoZm1vdmUsIGZub3JtYWwpIC8g
ZnZlY3Rvcl9kb3QoZnJ1YjEuZGlyZWN0aW9uLCBmbm9ybWFsKTsKKyAgICAgICAgICAgIENyb3Nz
aGFpci5BdHRhY2hlZE9iamVjdC5SdWJiZXJiYW5kWzBdLkRYID0gcnViMV9tb3ZlKmZydWIxLmRp
cmVjdGlvbi54OworICAgICAgICAgICAg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XIsIHB0ci0+TGluZSwKICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgcHRyLT5Nb3ZlZFBvaW50LCBEWCwgRFkpOworICAgICAgICAgIH0KKyAgICAg
ICAgICBlbHNlCisgICAgICAgICAgeworICAgICAgICAgICAgQWRkT2JqZWN0VG9Nb3ZlVW5kb0xp
c3QgKExJTkVQT0lOVF9UWVBFLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBw
dHItPkxheWVyLCBwdHItPkxpbmUsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IHB0ci0+TW92ZWRQb2ludCwgcHRyLT5EWCwgcHRyLT5EWSk7CisgICAgICAgICAgICBEZWx0YVgg
PSBwdHItPkRYOworICAgICAgICAgICAgRGVsdGFZID0gcHRyLT5EWTsKKyAgICAgICAgICB9CiAg
ICAgICAgICAgTW92ZUxpbmVQb2ludCAocHRyLT5MYXllciwgcHRyLT5MaW5lLCBwdHItPk1vdmVk
UG9pbnQpOworICAgICAgICAgIC8qIFJlc3RvcmUgRGVsdGEgKi8KKyAgICAgICAgICBEZWx0YVgg
PSBEWDsKKyAgICAgICAgICBEZWx0YVkgPSBEWTsKICAgICAgICAgfQotICAgICAgQ3Jvc3NoYWly
LkF0dGFjaGVkT2JqZWN0LlJ1YmJlcmJhbmROLS07CisgICAgICBpLS07CiAgICAgICBwdHIrKzsK
ICAgICB9CiAKICAgaWYgKERYID09IDAgJiYgRFkgPT0gMCkKKyAgeworICAJQ3Jvc3NoYWlyLkF0
dGFjaGVkT2JqZWN0LlJ1YmJlcmJhbmROID0gMDsKICAgICByZXR1cm4gKE5VTEwpOworICB9CiAK
LSAgQWRkT2JqZWN0VG9Nb3ZlVW5kb0xpc3QgKFR5cGUsIFB0cjEsIFB0cjIsIFB0cjMsIERYLCBE
WSk7Ci0gIHB0cjIgPSBPYmplY3RPcGVyYXRpb24gKCZNb3ZlRnVuY3Rpb25zLCBUeXBlLCBQdHIx
LCBQdHIy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PcGVyYXRpb24gKCZNb3ZlRnVuY3Rpb25zLCBU
eXBlLCBQdHIxLCBQdHIyLCBQdHIzKTsKKyAgfQorICAKICAgSW5jcmVtZW50VW5kb1NlcmlhbE51
bWJlciAoKTsKKyAgQ3Jvc3NoYWlyLkF0dGFjaGVkT2JqZWN0LlJ1YmJlcmJhbmROID0gMDsKICAg
cmV0dXJuIChwdHIyKTsKIH0KIAo=
--94eb2c0defcee56dbe054b061541--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019