Mercurial > repos > bimib > marea_2
changeset 172:9e68176e6b2a draft
Uploaded
author | francesco_lapi |
---|---|
date | Fri, 26 Jul 2024 13:28:03 +0000 |
parents | f0a060e4e217 |
children | 3d7b4c737234 |
files | marea_2/marea.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2/marea.py Fri Jul 26 13:25:47 2024 +0000 +++ b/marea_2/marea.py Fri Jul 26 13:28:03 2024 +0000 @@ -428,8 +428,8 @@ # Now we style the arrow head(s): idOpt1, idOpt2 = getArrowHeadElementId(reactionId) - self.applyTo(idOpt1, metabMap, self.toStyleStr(downSizedForTips = False)) - if idOpt2: self.applyTo(idOpt2, metabMap, self.toStyleStr(downSizedForTips = False)) + self.applyTo(idOpt1, metabMap, self.toStyleStr(downSizedForTips = True)) + if idOpt2: self.applyTo(idOpt2, metabMap, self.toStyleStr(downSizedForTips = True)) def getMapReactionId(self, reactionId :str, mindReactionDir :bool) -> str: """ @@ -456,7 +456,7 @@ str : the styles string. """ width = self.w - if downSizedForTips: width *= 0.15 + if downSizedForTips: width *= 0.8 return f";stroke:{self.col};stroke-width:{width};stroke-dasharray:{'5,5' if self.dash else 'none'}" # vvv These constants could be inside the class itself a static properties, but python