@rokkit/chart 1.0.5 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/chart",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "Data-driven chart components",
6
6
  "repository": {
@@ -136,11 +136,12 @@
136
136
  {#if label}
137
137
  <div data-filter-histogram-label>{label}</div>
138
138
  {/if}
139
+ <!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
139
140
  <svg
140
141
  {width}
141
142
  {height}
142
143
  style="display:block;cursor:crosshair;user-select:none"
143
- role="img"
144
+ role="application"
144
145
  aria-label="Histogram filter for {label || field}"
145
146
  onmousedown={onMouseDown}
146
147
  onmousemove={onMouseMove}
@@ -100,6 +100,7 @@
100
100
  height={c.bodyHeight}
101
101
  fill={c.fill}
102
102
  data-plot-element="candle"
103
+ role="img"
103
104
  onmouseenter={() => plotState.setHovered(c.data)}
104
105
  onmouseleave={() => plotState.clearHovered()}
105
106
  >
@@ -82,6 +82,7 @@
82
82
  fill={cell.fill}
83
83
  rx={rx}
84
84
  data-plot-element="cell"
85
+ role="img"
85
86
  onmouseenter={() => plotState.setHovered(cell.data)}
86
87
  onmouseleave={() => plotState.clearHovered()}
87
88
  >
@@ -106,6 +106,7 @@
106
106
  stroke="white"
107
107
  stroke-width="0.5"
108
108
  data-plot-element="hex"
109
+ role="img"
109
110
  onmouseenter={() => plotState.setHovered(h.data)}
110
111
  onmouseleave={() => plotState.clearHovered()}
111
112
  >
@@ -133,6 +133,7 @@
133
133
  fill={link.fill}
134
134
  opacity="0.5"
135
135
  data-plot-element="ribbon"
136
+ role="img"
136
137
  onmouseenter={() => plotState.setHovered(link.data)}
137
138
  onmouseleave={() => plotState.clearHovered()}
138
139
  >
@@ -91,6 +91,7 @@
91
91
  height={bar.height}
92
92
  fill={bar.fill}
93
93
  data-plot-element="waterfall-bar"
94
+ role="img"
94
95
  onmouseenter={() => plotState.setHovered(bar.data)}
95
96
  onmouseleave={() => plotState.clearHovered()}
96
97
  >