HoopsCuttingPlaneElement
-
class
wvc.HoopsCuttingPlaneElement() A comprehensive cutting plane component that combines display, editing, and management capabilities.
This component provides a complete interface for a single cutting plane, including:
- Collapsible accordion display with plane identification
- Integrated toolbar for quick actions (invert, visibility, remove)
- Expandable editor for detailed property modification
- Automatic service discovery and synchronization
- Real-time updates when cutting plane properties change
The component uses an accordion layout where the header shows the plane name and toolbar, and the content area contains the detailed editor. The editor visibility is controlled by the toolbar’s customize button.
Constructors
-
wvc.HoopsCuttingPlaneElement.constructor() - HoopsCuttingPlaneElement():
HoopsCuttingPlaneElementConstructs a new HoopsCuttingPlaneElement.
Initializes the component with default property values and binds the invalidateCuttingPlane method for proper event handling context.
Returns:
HoopsCuttingPlaneElement
Properties
-
wvc.HoopsCuttingPlaneElement.planeIndex - planeIndex: number
The index of the cutting plane within the specified cutting section. Used to identify the specific plane to display and manage.
-
wvc.HoopsCuttingPlaneElement.sectionIndex - sectionIndex: number
The index of the cutting section containing the target cutting plane. Used to identify which section contains the plane to display.
-
wvc.HoopsCuttingPlaneElement.service optional
service:ICuttingServiceThe cutting service instance that provides cutting plane operations. When not provided, the component will attempt to auto-discover the service. If no service is available, the component renders nothing.
Methods
-
wvc.HoopsCuttingPlaneElement.disconnectedCallback() - disconnectedCallback(): void
Lifecycle method called when the element is removed from the DOM.
Cleans up event listeners to prevent memory leaks when the component is no longer needed.
Returns: void
-
wvc.HoopsCuttingPlaneElement.firstUpdated() - firstUpdated(_changedProperties: (PropertyValueMap | Map)): void
Lifecycle method called after the first render.
Sets up event listeners for cutting plane change events to keep the component synchronized with the state of its associated cutting plane.
Parameters
_changedProperties: (PropertyValueMap | Map)
Map of changed properties (not used)Returns: void