diff --git a/src/wireviz/DataClasses.py b/src/wireviz/DataClasses.py index 3877706..06d5a8d 100644 --- a/src/wireviz/DataClasses.py +++ b/src/wireviz/DataClasses.py @@ -6,7 +6,7 @@ from itertools import zip_longest from typing import Dict, List, Optional, Tuple, Union from wireviz.wv_colors import COLOR_CODES, Color, ColorMode, Colors, ColorScheme -from wireviz.wv_helper import aspect_ratio, awg_equiv, int2tuple, mm2_equiv +from wireviz.wv_helper import aspect_ratio, awg_equiv, mm2_equiv # Each type alias have their legal values described in comments - validation might be implemented in the future PlainText = str # Text not containing HTML tags nor newlines diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py index e5dc1da..46063d0 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -1,15 +1,12 @@ # -*- coding: utf-8 -*- from dataclasses import dataclass -from itertools import zip_longest from pathlib import Path from graphviz import Graph -from wireviz import APP_NAME, APP_URL, __version__, wv_colors from wireviz.DataClasses import ( Arrow, - ArrowDirection, ArrowWeight, Cable, Connector, @@ -22,16 +19,9 @@ from wireviz.DataClasses import ( ) from wireviz.svgembed import embed_svg_images_file from wireviz.wv_bom import ( - HEADER_MPN, - HEADER_PN, - HEADER_SPN, bom_list, - component_table_entry, generate_bom, - get_additional_component_table, - pn_info_string, ) -from wireviz.wv_colors import get_color_hex, translate_color from wireviz.wv_gv_html import ( apply_dot_tweaks, calculate_node_bgcolor, @@ -39,15 +29,10 @@ from wireviz.wv_gv_html import ( gv_edge_mate, gv_edge_wire, gv_node_component, - html_line_breaks, parse_arrow_str, - remove_links, set_dot_basics, ) from wireviz.wv_helper import ( - flatten2d, - is_arrow, - open_file_read, open_file_write, tuplelist2tsv, ) diff --git a/src/wireviz/wv_gv_html.py b/src/wireviz/wv_gv_html.py index c001ff8..69ef63d 100644 --- a/src/wireviz/wv_gv_html.py +++ b/src/wireviz/wv_gv_html.py @@ -6,13 +6,10 @@ from typing import Any, List, Union from wireviz import APP_NAME, APP_URL, __version__ from wireviz.DataClasses import ( - Arrow, ArrowDirection, ArrowWeight, Cable, - Color, Component, - Connection, Connector, MateComponent, MatePin, @@ -470,7 +467,7 @@ def image_and_caption_cells(component: Component) -> (Td, Td): def html_size_attr_dict(image): # Return Graphviz HTML attributes to specify minimum or fixed size of a TABLE or TD object - from wireviz.DataClasses import Image + pass attr_dict = {} if image: