Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/grid-layout/cards/diagrams/diagram-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function getEquipmentTypeFromFeederType(feederType: FeederTypes | null):
case FEEDER_TYPES.THREE_WINDINGS_TRANSFORMER_LEG:
return { equipmentType: EquipmentType.THREE_WINDINGS_TRANSFORMER };
case FEEDER_TYPES.VOLTAGE_LEVEL:
case FEEDER_TYPES.TEXT_NODE: // a NAD label carries the id of the voltage level it labels
return { equipmentType: EquipmentType.VOLTAGE_LEVEL };
default: {
console.log('bad feeder type ', feederType);
Expand Down Expand Up @@ -122,6 +123,7 @@ export const equipmentsWithPopover = [
FEEDER_TYPES.TWO_WINDINGS_TRANSFORMER_LEG,
FEEDER_TYPES.LOAD,
FEEDER_TYPES.VOLTAGE_LEVEL,
FEEDER_TYPES.TEXT_NODE,
FEEDER_TYPES.GENERATOR,
];

Expand Down
4 changes: 4 additions & 0 deletions src/components/utils/feederType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ export const FEEDER_TYPES = {
THREE_WINDINGS_TRANSFORMER_LEG: 'THREE_WINDINGS_TRANSFORMER_LEG',
HVDC_LINE_VSC: 'HVDC_LINE_VSC',
HVDC_LINE_LCC: 'HVDC_LINE_LCC',
/**
* it is the element type the NAD reports for the label of a voltage level
*/
TEXT_NODE: 'TEXT_NODE',
};
export type FeederTypes = ValueOf<typeof FEEDER_TYPES>;
2 changes: 1 addition & 1 deletion src/nad-index.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
width: max-content;
padding: 10px;
border-radius: 10px;
cursor: default;
cursor: pointer;
border: 2px solid rgba(0,0,0,0);
}
.nad-legend-square {
Expand Down
Loading