- Name
id- Kind
- property
- Type
string | null- Requirement
- required
DocsAPI referenceHeadlesschart-shell
chart-shell headless API
The core connector and vanilla mount are always visible. Use the framework choice to inspect native composition, props, outputs, context and hooks for the selected adapter.
@grassroot/ui-headless-core/chart-shell
Core connector and vanilla API
CHART_SHELL_CHILD_NAMES
valueexport declare const CHART_SHELL_CHILD_NAMES: readonly ["tooltip", "legend", "selection", "brush", "zoom", "keyboard"];type ChartActiveTargetChangeDetail = { readonly id: string | null; readonly reason: ChartTargetReason;};idstring | nullreasonChartTargetReason- Name
reason- Kind
- property
- Type
ChartTargetReason- Requirement
- required
type ChartDomainChangeReason = "brush" | "wheel" | "pan" | "pinch" | "keyboard" | "programmatic";ChartDomainScalar
typeJSON-safe chart domain values owned by `@grassroot/ui-machines/chart-shell`. Headless and chart-spec consume these; this module imports no chart-spec type. `[T6-F4-live]` — brush/zoom are not general chart APIs this slice.
type ChartDomainScalar = string | number;ChartEventBounds
interfaceinterface ChartEventBounds { readonly left: number; readonly top: number; readonly width: number; readonly height: number;}heightnumberleftnumbertopnumberwidthnumber- Name
height- Kind
- property
- Type
number- Requirement
- required
- Name
left- Kind
- property
- Type
number- Requirement
- required
- Name
top- Kind
- property
- Type
number- Requirement
- required
- Name
width- Kind
- property
- Type
number- Requirement
- required
ChartKeyboardMoveOptions
interfaceinterface ChartKeyboardMoveOptions { readonly step?: number; readonly shiftStep?: number;}shiftStepnumberstepnumber- Name
shiftStep- Kind
- property
- Type
number- Requirement
- optional
- Name
step- Kind
- property
- Type
number- Requirement
- optional
chartKeydownIntent
functionChartShell keyboard intent table for semantic chart navigation.
declare function chartKeydownIntent(key: string): ChartShellKeyboardIntent;keystringreturnChartShellKeyboardIntent- Name
key- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellKeyboardIntent- Requirement
- n/a
ChartLegendPosition
typetype ChartLegendPosition = "top" | "right" | "bottom";type ChartLegendViewConfig = { readonly ariaLabel?: string; readonly position?: ChartLegendPosition;};ariaLabelstringpositionChartLegendPosition- Name
ariaLabel- Kind
- property
- Type
string- Requirement
- optional
- Name
position- Kind
- property
- Type
ChartLegendPosition- Requirement
- optional
ChartLegendViewModel
typetype ChartLegendViewModel<TItem> = { readonly items: readonly (TItem & { readonly active: boolean; })[]; readonly position: ChartLegendPosition; readonly ariaLabel: string | undefined;};ariaLabelstring | undefineditemsreadonly (TItem & {
readonly active: boolean;
})[]positionChartLegendPosition- Name
ariaLabel- Kind
- property
- Type
string | undefined- Requirement
- required
- Name
items- Kind
- property
- Type
readonly (TItem & { readonly active: boolean; })[]- Requirement
- required
- Name
position- Kind
- property
- Type
ChartLegendPosition- Requirement
- required
ChartPoint2D
interfaceinterface ChartPoint2D { readonly x: number; readonly y: number;}xnumberynumber- Name
x- Kind
- property
- Type
number- Requirement
- required
- Name
y- Kind
- property
- Type
number- Requirement
- required
ChartPointerEventOptions
interfaceinterface ChartPointerEventOptions { readonly bounds?: ChartEventBounds; readonly plotOffset?: ChartPoint2D; readonly clamp?: boolean;}boundsChartEventBoundsclampbooleanplotOffsetChartPoint2D- Name
bounds- Kind
- property
- Type
ChartEventBounds- Requirement
- optional
- Name
clamp- Kind
- property
- Type
boolean- Requirement
- optional
- Name
plotOffset- Kind
- property
- Type
ChartPoint2D- Requirement
- optional
ChartPointerSource
typetype ChartPointerSource = "pointer" | "mouse" | "touch" | "keyboard" | "unknown";chartShellAnatomy
valueexport declare const chartShellAnatomy: { readonly scope: "chart-shell"; readonly parts: readonly ["root", "plot", "live-region"];};partsreadonly ["root", "plot", "live-region"]scope"chart-shell"- Name
parts- Kind
- property
- Type
readonly ["root", "plot", "live-region"]- Requirement
- required
- Name
scope- Kind
- property
- Type
"chart-shell"- Requirement
- required
ChartShellApi
interfaceinterface ChartShellApi { rootProps(): PartProps; plotProps(): PartProps; liveRegionProps(): PartProps; readonly tooltipOpen: boolean; readonly activeId: string | null; readonly selectedIds: readonly string[]; readonly brushDomain: ChartXDomain; readonly zoomDomain: ChartXDomain;}activeIdstring | nullbrushDomainChartXDomainliveRegionProps() => PartPropsplotProps() => PartPropsrootProps() => PartPropsselectedIdsreadonly string[]tooltipOpenbooleanzoomDomainChartXDomain- Name
activeId- Kind
- property
- Type
string | null- Requirement
- required
- Name
brushDomain- Kind
- property
- Type
ChartXDomain- Requirement
- required
- Name
liveRegionProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
plotProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
rootProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
selectedIds- Kind
- property
- Type
readonly string[]- Requirement
- required
- Name
tooltipOpen- Kind
- property
- Type
boolean- Requirement
- required
- Name
zoomDomain- Kind
- property
- Type
ChartXDomain- Requirement
- required
ChartShellCommand
typetype ChartShellCommand = ChartTooltipChildCommand | ChartLegendChildCommand | SelectionCommand | ChartBrushChildCommand | ChartZoomChildCommand | ChartKeyboardChildCommand;ChartShellConnectOptions
interfaceinterface ChartShellConnectOptions { readonly onSelectedIdsChange?: (detail: SelectionChangeDetail) => void; readonly onActiveTargetChange?: (detail: ChartActiveTargetChangeDetail) => void; readonly onOpenChange?: (detail: ChartTooltipOpenChangeDetail) => void; readonly onHiddenSeriesChange?: (detail: { readonly ids: readonly string[]; readonly reason: string; }) => void; readonly onBrushDomainChange?: (detail: { readonly domain: unknown; readonly reason: string; }) => void; readonly onZoomDomainChange?: (detail: { readonly domain: unknown; readonly reason: string; }) => void; readonly announce?: (key: string, args: { readonly [key: string]: string | number | null; }, politeness: "polite" | "assertive") => void;}announce(key: string, args: {
readonly [key: string]: string | number | null;
}, politeness: "polite" | "assertive") => voidonActiveTargetChange(detail: ChartActiveTargetChangeDetail) => voidonBrushDomainChange(detail: {
readonly domain: unknown;
readonly reason: string;
}) => voidonHiddenSeriesChange(detail: {
readonly ids: readonly string[];
readonly reason: string;
}) => voidonOpenChange(detail: ChartTooltipOpenChangeDetail) => voidonSelectedIdsChange(detail: SelectionChangeDetail) => voidonZoomDomainChange(detail: {
readonly domain: unknown;
readonly reason: string;
}) => void- Name
announce- Kind
- property
- Type
(key: string, args: { readonly [key: string]: string | number | null; }, politeness: "polite" | "assertive") => void- Requirement
- optional
- Name
onActiveTargetChange- Kind
- property
- Type
(detail: ChartActiveTargetChangeDetail) => void- Requirement
- optional
- Name
onBrushDomainChange- Kind
- property
- Type
(detail: { readonly domain: unknown; readonly reason: string; }) => void- Requirement
- optional
- Name
onHiddenSeriesChange- Kind
- property
- Type
(detail: { readonly ids: readonly string[]; readonly reason: string; }) => void- Requirement
- optional
- Name
onOpenChange- Kind
- property
- Type
(detail: ChartTooltipOpenChangeDetail) => void- Requirement
- optional
- Name
onSelectedIdsChange- Kind
- property
- Type
(detail: SelectionChangeDetail) => void- Requirement
- optional
- Name
onZoomDomainChange- Kind
- property
- Type
(detail: { readonly domain: unknown; readonly reason: string; }) => void- Requirement
- optional
ChartShellContext
typetype ChartShellContext = { readonly tooltip: ChartTooltipChildState | null; readonly legend: ChartLegendChildState | null; readonly selection: SelectionMachineState | null; readonly brush: ChartBrushChildState | null; readonly zoom: ChartZoomChildState | null; readonly keyboard: ChartKeyboardChildState | null;};brushChartBrushChildState | nullkeyboardChartKeyboardChildState | nulllegendChartLegendChildState | nullselectionSelectionMachineState | nulltooltipChartTooltipChildState | nullzoomChartZoomChildState | null- Name
brush- Kind
- property
- Type
ChartBrushChildState | null- Requirement
- required
- Name
keyboard- Kind
- property
- Type
ChartKeyboardChildState | null- Requirement
- required
- Name
legend- Kind
- property
- Type
ChartLegendChildState | null- Requirement
- required
- Name
selection- Kind
- property
- Type
SelectionMachineState | null- Requirement
- required
- Name
tooltip- Kind
- property
- Type
ChartTooltipChildState | null- Requirement
- required
- Name
zoom- Kind
- property
- Type
ChartZoomChildState | null- Requirement
- required
ChartShellController
interfaceinterface ChartShellController { readonly listenerCount: () => number; attach(service: ChartShellService): void; start(): void; update(host: Partial<ChartShellControllerHost>): void; destroy(): void;}attach(service: ChartShellService) => voiddestroy() => voidlistenerCount() => numberstart() => voidupdate(host: Partial<ChartShellControllerHost>) => void- Name
attach- Kind
- method
- Type
(service: ChartShellService) => void- Requirement
- required
- Name
destroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
listenerCount- Kind
- property
- Type
() => number- Requirement
- required
- Name
start- Kind
- method
- Type
() => void- Requirement
- required
- Name
update- Kind
- method
- Type
(host: Partial<ChartShellControllerHost>) => void- Requirement
- required
ChartShellControllerHost
interfaceinterface ChartShellControllerHost { readonly getRoot?: () => HTMLElement | null; readonly getPlot?: () => HTMLElement | null; readonly hitTest?: (event: NormalizedChartPointerEvent) => string | null; readonly toDomain?: (event: NormalizedChartPointerEvent) => ChartDomainScalar | null; readonly bounds?: () => ChartEventBounds | undefined; readonly plotOffset?: () => ChartPoint2D | undefined;}bounds() => ChartEventBounds | undefinedgetPlot() => HTMLElement | nullgetRoot() => HTMLElement | nullhitTest(event: NormalizedChartPointerEvent) => string | nullplotOffset() => ChartPoint2D | undefinedtoDomain(event: NormalizedChartPointerEvent) => ChartDomainScalar | null- Name
bounds- Kind
- property
- Type
() => ChartEventBounds | undefined- Requirement
- optional
- Name
getPlot- Kind
- property
- Type
() => HTMLElement | null- Requirement
- optional
- Name
getRoot- Kind
- property
- Type
() => HTMLElement | null- Requirement
- optional
- Name
hitTest- Kind
- property
- Type
(event: NormalizedChartPointerEvent) => string | null- Requirement
- optional
- Name
plotOffset- Kind
- property
- Type
() => ChartPoint2D | undefined- Requirement
- optional
- Name
toDomain- Kind
- property
- Type
(event: NormalizedChartPointerEvent) => ChartDomainScalar | null- Requirement
- optional
ChartShellEvent
typetype ChartShellEvent = ChartTooltipChildEvent | ChartLegendChildEvent | SelectionEvent | ChartBrushChildEvent | ChartZoomChildEvent | ChartKeyboardChildEvent;chartShellEventsFromKey
functiondeclare function chartShellEventsFromKey(key: string): readonly ChartShellEvent[];keystringreturnreadonly ChartShellEvent[]- Name
key- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
readonly ChartShellEvent[]- Requirement
- n/a
ChartShellInput
typetype ChartShellInput = { readonly children?: readonly string[]; readonly tooltip?: ChartTooltipChildInput; readonly selection?: SelectionInput; readonly legend?: ChartLegendChildInput; readonly brush?: ChartBrushChildInput; readonly zoom?: ChartZoomChildInput; /** Route a valid brush commit through the existing zoom child. @default false */ readonly zoomOnBrush?: boolean; readonly keyboard?: ChartKeyboardChildInput;};brushChartBrushChildInputchildrenreadonly string[]keyboardChartKeyboardChildInputlegendChartLegendChildInputselectionSelectionInputtooltipChartTooltipChildInputzoomChartZoomChildInputzoomOnBrushboolean- Name
brush- Kind
- property
- Type
ChartBrushChildInput- Requirement
- optional
- Description
- —
- Name
children- Kind
- property
- Type
readonly string[]- Requirement
- optional
- Description
- —
- Name
keyboard- Kind
- property
- Type
ChartKeyboardChildInput- Requirement
- optional
- Description
- —
- Name
legend- Kind
- property
- Type
ChartLegendChildInput- Requirement
- optional
- Description
- —
- Name
selection- Kind
- property
- Type
SelectionInput- Requirement
- optional
- Description
- —
- Name
tooltip- Kind
- property
- Type
ChartTooltipChildInput- Requirement
- optional
- Description
- —
- Name
zoom- Kind
- property
- Type
ChartZoomChildInput- Requirement
- optional
- Description
- —
- Name
zoomOnBrush- Kind
- property
- Type
boolean- Requirement
- optional
- Description
- Route a valid brush commit through the existing zoom child.
chartShellInputFromChildren
functiondeclare function chartShellInputFromChildren(options: { readonly children: readonly string[]; readonly orderedIds?: readonly string[]; readonly selectionMode?: SelectionMode; readonly selectedIds?: SelectionValue; readonly defaultSelectedIds?: SelectionValue; readonly disabledIds?: readonly string[]; readonly hiddenSeries?: readonly string[]; readonly defaultHiddenSeries?: readonly string[]; readonly brushDomain?: ChartXDomain; readonly defaultBrushDomain?: ChartXDomain; readonly zoomDomain?: ChartXDomain; readonly defaultZoomDomain?: ChartXDomain; /** Full caller x-domain used to clamp brush and zoom requests. */ readonly bounds?: ChartXDomain; readonly zoomOnBrush?: boolean;}): ChartShellInput;options{
readonly children: readonly string[];
readonly orderedIds?: readonly string[];
readonly selectionMode?: SelectionMode;
readonly selectedIds?: SelectionValue;
readonly defaultSelectedIds?: SelectionValue;
readonly disabledIds?: readonly string[];
readonly hiddenSeries?: readonly string[];
readonly defaultHiddenSeries?: readonly string[];
readonly brushDomain?: ChartXDomain;
readonly defaultBrushDomain?: ChartXDomain;
readonly zoomDomain?: ChartXDomain;
readonly defaultZoomDomain?: ChartXDomain;
/** Full caller x-domain used to clamp brush and zoom requests. */
readonly bounds?: ChartXDomain;
readonly zoomOnBrush?: boolean;
}returnChartShellInput- Name
options- Kind
- parameter
- Type
{ readonly children: readonly string[]; readonly orderedIds?: readonly string[]; readonly selectionMode?: SelectionMode; readonly selectedIds?: SelectionValue; readonly defaultSelectedIds?: SelectionValue; readonly disabledIds?: readonly string[]; readonly hiddenSeries?: readonly string[]; readonly defaultHiddenSeries?: readonly string[]; readonly brushDomain?: ChartXDomain; readonly defaultBrushDomain?: ChartXDomain; readonly zoomDomain?: ChartXDomain; readonly defaultZoomDomain?: ChartXDomain; /** Full caller x-domain used to clamp brush and zoom requests. */ readonly bounds?: ChartXDomain; readonly zoomOnBrush?: boolean; }- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellInput- Requirement
- n/a
ChartShellKeyboardController
interfaceinterface ChartShellKeyboardController { readonly listenerCount: () => number; attach(service: ChartShellService): void; start(): void; destroy(): void;}attach(service: ChartShellService) => voiddestroy() => voidlistenerCount() => numberstart() => void- Name
attach- Kind
- method
- Type
(service: ChartShellService) => void- Requirement
- required
- Name
destroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
listenerCount- Kind
- property
- Type
() => number- Requirement
- required
- Name
start- Kind
- method
- Type
() => void- Requirement
- required
ChartShellKeyboardControllerHost
interfaceinterface ChartShellKeyboardControllerHost { readonly getTarget: () => EventTarget | null;}getTarget() => EventTarget | null- Name
getTarget- Kind
- property
- Type
() => EventTarget | null- Requirement
- required
type ChartShellKeyboardIntent = "escape" | 1 | -1 | null;chartShellKeyEffect
functiondeclare function chartShellKeyEffect(key: string): ChartShellKeyEffect;keystringreturnChartShellKeyEffect- Name
key- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellKeyEffect- Requirement
- n/a
ChartShellKeyEffect
typetype ChartShellKeyEffect = { readonly intent: "escape" | 1 | -1; readonly preventDefault: boolean;} | null;chartShellMachine
valueexport declare const chartShellMachine: ChartShellMachine;ChartShellMount
interfaceinterface ChartShellMount { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly controller: ChartShellController; readonly root: HTMLElement; destroy(): void;}connectorChartShellApicontrollerChartShellControllerdestroy() => voidrootHTMLElementserviceChartShellService- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
controller- Kind
- property
- Type
ChartShellController- Requirement
- required
- Name
destroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
root- Kind
- property
- Type
HTMLElement- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
ChartShellPart
typetype ChartShellPart = (typeof chartShellAnatomy.parts)[number];chartShellSelectors
valueexport declare const chartShellSelectors: { tooltip: (snapshot: ChartShellSnapshot) => ChartTooltipChildState | null; legend: (snapshot: ChartShellSnapshot) => ChartLegendChildState | null; selection: (snapshot: ChartShellSnapshot) => SelectionMachineState | null; brush: (snapshot: ChartShellSnapshot) => ChartBrushChildState | null; zoom: (snapshot: ChartShellSnapshot) => ChartZoomChildState | null; keyboard: (snapshot: ChartShellSnapshot) => ChartKeyboardChildState | null; tooltipOpen: (snapshot: ChartShellSnapshot) => boolean; candidateId: (snapshot: ChartShellSnapshot) => string | null; activeId: (snapshot: ChartShellSnapshot) => string | null; selectedIds: (snapshot: ChartShellSnapshot) => SelectionValue; hiddenSeries: (snapshot: ChartShellSnapshot) => readonly string[]; brushDomain: (snapshot: ChartShellSnapshot) => { readonly start: ChartDomainScalar; readonly end: ChartDomainScalar; } | null; brushDraft: (snapshot: ChartShellSnapshot) => { readonly start: ChartDomainScalar; readonly end: ChartDomainScalar; } | null; zoomDomain: (snapshot: ChartShellSnapshot) => { readonly start: ChartDomainScalar; readonly end: ChartDomainScalar; } | null; keyboardActiveIndex: (snapshot: ChartShellSnapshot) => number | null; keyboardActiveId: (snapshot: ChartShellSnapshot) => string | null; enabledChildren: (snapshot: ChartShellSnapshot) => readonly ChartShellChildName[];};activeId(snapshot: ChartShellSnapshot) => string | nullbrush(snapshot: ChartShellSnapshot) => ChartBrushChildState | nullbrushDomain(snapshot: ChartShellSnapshot) => {
readonly start: ChartDomainScalar;
readonly end: ChartDomainScalar;
} | nullbrushDraft(snapshot: ChartShellSnapshot) => {
readonly start: ChartDomainScalar;
readonly end: ChartDomainScalar;
} | nullcandidateId(snapshot: ChartShellSnapshot) => string | nullenabledChildren(snapshot: ChartShellSnapshot) => readonly ChartShellChildName[]keyboard(snapshot: ChartShellSnapshot) => ChartKeyboardChildState | nullkeyboardActiveId(snapshot: ChartShellSnapshot) => string | nullkeyboardActiveIndex(snapshot: ChartShellSnapshot) => number | nulllegend(snapshot: ChartShellSnapshot) => ChartLegendChildState | nullselectedIds(snapshot: ChartShellSnapshot) => SelectionValueselection(snapshot: ChartShellSnapshot) => SelectionMachineState | nulltooltip(snapshot: ChartShellSnapshot) => ChartTooltipChildState | null- Name
activeId- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => string | null- Requirement
- required
- Name
brush- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => ChartBrushChildState | null- Requirement
- required
- Name
brushDomain- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => { readonly start: ChartDomainScalar; readonly end: ChartDomainScalar; } | null- Requirement
- required
- Name
brushDraft- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => { readonly start: ChartDomainScalar; readonly end: ChartDomainScalar; } | null- Requirement
- required
- Name
candidateId- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => string | null- Requirement
- required
- Name
enabledChildren- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => readonly ChartShellChildName[]- Requirement
- required
- Name
hiddenSeries- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => readonly string[]- Requirement
- required
- Name
keyboard- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => ChartKeyboardChildState | null- Requirement
- required
- Name
keyboardActiveId- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => string | null- Requirement
- required
- Name
keyboardActiveIndex- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => number | null- Requirement
- required
- Name
legend- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => ChartLegendChildState | null- Requirement
- required
- Name
selectedIds- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => SelectionValue- Requirement
- required
- Name
selection- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => SelectionMachineState | null- Requirement
- required
- Name
tooltip- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => ChartTooltipChildState | null- Requirement
- required
- Name
tooltipOpen- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => boolean- Requirement
- required
- Name
zoom- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => ChartZoomChildState | null- Requirement
- required
- Name
zoomDomain- Kind
- property
- Type
(snapshot: ChartShellSnapshot) => { readonly start: ChartDomainScalar; readonly end: ChartDomainScalar; } | null- Requirement
- required
ChartShellService
typetype ChartShellService = Service<ChartShellInput, ChartShellStateValue, ChartShellContext, ChartShellEvent, ChartShellCommand>;ChartShellSnapshot
typetype ChartShellSnapshot = Snapshot<ChartShellStateValue, ChartShellContext>;ChartShellStateValue
typetype ChartShellStateValue = "ready";type ChartShellTargetReason = "pointer" | "focus" | "keyboard";type ChartTooltipOpenChangeDetail = { readonly open: boolean; readonly reason: string;};openbooleanreasonstring- Name
open- Kind
- property
- Type
boolean- Requirement
- required
- Name
reason- Kind
- property
- Type
string- Requirement
- required
ChartXDomain
typetype ChartXDomain = { readonly start: ChartDomainScalar; readonly end: ChartDomainScalar;} | null;type ChartXDomainChangeDetail = { readonly domain: ChartXDomain; readonly reason: ChartDomainChangeReason;};domainChartXDomainreasonChartDomainChangeReason- Name
domain- Kind
- property
- Type
ChartXDomain- Requirement
- required
- Name
reason- Kind
- property
- Type
ChartDomainChangeReason- Requirement
- required
clampPointToBounds
functiondeclare function clampPointToBounds(point: ChartPoint2D, bounds: Pick<ChartEventBounds, "width" | "height">): ChartPoint2D;pointChartPoint2DboundsPick<ChartEventBounds, "width" | "height">returnChartPoint2D- Name
point- Kind
- parameter
- Type
ChartPoint2D- Requirement
- required
- Name
bounds- Kind
- parameter
- Type
Pick<ChartEventBounds, "width" | "height">- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartPoint2D- Requirement
- n/a
connectChartShell
functiondeclare function connectChartShell(service: ChartShellService, scope: PartScope, _options?: ChartShellConnectOptions): ChartShellApi;serviceChartShellServicescopePartScope_optionsChartShellConnectOptionsreturnChartShellApi- Name
service- Kind
- parameter
- Type
ChartShellService- Requirement
- required
- Name
scope- Kind
- parameter
- Type
PartScope- Requirement
- required
- Name
_options- Kind
- parameter
- Type
ChartShellConnectOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
ChartShellApi- Requirement
- n/a
createChartShellController
functiondeclare function createChartShellController(host: ChartShellControllerHost): ChartShellController;hostChartShellControllerHostreturnChartShellController- Name
host- Kind
- parameter
- Type
ChartShellControllerHost- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellController- Requirement
- n/a
createChartShellKeyboardController
functiondeclare function createChartShellKeyboardController(host: ChartShellKeyboardControllerHost): ChartShellKeyboardController;hostChartShellKeyboardControllerHostreturnChartShellKeyboardController- Name
host- Kind
- parameter
- Type
ChartShellKeyboardControllerHost- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellKeyboardController- Requirement
- n/a
createDragController
functiondeclare function createDragController(options?: DragControllerOptions): DragController;optionsDragControllerOptionsreturnDragController- Name
options- Kind
- parameter
- Type
DragControllerOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
DragController- Requirement
- n/a
type CrosshairBehaviorConfig = { readonly x?: boolean; readonly y?: boolean;};xbooleanyboolean- Name
x- Kind
- property
- Type
boolean- Requirement
- optional
- Name
y- Kind
- property
- Type
boolean- Requirement
- optional
DragController
interfaceinterface DragController { getState(): DragControllerState; start(event: unknown): DragControllerState; move(event: unknown): DragControllerState; end(event?: unknown): DragControllerState; cancel(): DragControllerState; keyboardMove(event: unknown): DragControllerState;}cancel() => DragControllerStateend(event?: unknown) => DragControllerStategetState() => DragControllerStatekeyboardMove(event: unknown) => DragControllerStatemove(event: unknown) => DragControllerStatestart(event: unknown) => DragControllerState- Name
cancel- Kind
- method
- Type
() => DragControllerState- Requirement
- required
- Name
end- Kind
- method
- Type
(event?: unknown) => DragControllerState- Requirement
- required
- Name
getState- Kind
- method
- Type
() => DragControllerState- Requirement
- required
- Name
keyboardMove- Kind
- method
- Type
(event: unknown) => DragControllerState- Requirement
- required
- Name
move- Kind
- method
- Type
(event: unknown) => DragControllerState- Requirement
- required
- Name
start- Kind
- method
- Type
(event: unknown) => DragControllerState- Requirement
- required
DragControllerOptions
interfaceinterface DragControllerOptions { readonly bounds?: ChartEventBounds; readonly plotOffset?: ChartPoint2D; readonly clamp?: boolean; readonly capturePointer?: boolean; readonly keyboardStep?: number; readonly keyboardShiftStep?: number; readonly constrain?: (point: DragPoint, state: DragControllerState) => DragPoint; readonly onStart?: (point: DragPoint, state: DragControllerState) => void; readonly onMove?: (point: DragPoint, state: DragControllerState) => void; readonly onEnd?: (point: DragPoint, state: DragControllerState) => void; readonly onCancel?: (state: DragControllerState) => void;}boundsChartEventBoundscapturePointerbooleanclampbooleanconstrain(point: DragPoint, state: DragControllerState) => DragPointkeyboardShiftStepnumberkeyboardStepnumberonCancel(state: DragControllerState) => voidonEnd(point: DragPoint, state: DragControllerState) => voidonMove(point: DragPoint, state: DragControllerState) => voidonStart(point: DragPoint, state: DragControllerState) => voidplotOffsetChartPoint2D- Name
bounds- Kind
- property
- Type
ChartEventBounds- Requirement
- optional
- Name
capturePointer- Kind
- property
- Type
boolean- Requirement
- optional
- Name
clamp- Kind
- property
- Type
boolean- Requirement
- optional
- Name
constrain- Kind
- property
- Type
(point: DragPoint, state: DragControllerState) => DragPoint- Requirement
- optional
- Name
keyboardShiftStep- Kind
- property
- Type
number- Requirement
- optional
- Name
keyboardStep- Kind
- property
- Type
number- Requirement
- optional
- Name
onCancel- Kind
- property
- Type
(state: DragControllerState) => void- Requirement
- optional
- Name
onEnd- Kind
- property
- Type
(point: DragPoint, state: DragControllerState) => void- Requirement
- optional
- Name
onMove- Kind
- property
- Type
(point: DragPoint, state: DragControllerState) => void- Requirement
- optional
- Name
onStart- Kind
- property
- Type
(point: DragPoint, state: DragControllerState) => void- Requirement
- optional
- Name
plotOffset- Kind
- property
- Type
ChartPoint2D- Requirement
- optional
DragControllerState
interfaceinterface DragControllerState { readonly phase: DragPhase; readonly dragging: boolean; readonly origin: DragPoint | null; readonly point: DragPoint | null;}draggingbooleanoriginDragPoint | nullphaseDragPhasepointDragPoint | null- Name
dragging- Kind
- property
- Type
boolean- Requirement
- required
- Name
origin- Kind
- property
- Type
DragPoint | null- Requirement
- required
- Name
phase- Kind
- property
- Type
DragPhase- Requirement
- required
- Name
point- Kind
- property
- Type
DragPoint | null- Requirement
- required
DragPhase
typetype DragPhase = "idle" | "start" | "move" | "end" | "cancel";DragPoint
interfaceinterface DragPoint extends ChartPoint2D { readonly clientX: number; readonly clientY: number; readonly dx: number; readonly dy: number; readonly originX: number; readonly originY: number; readonly plotX: number; readonly plotY: number; readonly pointerId?: number; readonly pointerType?: string; readonly source: NormalizedChartPointerEvent["source"] | "keyboard";}clientXnumberclientYnumberdxnumberdynumberoriginXnumberoriginYnumberplotXnumberplotYnumberpointerIdnumberpointerTypestringsourceNormalizedChartPointerEvent["source"] | "keyboard"- Name
clientX- Kind
- property
- Type
number- Requirement
- required
- Name
clientY- Kind
- property
- Type
number- Requirement
- required
- Name
dx- Kind
- property
- Type
number- Requirement
- required
- Name
dy- Kind
- property
- Type
number- Requirement
- required
- Name
originX- Kind
- property
- Type
number- Requirement
- required
- Name
originY- Kind
- property
- Type
number- Requirement
- required
- Name
plotX- Kind
- property
- Type
number- Requirement
- required
- Name
plotY- Kind
- property
- Type
number- Requirement
- required
- Name
pointerId- Kind
- property
- Type
number- Requirement
- optional
- Name
pointerType- Kind
- property
- Type
string- Requirement
- optional
- Name
source- Kind
- property
- Type
NormalizedChartPointerEvent["source"] | "keyboard"- Requirement
- required
focusFirstChartTarget
functiondeclare function focusFirstChartTarget(service: ChartShellService, prepared: PreparedChartNavigator): string | null;serviceChartShellServicepreparedPreparedChartNavigatorreturnstring | null- Name
service- Kind
- parameter
- Type
ChartShellService- Requirement
- required
- Name
prepared- Kind
- parameter
- Type
PreparedChartNavigator- Requirement
- required
- Name
return- Kind
- return value
- Type
string | null- Requirement
- n/a
keyboardDeltaFromEvent
functiondeclare function keyboardDeltaFromEvent(event: unknown, options?: ChartKeyboardMoveOptions): ChartPoint2D | null;eventunknownoptionsChartKeyboardMoveOptionsreturnChartPoint2D | null- Name
event- Kind
- parameter
- Type
unknown- Requirement
- required
- Name
options- Kind
- parameter
- Type
ChartKeyboardMoveOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
ChartPoint2D | null- Requirement
- n/a
LegendConfig
typetype LegendConfig = ChartLegendViewConfig & { readonly interactive?: boolean; readonly swatchSize?: number;};interactivebooleanswatchSizenumber- Name
interactive- Kind
- property
- Type
boolean- Requirement
- optional
- Name
swatchSize- Kind
- property
- Type
number- Requirement
- optional
LegendPosition
typetype LegendPosition = ChartLegendPosition;legendViewModel
functionPure connector derivation for the ChartShell legend view model.
declare function legendViewModel<TItem extends { id: string;}>(items: readonly TItem[], hiddenSeries: readonly string[], config: ChartLegendViewConfig | undefined): ChartLegendViewModel<TItem>;itemsreadonly TItem[]configChartLegendViewConfig | undefinedreturnChartLegendViewModel<TItem>- Name
items- Kind
- parameter
- Type
readonly TItem[]- Requirement
- required
- Name
hiddenSeries- Kind
- parameter
- Type
readonly string[]- Requirement
- required
- Name
config- Kind
- parameter
- Type
ChartLegendViewConfig | undefined- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartLegendViewModel<TItem>- Requirement
- n/a
localChartPoint
functiondeclare function localChartPoint(event: unknown, options?: ChartPointerEventOptions): ChartPoint2D | null;eventunknownoptionsChartPointerEventOptionsreturnChartPoint2D | null- Name
event- Kind
- parameter
- Type
unknown- Requirement
- required
- Name
options- Kind
- parameter
- Type
ChartPointerEventOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
ChartPoint2D | null- Requirement
- n/a
mountChartShell
functiondeclare function mountChartShell(container: HTMLElement, options?: MountChartShellOptions): ChartShellMount;containerHTMLElementoptionsMountChartShellOptionsreturnChartShellMount- Name
container- Kind
- parameter
- Type
HTMLElement- Requirement
- required
- Name
options- Kind
- parameter
- Type
MountChartShellOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
ChartShellMount- Requirement
- n/a
MountChartShellOptions
interfaceinterface MountChartShellOptions extends ChartShellInput, ChartShellConnectOptions { readonly scheduler?: Scheduler; readonly host?: Partial<ChartShellControllerHost>;}hostPartial<ChartShellControllerHost>schedulerScheduler- Name
host- Kind
- property
- Type
Partial<ChartShellControllerHost>- Requirement
- optional
- Name
scheduler- Kind
- property
- Type
Scheduler- Requirement
- optional
normalizeChartPointerEvent
functiondeclare function normalizeChartPointerEvent(event: unknown, options?: ChartPointerEventOptions): NormalizedChartPointerEvent | null;eventunknownoptionsChartPointerEventOptionsreturnNormalizedChartPointerEvent | null- Name
event- Kind
- parameter
- Type
unknown- Requirement
- required
- Name
options- Kind
- parameter
- Type
ChartPointerEventOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
NormalizedChartPointerEvent | null- Requirement
- n/a
NormalizedChartPointerEvent
interfaceinterface NormalizedChartPointerEvent extends ChartPoint2D { readonly source: ChartPointerSource; readonly clientX: number; readonly clientY: number; readonly plotX: number; readonly plotY: number; readonly inside: boolean; readonly bounds: ChartEventBounds; readonly pointerId?: number; readonly pointerType?: string; readonly buttons?: number; readonly altKey: boolean; readonly ctrlKey: boolean; readonly metaKey: boolean; readonly shiftKey: boolean;}altKeybooleanboundsChartEventBoundsclientXnumberclientYnumberctrlKeybooleaninsidebooleanmetaKeybooleanplotXnumberplotYnumberpointerIdnumberpointerTypestringshiftKeybooleansourceChartPointerSource- Name
altKey- Kind
- property
- Type
boolean- Requirement
- required
- Name
bounds- Kind
- property
- Type
ChartEventBounds- Requirement
- required
- Name
buttons- Kind
- property
- Type
number- Requirement
- optional
- Name
clientX- Kind
- property
- Type
number- Requirement
- required
- Name
clientY- Kind
- property
- Type
number- Requirement
- required
- Name
ctrlKey- Kind
- property
- Type
boolean- Requirement
- required
- Name
inside- Kind
- property
- Type
boolean- Requirement
- required
- Name
metaKey- Kind
- property
- Type
boolean- Requirement
- required
- Name
plotX- Kind
- property
- Type
number- Requirement
- required
- Name
plotY- Kind
- property
- Type
number- Requirement
- required
- Name
pointerId- Kind
- property
- Type
number- Requirement
- optional
- Name
pointerType- Kind
- property
- Type
string- Requirement
- optional
- Name
shiftKey- Kind
- property
- Type
boolean- Requirement
- required
- Name
source- Kind
- property
- Type
ChartPointerSource- Requirement
- required
plotChartPoint
functiondeclare function plotChartPoint(event: unknown, options?: ChartPointerEventOptions): ChartPoint2D | null;eventunknownoptionsChartPointerEventOptionsreturnChartPoint2D | null- Name
event- Kind
- parameter
- Type
unknown- Requirement
- required
- Name
options- Kind
- parameter
- Type
ChartPointerEventOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
ChartPoint2D | null- Requirement
- n/a
pointInsideBounds
functiondeclare function pointInsideBounds(point: ChartPoint2D, bounds: Pick<ChartEventBounds, "width" | "height">): boolean;pointChartPoint2DboundsPick<ChartEventBounds, "width" | "height">returnboolean- Name
point- Kind
- parameter
- Type
ChartPoint2D- Requirement
- required
- Name
bounds- Kind
- parameter
- Type
Pick<ChartEventBounds, "width" | "height">- Requirement
- required
- Name
return- Kind
- return value
- Type
boolean- Requirement
- n/a
runChartShellCommand
functiondeclare function runChartShellCommand(command: ChartShellCommand, _scope: PartScope, options?: ChartShellConnectOptions): void;commandChartShellCommand_scopePartScopeoptionsChartShellConnectOptionsreturnvoid- Name
command- Kind
- parameter
- Type
ChartShellCommand- Requirement
- required
- Name
_scope- Kind
- parameter
- Type
PartScope- Requirement
- required
- Name
options- Kind
- parameter
- Type
ChartShellConnectOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
void- Requirement
- n/a
sameChartXDomain
functiondeclare function sameChartXDomain(left: ChartXDomain, right: ChartXDomain): boolean;leftChartXDomainrightChartXDomainreturnboolean- Name
left- Kind
- parameter
- Type
ChartXDomain- Requirement
- required
- Name
right- Kind
- parameter
- Type
ChartXDomain- Requirement
- required
- Name
return- Kind
- return value
- Type
boolean- Requirement
- n/a
type SelectionChangeDetail = { readonly selectedIds: SelectionValue; readonly reason: SelectionChangeReason;};reasonSelectionChangeReasonselectedIdsSelectionValue- Name
reason- Kind
- property
- Type
SelectionChangeReason- Requirement
- required
- Name
selectedIds- Kind
- property
- Type
SelectionValue- Requirement
- required
selectionMachine
valueexport declare const selectionMachine: SelectionMachine;SelectionMode
typetype SelectionMode = "none" | "single" | "multiple";SelectionValue
typetype SelectionValue = readonly string[];sendChartShellTarget
functionShared target sender used by every styled chart adapter.
declare function sendChartShellTarget(service: ChartShellService, id: string | null, reason: ChartShellTargetReason): void;serviceChartShellServiceidstring | nullreasonChartShellTargetReasonreturnvoid- Name
service- Kind
- parameter
- Type
ChartShellService- Requirement
- required
- Name
id- Kind
- parameter
- Type
string | null- Requirement
- required
- Name
reason- Kind
- parameter
- Type
ChartShellTargetReason- Requirement
- required
- Name
return- Kind
- return value
- Type
void- Requirement
- n/a
type TooltipBehaviorConfig = { readonly placement?: TooltipPlacement; readonly offset?: number; readonly maxDistance?: number;};maxDistancenumberoffsetnumberplacementTooltipPlacement- Name
maxDistance- Kind
- property
- Type
number- Requirement
- optional
- Name
offset- Kind
- property
- Type
number- Requirement
- optional
- Name
placement- Kind
- property
- Type
TooltipPlacement- Requirement
- optional
TooltipPlacement
typetype TooltipPlacement = "top" | "right" | "bottom" | "left";Framework adapters
Each panel keeps its adapter's public vocabulary. React compound exports, Vue composables, standalone Angular declarations, Svelte components, and Solid hooks stay native to their framework.
React imports
import { ChartShell, LiveRegion, Plot, Root } from "@grassroot/ui-headless-react/chart-shell";Vue imports
<script setup lang="ts">import { ChartShellLiveRegion, ChartShellPlot, ChartShellRoot } from "@grassroot/ui-headless-vue/chart-shell";</script>Angular imports
import { Component } from "@angular/core";import { GR_CHART_SHELL_DECLARATIONS } from "@grassroot/ui-headless-angular/chart-shell"; @Component({ standalone: true, imports: [GR_CHART_SHELL_DECLARATIONS], template: `<!-- compose the chart-shell parts here -->` })export class Example {}Svelte imports
<script lang="ts"> import { ChartShellLiveRegion, ChartShellPlot, ChartShellRoot } from "@grassroot/ui-headless-svelte/chart-shell";</script>Solid imports
import { ChartShellLiveRegion, ChartShellPlot, ChartShellRoot } from "@grassroot/ui-headless-solid/chart-shell";@grassroot/ui-headless-react/chart-shell
React adapter
ChartShell
valueexport declare const ChartShell: { Root: import("react").ForwardRefExoticComponent<ChartShellRootProps & import("react").RefAttributes<HTMLDivElement>>; Plot: import("react").ForwardRefExoticComponent<ChartShellPlotProps & import("react").RefAttributes<HTMLDivElement>>; LiveRegion: import("react").ForwardRefExoticComponent<ChartShellLiveRegionProps & import("react").RefAttributes<HTMLDivElement>>;};LiveRegionimport("react").ForwardRefExoticComponent<ChartShellLiveRegionProps & import("react").RefAttributes<HTMLDivElement>>Plotimport("react").ForwardRefExoticComponent<ChartShellPlotProps & import("react").RefAttributes<HTMLDivElement>>Rootimport("react").ForwardRefExoticComponent<ChartShellRootProps & import("react").RefAttributes<HTMLDivElement>>- Name
LiveRegion- Kind
- property
- Type
import("react").ForwardRefExoticComponent<ChartShellLiveRegionProps & import("react").RefAttributes<HTMLDivElement>>- Requirement
- required
- Name
Plot- Kind
- property
- Type
import("react").ForwardRefExoticComponent<ChartShellPlotProps & import("react").RefAttributes<HTMLDivElement>>- Requirement
- required
- Name
Root- Kind
- property
- Type
import("react").ForwardRefExoticComponent<ChartShellRootProps & import("react").RefAttributes<HTMLDivElement>>- Requirement
- required
ChartShellContext
valueexport declare const ChartShellContext: import("react").Context<ChartShellContextValue | null>;propsPreturnReactNode- Name
props- Kind
- parameter
- Type
P- Requirement
- required
- Name
return- Kind
- return value
- Type
ReactNode- Requirement
- n/a
ChartShellContextValue
interfaceinterface ChartShellContextValue { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellService- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
ChartShellLiveRegionProps
interfaceinterface ChartShellLiveRegionProps extends ComponentPropsWithoutRef<"div"> { readonly asChild?: boolean; readonly children?: ReactNode;}asChildbooleanchildrenReactNode- Name
asChild- Kind
- property
- Type
boolean- Requirement
- optional
- Name
children- Kind
- property
- Type
ReactNode- Requirement
- optional
ChartShellPlotProps
interfaceinterface ChartShellPlotProps extends ComponentPropsWithoutRef<"div"> { readonly asChild?: boolean; readonly children?: ReactNode;}asChildbooleanchildrenReactNode- Name
asChild- Kind
- property
- Type
boolean- Requirement
- optional
- Name
children- Kind
- property
- Type
ReactNode- Requirement
- optional
ChartShellRootProps
interfaceinterface ChartShellRootProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange">, UseChartShellOptions { readonly asChild?: boolean; readonly children?: ReactNode; readonly childNames?: ChartShellInput["children"]; readonly tooltip?: ChartShellInput["tooltip"]; readonly selection?: ChartShellInput["selection"]; readonly legend?: ChartShellInput["legend"]; readonly brush?: ChartShellInput["brush"]; readonly zoom?: ChartShellInput["zoom"]; readonly keyboard?: ChartShellInput["keyboard"];}asChildbooleanbrushChartShellInput["brush"]childNamesChartShellInput["children"]childrenReactNodekeyboardChartShellInput["keyboard"]legendChartShellInput["legend"]selectionChartShellInput["selection"]tooltipChartShellInput["tooltip"]zoomChartShellInput["zoom"]- Name
asChild- Kind
- property
- Type
boolean- Requirement
- optional
- Name
brush- Kind
- property
- Type
ChartShellInput["brush"]- Requirement
- optional
- Name
childNames- Kind
- property
- Type
ChartShellInput["children"]- Requirement
- optional
- Name
children- Kind
- property
- Type
ReactNode- Requirement
- optional
- Name
keyboard- Kind
- property
- Type
ChartShellInput["keyboard"]- Requirement
- optional
- Name
legend- Kind
- property
- Type
ChartShellInput["legend"]- Requirement
- optional
- Name
selection- Kind
- property
- Type
ChartShellInput["selection"]- Requirement
- optional
- Name
tooltip- Kind
- property
- Type
ChartShellInput["tooltip"]- Requirement
- optional
- Name
zoom- Kind
- property
- Type
ChartShellInput["zoom"]- Requirement
- optional
LiveRegion
valueexport declare const LiveRegion: import("react").ForwardRefExoticComponent<ChartShellLiveRegionProps & import("react").RefAttributes<HTMLDivElement>>;propsPreturnReactNode- Name
props- Kind
- parameter
- Type
P- Requirement
- required
- Name
return- Kind
- return value
- Type
ReactNode- Requirement
- n/a
Plot
valueexport declare const Plot: import("react").ForwardRefExoticComponent<ChartShellPlotProps & import("react").RefAttributes<HTMLDivElement>>;propsPreturnReactNode- Name
props- Kind
- parameter
- Type
P- Requirement
- required
- Name
return- Kind
- return value
- Type
ReactNode- Requirement
- n/a
Root
valueexport declare const Root: import("react").ForwardRefExoticComponent<ChartShellRootProps & import("react").RefAttributes<HTMLDivElement>>;propsPreturnReactNode- Name
props- Kind
- parameter
- Type
P- Requirement
- required
- Name
return- Kind
- return value
- Type
ReactNode- Requirement
- n/a
useChartShell
functiondeclare function useChartShell(input?: ChartShellInput, options?: UseChartShellOptions): UseChartShellResult;inputChartShellInputoptionsUseChartShellOptionsreturnUseChartShellResult- Name
input- Kind
- parameter
- Type
ChartShellInput- Requirement
- optional
- Name
options- Kind
- parameter
- Type
UseChartShellOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseChartShellResult- Requirement
- n/a
useChartShellContext
functiondeclare function useChartShellContext(partName: string): ChartShellContextValue;partNamestringreturnChartShellContextValue- Name
partName- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellContextValue- Requirement
- n/a
UseChartShellOptions
interfaceinterface UseChartShellOptions extends ChartShellConnectOptions { readonly scheduler?: Scheduler; readonly host?: Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>;}hostPartial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>schedulerScheduler- Name
host- Kind
- property
- Type
Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>- Requirement
- optional
- Name
scheduler- Kind
- property
- Type
Scheduler- Requirement
- optional
UseChartShellResult
interfaceinterface UseChartShellResult { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly snapshot: ChartShellSnapshot; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServicesnapshotChartShellSnapshot- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
ChartShellSnapshot- Requirement
- required
@grassroot/ui-headless-vue/chart-shell
Vue adapter
ChartShellContextKey
valueexport declare const ChartShellContextKey: InjectionKey<ChartShellContextValue>;ChartShellContextValue
interfaceinterface ChartShellContextValue { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly snapshot: ShallowRef<ChartShellSnapshot>; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServicesnapshotShallowRef<ChartShellSnapshot>- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
ShallowRef<ChartShellSnapshot>- Requirement
- required
ChartShellLiveRegion
valueexport declare const ChartShellLiveRegion: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ asChild: { type: BooleanConstructor; default: boolean; };}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any;}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ asChild: { type: BooleanConstructor; default: boolean; };}>> & Readonly<{}>, { asChild: boolean;}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;ChartShellPlot
valueexport declare const ChartShellPlot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ asChild: { type: BooleanConstructor; default: boolean; };}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any;}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ asChild: { type: BooleanConstructor; default: boolean; };}>> & Readonly<{}>, { asChild: boolean;}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;ChartShellRoot
valueexport declare const ChartShellRoot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ asChild: { type: BooleanConstructor; default: boolean; }; childNames: { type: PropType<ChartShellInput["children"]>; default: undefined; }; tooltip: { type: PropType<ChartShellInput["tooltip"]>; default: undefined; }; selection: { type: PropType<ChartShellInput["selection"]>; default: undefined; }; legend: { type: PropType<ChartShellInput["legend"]>; default: undefined; }; brush: { type: PropType<ChartShellInput["brush"]>; default: undefined; }; zoom: { type: PropType<ChartShellInput["zoom"]>; default: undefined; }; keyboard: { type: PropType<ChartShellInput["keyboard"]>; default: undefined; }; scheduler: { type: PropType<UseChartShellOptions["scheduler"]>; default: undefined; }; host: { type: PropType<UseChartShellOptions["host"]>; default: undefined; };}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any;}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { selectedIdsChange: (_detail: SelectionChangeDetail) => true; activeTargetChange: (_detail: ChartActiveTargetChangeDetail) => true; openChange: (_detail: ChartTooltipOpenChangeDetail) => true; hiddenSeriesChange: (_detail: { readonly ids: readonly string[]; readonly reason: string; }) => true; brushDomainChange: (_detail: { readonly domain: unknown; readonly reason: string; }) => true; zoomDomainChange: (_detail: { readonly domain: unknown; readonly reason: string; }) => true; announce: (_key: string, _args: { readonly [key: string]: string | number | null; }, _politeness: "polite" | "assertive") => true;}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ asChild: { type: BooleanConstructor; default: boolean; }; childNames: { type: PropType<ChartShellInput["children"]>; default: undefined; }; tooltip: { type: PropType<ChartShellInput["tooltip"]>; default: undefined; }; selection: { type: PropType<ChartShellInput["selection"]>; default: undefined; }; legend: { type: PropType<ChartShellInput["legend"]>; default: undefined; }; brush: { type: PropType<ChartShellInput["brush"]>; default: undefined; }; zoom: { type: PropType<ChartShellInput["zoom"]>; default: undefined; }; keyboard: { type: PropType<ChartShellInput["keyboard"]>; default: undefined; }; scheduler: { type: PropType<UseChartShellOptions["scheduler"]>; default: undefined; }; host: { type: PropType<UseChartShellOptions["host"]>; default: undefined; };}>> & Readonly<{ onActiveTargetChange?: ((_detail: ChartActiveTargetChangeDetail) => any) | undefined; onAnnounce?: ((_key: string, _args: { readonly [key: string]: string | number | null; }, _politeness: "assertive" | "polite") => any) | undefined; onBrushDomainChange?: ((_detail: { readonly domain: unknown; readonly reason: string; }) => any) | undefined; onHiddenSeriesChange?: ((_detail: { readonly ids: readonly string[]; readonly reason: string; }) => any) | undefined; onOpenChange?: ((_detail: ChartTooltipOpenChangeDetail) => any) | undefined; onSelectedIdsChange?: ((_detail: SelectionChangeDetail) => any) | undefined; onZoomDomainChange?: ((_detail: { readonly domain: unknown; readonly reason: string; }) => any) | undefined;}>, { asChild: boolean; childNames: readonly string[] | undefined; tooltip: import("@grassroot/ui-machines/chart-shell").ChartTooltipChildInput | undefined; selection: import("@grassroot/ui-machines/selection").SelectionInput | undefined; legend: import("@grassroot/ui-machines/chart-shell").ChartLegendChildInput | undefined; brush: import("@grassroot/ui-machines/chart-shell").ChartBrushChildInput | undefined; zoom: import("@grassroot/ui-machines/chart-shell").ChartZoomChildInput | undefined; keyboard: import("@grassroot/ui-machines/chart-shell").ChartKeyboardChildInput | undefined; scheduler: import("@grassroot/statechart/scheduler").Scheduler | undefined; host: Partial<Omit<import("@grassroot/ui-headless-core/chart-shell").ChartShellControllerHost, "getPlot" | "getRoot">> | undefined;}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;useChartShell
functiondeclare function useChartShell(input?: ChartShellInput | (() => ChartShellInput), options?: UseChartShellOptions): UseChartShellResult;inputChartShellInput | (() => ChartShellInput)optionsUseChartShellOptionsreturnUseChartShellResult- Name
input- Kind
- parameter
- Type
ChartShellInput | (() => ChartShellInput)- Requirement
- optional
- Name
options- Kind
- parameter
- Type
UseChartShellOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseChartShellResult- Requirement
- n/a
useChartShellContext
functiondeclare function useChartShellContext(partName: string): ChartShellContextValue;partNamestringreturnChartShellContextValue- Name
partName- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellContextValue- Requirement
- n/a
UseChartShellOptions
interfaceinterface UseChartShellOptions extends ChartShellConnectOptions { readonly scheduler?: Scheduler; readonly host?: Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>;}hostPartial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>schedulerScheduler- Name
host- Kind
- property
- Type
Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>- Requirement
- optional
- Name
scheduler- Kind
- property
- Type
Scheduler- Requirement
- optional
UseChartShellResult
interfaceinterface UseChartShellResult { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly snapshot: ShallowRef<ChartShellSnapshot>; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServicesnapshotShallowRef<ChartShellSnapshot>- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
ShallowRef<ChartShellSnapshot>- Requirement
- required
@grassroot/ui-headless-angular/chart-shell
Angular adapter
CHART_SHELL_HOST
valueexport declare const CHART_SHELL_HOST: InjectionToken<Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>>;CHART_SHELL_SCHEDULER
valueexport declare const CHART_SHELL_SCHEDULER: InjectionToken<Scheduler>;CHART_SHELL_STORE
valueexport declare const CHART_SHELL_STORE: InjectionToken<ChartShellStore>;ChartShellStore
interfaceexport interface ChartShellStore { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly version: WritableSignal<number>; readonly getController: () => ChartShellController | undefined; start(): void; stop(): void; sync(input: ChartShellInput): void; bindConnectOptions(options: ChartShellConnectOptions): void;}bindConnectOptions(options: ChartShellConnectOptions) => voidconnectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServicestart() => voidstop() => voidsync(input: ChartShellInput) => voidversionWritableSignal<number>- Name
bindConnectOptions- Kind
- method
- Type
(options: ChartShellConnectOptions) => void- Requirement
- required
- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
start- Kind
- method
- Type
() => void- Requirement
- required
- Name
stop- Kind
- method
- Type
() => void- Requirement
- required
- Name
sync- Kind
- method
- Type
(input: ChartShellInput) => void- Requirement
- required
- Name
version- Kind
- property
- Type
WritableSignal<number>- Requirement
- required
createChartShellStore
functionexport declare function createChartShellStore(initialInput?: ChartShellInput, options?: CreateChartShellStoreOptions): ChartShellStore;initialInputChartShellInputoptionsCreateChartShellStoreOptionsreturnChartShellStore- Name
initialInput- Kind
- parameter
- Type
ChartShellInput- Requirement
- optional
- Name
options- Kind
- parameter
- Type
CreateChartShellStoreOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
ChartShellStore- Requirement
- n/a
CreateChartShellStoreOptions
interfaceexport interface CreateChartShellStoreOptions extends ChartShellConnectOptions { readonly onCommit?: () => void; readonly scheduler?: Scheduler; readonly host?: Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>;}hostPartial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>onCommit() => voidschedulerScheduler- Name
host- Kind
- property
- Type
Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>- Requirement
- optional
- Name
onCommit- Kind
- property
- Type
() => void- Requirement
- optional
- Name
scheduler- Kind
- property
- Type
Scheduler- Requirement
- optional
createReentrantSafeTick
functionOne re-entrancy policy for every Angular store's zoneless commit nudge.
export declare function createReentrantSafeTick(appRef: ApplicationRef): () => void;appRefApplicationRefreturn() => void- Name
appRef- Kind
- parameter
- Type
ApplicationRef- Requirement
- required
- Name
return- Kind
- return value
- Type
() => void- Requirement
- n/a
export declare const GR_CHART_SHELL_DECLARATIONS: readonly [typeof GrChartShellRoot, typeof GrChartShellPlot, typeof GrChartShellLiveRegion];GrChartShellLiveRegion
classexport declare class GrChartShellLiveRegion implements OnDestroy { partId: string; readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>; private readonly store; private readonly elementRef; private readonly listeners; private readonly consumerProps; constructor(); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<GrChartShellLiveRegion, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<GrChartShellLiveRegion, "[grChartShellLiveRegion]", never, { "ariaLabel": { "alias": "grChartShellLiveRegionAriaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;}ariaLabelimport("@angular/core").InputSignal<string | undefined>consumerPropsanyelementRefanylistenersanyngOnDestroy() => voidɵdiri0.ɵɵDirectiveDeclaration<GrChartShellLiveRegion, "[grChartShellLiveRegion]", never, { "ariaLabel": { "alias": "grChartShellLiveRegionAriaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>ɵfaci0.ɵɵFactoryDeclaration<GrChartShellLiveRegion, never>partIdstringstoreany- Name
ariaLabel- Kind
- property
- Type
import("@angular/core").InputSignal<string | undefined>- Requirement
- required
- Name
consumerProps- Kind
- property
- Type
any- Requirement
- required
- Name
elementRef- Kind
- property
- Type
any- Requirement
- required
- Name
listeners- Kind
- property
- Type
any- Requirement
- required
- Name
ngOnDestroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
ɵdir- Kind
- property
- Type
i0.ɵɵDirectiveDeclaration<GrChartShellLiveRegion, "[grChartShellLiveRegion]", never, { "ariaLabel": { "alias": "grChartShellLiveRegionAriaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>- Requirement
- required
- Name
ɵfac- Kind
- property
- Type
i0.ɵɵFactoryDeclaration<GrChartShellLiveRegion, never>- Requirement
- required
- Name
partId- Kind
- property
- Type
string- Requirement
- required
- Name
store- Kind
- property
- Type
any- Requirement
- required
GrChartShellPlot
classexport declare class GrChartShellPlot implements OnDestroy { partId: string; readonly liveRegion: import("@angular/core").InputSignal<boolean>; private readonly store; private readonly elementRef; private readonly listeners; private readonly consumerProps; constructor(); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<GrChartShellPlot, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<GrChartShellPlot, "[grChartShellPlot]", never, { "liveRegion": { "alias": "grChartShellPlotLiveRegion"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;}consumerPropsanyelementRefanylistenersanyliveRegionimport("@angular/core").InputSignal<boolean>ngOnDestroy() => voidɵdiri0.ɵɵDirectiveDeclaration<GrChartShellPlot, "[grChartShellPlot]", never, { "liveRegion": { "alias": "grChartShellPlotLiveRegion"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>ɵfaci0.ɵɵFactoryDeclaration<GrChartShellPlot, never>partIdstringstoreany- Name
consumerProps- Kind
- property
- Type
any- Requirement
- required
- Name
elementRef- Kind
- property
- Type
any- Requirement
- required
- Name
listeners- Kind
- property
- Type
any- Requirement
- required
- Name
liveRegion- Kind
- property
- Type
import("@angular/core").InputSignal<boolean>- Requirement
- required
- Name
ngOnDestroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
ɵdir- Kind
- property
- Type
i0.ɵɵDirectiveDeclaration<GrChartShellPlot, "[grChartShellPlot]", never, { "liveRegion": { "alias": "grChartShellPlotLiveRegion"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>- Requirement
- required
- Name
ɵfac- Kind
- property
- Type
i0.ɵɵFactoryDeclaration<GrChartShellPlot, never>- Requirement
- required
- Name
partId- Kind
- property
- Type
string- Requirement
- required
- Name
store- Kind
- property
- Type
any- Requirement
- required
GrChartShellRoot
classexport declare class GrChartShellRoot implements OnDestroy { readonly childNames: import("@angular/core").InputSignal<readonly string[] | undefined>; readonly tooltip: import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartTooltipChildInput | undefined>; readonly selection: import("@angular/core").InputSignal<import("@grassroot/ui-machines/selection").SelectionInput | undefined>; readonly legend: import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartLegendChildInput | undefined>; readonly brush: import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartBrushChildInput | undefined>; readonly zoom: import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartZoomChildInput | undefined>; readonly zoomOnBrush: import("@angular/core").InputSignal<boolean | undefined>; readonly keyboard: import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartKeyboardChildInput | undefined>; readonly selectedIdsChange: import("@angular/core").OutputEmitterRef<SelectionChangeDetail>; readonly activeTargetChange: import("@angular/core").OutputEmitterRef<ChartActiveTargetChangeDetail>; readonly openChange: import("@angular/core").OutputEmitterRef<ChartTooltipOpenChangeDetail>; readonly hiddenSeriesChange: import("@angular/core").OutputEmitterRef<{ readonly ids: readonly string[]; readonly reason: string; }>; readonly brushDomainChange: import("@angular/core").OutputEmitterRef<{ readonly domain: unknown; readonly reason: string; }>; readonly zoomDomainChange: import("@angular/core").OutputEmitterRef<{ readonly domain: unknown; readonly reason: string; }>; partId: string; private readonly elementRef; private readonly injector; private readonly listeners; private lastSynced; readonly store: ChartShellStore; constructor(); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<GrChartShellRoot, never>; static ɵcmp: i0.ɵɵComponentDeclaration<GrChartShellRoot, "gr-chart-shell-root", never, { "childNames": { "alias": "childNames"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "brush": { "alias": "brush"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "zoomOnBrush": { "alias": "zoomOnBrush"; "required": false; "isSignal": true; }; "keyboard": { "alias": "keyboard"; "required": false; "isSignal": true; }; }, { "selectedIdsChange": "selectedIdsChange"; "activeTargetChange": "activeTargetChange"; "openChange": "openChange"; "hiddenSeriesChange": "hiddenSeriesChange"; "brushDomainChange": "brushDomainChange"; "zoomDomainChange": "zoomDomainChange"; }, never, ["*"], true, never>;}activeTargetChangeimport("@angular/core").OutputEmitterRef<ChartActiveTargetChangeDetail>brushimport("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartBrushChildInput | undefined>brushDomainChangeimport("@angular/core").OutputEmitterRef<{
readonly domain: unknown;
readonly reason: string;
}>childNamesimport("@angular/core").InputSignal<readonly string[] | undefined>elementRefanyinjectoranykeyboardimport("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartKeyboardChildInput | undefined>lastSyncedanylegendimport("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartLegendChildInput | undefined>listenersanyngOnDestroy() => voidopenChangeimport("@angular/core").OutputEmitterRef<ChartTooltipOpenChangeDetail>ɵcmpi0.ɵɵComponentDeclaration<GrChartShellRoot, "gr-chart-shell-root", never, { "childNames": { "alias": "childNames"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "brush": { "alias": "brush"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "zoomOnBrush": { "alias": "zoomOnBrush"; "required": false; "isSignal": true; }; "keyboard": { "alias": "keyboard"; "required": false; "isSignal": true; }; }, { "selectedIdsChange": "selectedIdsChange"; "activeTargetChange": "activeTargetChange"; "openChange": "openChange"; "hiddenSeriesChange": "hiddenSeriesChange"; "brushDomainChange": "brushDomainChange"; "zoomDomainChange": "zoomDomainChange"; }, never, ["*"], true, never>- Name
activeTargetChange- Kind
- property
- Type
import("@angular/core").OutputEmitterRef<ChartActiveTargetChangeDetail>- Requirement
- required
- Name
brush- Kind
- property
- Type
import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartBrushChildInput | undefined>- Requirement
- required
- Name
brushDomainChange- Kind
- property
- Type
import("@angular/core").OutputEmitterRef<{ readonly domain: unknown; readonly reason: string; }>- Requirement
- required
- Name
childNames- Kind
- property
- Type
import("@angular/core").InputSignal<readonly string[] | undefined>- Requirement
- required
- Name
elementRef- Kind
- property
- Type
any- Requirement
- required
- Name
hiddenSeriesChange- Kind
- property
- Type
import("@angular/core").OutputEmitterRef<{ readonly ids: readonly string[]; readonly reason: string; }>- Requirement
- required
- Name
injector- Kind
- property
- Type
any- Requirement
- required
- Name
keyboard- Kind
- property
- Type
import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartKeyboardChildInput | undefined>- Requirement
- required
- Name
lastSynced- Kind
- property
- Type
any- Requirement
- required
- Name
legend- Kind
- property
- Type
import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartLegendChildInput | undefined>- Requirement
- required
- Name
listeners- Kind
- property
- Type
any- Requirement
- required
- Name
ngOnDestroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
openChange- Kind
- property
- Type
import("@angular/core").OutputEmitterRef<ChartTooltipOpenChangeDetail>- Requirement
- required
- Name
ɵcmp- Kind
- property
- Type
i0.ɵɵComponentDeclaration<GrChartShellRoot, "gr-chart-shell-root", never, { "childNames": { "alias": "childNames"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "brush": { "alias": "brush"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "zoomOnBrush": { "alias": "zoomOnBrush"; "required": false; "isSignal": true; }; "keyboard": { "alias": "keyboard"; "required": false; "isSignal": true; }; }, { "selectedIdsChange": "selectedIdsChange"; "activeTargetChange": "activeTargetChange"; "openChange": "openChange"; "hiddenSeriesChange": "hiddenSeriesChange"; "brushDomainChange": "brushDomainChange"; "zoomDomainChange": "zoomDomainChange"; }, never, ["*"], true, never>- Requirement
- required
- Name
ɵfac- Kind
- property
- Type
i0.ɵɵFactoryDeclaration<GrChartShellRoot, never>- Requirement
- required
- Name
partId- Kind
- property
- Type
string- Requirement
- required
- Name
selectedIdsChange- Kind
- property
- Type
import("@angular/core").OutputEmitterRef<SelectionChangeDetail>- Requirement
- required
- Name
selection- Kind
- property
- Type
import("@angular/core").InputSignal<import("@grassroot/ui-machines/selection").SelectionInput | undefined>- Requirement
- required
- Name
store- Kind
- property
- Type
ChartShellStore- Requirement
- required
- Name
tooltip- Kind
- property
- Type
import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartTooltipChildInput | undefined>- Requirement
- required
- Name
zoom- Kind
- property
- Type
import("@angular/core").InputSignal<import("@grassroot/ui-machines/chart-shell").ChartZoomChildInput | undefined>- Requirement
- required
- Name
zoomDomainChange- Kind
- property
- Type
import("@angular/core").OutputEmitterRef<{ readonly domain: unknown; readonly reason: string; }>- Requirement
- required
- Name
zoomOnBrush- Kind
- property
- Type
import("@angular/core").InputSignal<boolean | undefined>- Requirement
- required
provideChartShellStore
functionexport declare function provideChartShellStore(): Provider;returnProvider- Name
return- Kind
- return value
- Type
Provider- Requirement
- n/a
@grassroot/ui-headless-svelte/chart-shell
Svelte adapter
ChartShellContextValue
interfaceexport interface ChartShellContextValue { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly version: () => number; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServiceversion() => number- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
version- Kind
- property
- Type
() => number- Requirement
- required
ChartShellLiveRegion
valueexport declare const ChartShellLiveRegion: LegacyComponentType;argsParameters<Component<Record<string, any>>>returnReturnType<Component<Record<string, any>, Record<string, any>>>- Name
args- Kind
- parameter
- Type
Parameters<Component<Record<string, any>>>- Requirement
- optional
- Name
return- Kind
- return value
- Type
ReturnType<Component<Record<string, any>, Record<string, any>>>- Requirement
- n/a
ChartShellPlot
valueexport declare const ChartShellPlot: LegacyComponentType;argsParameters<Component<Record<string, any>>>returnReturnType<Component<Record<string, any>, Record<string, any>>>- Name
args- Kind
- parameter
- Type
Parameters<Component<Record<string, any>>>- Requirement
- optional
- Name
return- Kind
- return value
- Type
ReturnType<Component<Record<string, any>, Record<string, any>>>- Requirement
- n/a
ChartShellRoot
valueexport declare const ChartShellRoot: LegacyComponentType;argsParameters<Component<Record<string, any>>>returnReturnType<Component<Record<string, any>, Record<string, any>>>- Name
args- Kind
- parameter
- Type
Parameters<Component<Record<string, any>>>- Requirement
- optional
- Name
return- Kind
- return value
- Type
ReturnType<Component<Record<string, any>, Record<string, any>>>- Requirement
- n/a
createChartShell
functionexport declare function createChartShell(inputGetter: () => ChartShellInput, options?: UseChartShellOptions): UseChartShellResult;inputGetter() => ChartShellInputoptionsUseChartShellOptionsreturnUseChartShellResult- Name
inputGetter- Kind
- parameter
- Type
() => ChartShellInput- Requirement
- required
- Name
options- Kind
- parameter
- Type
UseChartShellOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseChartShellResult- Requirement
- n/a
useChartShellContext
functionexport declare function useChartShellContext(partName: string): ChartShellContextValue;partNamestringreturnChartShellContextValue- Name
partName- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellContextValue- Requirement
- n/a
UseChartShellOptions
interfaceexport interface UseChartShellOptions extends ChartShellConnectOptions { readonly scheduler?: Scheduler; readonly host?: Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>;}hostPartial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>schedulerScheduler- Name
host- Kind
- property
- Type
Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>- Requirement
- optional
- Name
scheduler- Kind
- property
- Type
Scheduler- Requirement
- optional
UseChartShellResult
interfaceexport interface UseChartShellResult { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly version: () => number; readonly subscribeVersion: (listener: () => void) => () => void; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServicesubscribeVersion(listener: () => void) => () => voidversion() => number- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
subscribeVersion- Kind
- property
- Type
(listener: () => void) => () => void- Requirement
- required
- Name
version- Kind
- property
- Type
() => number- Requirement
- required
@grassroot/ui-headless-solid/chart-shell
Solid adapter
ChartShellContext
valueexport declare const ChartShellContext: import("solid-js").Context<ChartShellContextValue | undefined>;ChartShellContextValue
interfaceexport interface ChartShellContextValue { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly snapshot: Accessor<ChartShellSnapshot>; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServicesnapshotAccessor<ChartShellSnapshot>- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
Accessor<ChartShellSnapshot>- Requirement
- required
ChartShellLiveRegion
functionexport declare function ChartShellLiveRegion(props: ChartShellLiveRegionProps): JSX.Element;propsChartShellLiveRegionPropsreturnJSX.Element- Name
props- Kind
- parameter
- Type
ChartShellLiveRegionProps- Requirement
- required
- Name
return- Kind
- return value
- Type
JSX.Element- Requirement
- n/a
ChartShellLiveRegionProps
interfaceexport interface ChartShellLiveRegionProps extends JSX.HTMLAttributes<HTMLDivElement> { readonly as?: AsProp;}asAsProp- Name
as- Kind
- property
- Type
AsProp- Requirement
- optional
ChartShellPlot
functionexport declare function ChartShellPlot(props: ChartShellPlotProps): JSX.Element;propsChartShellPlotPropsreturnJSX.Element- Name
props- Kind
- parameter
- Type
ChartShellPlotProps- Requirement
- required
- Name
return- Kind
- return value
- Type
JSX.Element- Requirement
- n/a
ChartShellPlotProps
interfaceexport interface ChartShellPlotProps extends JSX.HTMLAttributes<HTMLDivElement> { readonly as?: AsProp;}asAsProp- Name
as- Kind
- property
- Type
AsProp- Requirement
- optional
ChartShellRoot
functionexport declare function ChartShellRoot(props: ChartShellRootProps): JSX.Element;propsChartShellRootPropsreturnJSX.Element- Name
props- Kind
- parameter
- Type
ChartShellRootProps- Requirement
- required
- Name
return- Kind
- return value
- Type
JSX.Element- Requirement
- n/a
ChartShellRootProps
interfaceexport interface ChartShellRootProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "onChange">, UseChartShellOptions { readonly as?: AsProp; readonly childNames?: ChartShellInput["children"]; readonly tooltip?: ChartShellInput["tooltip"]; readonly selection?: ChartShellInput["selection"]; readonly legend?: ChartShellInput["legend"]; readonly brush?: ChartShellInput["brush"]; readonly zoom?: ChartShellInput["zoom"]; readonly keyboard?: ChartShellInput["keyboard"];}asAsPropbrushChartShellInput["brush"]childNamesChartShellInput["children"]keyboardChartShellInput["keyboard"]legendChartShellInput["legend"]selectionChartShellInput["selection"]tooltipChartShellInput["tooltip"]zoomChartShellInput["zoom"]- Name
as- Kind
- property
- Type
AsProp- Requirement
- optional
- Name
brush- Kind
- property
- Type
ChartShellInput["brush"]- Requirement
- optional
- Name
childNames- Kind
- property
- Type
ChartShellInput["children"]- Requirement
- optional
- Name
keyboard- Kind
- property
- Type
ChartShellInput["keyboard"]- Requirement
- optional
- Name
legend- Kind
- property
- Type
ChartShellInput["legend"]- Requirement
- optional
- Name
selection- Kind
- property
- Type
ChartShellInput["selection"]- Requirement
- optional
- Name
tooltip- Kind
- property
- Type
ChartShellInput["tooltip"]- Requirement
- optional
- Name
zoom- Kind
- property
- Type
ChartShellInput["zoom"]- Requirement
- optional
useChartShell
functionexport declare function useChartShell(input: Accessor<ChartShellInput>, options?: UseChartShellOptions): UseChartShellResult;inputAccessor<ChartShellInput>optionsUseChartShellOptionsreturnUseChartShellResult- Name
input- Kind
- parameter
- Type
Accessor<ChartShellInput>- Requirement
- required
- Name
options- Kind
- parameter
- Type
UseChartShellOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseChartShellResult- Requirement
- n/a
useChartShellContext
functionexport declare function useChartShellContext(partName: string): ChartShellContextValue;partNamestringreturnChartShellContextValue- Name
partName- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
ChartShellContextValue- Requirement
- n/a
UseChartShellOptions
interfaceexport interface UseChartShellOptions extends ChartShellConnectOptions { readonly scheduler?: Scheduler; readonly host?: Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>;}hostPartial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>schedulerScheduler- Name
host- Kind
- property
- Type
Partial<Omit<ChartShellControllerHost, "getRoot" | "getPlot">>- Requirement
- optional
- Name
scheduler- Kind
- property
- Type
Scheduler- Requirement
- optional
UseChartShellResult
interfaceexport interface UseChartShellResult { readonly service: ChartShellService; readonly connector: ChartShellApi; readonly scope: PartScope; readonly snapshot: Accessor<ChartShellSnapshot>; readonly getController: () => ChartShellController | undefined;}connectorChartShellApigetController() => ChartShellController | undefinedscopePartScopeserviceChartShellServicesnapshotAccessor<ChartShellSnapshot>- Name
connector- Kind
- property
- Type
ChartShellApi- Requirement
- required
- Name
getController- Kind
- property
- Type
() => ChartShellController | undefined- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
ChartShellService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
Accessor<ChartShellSnapshot>- Requirement
- required