/**
* @typedef { import("./core.controller").default } Chart
- */
-
-/**
* @typedef { import("../platform/platform.base").IEvent } IEvent
+ * @typedef {{axis?:'x'|'y'|'xy', intersect:boolean}} IInteractionOptions
*/
/**
return items;
}
-/**
- * @interface IInteractionOptions
- * @typedef {object} IInteractionOptions
- */
-/**
- * If true, only consider items that intersect the point
- * @name IInterfaceOptions#boolean
- * @type Boolean
- */
-
/**
* Contains interaction related functions
* @namespace Chart.Interaction
/**
* @typedef { import("./core.controller").default } Chart
- */
-
-/**
* @typedef { import("../platform/platform.base").IEvent } IEvent
- */
-
-/**
* @typedef { import("../plugins/plugin.tooltip").default } Tooltip
*/
const MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
/**
- * @type {Map<Unit, {common: boolean, size: number, steps: number|undefined}>}
+ * @type {Map<Unit, {common: boolean, size: number, steps?: number}>}
*/
const INTERVALS = new Map();
INTERVALS.set('millisecond', {common: true, size: 1, steps: 1000});
INTERVALS.set('week', {common: false, size: 604800000, steps: 4});
INTERVALS.set('month', {common: true, size: 2.628e9, steps: 12});
INTERVALS.set('quarter', {common: false, size: 7.884e9, steps: 4});
-INTERVALS.set('year', {common: true, size: 3.154e10, steps: undefined});
+INTERVALS.set('year', {common: true, size: 3.154e10});
/**
* @type {Unit[]}