HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot//oura.mlazu.com/node_modules/recharts/types/util/stacks/stackTypes.d.ts
import { Series } from 'victory-vendor/d3-shape';
import { StackId } from '../ChartUtils';
import { GraphicalItemId } from '../../state/graphicalItemsSlice';
import { MaybeStackedGraphicalItem } from '../../state/types/StackedGraphicalItem';
/**
 * Collection of all stacks in the chart.
 * A simple stacked chart will have a single stack. Recharts allows for multiple stacks.
 * In a chart without stacks, this will be an empty object.
 */
export type AllStackGroups = Record<StackId, StackGroup>;
/**
 * One stack group is a collection of series that are stacked together.
 * The stack series and graphical items are joined by the StackSeriesIdentifier.
 */
export type StackGroup = {
    readonly stackedData: ReadonlyArray<StackSeries>;
    readonly graphicalItems: ReadonlyArray<MaybeStackedGraphicalItem>;
};
/**
 * Stack series is a collection of data points. This represents one individual graphical item in the stack.
 * There are presumably other series in the stack, which are represented by other `StackSeries` objects
 * that this object will not know about.
 * The coordinates of the data points in the series already include the baseline of the previous series in the stack.
 */
export type StackSeries = Series<StackDataPoint, StackSeriesIdentifier>;
/**
 * Stack data point is a tuple of two numbers:
 * first, where the previous stack series ended,
 * and second, where the current stack series ends.
 * This allows for setting the baseline of the next series in the stack.
 */
export type StackDataPoint = [number, number];
/**
 * Identifier for a series in the stack.
 * Used to join the stack series with the graphical items in the stack.
 */
export type StackSeriesIdentifier = GraphicalItemId;