Commit d95a2624 authored by gijs's avatar gijs

Further adjustments digital posters

parent 6a73f44c
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -8,7 +8,7 @@ import os.path
# width = height/(1920/1080)
sources = [
# ('digital-city-poster-1080x1920.svg', '1080x1920'),
('digital-city-poster-1080x1920.svg', '1080x1920'),
('digital-city-poster-1920x1080.svg', '1920x1080'),
('digital-city-poster-1920x2160.svg', '1920x2160')
]
......@@ -98,7 +98,7 @@ for drawing, target in sources:
x = translation[0] - keypoints[k-1].real - (t * d) + (float(width) / 2)
y = translation[1]
animation['transform'] = 'translate({}, {})'.format(x, y)
get_group_by_label(svg, 'text')['visibility'] = 'hidden'
get_group_by_label(svg, 'text')['style'] = 'display:none;visibility:hidden;'
write_frame(f, svg, folder=os.path.join(target, 'svg'))
f += 1
......@@ -106,7 +106,7 @@ for drawing, target in sources:
x = translation[0] + (-1 * (center.real - (float(width) / 2)))
y = translation[1]
animation['transform'] = 'translate({}, {})'.format(x, y)
get_group_by_label(svg, 'text')['visibility'] = 'visible'
get_group_by_label(svg, 'text')['style'] = 'display:inline;visibility:visible;'
write_frame(f, svg, folder=os.path.join(target, 'svg'))
f += 1
# print(path, 'translate({}, {})'.format(center.real - (width / 2), 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment