HoopsIFCRelationshipElement

class wvc.HoopsIFCRelationshipElement()

Provides a component for displaying IFC relationships in BIM models.

This component shows hierarchical relationships between IFC elements, allowing users to explore how building components relate to each other. It displays relationship types, element names, and provides navigation to related elements through selection.

The component automatically updates when selection changes and provides expandable/collapsible relationship groups with smooth animations (unless disabled).

Constructors

wvc.HoopsIFCRelationshipElement.constructor()
HoopsIFCRelationshipElement(): HoopsIFCRelationshipElement

Returns: HoopsIFCRelationshipElement

Properties

wvc.HoopsIFCRelationshipElement.expandedRelationships
expandedRelationships: Record
wvc.HoopsIFCRelationshipElement.noAnim
noAnim: boolean

When true, animations will be disabled for this component

wvc.HoopsIFCRelationshipElement.selectionRelationships
selectionRelationships: (undefined | RelationshipData[])
wvc.HoopsIFCRelationshipElement.service

Methods

wvc.HoopsIFCRelationshipElement.disconnectedCallback()
disconnectedCallback(): void

Lifecycle callback when component is removed from the DOM.

Cleans up event listeners for IFC relationships service to prevent memory leaks.

Returns: void

wvc.HoopsIFCRelationshipElement.firstUpdated()
firstUpdated(): void

Lifecycle callback when component is first updated.

Initializes the IFC relationships service and sets up event listeners for relationship changes based on selection.

Returns: void

wvc.HoopsIFCRelationshipElement.isRelationshipExpanded()
isRelationshipExpanded(relationshipType: string): boolean

Checks whether a relationship group is currently expanded.

Parameters

relationshipType: string

The type name of the relationship to check

Returns: boolean

True if the relationship group is expanded, false otherwise
wvc.HoopsIFCRelationshipElement.toggleRelationship()
toggleRelationship(relationshipType: string): void

Toggles the expanded/collapsed state of a relationship group.

Controls the visibility of relationship elements within a specific relationship type, with smooth animations (unless disabled via no-anim attribute).

Parameters

relationshipType: string

The type name of the relationship to toggle

Returns: void