mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-23 14:06:23 +02:00
Issue #84: reduce conflation artifacts.
This commit is contained in:
parent
47c786edb5
commit
dbaecd41e1
4 changed files with 12 additions and 0 deletions
BIN
doc/colors.png
BIN
doc/colors.png
Binary file not shown.
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 256 KiB |
BIN
doc/lanes.png
BIN
doc/lanes.png
Binary file not shown.
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 195 KiB |
BIN
doc/power.png
BIN
doc/power.png
Binary file not shown.
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 135 KiB |
|
@ -579,6 +579,18 @@ class ComplexConnector(Connector):
|
||||||
|
|
||||||
def draw(self, svg: Drawing) -> None:
|
def draw(self, svg: Drawing) -> None:
|
||||||
"""Draw connection fill."""
|
"""Draw connection fill."""
|
||||||
|
circle = svg.circle(
|
||||||
|
self.road_1.line.points[self.index_1],
|
||||||
|
self.road_1.width * self.scale / 2,
|
||||||
|
fill=self.road_1.matcher.color.hex,
|
||||||
|
)
|
||||||
|
svg.add(circle)
|
||||||
|
circle = svg.circle(
|
||||||
|
self.road_2.line.points[self.index_2],
|
||||||
|
self.road_2.width * self.scale / 2,
|
||||||
|
fill=self.road_2.matcher.color.hex,
|
||||||
|
)
|
||||||
|
svg.add(circle)
|
||||||
path = svg.path(
|
path = svg.path(
|
||||||
d=["M"] + self.curve_1 + ["L"] + self.curve_2 + ["Z"],
|
d=["M"] + self.curve_1 + ["L"] + self.curve_2 + ["Z"],
|
||||||
fill=self.road_1.matcher.color.hex,
|
fill=self.road_1.matcher.color.hex,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue