Skip to content

v1.5.0

Choose a tag to compare

@EightKK EightKK released this 23 Nov 03:30
· 108 commits to main since this release
04ed1bd

Adds an opt-in background-click event to NetworkGraph, GanttChart, TaskBoard and EventCalendar, so applications can clear a controlled selection when empty space is clicked, and the examples and showcases now clear their selection on such a click or Escape. Glyph buttons inside the components (zoom, row toggles, add and remove buttons) are drawn as SVG icons and stay centered whatever font an application gives buttons. Every change is backward compatible.

Added

  • NetworkGraph, GanttChart, TaskBoard and EventCalendar emit an opt-in background-click when empty space is clicked without dragging, so applications can clear a controlled selection (the components keep none of their own). NetworkGraph reports the point in graph coordinates; GanttChart a TimelineBackgroundClick { time, rowId? } for an empty part of the time area (not in rows where the click creates a bar); TaskBoard a TaskBoardBackgroundClick { columnId?, laneId? }; EventCalendar an EventCalendarBackgroundClick { time, allDay, resourceId? } when the click proposes no create. Nothing else changes for applications that do not listen.
  • The examples and showcases clear their selection when you click empty space in a graph, chart, board or calendar, or press Escape there (an Escape that cancels a drag keeps the selection).

Fixed

  • The zoom-in and zoom-out buttons of NetworkGraph and GanttChart, the GanttChart row toggle and add button, the TreeGrid row actions (add below, add child, delete) and the PropertyInspector remove button draw their symbols as SVG icons, so they stay centered when an application restyles button fonts. Their accessible names are unchanged. The markup of these buttons changes from a text character to an svg element (vw-zoom-icon, vw-row-toggle-icon, vw-gantt-create-icon, vw-tree-grid-action-icon, vw-inspector-remove-icon); the icons use currentColor.
  • The construction showcase no longer applies its button style to the chart's own row toggles, which overlapped neighbouring rows.