Skip to content

Commit 14ff3a3

Browse files
docs: fix typos in charts axis events JSDoc (#10052) (#10053)
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
1 parent 408e353 commit 14ff3a3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/charts/src/vaadin-chart-mixin.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export type ChartPointDropEvent = CustomEvent<{ point: Point; originalEvent: Cha
181181
export type ChartPointDragEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
182182

183183
/**
184-
* Fired when when the minimum and maximum is set for the X axis.
184+
* Fired when the minimum and maximum is set for the X axis.
185185
*/
186186
export type ChartXaxesExtremesSetEvent = CustomEvent<{
187187
axis: Axis;
@@ -192,7 +192,7 @@ export type ChartXaxesExtremesSetEvent = CustomEvent<{
192192
}>;
193193

194194
/**
195-
* Fired when when the minimum and maximum is set for the Y axis.
195+
* Fired when the minimum and maximum is set for the Y axis.
196196
*/
197197
export type ChartYaxesExtremesSetEvent = CustomEvent<{
198198
axis: Axis;

packages/charts/src/vaadin-chart-mixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ export const ChartMixin = (superClass) =>
726726
get __xAxesEventNames() {
727727
return {
728728
/**
729-
* Fired when when the minimum and maximum is set for the x axis.
729+
* Fired when the minimum and maximum is set for the x axis.
730730
* @event xaxes-extremes-set
731731
* @param {Object} detail.originalEvent object with details about the event sent
732732
* @param {Object} axis Point object where the event was sent from
@@ -739,7 +739,7 @@ export const ChartMixin = (superClass) =>
739739
get __yAxesEventNames() {
740740
return {
741741
/**
742-
* Fired when when the minimum and maximum is set for the y axis.
742+
* Fired when the minimum and maximum is set for the y axis.
743743
* @event yaxes-extremes-set
744744
* @param {Object} detail.originalEvent object with details about the event sent
745745
* @param {Object} axis Point object where the event was sent from

packages/charts/src/vaadin-chart.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ export * from './vaadin-chart-mixin.js';
168168
* @fires {CustomEvent} point-drag-start - Fired when starting to drag a point.
169169
* @fires {CustomEvent} point-drop - Fired when the point is dropped.
170170
* @fires {CustomEvent} point-drag - Fired while dragging a point.
171-
* @fires {CustomEvent} xaxes-extremes-set - Fired when when the minimum and maximum is set for the X axis.
172-
* @fires {CustomEvent} yaxes-extremes-set - Fired when when the minimum and maximum is set for the Y axis.
171+
* @fires {CustomEvent} xaxes-extremes-set - Fired when the minimum and maximum is set for the X axis.
172+
* @fires {CustomEvent} yaxes-extremes-set - Fired when the minimum and maximum is set for the Y axis.
173173
*/
174174
declare class Chart extends ChartMixin(ThemableMixin(ElementMixin(HTMLElement))) {
175175
addEventListener<K extends keyof ChartEventMap>(

packages/charts/src/vaadin-chart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ import { ChartMixin } from './vaadin-chart-mixin.js';
170170
* @fires {CustomEvent} point-drag-start - Fired when starting to drag a point.
171171
* @fires {CustomEvent} point-drop - Fired when the point is dropped.
172172
* @fires {CustomEvent} point-drag - Fired while dragging a point.
173-
* @fires {CustomEvent} xaxes-extremes-set - Fired when when the minimum and maximum is set for the X axis.
174-
* @fires {CustomEvent} yaxes-extremes-set - Fired when when the minimum and maximum is set for the Y axis.
173+
* @fires {CustomEvent} xaxes-extremes-set - Fired when the minimum and maximum is set for the X axis.
174+
* @fires {CustomEvent} yaxes-extremes-set - Fired when the minimum and maximum is set for the Y axis.
175175
*
176176
* @customElement
177177
* @extends HTMLElement

0 commit comments

Comments
 (0)