(name_to_hierarchy, identifier, poster_path='poster.pptx')
| 1854 | line.dash_style = dash_style_enum |
| 1855 | |
| 1856 | def get_visual_cues(name_to_hierarchy, identifier, poster_path='poster.pptx'): |
| 1857 | prs = pptx.Presentation(poster_path) |
| 1858 | |
| 1859 | position_dict_1 = add_border_hierarchy(prs, name_to_hierarchy, 1, border_width=10) |
| 1860 | json.dump(position_dict_1, open(f"tmp/position_dict_1_<{identifier}>.json", "w")) |
| 1861 | |
| 1862 | # Save the presentation to disk. |
| 1863 | save_presentation(prs, file_name=f"tmp/poster_<{identifier}>_hierarchy_1.pptx") |
| 1864 | |
| 1865 | prs = pptx.Presentation(poster_path) |
| 1866 | |
| 1867 | add_border_hierarchy(prs, name_to_hierarchy, 1, border_width=10, fill_boxes=True) |
| 1868 | save_presentation(prs, file_name=f"tmp/poster_<{identifier}>_hierarchy_1_filled.pptx") |
| 1869 | |
| 1870 | prs = pptx.Presentation(poster_path) |
| 1871 | |
| 1872 | position_dict_2 = add_border_hierarchy(prs, name_to_hierarchy, 2, border_width=10) |
| 1873 | json.dump(position_dict_2, open(f"tmp/position_dict_2_<{identifier}>.json", "w")) |
| 1874 | |
| 1875 | # Save the presentation to disk. |
| 1876 | save_presentation(prs, file_name=f"tmp/poster_<{identifier}>_hierarchy_2.pptx") |
| 1877 | |
| 1878 | prs = pptx.Presentation(poster_path) |
| 1879 | |
| 1880 | add_border_hierarchy(prs, name_to_hierarchy, 2, border_width=10, fill_boxes=True) |
| 1881 | |
| 1882 | # Save the presentation to disk. |
| 1883 | save_presentation(prs, file_name=f"tmp/poster_<{identifier}>_hierarchy_2_filled.pptx") |
| 1884 | |
| 1885 | from pptx.enum.shapes import MSO_SHAPE_TYPE, MSO_SHAPE, MSO_AUTO_SHAPE_TYPE |
| 1886 | from pptx.util import Inches, Pt |
nothing calls this directly
no test coverage detected