Creates an ArrowDirectionSelect component inside the given element.
The host element that will contain the arrow picker.
Optional display and behaviour configuration.
ProtectedhostProtectedconfigProtectedselectedProtectedtriggerProtectedtriggerProtected OptionaltriggerProtectedmenuReleases DOM/event resources owned by the control.
Sets the available arrow options and optionally selects one.
An array of arrow directions.
OptionalselectedArrow: ArrowDirectionThe arrow direction to select. Defaults to the first option.
Protected ReadonlyonHandles the click event on the trigger button. Toggles the open/closed state of the dropdown menu.
Protected ReadonlyonHandles the click event on the document. Closes the dropdown menu if the click is outside the host element.
The click event.
Protected ReadonlyonHandles the click event on an option. Selects the clicked width and closes the dropdown menu.
The click event.
ProtectedrebuildReplaces the current option list with a new set of arrow directions.
The arrow directions to render.
ProtectedbuildBuilds a single option button containing an SVG arrow preview.
The arrow direction value for this option.
The constructed option button element.
ProtectedcreateCreates an SVG element visualising the given arrow direction with an optional arrowhead.
The arrow direction to draw.
The SVG element.
ProtectedcreateCreates an SVG polygon representing a single arrowhead at the given position.
Horizontal position of the arrowhead tip.
Vertical position of the arrowhead tip.
'forward' points right; 'backward' points left.
The SVG polygon element.
ProtectednormalizeNormalises any value into a valid ArrowDirection, falling back to 'none'.
Raw value to normalise.
A valid ArrowDirection string.
ProtectedselectUpdates the internal selection state, syncs the trigger and option list, and optionally emits 'arrowchange'.
The new arrow direction to select.
Whether to dispatch the change event. Defaults to true.
ProtectedsyncUpdates the trigger button's swatch to show the current arrow direction.
ProtectedsyncToggles the selected CSS class and aria-selected attribute on all arrow option buttons.
ProtectedopenAdds the open CSS class and updates aria-expanded on the trigger button.
ProtectedcloseRemoves the open CSS class and updates aria-expanded on the trigger button.
A dropdown component for selecting arrow direction presets. It displays predefined directions and reflects the selected direction in the trigger button. The selected direction is exposed through the
valueproperty. The component emits anarrowchangeevent when the direction changes.