Comment out BOM modes (WIP) and BOM bubbles

This commit is contained in:
Daniel Rojas 2022-08-05 12:13:48 +02:00 committed by KV
parent 4b6f791bdc
commit 91b02fcf10
2 changed files with 10 additions and 7 deletions

View File

@ -17,13 +17,14 @@ BomHash = namedtuple("BomHash", BOM_HASH_FIELDS)
BomHashList = namedtuple("BomHashList", BOM_HASH_FIELDS)
PartNumberInfo = namedtuple("PartNumberInfo", "pn manufacturer mpn supplier spn")
BomMode
"normal" # no bubbles, full PN info in GV node
"bubbles" # = "full" -> maximum info in GV node
"hide PN info"
"PN crossref" = "PN bubbles" + "hide PN info"
"additionally: BOM table in GV graph label (#227)"
"title block in GV graph label"
# TODO: different BOM modes
# BomMode
# "normal" # no bubbles, full PN info in GV node
# "bubbles" # = "full" -> maximum info in GV node
# "hide PN info"
# "PN crossref" = "PN bubbles" + "hide PN info"
# "additionally: BOM table in GV graph label (#227)"
# "title block in GV graph label"
BomCategory = IntEnum( # to enforce ordering in BOM

View File

@ -142,6 +142,8 @@ def bom_bubble(id) -> Table:
if id is None:
return None
else:
# TODO: activate BOM bubbles
return None
# size and style of BOM bubble is optimized to be a rounded square,
# big enough to hold any two-digit ID without GraphViz warnings
text = id