HoopsCuttingPlaneToolbarElement
-
class
wvc.HoopsCuttingPlaneToolbarElement() A toolbar component for managing individual cutting plane operations.
This component provides a set of action buttons for manipulating a specific cutting plane within a cutting section. It offers functionality to customize, invert, toggle visibility, and remove cutting planes.
The toolbar automatically updates when the associated cutting plane changes and only renders if a valid cutting plane exists at the specified indices.
Constructors
-
wvc.HoopsCuttingPlaneToolbarElement.constructor() - HoopsCuttingPlaneToolbarElement():
HoopsCuttingPlaneToolbarElementConstructs a new HoopsCuttingPlaneToolbarElement.
Initializes the component with default property values and binds the invalidateToolbar method for proper event handling context.
Returns:
HoopsCuttingPlaneToolbarElement
Properties
-
wvc.HoopsCuttingPlaneToolbarElement.styles static
styles: CSSResult[]Array of styles to apply to the element. The styles should be defined using the ? tag function, via constructible stylesheets, or imported from native CSS module scripts.
Note on Content Security Policy:
Element styles are implemented with
<style>tags when the browser doesn’t support adopted StyleSheets. To use such<style>tags with the style-src CSP directive, the style-src value must either include ‘unsafe-inline’ ornonce-<base64-value>with<base64-value>replaced be a server-generated nonce.To provide a nonce to use on generated
<style>elements, setwindow.litNonceto a server-generated nonce in your page’s HTML, before loading application code:<script> // Generated and unique per request: window.litNonce = 'a1b2c3d4'; </script>
-
wvc.HoopsCuttingPlaneToolbarElement.planeIndex - planeIndex: number
The index of the cutting plane within the specified cutting section. Used to identify the specific plane to be manipulated by toolbar actions.
-
wvc.HoopsCuttingPlaneToolbarElement.sectionIndex - sectionIndex: number
The index of the cutting section containing the target cutting plane. Used to identify which section contains the plane to be manipulated.
-
wvc.HoopsCuttingPlaneToolbarElement.service - service: (None |
ICuttingService)The cutting service instance that provides cutting plane operations. All toolbar actions are performed through this service interface.