Skip to content

Commit d97df2d

Browse files
authored
docs: fix typos in charts axis events JSDoc (#10052)
1 parent 41d351c commit d97df2d

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
@@ -186,7 +186,7 @@ export type ChartPointDropEvent = CustomEvent<{ point: Point; originalEvent: Cha
186186
export type ChartPointDragEvent = CustomEvent<{ point: Point; originalEvent: ChartPointEvent }>;
187187

188188
/**
189-
* Fired when when the minimum and maximum is set for the X axis.
189+
* Fired when the minimum and maximum is set for the X axis.
190190
*/
191191
export type ChartXaxesExtremesSetEvent = CustomEvent<{
192192
axis: Axis;
@@ -197,7 +197,7 @@ export type ChartXaxesExtremesSetEvent = CustomEvent<{
197197
}>;
198198

199199
/**
200-
* Fired when when the minimum and maximum is set for the Y axis.
200+
* Fired when the minimum and maximum is set for the Y axis.
201201
*/
202202
export type ChartYaxesExtremesSetEvent = CustomEvent<{
203203
axis: Axis;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ export const ChartMixin = (superClass) =>
734734
get __xAxesEventNames() {
735735
return {
736736
/**
737-
* Fired when when the minimum and maximum is set for the x axis.
737+
* Fired when the minimum and maximum is set for the x axis.
738738
* @event xaxes-extremes-set
739739
* @param {Object} detail.originalEvent object with details about the event sent
740740
* @param {Object} axis Point object where the event was sent from
@@ -747,7 +747,7 @@ export const ChartMixin = (superClass) =>
747747
get __yAxesEventNames() {
748748
return {
749749
/**
750-
* Fired when when the minimum and maximum is set for the y axis.
750+
* Fired when the minimum and maximum is set for the y axis.
751751
* @event yaxes-extremes-set
752752
* @param {Object} detail.originalEvent object with details about the event sent
753753
* @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
@@ -142,8 +142,8 @@ export * from './vaadin-chart-mixin.js';
142142
* @fires {CustomEvent} point-drag-start - Fired when starting to drag a point.
143143
* @fires {CustomEvent} point-drop - Fired when the point is dropped.
144144
* @fires {CustomEvent} point-drag - Fired while dragging a point.
145-
* @fires {CustomEvent} xaxes-extremes-set - Fired when when the minimum and maximum is set for the X axis.
146-
* @fires {CustomEvent} yaxes-extremes-set - Fired when when the minimum and maximum is set for the Y axis.
145+
* @fires {CustomEvent} xaxes-extremes-set - Fired when the minimum and maximum is set for the X axis.
146+
* @fires {CustomEvent} yaxes-extremes-set - Fired when the minimum and maximum is set for the Y axis.
147147
*/
148148
declare class Chart extends ChartMixin(ThemableMixin(ElementMixin(HTMLElement))) {
149149
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
@@ -147,8 +147,8 @@ import { ChartMixin } from './vaadin-chart-mixin.js';
147147
* @fires {CustomEvent} point-drag-start - Fired when starting to drag a point.
148148
* @fires {CustomEvent} point-drop - Fired when the point is dropped.
149149
* @fires {CustomEvent} point-drag - Fired while dragging a point.
150-
* @fires {CustomEvent} xaxes-extremes-set - Fired when when the minimum and maximum is set for the X axis.
151-
* @fires {CustomEvent} yaxes-extremes-set - Fired when when the minimum and maximum is set for the Y axis.
150+
* @fires {CustomEvent} xaxes-extremes-set - Fired when the minimum and maximum is set for the X axis.
151+
* @fires {CustomEvent} yaxes-extremes-set - Fired when the minimum and maximum is set for the Y axis.
152152
*
153153
* @customElement
154154
* @extends HTMLElement

0 commit comments

Comments
 (0)