svg: drop the non-pressure handling
No point in keeping this, let's always use the pressure and where it's not sufficient just change the algorithm.
This commit is contained in:
parent
217ec508fa
commit
d6a2e01acb
|
@ -69,7 +69,6 @@ class JsonSvg(GObject.Object):
|
||||||
stroke_width = 0.4 + 0.20 * delta
|
stroke_width = 0.4 + 0.20 * delta
|
||||||
points_with_sk_width.append((x, y, stroke_width))
|
points_with_sk_width.append((x, y, stroke_width))
|
||||||
|
|
||||||
if False and self.handle_pressure: # FIXME
|
|
||||||
lines = svgwrite.container.Group(id=f'strokes_{stroke_num}', stroke='black')
|
lines = svgwrite.container.Group(id=f'strokes_{stroke_num}', stroke='black')
|
||||||
for i, (x, y, stroke_width) in enumerate(points_with_sk_width):
|
for i, (x, y, stroke_width) in enumerate(points_with_sk_width):
|
||||||
if i != 0:
|
if i != 0:
|
||||||
|
@ -82,16 +81,6 @@ class JsonSvg(GObject.Object):
|
||||||
style='fill:none'
|
style='fill:none'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
lines = svgwrite.path.Path(
|
|
||||||
d="M",
|
|
||||||
stroke='black',
|
|
||||||
stroke_width=0.2,
|
|
||||||
style='fill:none'
|
|
||||||
)
|
|
||||||
for x, y, stroke_width in points_with_sk_width:
|
|
||||||
lines.push(x, y)
|
|
||||||
|
|
||||||
g.add(lines)
|
g.add(lines)
|
||||||
|
|
||||||
svg.add(g)
|
svg.add(g)
|
||||||
|
|
Loading…
Reference in New Issue