Menu
ChartCopyError, ChartCopyAction, ChartCopyErrorCode: generated from the source of active-charts.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Functions, hooks and constants#
A copy from the chart menu that did not reach the clipboard, given to context. It carries what failed, never what was being copied.
class ChartCopyError extends Error {
readonly code: ChartCopyErrorCode;
readonly action: ChartCopyAction;
readonly errorName?: string;
constructor(options: {
code: ChartCopyErrorCode;
action: ChartCopyAction;
errorName?: string;
});
}Types#
The menu's copy actions.
type ChartCopyAction = 'copyValue' | 'copyValues' | 'copyAsTable';Why a copy failed: the browser refused or failed the write (COPY_), or the clipboard was no longer there when the reader chose the item (COPY_).
type ChartCopyErrorCode = 'COPY_REJECTED' | 'COPY_UNAVAILABLE';