Graph visualization
Import graph components, layout helpers, marks, and types from @pibbl/core/viz.
These are Canvas 2D compositions without a React dependency. Every component has a
public layout-and-marks reconstruction path; the built-ins use the same operations.
| Component | Independent calculation | Public marks |
|---|---|---|
DependencyGraph |
layoutDependencies |
GraphNode, GraphEdge, GraphLabel |
ForceNetwork |
layoutForceNetwork, createForceSimulation, useForceNetwork |
GraphView and graph marks |
TidyTree |
layoutTree |
Graph marks |
AdjacencyMatrix |
layoutMatrix |
MatrixCell, GraphLabel |
Sankey |
layoutSankey |
SankeyNode, SankeyFlow, GraphLabel |
BipartiteGraph |
layoutBipartite |
Graph marks |
Treemap |
layoutTreemap |
TreemapCell, GraphLabel |
RadialNeighborhood |
layoutNeighborhood |
Graph marks |
Icicle |
layoutIcicle |
IcicleCell, GraphLabel |
ChordDiagram |
layoutChords |
ChordBand, ChordRibbon, GraphLabel |
Start with a component
Section titled “Start with a component”import { Group } from "@pibbl/core";import { DependencyGraph, layoutDependencies, GraphView, GraphNode, GraphLabel, defaultGraphNodeStyle, defaultGraphLabelStyle,} from "@pibbl/core/viz";const services = { nodes: [ { id: "checkout", name: "Checkout" }, { id: "payment", name: "Payment" }, ], edges: [{ id: "authorize", from: "checkout", to: "payment" }],};const view = ( <DependencyGraph graph={services} nodeKey="id" edgeKey="id" source="from" target="to" label="name" style={{ width: 600, height: 240 }} />);The equivalent non-JSX authoring is createElement(DependencyGraph<Node, Edge>, props)
with application record types Node and Edge. Explicit instantiation preserves
property-accessor inference with the current createElement signature.
Rebuild and customize
Section titled “Rebuild and customize”Pure helpers accept the input first and named options second, including finite local
bounds. They never schedule work or allocate renderer resources. Results retain
original data references and expose keys, boxes, labels, quantities, and routes.
Do not mutate returned snapshots or application records while they are in use.
Replace the calculation with any function producing the same geometry, transform
its result, or render your own geometry using ordinary core primitives.
const geometry = layoutDependencies(services, { nodeKey: "id", edgeKey: "id", source: "from", target: "to", label: "name", bounds: { x: 0, y: 0, width: 600, height: 240 },});const custom = ( <GraphView layout={geometry} renderNode={(node) => ( <Group> <GraphNode node={node} style={defaultGraphNodeStyle(node)} /> <GraphLabel label={node.label} style={defaultGraphLabelStyle(node.label)} /> </Group> )} />);GraphView only paints supplied coordinates; it never lays them out or silently
fits them to a new box. All geometry uses local logical Canvas units. Graph routes
expose anchors and standard core PathSegment arrays as well as serialized SVG
paths. straightGraphRoute, orthogonalGraphRoute, and curvedGraphRoute are
independent route builders. Use existing PathGeometry and toSvgPathData for
custom shapes. Sankey exposes thickness and source/target spans. Chord geometry
exposes center/radius and angular endpoints in clockwise degrees from twelve o’clock.
Mark components draw geometry; GraphLabel draws decorative text separately.
Public defaultGraph*Style, defaultMatrixCellStyle, defaultSankey*Style,
defaultPartitionCellStyle, and defaultChord*Style return ordinary paint objects.
Component per-item styles merge onto defaults. A renderNode, renderEdge,
renderCell, renderFlow, renderBand, or renderRibbon callback replaces that
whole item, including its default text; returning null hides it. Extract a proper
component when a custom item needs hooks. Parent item click callbacks use ordinary
Pibbl event propagation and honor descendant stopPropagation().
GraphLabel defaults to a middle baseline and single-line ellipsis inside its
supplied width. Set ordinary text paint such as fit and wrap to choose another
fitting policy. A label is decorative; omitting it does not remove its mark’s
pointer or keyboard target. Partition render callbacks can replace the complete
label treatment, including separate name/value lines and an external inspector
for cells too small to label.
Data, identity, and values
Section titled “Data, identity, and values”Accessors accept typed property names or functions. Node and edge IDs are explicit;
string and numeric IDs are distinct. Graph endpoints must exist and keys must be
unique. Hierarchy inputs supply keyBy and childrenBy; collapsed is an
application-owned predicate. App selection, filters, inspectors and drill-down state
remain ordinary signals and components. Rendering reevaluates input accessors;
there is no identity-only geometry cache requiring a revision counter.
Dependency and Sankey calculations require directed acyclic graphs. Matrix rows and
columns are separately typed, missing cells remain null, and duplicate relation
records sum. Bipartite node identity is scoped to its side. Partition values apply
to source leaves; branches sum descendant leaves even when collapsed. Chord sums
ordered source/target transfers and keeps opposite directions separate. Numeric
visualizations require a unit; formatValue returns complete display text.
Nonfinite/negative quantities, cycles where disallowed, duplicate keys, and bounds
insufficient for declared spacing throw. No loss category or conservation correction
is invented. Empty inputs produce empty geometry; zero component allocations paint
nothing. Layout does not imply a clipping boundary; compose core Clip if desired.
Force ownership
Section titled “Force ownership”createForceSimulation(graph, options) is a manually stepped, resource-free numeric
session: read, step({ iterations }), update, pin, release, restart, and
reset. The built-in deterministic solver combines repulsion, link relaxation,
damping, rectangular overlap forces, and bounds. Defaults are seed 1, linkDistance
90, nodeGap 8, and maxIterations 300. Settled means movement below 0.02 logical
units for eight iterations; reaching the unconditional budget can remain unsettled.
This is a graph layout, not physically calibrated dynamics or an overlap guarantee.
layoutForceNetwork runs that solver synchronously. useForceNetwork owns the live
session through core stepper, drive, usePlayback, and signals. It returns
readonly layout, status, and error signals plus pause/resume/restart/reset/pin/release
commands. Render its output through GraphView; mounting another ForceNetwork would
create another owner. createSimulation supplies a resource-free replacement factory
with the same ForceSimulation operations; its identity is fixed for the mount.
Playback advances one numeric iteration per 1/60 second and interpolates immutable
node, label, and edge geometry between solver snapshots for higher refresh displays.
Long frame gaps admit at most 1/30 second of work; hidden tabs cannot trigger an
unbounded catch-up. Pointer commands join the active playback without resetting its
clock, so neighbors keep responding throughout a drag. Paused and terminal snapshots
use exact solver geometry. Playback is released on unmount. There is no separate animation loop. Pins use local
center coordinates. Restart preserves positions and pins and resets the iteration
budget; reset restores seeded initial positions and clears pins. Hook pin and
release commands restart the iteration budget so neighboring nodes respond even
after settlement or exhaustion, while preserving an explicit pause. Commands are admitted
through playback and published with the next scheduled snapshot. Paint/selection
changes do not restart the solver. Status distinguishes running, paused, settled,
exhausted, and failed. Keep custom solver snapshots immutable and callbacks deterministic.
Examples
Section titled “Examples”The Examples catalog contains component and reconstruction variants for dependencies, collaboration networks, organization trees, team handoffs, local energy flows, research participation, storage allocations, incident neighborhoods, request breakdowns, and district trips. Their checked-in datasets are explicitly illustrative; quantities and units belong to those examples, not live external measurements.
API details from source
Section titled “API details from source”
VizKey
Section titled “VizKey”A stable application identifier used to join graph records and geometry. GraphLayout
type VizKey = string | numberRelated API: VizKey.
View source — packages/core/src/features/viz/lib/graph/types.ts:18
Accessor
Section titled “Accessor”A property key or pure reader for one typed source record. GraphLayout
type Accessor<D, V> = | { [P in keyof D]-?: D[P] extends V ? P : never; }[keyof D] /** A caller-provided pure callback. {@link GraphLayout} * @param datum - The source record or geometry supplied by Pibbl. * @returns The value produced by this callback. */ | ((datum: D) => V)Related API: Accessor, GraphLayout.
Parameters
Section titled “Parameters”datum— Source record.
Returns
Section titled “Returns”Accessed value.
View source — packages/core/src/features/viz/lib/graph/types.ts:22
Bounds
Section titled “Bounds”An immutable finite rectangle in graph-local logical pixels. GraphLayout
type Bounds = Readonly<{ /** Horizontal coordinate in local logical pixels. {@link GraphLayout} */ x: number; /** Vertical coordinate in local logical pixels. {@link GraphLayout} */ y: number; /** Finite width in local logical pixels. {@link GraphLayout} */ width: number; /** Finite height in local logical pixels. {@link GraphLayout} */ height: number;}>Related API: Bounds, GraphLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:30
Properties and methods
Section titled “Properties and methods”
x
x: numberHorizontal coordinate in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:32
y
y: numberVertical coordinate in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:34
width
width: numberFinite width in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:36
height
height: numberFinite height in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:38
An immutable coordinate in graph-local logical pixels. GraphLayout
type Point = Readonly<{ /** Horizontal coordinate in local logical pixels. {@link GraphLayout} */ x: number; /** Vertical coordinate in local logical pixels. {@link GraphLayout} */ y: number;}>Related API: Point, GraphLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:43
Properties and methods
Section titled “Properties and methods”
x
x: numberHorizontal coordinate in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:45
y
y: numberVertical coordinate in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:47
A responsive style value or signal accepted by a Pibbl mark. GraphLayout
type Style<S extends SystemStyle> = SignalValue<PibblResponsiveStyle<S>>Related API: Style, SystemStyle, SignalValue, PibblResponsiveStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:50
MarkStyle
Section titled “MarkStyle”A static or geometry-aware mark style with no retained state. GraphLayout
type MarkStyle<G, S extends SystemStyle> = | Style<S> /** A caller-provided pure callback. {@link GraphLayout} * @param geometry - The source record or geometry supplied by Pibbl. * @returns The value produced by this callback. */ | ((geometry: G) => Style<S>)Related API: MarkStyle, SystemStyle, Style, GraphLayout.
Parameters
Section titled “Parameters”geometry— Mark geometry.
Returns
Section titled “Returns”Mark style.
View source — packages/core/src/features/viz/lib/graph/types.ts:54
NodeStyle
Section titled “NodeStyle”Paint properties for a node box; geometry remains layout-owned. GraphLayout
type NodeStyle = Omit<RectStyle, "left" | "top" | "width" | "height">Related API: NodeStyle, RectStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:60
Properties and methods
Section titled “Properties and methods”
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
cornerRadius (optional)
cornerRadius?: number | `${number}%` | undefinedUniform corner radius used where no per-corner override is supplied. See Length.
cornerRadii (optional)
cornerRadii?: readonly (number | `${number}%` | null | undefined)[] | undefinedPer-corner radii; nullish entries use the uniform corner radius. See Length.
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
fill (optional)
fill?: FillStyle | undefinedRelated API: FillStyle.
Paint used for the interior. See FillStyle.
stroke (optional)
stroke?: StrokeStyle | undefinedRelated API: StrokeStyle.
Paint used for the outline. See StrokeStyle.
strokeWidth (optional)
strokeWidth?: number | undefinedWidth of the painted outline. See PaintStyle.
opacity (optional)
opacity?: number | undefinedRelated API: opacity.
Opacity of the painted result. See PaintStyle.
cursor (optional)
cursor?: string | undefinedCursor shown while this target owns pointer presentation. See CursorStyle.
alignToPixelGrid (optional)
alignToPixelGrid?: PixelGridAlignment | undefinedRelated API: PixelGridAlignment.
Pixel-grid alignment policy applied to the resolved geometry. See PixelGridAlignment.
lineInteractionWidth (optional)
lineInteractionWidth?: number | undefinedWidth used for line hit testing independently of the visible stroke width. See RectStyle.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
EdgeStyle
Section titled “EdgeStyle”Paint properties for an edge path; its route remains geometry-owned. GraphLayout
type EdgeStyle = Omit<SvgPathStyle, "d" | "left" | "top">Related API: EdgeStyle, SvgPathStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:62
Properties and methods
Section titled “Properties and methods”
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
fill (optional)
fill?: FillStyle | undefinedRelated API: FillStyle.
Paint used for the interior. See FillStyle.
stroke (optional)
stroke?: StrokeStyle | undefinedRelated API: StrokeStyle.
Paint used for the outline. See StrokeStyle.
strokeWidth (optional)
strokeWidth?: number | undefinedWidth of the painted outline. See PaintStyle.
opacity (optional)
opacity?: number | undefinedRelated API: opacity.
Opacity of the painted result. See PaintStyle.
cursor (optional)
cursor?: string | undefinedCursor shown while this target owns pointer presentation. See CursorStyle.
lineInteractionWidth (optional)
lineInteractionWidth?: number | undefinedWidth used for line hit testing independently of the visible stroke width. See SvgPathStyle.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
LabelStyle
Section titled “LabelStyle”Paint properties for text; label placement remains geometry-owned. GraphLayout
type LabelStyle = Omit<TextStyle, "left" | "top" | "width" | "height">Related API: LabelStyle, TextStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:64
Properties and methods
Section titled “Properties and methods”
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
fill (optional)
fill?: FillStyle | undefinedRelated API: FillStyle.
Paint used for the interior. See FillStyle.
stroke (optional)
stroke?: StrokeStyle | undefinedRelated API: StrokeStyle.
Paint used for the outline. See StrokeStyle.
strokeWidth (optional)
strokeWidth?: number | undefinedWidth of the painted outline. See PaintStyle.
opacity (optional)
opacity?: number | undefinedRelated API: opacity.
Opacity of the painted result. See PaintStyle.
cursor (optional)
cursor?: string | undefinedCursor shown while this target owns pointer presentation. See CursorStyle.
lineHeight (optional)
lineHeight?: number | undefinedSpacing between successive text lines. See TextStyle.
wrap (optional)
wrap?: boolean | undefinedWhether content may wrap into additional lines. See TextStyle.
fit (optional)
fit?: TextFit | undefinedRelated API: TextFit.
Policy for fitting content within its available box. See TextFit.
font (optional)
font?: string | undefinedCanvas font string used to draw or measure text. See TextStyle.
textBaseline (optional)
textBaseline?: CanvasTextBaseline | undefinedCanvas baseline used when placing text. See TextStyle.
textAlign (optional)
textAlign?: CanvasTextAlign | undefinedCanvas horizontal alignment used when placing text. See TextStyle.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
FrameStyle
Section titled “FrameStyle”Layout and paint properties for a graph component frame. GraphLayout
type FrameStyle = GStyleRelated API: FrameStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:66
Properties and methods
Section titled “Properties and methods”
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
LabelGeometry
Section titled “LabelGeometry”A decorative text string with immutable placement. GraphLayout
interface LabelGeometryRelated API: LabelGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:68
Properties and methods
Section titled “Properties and methods”
text
readonly text: stringText displayed by the label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:70
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:72
rotationDegrees
readonly rotationDegrees: numberClockwise label rotation in degrees. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:74
GraphData
Section titled “GraphData”Application-owned node and edge records in stable source order. GraphLayout
interface GraphData<N, E>Related API: GraphData.
View source — packages/core/src/features/viz/lib/graph/types.ts:77
Properties and methods
Section titled “Properties and methods”
nodes
readonly nodes: readonly N[]Source nodes in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:79
edges
readonly edges: readonly E[]Source edges in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:81
GraphAccessors
Section titled “GraphAccessors”Typed readers that identify graph records and optional text. GraphLayout
interface GraphAccessors<N, E>Related API: GraphAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:84
Properties and methods
Section titled “Properties and methods”
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
GraphNodeGeometry
Section titled “GraphNodeGeometry”Immutable node geometry paired with its original record. GraphLayout
interface GraphNodeGeometry<N>Related API: GraphNodeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:99
Properties and methods
Section titled “Properties and methods”
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:101
datum
readonly datum: NOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:103
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:105
label
readonly label: LabelGeometryRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:107
detail
readonly detail: LabelGeometry | nullRelated API: LabelGeometry.
Optional secondary label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:109
GraphRoute
Section titled “GraphRoute”Structured anchors and path segments for an edge route. GraphLayout
interface GraphRouteRelated API: GraphRoute.
View source — packages/core/src/features/viz/lib/graph/types.ts:113
Properties and methods
Section titled “Properties and methods”
sourceAnchor
readonly sourceAnchor: Readonly<{ x: number; y: number; }>Attachment point on the source mark. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:115
targetAnchor
readonly targetAnchor: Readonly<{ x: number; y: number; }>Attachment point on the target mark. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:117
segments
readonly segments: readonly Readonly<PathSegment>[]Related API: PathSegment.
Path segments from source to target. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:119
arrowSegments
readonly arrowSegments: readonly Readonly<PathSegment>[] | nullRelated API: PathSegment.
Optional path segments for an edge arrowhead. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:121
GraphEdgeGeometry
Section titled “GraphEdgeGeometry”Immutable edge geometry paired with its original record. GraphLayout
interface GraphEdgeGeometry<E>Related API: GraphEdgeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:124
Properties and methods
Section titled “Properties and methods”
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:126
datum
readonly datum: EOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:128
sourceKey
readonly sourceKey: VizKeyRelated API: VizKey.
Stable key of the edge source node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:130
targetKey
readonly targetKey: VizKeyRelated API: VizKey.
Stable key of the edge target node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:132
route
readonly route: GraphRouteRelated API: GraphRoute.
Structured route used to produce the serialized path. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:134
path
readonly path: stringSVG path serialization of the route. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:136
arrowPath
readonly arrowPath: string | nullOptional SVG path for the route arrow. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:138
GraphLayout
Section titled “GraphLayout”A pure immutable snapshot that can be painted with graph marks. GraphLayout
interface GraphLayout<N, E>Related API: GraphLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:141
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:143
nodes
readonly nodes: readonly GraphNodeGeometry<N>[]Related API: GraphNodeGeometry.
Source nodes in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:145
edges
readonly edges: readonly GraphEdgeGeometry<E>[]Related API: GraphEdgeGeometry.
Source edges in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:147
GraphPresentation
Section titled “GraphPresentation”Optional default-mark overrides and click handlers shared by graph components. GraphLayout
interface GraphPresentation<N, E, NG extends GraphNodeGeometry<N> = GraphNodeGeometry<N>>Related API: GraphPresentation, GraphNodeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:150
Properties and methods
Section titled “Properties and methods”
nodeStyle (optional)
readonly nodeStyle?: MarkStyle<NG, NodeStyle> | undefinedRelated API: MarkStyle, NodeStyle.
Style or geometry-aware style for node marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:156
edgeStyle (optional)
readonly edgeStyle?: MarkStyle<GraphEdgeGeometry<E>, EdgeStyle> | undefinedRelated API: MarkStyle, GraphEdgeGeometry, EdgeStyle.
Style or geometry-aware style for edge marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:158
labelStyle (optional)
readonly labelStyle?: MarkStyle<NG, LabelStyle> | undefinedRelated API: MarkStyle, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:160
renderNode (optional)
readonly renderNode?: ((node: NG) => PibblNode) | undefinedRelated API: PibblNode.
Replaces the default node mark with this composition. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:164
renderEdge (optional)
readonly renderEdge?: ((edge: GraphEdgeGeometry<E>) => PibblNode) | undefinedRelated API: GraphEdgeGeometry, PibblNode.
Replaces the default edge mark with this composition. GraphLayout
Parameters
Section titled “Parameters”edge— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:168
onNodeClick (optional)
readonly onNodeClick?: ((node: NG, event: ClickEvent) => void) | undefinedReceives clicks on a node mark. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:172
onEdgeClick (optional)
readonly onEdgeClick?: ((edge: GraphEdgeGeometry<E>, event: ClickEvent) => void) | undefinedRelated API: GraphEdgeGeometry.
Receives clicks on an edge mark. GraphLayout
Parameters
Section titled “Parameters”-
edge— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:176
MarkInteraction
Section titled “MarkInteraction”Ordinary Pibbl event and focus participation accepted by graph marks. GraphLayout
interface MarkInteraction extends PibblEventHandlers, PibblEventParticipationOptionsRelated API: MarkInteraction, PibblEventHandlers, PibblEventParticipationOptions.
View source — packages/core/src/features/viz/lib/graph/types.ts:182
Properties and methods
Section titled “Properties and methods”
keyboardFocusable (optional)
readonly keyboardFocusable?: boolean | undefinedWhether the mark enters logical keyboard focus. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:185
keyboardNavigationBounds (optional)
readonly keyboardNavigationBounds?: Readonly<{ x: number; y: number; width: number; height: number; }> | undefinedLogical bounds used for keyboard navigation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:187
pointerEvents (optional)
readonly pointerEvents?: PibblPointerEvents | undefinedRelated API: PibblPointerEvents.
Whether this content participates in pointer targeting. See PibblPointerEvents.
GraphNodeProps
Section titled “GraphNodeProps”Geometry, paint, content, and ordinary events for GraphNode. GraphLayout
interface GraphNodeProps<N> extends MarkInteractionRelated API: GraphNodeProps, MarkInteraction.
View source — packages/core/src/features/viz/lib/graph/types.ts:190
Properties and methods
Section titled “Properties and methods”
node
readonly node: GraphNodeGeometry<N>Related API: GraphNodeGeometry.
Immutable node geometry and original datum. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:192
style (optional)
readonly style?: Style<NodeStyle> | undefinedRelated API: Style, NodeStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:194
children (optional)
readonly children?: PibblNodeRelated API: PibblNode.
Optional content painted with this mark. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:196
pointerEvents (optional)
readonly pointerEvents?: PibblPointerEvents | undefinedRelated API: PibblPointerEvents.
Whether this content participates in pointer targeting. See PibblPointerEvents.
keyboardFocusable (optional)
readonly keyboardFocusable?: boolean | undefinedWhether the mark enters logical keyboard focus. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:185
keyboardNavigationBounds (optional)
readonly keyboardNavigationBounds?: Readonly<{ x: number; y: number; width: number; height: number; }> | undefinedLogical bounds used for keyboard navigation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:187
GraphEdgeProps
Section titled “GraphEdgeProps”Geometry, paint, and ordinary events for GraphEdge. GraphLayout
interface GraphEdgeProps<E> extends MarkInteractionRelated API: GraphEdgeProps, MarkInteraction.
View source — packages/core/src/features/viz/lib/graph/types.ts:199
Properties and methods
Section titled “Properties and methods”
edge
readonly edge: GraphEdgeGeometry<E>Related API: GraphEdgeGeometry.
Immutable edge geometry and original datum. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:201
style (optional)
readonly style?: Style<EdgeStyle> | undefinedRelated API: Style, EdgeStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:203
pointerEvents (optional)
readonly pointerEvents?: PibblPointerEvents | undefinedRelated API: PibblPointerEvents.
Whether this content participates in pointer targeting. See PibblPointerEvents.
keyboardFocusable (optional)
readonly keyboardFocusable?: boolean | undefinedWhether the mark enters logical keyboard focus. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:185
keyboardNavigationBounds (optional)
readonly keyboardNavigationBounds?: Readonly<{ x: number; y: number; width: number; height: number; }> | undefinedLogical bounds used for keyboard navigation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:187
GraphLabelProps
Section titled “GraphLabelProps”Geometry and paint for a decorative GraphLabel. GraphLayout
interface GraphLabelPropsRelated API: GraphLabelProps.
View source — packages/core/src/features/viz/lib/graph/types.ts:206
Properties and methods
Section titled “Properties and methods”
label
readonly label: LabelGeometryRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:208
style (optional)
readonly style?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:210
GraphViewProps
Section titled “GraphViewProps”A layout snapshot plus mark overrides, without running an algorithm. GraphLayout
interface GraphViewProps<N, E> extends GraphPresentation<N, E>Related API: GraphViewProps, GraphPresentation.
View source — packages/core/src/features/viz/lib/graph/types.ts:213
Properties and methods
Section titled “Properties and methods”
layout
readonly layout: SignalValue<GraphLayout<N, E>>Related API: SignalValue, GraphLayout.
Immutable layout snapshot for ordinary mark composition. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:215
style (optional)
readonly style?: Style<GStyle> | undefinedFrame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:217
nodeStyle (optional)
readonly nodeStyle?: MarkStyle<GraphNodeGeometry<N>, NodeStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, NodeStyle.
Style or geometry-aware style for node marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:156
edgeStyle (optional)
readonly edgeStyle?: MarkStyle<GraphEdgeGeometry<E>, EdgeStyle> | undefinedRelated API: MarkStyle, GraphEdgeGeometry, EdgeStyle.
Style or geometry-aware style for edge marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:158
labelStyle (optional)
readonly labelStyle?: MarkStyle<GraphNodeGeometry<N>, LabelStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:160
renderNode (optional)
readonly renderNode?: ((node: GraphNodeGeometry<N>) => PibblNode) | undefinedRelated API: GraphNodeGeometry, PibblNode.
Replaces the default node mark with this composition. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:164
renderEdge (optional)
readonly renderEdge?: ((edge: GraphEdgeGeometry<E>) => PibblNode) | undefinedRelated API: GraphEdgeGeometry, PibblNode.
Replaces the default edge mark with this composition. GraphLayout
Parameters
Section titled “Parameters”edge— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:168
onNodeClick (optional)
readonly onNodeClick?: ((node: GraphNodeGeometry<N>, event: ClickEvent) => void) | undefinedRelated API: GraphNodeGeometry.
Receives clicks on a node mark. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:172
onEdgeClick (optional)
readonly onEdgeClick?: ((edge: GraphEdgeGeometry<E>, event: ClickEvent) => void) | undefinedRelated API: GraphEdgeGeometry.
Receives clicks on an edge mark. GraphLayout
Parameters
Section titled “Parameters”-
edge— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:176
DependencyStyle
Section titled “DependencyStyle”Frame options for rank-based dependency diagrams. GraphLayout
interface DependencyStyle extends GStyleRelated API: DependencyStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:221
Properties and methods
Section titled “Properties and methods”
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
rankGap (optional)
readonly rankGap?: number | undefinedDistance between ranks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:223
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:225
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
DependencyOptions
Section titled “DependencyOptions”Pure layout inputs for a directed dependency graph. GraphLayout
interface DependencyOptions<N, E> extends GraphAccessors<N, E>Related API: DependencyOptions, GraphAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:228
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:230
nodeSize (optional)
readonly nodeSize?: Size | ((node: N) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:234
rankGap (optional)
readonly rankGap?: number | undefinedDistance between ranks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:240
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:242
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
DependencyGraphProps
Section titled “DependencyGraphProps”Reactive dependency data and default mark presentation. GraphLayout
interface DependencyGraphProps<N, E> extends GraphAccessors<N, E>, GraphPresentation<N, E>Related API: DependencyGraphProps, GraphAccessors, GraphPresentation.
View source — packages/core/src/features/viz/lib/graph/types.ts:245
Properties and methods
Section titled “Properties and methods”
graph
readonly graph: SignalValue<GraphData<N, E>>Related API: SignalValue, GraphData.
Graph records; publish a new snapshot to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:248
nodeSize (optional)
readonly nodeSize?: Size | ((node: N) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:252
style (optional)
readonly style?: Style<DependencyStyle> | undefinedRelated API: Style, DependencyStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:258
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
nodeStyle (optional)
readonly nodeStyle?: MarkStyle<GraphNodeGeometry<N>, NodeStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, NodeStyle.
Style or geometry-aware style for node marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:156
edgeStyle (optional)
readonly edgeStyle?: MarkStyle<GraphEdgeGeometry<E>, EdgeStyle> | undefinedRelated API: MarkStyle, GraphEdgeGeometry, EdgeStyle.
Style or geometry-aware style for edge marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:158
labelStyle (optional)
readonly labelStyle?: MarkStyle<GraphNodeGeometry<N>, LabelStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:160
renderNode (optional)
readonly renderNode?: ((node: GraphNodeGeometry<N>) => PibblNode) | undefinedRelated API: GraphNodeGeometry, PibblNode.
Replaces the default node mark with this composition. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:164
renderEdge (optional)
readonly renderEdge?: ((edge: GraphEdgeGeometry<E>) => PibblNode) | undefinedRelated API: GraphEdgeGeometry, PibblNode.
Replaces the default edge mark with this composition. GraphLayout
Parameters
Section titled “Parameters”edge— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:168
onNodeClick (optional)
readonly onNodeClick?: ((node: GraphNodeGeometry<N>, event: ClickEvent) => void) | undefinedRelated API: GraphNodeGeometry.
Receives clicks on a node mark. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:172
onEdgeClick (optional)
readonly onEdgeClick?: ((edge: GraphEdgeGeometry<E>, event: ClickEvent) => void) | undefinedRelated API: GraphEdgeGeometry.
Receives clicks on an edge mark. GraphLayout
Parameters
Section titled “Parameters”-
edge— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:176
ForceSettings
Section titled “ForceSettings”Bounded deterministic numeric settings for force solving. GraphLayout
interface ForceSettingsRelated API: ForceSettings.
View source — packages/core/src/features/viz/lib/graph/types.ts:262
Properties and methods
Section titled “Properties and methods”
seed (optional)
readonly seed?: number | undefinedDeterministic seed for solver initialization. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:264
linkDistance (optional)
readonly linkDistance?: number | undefinedPreferred link distance in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:266
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:268
maxIterations (optional)
readonly maxIterations?: number | undefinedMaximum solver iterations before exhaustion. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:270
ForceOptions
Section titled “ForceOptions”Pure force-layout inputs, accessors, bounds, and solver settings. GraphLayout
interface ForceOptions<N, E> extends GraphAccessors<N, E>Related API: ForceOptions, GraphAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:273
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:275
nodeSize (optional)
readonly nodeSize?: Size | ((node: N) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:279
simulation (optional)
readonly simulation?: ForceSettings | undefinedRelated API: ForceSettings.
Optional deterministic solver settings. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:285
directed (optional)
readonly directed?: boolean | undefinedWhether direction affects the algorithm. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:287
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
ForceLayout
Section titled “ForceLayout”A force-solver snapshot with bounded progress state. GraphLayout
interface ForceLayout<N, E> extends GraphLayout<N, E>Related API: ForceLayout, GraphLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:290
Properties and methods
Section titled “Properties and methods”
iterations
readonly iterations: numberIterations completed by the solver. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:292
settled
readonly settled: booleanWhether the solver reached its stopping condition. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:294
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:143
nodes
readonly nodes: readonly GraphNodeGeometry<N>[]Related API: GraphNodeGeometry.
Source nodes in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:145
edges
readonly edges: readonly GraphEdgeGeometry<E>[]Related API: GraphEdgeGeometry.
Source edges in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:147
ForceNetworkController
Section titled “ForceNetworkController”Hook-owned live solver state and commands; released on unmount. GraphLayout
interface ForceNetworkController<N, E>Related API: ForceNetworkController.
View source — packages/core/src/features/viz/lib/graph/types.ts:297
Properties and methods
Section titled “Properties and methods”
layout
readonly layout: Signal<ForceLayout<N, E>>Related API: Signal, ForceLayout.
Immutable layout snapshot for ordinary mark composition. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:299
status
readonly status: Signal<"exhausted" | "failed" | "paused" | "running" | "settled">Related API: Signal.
Current solver lifecycle status. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:301
error
readonly error: Signal<Error | null>Related API: Signal.
Most recent solver failure, or null. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:305
pause
pause: () => voidQueues a pause at the next scheduler boundary. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:307
resume
resume: () => voidQueues solver advancement at the next scheduler boundary. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:309
restart
restart: () => voidRestarts the current solver without discarding node positions. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:311
reset
reset: () => voidRestores seeded positions and clears pins. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:313
pin
pin: (key: VizKey, position: Point) => voidPins one node at a finite local position. GraphLayout
Parameters
Section titled “Parameters”-
key— The source record or geometry supplied by Pibbl. -
position— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:317
release
release: (key: VizKey) => voidRelated API: VizKey.
Releases a previously pinned node. GraphLayout
Parameters
Section titled “Parameters”key— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:320
ForceStyle
Section titled “ForceStyle”Frame style for a live force network. GraphLayout
type ForceStyle = GStyleRelated API: ForceStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:323
Properties and methods
Section titled “Properties and methods”
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
ForceNetworkProps
Section titled “ForceNetworkProps”Reactive force-network data, solver settings, and presentation. GraphLayout
interface ForceNetworkProps<N, E> extends GraphAccessors<N, E>, GraphPresentation<N, E>Related API: ForceNetworkProps, GraphAccessors, GraphPresentation.
View source — packages/core/src/features/viz/lib/graph/types.ts:325
Properties and methods
Section titled “Properties and methods”
createSimulation (optional)
readonly createSimulation?: ForceSimulationFactory<N, E> | undefinedRelated API: ForceSimulationFactory.
Optional compatible numeric solver factory. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:328
graph
readonly graph: SignalValue<GraphData<N, E>>Related API: SignalValue, GraphData.
Graph records; publish a new snapshot to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:330
nodeSize (optional)
readonly nodeSize?: Size | ((node: N) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:334
simulation (optional)
readonly simulation?: ForceSettings | undefinedRelated API: ForceSettings.
Optional deterministic solver settings. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:340
directed (optional)
readonly directed?: boolean | undefinedWhether direction affects the algorithm. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:342
paused (optional)
readonly paused?: SignalValue<boolean> | undefinedRelated API: SignalValue.
Signal controlling whether simulation advances. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:344
style (optional)
readonly style?: Style<GStyle> | undefinedFrame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:346
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
nodeStyle (optional)
readonly nodeStyle?: MarkStyle<GraphNodeGeometry<N>, NodeStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, NodeStyle.
Style or geometry-aware style for node marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:156
edgeStyle (optional)
readonly edgeStyle?: MarkStyle<GraphEdgeGeometry<E>, EdgeStyle> | undefinedRelated API: MarkStyle, GraphEdgeGeometry, EdgeStyle.
Style or geometry-aware style for edge marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:158
labelStyle (optional)
readonly labelStyle?: MarkStyle<GraphNodeGeometry<N>, LabelStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:160
renderNode (optional)
readonly renderNode?: ((node: GraphNodeGeometry<N>) => PibblNode) | undefinedRelated API: GraphNodeGeometry, PibblNode.
Replaces the default node mark with this composition. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:164
renderEdge (optional)
readonly renderEdge?: ((edge: GraphEdgeGeometry<E>) => PibblNode) | undefinedRelated API: GraphEdgeGeometry, PibblNode.
Replaces the default edge mark with this composition. GraphLayout
Parameters
Section titled “Parameters”edge— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:168
onNodeClick (optional)
readonly onNodeClick?: ((node: GraphNodeGeometry<N>, event: ClickEvent) => void) | undefinedRelated API: GraphNodeGeometry.
Receives clicks on a node mark. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:172
onEdgeClick (optional)
readonly onEdgeClick?: ((edge: GraphEdgeGeometry<E>, event: ClickEvent) => void) | undefinedRelated API: GraphEdgeGeometry.
Receives clicks on an edge mark. GraphLayout
Parameters
Section titled “Parameters”-
edge— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:176
ForceHookOptions
Section titled “ForceHookOptions”Configuration for a hook-owned force solver session. GraphLayout
interface ForceHookOptions<N, E> extends ForceOptions<N, E>Related API: ForceHookOptions, ForceOptions.
View source — packages/core/src/features/viz/lib/graph/types.ts:349
Properties and methods
Section titled “Properties and methods”
initialPaused (optional)
readonly initialPaused?: boolean | undefinedInitial paused state for a new controller. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:351
createSimulation (optional)
readonly createSimulation?: ForceSimulationFactory<N, E> | undefinedRelated API: ForceSimulationFactory.
Optional compatible numeric solver factory. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:353
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:275
nodeSize (optional)
readonly nodeSize?: Size | ((node: N) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:279
simulation (optional)
readonly simulation?: ForceSettings | undefinedRelated API: ForceSettings.
Optional deterministic solver settings. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:285
directed (optional)
readonly directed?: boolean | undefinedWhether direction affects the algorithm. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:287
HierarchyAccessors
Section titled “HierarchyAccessors”Typed readers for one rooted hierarchy with stable child order. GraphLayout
interface HierarchyAccessors<D>Related API: HierarchyAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:357
Properties and methods
Section titled “Properties and methods”
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
TreeEdge
Section titled “TreeEdge”The original parent and child records represented by a tree edge. GraphLayout
interface TreeEdge<D>Related API: TreeEdge.
View source — packages/core/src/features/viz/lib/graph/types.ts:370
Properties and methods
Section titled “Properties and methods”
parent
readonly parent: DOriginal parent record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:372
child
readonly child: DOriginal child record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:374
TreeNodeGeometry
Section titled “TreeNodeGeometry”Tree node geometry with ancestry and collapsed-child information. GraphLayout
interface TreeNodeGeometry<D> extends GraphNodeGeometry<D>Related API: TreeNodeGeometry, GraphNodeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:377
Properties and methods
Section titled “Properties and methods”
depth
readonly depth: numberZero-based hierarchy depth. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:379
parentKey
readonly parentKey: VizKey | nullRelated API: VizKey.
Parent key, or null for a top-level item. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:381
hiddenChildren
readonly hiddenChildren: numberNumber of children omitted by collapse. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:383
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:101
datum
readonly datum: DOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:103
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:105
label
readonly label: LabelGeometryRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:107
detail
readonly detail: LabelGeometry | nullRelated API: LabelGeometry.
Optional secondary label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:109
TreeLayout
Section titled “TreeLayout”Immutable tidy-tree node and edge geometry. GraphLayout
interface TreeLayout<D> extends GraphLayout<D, TreeEdge<D>>Related API: TreeLayout, GraphLayout, TreeEdge.
View source — packages/core/src/features/viz/lib/graph/types.ts:386
Properties and methods
Section titled “Properties and methods”
nodes
readonly nodes: readonly TreeNodeGeometry<D>[]Related API: TreeNodeGeometry.
Source nodes in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:388
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:143
edges
readonly edges: readonly GraphEdgeGeometry<TreeEdge<D>>[]Related API: GraphEdgeGeometry, TreeEdge.
Source edges in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:147
TreeStyle
Section titled “TreeStyle”Frame options controlling tree level and sibling spacing. GraphLayout
interface TreeStyle extends GStyleRelated API: TreeStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:391
Properties and methods
Section titled “Properties and methods”
levelGap (optional)
readonly levelGap?: number | undefinedGap between hierarchy levels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:393
siblingGap (optional)
readonly siblingGap?: number | undefinedGap between sibling subtrees in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:395
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
TreeOptions
Section titled “TreeOptions”Pure tidy-tree inputs including bounds and optional dimensions. GraphLayout
interface TreeOptions<D> extends HierarchyAccessors<D>Related API: TreeOptions, HierarchyAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:398
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:400
detail (optional)
readonly detail?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:402
nodeSize (optional)
readonly nodeSize?: Size | ((node: D) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:406
levelGap (optional)
readonly levelGap?: number | undefinedGap between hierarchy levels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:412
siblingGap (optional)
readonly siblingGap?: number | undefinedGap between sibling subtrees in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:414
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
TidyTreeProps
Section titled “TidyTreeProps”Reactive hierarchy data and presentation for TidyTree. GraphLayout
interface TidyTreeProps<D> extends HierarchyAccessors<D>, GraphPresentation<D, TreeEdge<D>, TreeNodeGeometry<D>>Related API: TidyTreeProps, HierarchyAccessors, GraphPresentation, TreeEdge, TreeNodeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:417
Properties and methods
Section titled “Properties and methods”
root
readonly root: SignalValue<D>Related API: SignalValue.
Hierarchy root; publish a new root to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:422
detail (optional)
readonly detail?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:424
nodeSize (optional)
readonly nodeSize?: Size | ((node: D) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:428
renderNode (optional)
readonly renderNode?: ((node: TreeNodeGeometry<D>) => PibblNode) | undefinedRelated API: TreeNodeGeometry, PibblNode.
Replaces the default node mark with this composition. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:436
onNodeClick (optional)
readonly onNodeClick?: ((node: TreeNodeGeometry<D>, event: ClickEvent) => void) | undefinedRelated API: TreeNodeGeometry.
Receives clicks on a node mark. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:440
style (optional)
readonly style?: Style<TreeStyle> | undefinedRelated API: Style, TreeStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:442
nodeStyle (optional)
readonly nodeStyle?: MarkStyle<TreeNodeGeometry<D>, NodeStyle> | undefinedRelated API: MarkStyle, TreeNodeGeometry, NodeStyle.
Style or geometry-aware style for node marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:156
edgeStyle (optional)
readonly edgeStyle?: MarkStyle<GraphEdgeGeometry<TreeEdge<D>>, EdgeStyle> | undefinedRelated API: MarkStyle, GraphEdgeGeometry, TreeEdge, EdgeStyle.
Style or geometry-aware style for edge marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:158
labelStyle (optional)
readonly labelStyle?: MarkStyle<TreeNodeGeometry<D>, LabelStyle> | undefinedRelated API: MarkStyle, TreeNodeGeometry, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:160
renderEdge (optional)
readonly renderEdge?: ((edge: GraphEdgeGeometry<TreeEdge<D>>) => PibblNode) | undefinedRelated API: GraphEdgeGeometry, TreeEdge, PibblNode.
Replaces the default edge mark with this composition. GraphLayout
Parameters
Section titled “Parameters”edge— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:168
onEdgeClick (optional)
readonly onEdgeClick?: ((edge: GraphEdgeGeometry<TreeEdge<D>>, event: ClickEvent) => void) | undefinedRelated API: GraphEdgeGeometry, TreeEdge.
Receives clicks on an edge mark. GraphLayout
Parameters
Section titled “Parameters”-
edge— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:176
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
MatrixData
Section titled “MatrixData”Ordered row, column, and relation records for an adjacency matrix. GraphLayout
interface MatrixData<R, C, E>Related API: MatrixData.
View source — packages/core/src/features/viz/lib/graph/types.ts:446
Properties and methods
Section titled “Properties and methods”
rows
readonly rows: readonly R[]Ordered source row records. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:448
columns
readonly columns: readonly C[]Ordered source column records. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:450
relations
readonly relations: readonly E[]Source relation records. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:452
MatrixAccessors
Section titled “MatrixAccessors”Typed matrix keys, quantity reader, labels, and display unit. GraphLayout
interface MatrixAccessors<R, C, E>Related API: MatrixAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:455
Properties and methods
Section titled “Properties and methods”
rowKey
readonly rowKey: Accessor<R, VizKey>Related API: Accessor, VizKey.
Stable row key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:457
columnKey
readonly columnKey: Accessor<C, VizKey>Related API: Accessor, VizKey.
Stable column key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:459
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:461
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:463
value
readonly value: Accessor<E, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:465
rowLabel (optional)
readonly rowLabel?: Accessor<R, string> | undefinedRelated API: Accessor.
Reads a row label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:467
columnLabel (optional)
readonly columnLabel?: Accessor<C, string> | undefinedRelated API: Accessor.
Reads a column label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:469
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:471
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:475
MatrixCellGeometry
Section titled “MatrixCellGeometry”Immutable aggregate geometry for one ordered row/column pair. GraphLayout
interface MatrixCellGeometry<R, C, E>Related API: MatrixCellGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:478
Properties and methods
Section titled “Properties and methods”
row
readonly row: ROriginal row record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:480
column
readonly column: COriginal column record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:482
rowKey
readonly rowKey: VizKeyRelated API: VizKey.
Stable row key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:484
columnKey
readonly columnKey: VizKeyRelated API: VizKey.
Stable column key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:486
records
readonly records: readonly E[]Original records represented by this aggregate. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:488
value
readonly value: number | nullReads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:490
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:492
label
readonly label: LabelGeometry | nullRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:494
MatrixLayout
Section titled “MatrixLayout”Immutable matrix cells and decorative axis labels. GraphLayout
interface MatrixLayout<R, C, E>Related API: MatrixLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:497
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:499
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:501
cells
readonly cells: readonly MatrixCellGeometry<R, C, E>[]Related API: MatrixCellGeometry.
Immutable cells in source-stable layout order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:503
rowLabels
readonly rowLabels: readonly LabelGeometry[]Related API: LabelGeometry.
Decorative labels for matrix rows. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:505
columnLabels
readonly columnLabels: readonly LabelGeometry[]Related API: LabelGeometry.
Decorative labels for matrix columns. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:507
MatrixStyle
Section titled “MatrixStyle”Frame options for matrix gaps and label reservations. GraphLayout
interface MatrixStyle extends GStyleRelated API: MatrixStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:510
Properties and methods
Section titled “Properties and methods”
cellGap (optional)
readonly cellGap?: number | undefinedGap between cells in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:512
rowLabelWidth (optional)
readonly rowLabelWidth?: number | undefinedReserved width for matrix row labels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:514
columnLabelHeight (optional)
readonly columnLabelHeight?: number | undefinedReserved height for matrix column labels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:516
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
MatrixOptions
Section titled “MatrixOptions”Pure adjacency-matrix inputs and finite output bounds. GraphLayout
interface MatrixOptions<R, C, E> extends MatrixAccessors<R, C, E>Related API: MatrixOptions, MatrixAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:519
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:521
cellGap (optional)
readonly cellGap?: number | undefinedGap between cells in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:523
rowLabelWidth (optional)
readonly rowLabelWidth?: number | undefinedReserved width for matrix row labels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:525
columnLabelHeight (optional)
readonly columnLabelHeight?: number | undefinedReserved height for matrix column labels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:527
rowKey
readonly rowKey: Accessor<R, VizKey>Related API: Accessor, VizKey.
Stable row key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:457
columnKey
readonly columnKey: Accessor<C, VizKey>Related API: Accessor, VizKey.
Stable column key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:459
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:461
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:463
value
readonly value: Accessor<E, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:465
rowLabel (optional)
readonly rowLabel?: Accessor<R, string> | undefinedRelated API: Accessor.
Reads a row label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:467
columnLabel (optional)
readonly columnLabel?: Accessor<C, string> | undefinedRelated API: Accessor.
Reads a column label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:469
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:471
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:475
AdjacencyMatrixProps
Section titled “AdjacencyMatrixProps”Reactive matrix data and cell presentation. GraphLayout
interface AdjacencyMatrixProps<R, C, E> extends MatrixAccessors< R, C, E>Related API: AdjacencyMatrixProps, MatrixAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:530
Properties and methods
Section titled “Properties and methods”
data
readonly data: SignalValue<MatrixData<R, C, E>>Related API: SignalValue, MatrixData.
Input records; publish a new snapshot to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:536
style (optional)
readonly style?: Style<MatrixStyle> | undefinedRelated API: Style, MatrixStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:538
cellStyle (optional)
readonly cellStyle?: MarkStyle<MatrixCellGeometry<R, C, E>, NodeStyle> | undefinedRelated API: MarkStyle, MatrixCellGeometry, NodeStyle.
Style or geometry-aware style for cell marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:540
labelStyle (optional)
readonly labelStyle?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:542
renderCell (optional)
readonly renderCell?: ((cell: MatrixCellGeometry<R, C, E>) => PibblNode) | undefinedRelated API: MatrixCellGeometry, PibblNode.
Replaces the default cell mark with this composition. GraphLayout
Parameters
Section titled “Parameters”cell— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:546
onCellClick (optional)
readonly onCellClick?: ((cell: MatrixCellGeometry<R, C, E>, event: ClickEvent) => void) | undefinedRelated API: MatrixCellGeometry.
Receives clicks on a cell mark. GraphLayout
Parameters
Section titled “Parameters”-
cell— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:550
rowKey
readonly rowKey: Accessor<R, VizKey>Related API: Accessor, VizKey.
Stable row key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:457
columnKey
readonly columnKey: Accessor<C, VizKey>Related API: Accessor, VizKey.
Stable column key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:459
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:461
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:463
value
readonly value: Accessor<E, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:465
rowLabel (optional)
readonly rowLabel?: Accessor<R, string> | undefinedRelated API: Accessor.
Reads a row label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:467
columnLabel (optional)
readonly columnLabel?: Accessor<C, string> | undefinedRelated API: Accessor.
Reads a column label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:469
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:471
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:475
MatrixCellProps
Section titled “MatrixCellProps”Geometry, paint, events, and content for one matrix cell. GraphLayout
interface MatrixCellProps<R, C, E> extends MarkInteractionRelated API: MatrixCellProps, MarkInteraction.
View source — packages/core/src/features/viz/lib/graph/types.ts:556
Properties and methods
Section titled “Properties and methods”
cell
readonly cell: MatrixCellGeometry<R, C, E>Related API: MatrixCellGeometry.
Immutable cell geometry and its original records. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:558
style (optional)
readonly style?: Style<NodeStyle> | undefinedRelated API: Style, NodeStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:560
children (optional)
readonly children?: PibblNodeRelated API: PibblNode.
Optional content painted with this mark. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:562
pointerEvents (optional)
readonly pointerEvents?: PibblPointerEvents | undefinedRelated API: PibblPointerEvents.
Whether this content participates in pointer targeting. See PibblPointerEvents.
keyboardFocusable (optional)
readonly keyboardFocusable?: boolean | undefinedWhether the mark enters logical keyboard focus. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:185
keyboardNavigationBounds (optional)
readonly keyboardNavigationBounds?: Readonly<{ x: number; y: number; width: number; height: number; }> | undefinedLogical bounds used for keyboard navigation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:187
SankeyNodeGeometry
Section titled “SankeyNodeGeometry”Node geometry annotated with incoming, outgoing, and net quantities. GraphLayout
interface SankeyNodeGeometry<N> extends GraphNodeGeometry<N>Related API: SankeyNodeGeometry, GraphNodeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:566
Properties and methods
Section titled “Properties and methods”
incomingValue
readonly incomingValue: numberTotal value arriving at this node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:568
outgoingValue
readonly outgoingValue: numberTotal value leaving this node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:570
netValue
readonly netValue: numberOutgoing value minus incoming value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:572
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:101
datum
readonly datum: NOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:103
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:105
label
readonly label: LabelGeometryRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:107
detail
readonly detail: LabelGeometry | nullRelated API: LabelGeometry.
Optional secondary label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:109
SankeyFlowGeometry
Section titled “SankeyFlowGeometry”Flow geometry annotated with its source quantity and pixel thickness. GraphLayout
interface SankeyFlowGeometry<E> extends GraphEdgeGeometry<E>Related API: SankeyFlowGeometry, GraphEdgeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:575
Properties and methods
Section titled “Properties and methods”
value
readonly value: numberReads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:577
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:579
sourceSpan
readonly sourceSpan: Readonly<{ top: Point; bottom: Point; }>Related API: Point.
Source-side flow attachment span. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:581
targetSpan
readonly targetSpan: Readonly<{ top: Point; bottom: Point; }>Related API: Point.
Target-side flow attachment span. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:588
thickness
readonly thickness: numberFlow width in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:595
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:126
datum
readonly datum: EOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:128
sourceKey
readonly sourceKey: VizKeyRelated API: VizKey.
Stable key of the edge source node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:130
targetKey
readonly targetKey: VizKeyRelated API: VizKey.
Stable key of the edge target node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:132
route
readonly route: GraphRouteRelated API: GraphRoute.
Structured route used to produce the serialized path. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:134
path
readonly path: stringSVG path serialization of the route. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:136
arrowPath
readonly arrowPath: string | nullOptional SVG path for the route arrow. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:138
SankeyLayout
Section titled “SankeyLayout”Immutable Sankey nodes and flows with their display unit. GraphLayout
interface SankeyLayout<N, E>Related API: SankeyLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:598
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:600
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:602
nodes
readonly nodes: readonly SankeyNodeGeometry<N>[]Related API: SankeyNodeGeometry.
Source nodes in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:604
flows
readonly flows: readonly SankeyFlowGeometry<E>[]Related API: SankeyFlowGeometry.
Immutable Sankey flow geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:606
SankeyAccessors
Section titled “SankeyAccessors”Typed Sankey keys, flow quantity reader, and display unit. GraphLayout
interface SankeyAccessors<N, E> extends GraphAccessors<N, E>Related API: SankeyAccessors, GraphAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:609
Properties and methods
Section titled “Properties and methods”
value
readonly value: Accessor<E, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:611
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:613
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:617
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
SankeyStyle
Section titled “SankeyStyle”Frame options for Sankey node width and separation. GraphLayout
interface SankeyStyle extends GStyleRelated API: SankeyStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:620
Properties and methods
Section titled “Properties and methods”
nodeWidth (optional)
readonly nodeWidth?: number | undefinedWidth of Sankey nodes in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:622
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:624
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
SankeyOptions
Section titled “SankeyOptions”Pure Sankey inputs and finite output bounds. GraphLayout
interface SankeyOptions<N, E> extends SankeyAccessors<N, E>Related API: SankeyOptions, SankeyAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:627
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:629
nodeWidth (optional)
readonly nodeWidth?: number | undefinedWidth of Sankey nodes in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:631
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:633
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
value
readonly value: Accessor<E, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:611
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:613
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:617
SankeyProps
Section titled “SankeyProps”Reactive Sankey data and default flow/node presentation. GraphLayout
interface SankeyProps<N, E> extends SankeyAccessors<N, E>Related API: SankeyProps, SankeyAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:636
Properties and methods
Section titled “Properties and methods”
graph
readonly graph: SignalValue<GraphData<N, E>>Related API: SignalValue, GraphData.
Graph records; publish a new snapshot to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:638
style (optional)
readonly style?: Style<SankeyStyle> | undefinedRelated API: Style, SankeyStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:640
nodeStyle (optional)
readonly nodeStyle?: MarkStyle<SankeyNodeGeometry<N>, NodeStyle> | undefinedRelated API: MarkStyle, SankeyNodeGeometry, NodeStyle.
Style or geometry-aware style for node marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:642
flowStyle (optional)
readonly flowStyle?: MarkStyle<SankeyFlowGeometry<E>, EdgeStyle> | undefinedRelated API: MarkStyle, SankeyFlowGeometry, EdgeStyle.
Style or geometry-aware style for flow marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:644
labelStyle (optional)
readonly labelStyle?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:646
renderNode (optional)
readonly renderNode?: ((node: SankeyNodeGeometry<N>) => PibblNode) | undefinedRelated API: SankeyNodeGeometry, PibblNode.
Replaces the default node mark with this composition. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:650
renderFlow (optional)
readonly renderFlow?: ((flow: SankeyFlowGeometry<E>) => PibblNode) | undefinedRelated API: SankeyFlowGeometry, PibblNode.
Replaces the default flow mark with this composition. GraphLayout
Parameters
Section titled “Parameters”flow— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:654
onNodeClick (optional)
readonly onNodeClick?: ((node: SankeyNodeGeometry<N>, event: ClickEvent) => void) | undefinedRelated API: SankeyNodeGeometry.
Receives clicks on a node mark. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:658
onFlowClick (optional)
readonly onFlowClick?: ((flow: SankeyFlowGeometry<E>, event: ClickEvent) => void) | undefinedRelated API: SankeyFlowGeometry.
Receives clicks on a flow mark. GraphLayout
Parameters
Section titled “Parameters”-
flow— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:665
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
value
readonly value: Accessor<E, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:611
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:613
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:617
BipartiteData
Section titled “BipartiteData”Ordered left, right, and edge records for a two-sided graph. GraphLayout
interface BipartiteData<L, R, E>Related API: BipartiteData.
View source — packages/core/src/features/viz/lib/graph/types.ts:672
Properties and methods
Section titled “Properties and methods”
left
readonly left: readonly L[]Left-side endpoint geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:674
right
readonly right: readonly R[]Right-side endpoint geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:676
edges
readonly edges: readonly E[]Source edges in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:678
BipartiteAccessors
Section titled “BipartiteAccessors”Typed keys and optional labels for both graph sides. GraphLayout
interface BipartiteAccessors<L, R, E>Related API: BipartiteAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:681
Properties and methods
Section titled “Properties and methods”
leftKey
readonly leftKey: Accessor<L, VizKey>Related API: Accessor, VizKey.
Reads each left-side record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:683
rightKey
readonly rightKey: Accessor<R, VizKey>Related API: Accessor, VizKey.
Reads each right-side record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:685
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:687
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:689
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:691
leftLabel (optional)
readonly leftLabel?: Accessor<L, string> | undefinedRelated API: Accessor.
Optional reader for a left-side label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:693
rightLabel (optional)
readonly rightLabel?: Accessor<R, string> | undefinedRelated API: Accessor.
Optional reader for a right-side label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:695
BipartiteEdgeGeometry
Section titled “BipartiteEdgeGeometry”Edge geometry retaining side-qualified endpoints. GraphLayout
interface BipartiteEdgeGeometry<L, R, E> extends GraphEdgeGeometry<E>Related API: BipartiteEdgeGeometry, GraphEdgeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:698
Properties and methods
Section titled “Properties and methods”
left
readonly left: GraphNodeGeometry<L>Related API: GraphNodeGeometry.
Left-side endpoint geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:700
right
readonly right: GraphNodeGeometry<R>Related API: GraphNodeGeometry.
Right-side endpoint geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:702
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:126
datum
readonly datum: EOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:128
sourceKey
readonly sourceKey: VizKeyRelated API: VizKey.
Stable key of the edge source node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:130
targetKey
readonly targetKey: VizKeyRelated API: VizKey.
Stable key of the edge target node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:132
route
readonly route: GraphRouteRelated API: GraphRoute.
Structured route used to produce the serialized path. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:134
path
readonly path: stringSVG path serialization of the route. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:136
arrowPath
readonly arrowPath: string | nullOptional SVG path for the route arrow. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:138
BipartiteLayout
Section titled “BipartiteLayout”Immutable left nodes, right nodes, and their connecting edges. GraphLayout
interface BipartiteLayout<L, R, E>Related API: BipartiteLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:705
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:707
left
readonly left: readonly GraphNodeGeometry<L>[]Related API: GraphNodeGeometry.
Left-side endpoint geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:709
right
readonly right: readonly GraphNodeGeometry<R>[]Related API: GraphNodeGeometry.
Right-side endpoint geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:711
edges
readonly edges: readonly BipartiteEdgeGeometry<L, R, E>[]Related API: BipartiteEdgeGeometry.
Source edges in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:713
BipartiteStyle
Section titled “BipartiteStyle”Frame options for two-sided graph columns and node spacing. GraphLayout
interface BipartiteStyle extends GStyleRelated API: BipartiteStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:716
Properties and methods
Section titled “Properties and methods”
columnGap (optional)
readonly columnGap?: number | undefinedDistance between bipartite columns in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:718
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:720
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
BipartiteOptions
Section titled “BipartiteOptions”Pure bipartite inputs, side dimensions, and finite bounds. GraphLayout
interface BipartiteOptions<L, R, E> extends BipartiteAccessors<L, R, E>Related API: BipartiteOptions, BipartiteAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:723
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:725
leftSize (optional)
readonly leftSize?: Size | ((datum: L) => Size) | undefinedRelated API: Size.
Optional left-node size reader in local logical pixels. GraphLayout
Parameters
Section titled “Parameters”datum— Left-side source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:729
rightSize (optional)
readonly rightSize?: Size | ((datum: R) => Size) | undefinedRelated API: Size.
Optional right-node size reader in local logical pixels. GraphLayout
Parameters
Section titled “Parameters”datum— Right-side source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:737
columnGap (optional)
readonly columnGap?: number | undefinedDistance between bipartite columns in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:743
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:745
leftKey
readonly leftKey: Accessor<L, VizKey>Related API: Accessor, VizKey.
Reads each left-side record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:683
rightKey
readonly rightKey: Accessor<R, VizKey>Related API: Accessor, VizKey.
Reads each right-side record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:685
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:687
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:689
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:691
leftLabel (optional)
readonly leftLabel?: Accessor<L, string> | undefinedRelated API: Accessor.
Optional reader for a left-side label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:693
rightLabel (optional)
readonly rightLabel?: Accessor<R, string> | undefinedRelated API: Accessor.
Optional reader for a right-side label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:695
BipartiteGraphProps
Section titled “BipartiteGraphProps”Reactive bipartite data and side-specific mark presentation. GraphLayout
interface BipartiteGraphProps<L, R, E> extends BipartiteAccessors< L, R, E>Related API: BipartiteGraphProps, BipartiteAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:748
Properties and methods
Section titled “Properties and methods”
graph
readonly graph: SignalValue<BipartiteData<L, R, E>>Related API: SignalValue, BipartiteData.
Graph records; publish a new snapshot to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:754
leftSize (optional)
readonly leftSize?: Size | ((datum: L) => Size) | undefinedRelated API: Size.
Optional left-node size reader in local logical pixels. GraphLayout
Parameters
Section titled “Parameters”datum— Left-side source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:758
rightSize (optional)
readonly rightSize?: Size | ((datum: R) => Size) | undefinedRelated API: Size.
Optional right-node size reader in local logical pixels. GraphLayout
Parameters
Section titled “Parameters”datum— Right-side source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:766
style (optional)
readonly style?: Style<BipartiteStyle> | undefinedRelated API: Style, BipartiteStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:772
leftNodeStyle (optional)
readonly leftNodeStyle?: MarkStyle<GraphNodeGeometry<L>, NodeStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, NodeStyle.
Style or geometry-aware style for left nodes. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:774
rightNodeStyle (optional)
readonly rightNodeStyle?: MarkStyle<GraphNodeGeometry<R>, NodeStyle> | undefinedRelated API: MarkStyle, GraphNodeGeometry, NodeStyle.
Style or geometry-aware style for right nodes. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:776
edgeStyle (optional)
readonly edgeStyle?: MarkStyle<BipartiteEdgeGeometry<L, R, E>, EdgeStyle> | undefinedRelated API: MarkStyle, BipartiteEdgeGeometry, EdgeStyle.
Style or geometry-aware style for edge marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:778
labelStyle (optional)
readonly labelStyle?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:780
renderLeftNode (optional)
readonly renderLeftNode?: ((node: GraphNodeGeometry<L>) => PibblNode) | undefinedRelated API: GraphNodeGeometry, PibblNode.
Replaces a default left-node mark. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:784
renderRightNode (optional)
readonly renderRightNode?: ((node: GraphNodeGeometry<R>) => PibblNode) | undefinedRelated API: GraphNodeGeometry, PibblNode.
Replaces a default right-node mark. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:788
renderEdge (optional)
readonly renderEdge?: ((edge: BipartiteEdgeGeometry<L, R, E>) => PibblNode) | undefinedRelated API: BipartiteEdgeGeometry, PibblNode.
Replaces the default edge mark with this composition. GraphLayout
Parameters
Section titled “Parameters”edge— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:792
onLeftNodeClick (optional)
readonly onLeftNodeClick?: ((node: GraphNodeGeometry<L>, event: ClickEvent) => void) | undefinedRelated API: GraphNodeGeometry.
Receives clicks on left-side nodes. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:796
onRightNodeClick (optional)
readonly onRightNodeClick?: ((node: GraphNodeGeometry<R>, event: ClickEvent) => void) | undefinedRelated API: GraphNodeGeometry.
Receives clicks on right-side nodes. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:803
onEdgeClick (optional)
readonly onEdgeClick?: ((edge: BipartiteEdgeGeometry<L, R, E>, event: ClickEvent) => void) | undefinedRelated API: BipartiteEdgeGeometry.
Receives clicks on an edge mark. GraphLayout
Parameters
Section titled “Parameters”-
edge— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:810
leftKey
readonly leftKey: Accessor<L, VizKey>Related API: Accessor, VizKey.
Reads each left-side record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:683
rightKey
readonly rightKey: Accessor<R, VizKey>Related API: Accessor, VizKey.
Reads each right-side record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:685
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:687
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:689
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:691
leftLabel (optional)
readonly leftLabel?: Accessor<L, string> | undefinedRelated API: Accessor.
Optional reader for a left-side label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:693
rightLabel (optional)
readonly rightLabel?: Accessor<R, string> | undefinedRelated API: Accessor.
Optional reader for a right-side label. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:695
PartitionAccessors
Section titled “PartitionAccessors”Hierarchy readers plus a leaf quantity, unit, and optional formatter. GraphLayout
interface PartitionAccessors<D> extends HierarchyAccessors<D>Related API: PartitionAccessors, HierarchyAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:817
Properties and methods
Section titled “Properties and methods”
value
readonly value: Accessor<D, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:819
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:821
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:825
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
PartitionCellGeometry
Section titled “PartitionCellGeometry”Immutable hierarchy-cell geometry with aggregate quantity metadata. GraphLayout
interface PartitionCellGeometry<D>Related API: PartitionCellGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:828
Properties and methods
Section titled “Properties and methods”
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:830
datum
readonly datum: DOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:832
parentKey
readonly parentKey: VizKey | nullRelated API: VizKey.
Parent key, or null for a top-level item. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:834
depth
readonly depth: numberZero-based hierarchy depth. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:836
value
readonly value: numberReads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:838
fraction
readonly fraction: numberShare of the root total from zero through one. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:840
isLeaf
readonly isLeaf: booleanWhether the original record has no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:842
collapsed
readonly collapsed: booleanWhether this item hides its descendants. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:844
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:846
label
readonly label: LabelGeometry | nullRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:848
PartitionLayout
Section titled “PartitionLayout”Immutable hierarchy partition cells and root total. GraphLayout
interface PartitionLayout<D>Related API: PartitionLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:851
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:853
rootKey
readonly rootKey: VizKeyRelated API: VizKey.
Stable key of the hierarchy root. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:855
total
readonly total: numberSum of all source leaf values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:857
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:859
cells
readonly cells: readonly PartitionCellGeometry<D>[]Related API: PartitionCellGeometry.
Immutable cells in source-stable layout order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:861
PartitionPresentation
Section titled “PartitionPresentation”Default partition-cell paint, rendering, and click behavior. GraphLayout
interface PartitionPresentation<D>Related API: PartitionPresentation.
View source — packages/core/src/features/viz/lib/graph/types.ts:864
Properties and methods
Section titled “Properties and methods”
cellStyle (optional)
readonly cellStyle?: MarkStyle<PartitionCellGeometry<D>, NodeStyle> | undefinedRelated API: MarkStyle, PartitionCellGeometry, NodeStyle.
Style or geometry-aware style for cell marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:866
labelStyle (optional)
readonly labelStyle?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:868
renderCell (optional)
readonly renderCell?: ((cell: PartitionCellGeometry<D>) => PibblNode) | undefinedRelated API: PartitionCellGeometry, PibblNode.
Replaces the default cell mark with this composition. GraphLayout
Parameters
Section titled “Parameters”cell— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:872
onCellClick (optional)
readonly onCellClick?: ((cell: PartitionCellGeometry<D>, event: ClickEvent) => void) | undefinedRelated API: PartitionCellGeometry.
Receives clicks on a cell mark. GraphLayout
Parameters
Section titled “Parameters”-
cell— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:876
TreemapStyle
Section titled “TreemapStyle”Frame options for squarified-cell gaps, padding, and headers. GraphLayout
interface TreemapStyle extends GStyleRelated API: TreemapStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:882
Properties and methods
Section titled “Properties and methods”
cellGap (optional)
readonly cellGap?: number | undefinedGap between cells in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:884
padding (optional)
readonly padding?: number | undefinedInset inside each parent cell in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:886
headerHeight (optional)
readonly headerHeight?: number | undefinedReserved parent-header height in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:888
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
TreemapOptions
Section titled “TreemapOptions”Pure treemap inputs and finite output bounds. GraphLayout
interface TreemapOptions<D> extends PartitionAccessors<D>Related API: TreemapOptions, PartitionAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:891
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:893
cellGap (optional)
readonly cellGap?: number | undefinedGap between cells in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:895
padding (optional)
readonly padding?: number | undefinedInset inside each parent cell in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:897
headerHeight (optional)
readonly headerHeight?: number | undefinedReserved parent-header height in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:899
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
value
readonly value: Accessor<D, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:819
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:821
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:825
TreemapProps
Section titled “TreemapProps”Reactive hierarchy input and presentation for Treemap. GraphLayout
interface TreemapProps<D> extends PartitionAccessors<D>, PartitionPresentation<D>Related API: TreemapProps, PartitionAccessors, PartitionPresentation.
View source — packages/core/src/features/viz/lib/graph/types.ts:902
Properties and methods
Section titled “Properties and methods”
root
readonly root: SignalValue<D>Related API: SignalValue.
Hierarchy root; publish a new root to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:905
style (optional)
readonly style?: Style<TreemapStyle> | undefinedRelated API: Style, TreemapStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:907
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
value
readonly value: Accessor<D, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:819
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:821
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:825
cellStyle (optional)
readonly cellStyle?: MarkStyle<PartitionCellGeometry<D>, NodeStyle> | undefinedRelated API: MarkStyle, PartitionCellGeometry, NodeStyle.
Style or geometry-aware style for cell marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:866
labelStyle (optional)
readonly labelStyle?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:868
renderCell (optional)
readonly renderCell?: ((cell: PartitionCellGeometry<D>) => PibblNode) | undefinedRelated API: PartitionCellGeometry, PibblNode.
Replaces the default cell mark with this composition. GraphLayout
Parameters
Section titled “Parameters”cell— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:872
onCellClick (optional)
readonly onCellClick?: ((cell: PartitionCellGeometry<D>, event: ClickEvent) => void) | undefinedRelated API: PartitionCellGeometry.
Receives clicks on a cell mark. GraphLayout
Parameters
Section titled “Parameters”-
cell— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:876
PartitionCellProps
Section titled “PartitionCellProps”Geometry, paint, events, and content for one partition cell. GraphLayout
interface PartitionCellProps<D> extends MarkInteractionRelated API: PartitionCellProps, MarkInteraction.
View source — packages/core/src/features/viz/lib/graph/types.ts:910
Properties and methods
Section titled “Properties and methods”
cell
readonly cell: PartitionCellGeometry<D>Related API: PartitionCellGeometry.
Immutable cell geometry and its original records. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:912
style (optional)
readonly style?: Style<NodeStyle> | undefinedRelated API: Style, NodeStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:914
children (optional)
readonly children?: PibblNodeRelated API: PibblNode.
Optional content painted with this mark. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:916
pointerEvents (optional)
readonly pointerEvents?: PibblPointerEvents | undefinedRelated API: PibblPointerEvents.
Whether this content participates in pointer targeting. See PibblPointerEvents.
keyboardFocusable (optional)
readonly keyboardFocusable?: boolean | undefinedWhether the mark enters logical keyboard focus. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:185
keyboardNavigationBounds (optional)
readonly keyboardNavigationBounds?: Readonly<{ x: number; y: number; width: number; height: number; }> | undefinedLogical bounds used for keyboard navigation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:187
NeighborhoodStyle
Section titled “NeighborhoodStyle”Frame options for radial hop-ring and node spacing. GraphLayout
interface NeighborhoodStyle extends GStyleRelated API: NeighborhoodStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:920
Properties and methods
Section titled “Properties and methods”
ringGap (optional)
readonly ringGap?: number | undefinedRadial distance between hop rings in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:922
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:924
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
NeighborhoodOptions
Section titled “NeighborhoodOptions”Pure neighborhood inputs centered on one application key. GraphLayout
interface NeighborhoodOptions<N, E> extends GraphAccessors<N, E>Related API: NeighborhoodOptions, GraphAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:927
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:929
centerKey
readonly centerKey: VizKeyRelated API: VizKey.
Key placed at the center of the neighborhood. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:931
hops (optional)
readonly hops?: number | undefinedMaximum graph distance from the center; defaults to two. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:933
direction (optional)
readonly direction?: "either" | "inbound" | "outbound" | undefinedEdges followed while collecting the neighborhood. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:935
nodeSize (optional)
readonly nodeSize?: Size | ((node: N) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:939
ringGap (optional)
readonly ringGap?: number | undefinedRadial distance between hop rings in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:945
nodeGap (optional)
readonly nodeGap?: number | undefinedMinimum gap between node marks in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:947
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
NeighborhoodNodeGeometry
Section titled “NeighborhoodNodeGeometry”Node geometry annotated with its graph distance from center. GraphLayout
interface NeighborhoodNodeGeometry<N> extends GraphNodeGeometry<N>Related API: NeighborhoodNodeGeometry, GraphNodeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:950
Properties and methods
Section titled “Properties and methods”
hop
readonly hop: numberZero-based graph distance from the center. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:952
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:101
datum
readonly datum: NOriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:103
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:105
label
readonly label: LabelGeometryRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:107
detail
readonly detail: LabelGeometry | nullRelated API: LabelGeometry.
Optional secondary label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:109
NeighborhoodLayout
Section titled “NeighborhoodLayout”Immutable reachable nodes, retained edges, and omitted keys. GraphLayout
interface NeighborhoodLayout<N, E> extends GraphLayout<N, E>Related API: NeighborhoodLayout, GraphLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:955
Properties and methods
Section titled “Properties and methods”
centerKey
readonly centerKey: VizKeyRelated API: VizKey.
Key placed at the center of the neighborhood. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:957
nodes
readonly nodes: readonly NeighborhoodNodeGeometry<N>[]Related API: NeighborhoodNodeGeometry.
Source nodes in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:959
omittedKeys
readonly omittedKeys: readonly VizKey[]Related API: VizKey.
Known node keys outside the requested hop range. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:961
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:143
edges
readonly edges: readonly GraphEdgeGeometry<E>[]Related API: GraphEdgeGeometry.
Source edges in application order. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:147
RadialNeighborhoodProps
Section titled “RadialNeighborhoodProps”Reactive graph input and presentation for radial neighborhoods. GraphLayout
interface RadialNeighborhoodProps<N, E> extends GraphAccessors<N, E>, GraphPresentation<N, E, NeighborhoodNodeGeometry<N>>Related API: RadialNeighborhoodProps, GraphAccessors, GraphPresentation, NeighborhoodNodeGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:964
Properties and methods
Section titled “Properties and methods”
graph
readonly graph: SignalValue<GraphData<N, E>>Related API: SignalValue, GraphData.
Graph records; publish a new snapshot to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:969
centerKey
readonly centerKey: SignalValue<VizKey>Related API: SignalValue, VizKey.
Key placed at the center of the neighborhood. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:971
hops (optional)
readonly hops?: SignalValue<number> | undefinedRelated API: SignalValue.
Maximum graph distance from the center; defaults to two. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:973
direction (optional)
readonly direction?: "either" | "inbound" | "outbound" | undefinedEdges followed while collecting the neighborhood. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:975
nodeSize (optional)
readonly nodeSize?: Size | ((node: N) => Size) | undefinedRelated API: Size.
Node size in local logical pixels; defaults to 160 by 56. GraphLayout
Parameters
Section titled “Parameters”node— Source record to measure.
Returns
Section titled “Returns”Finite local logical size.
View source — packages/core/src/features/viz/lib/graph/types.ts:979
renderNode (optional)
readonly renderNode?: ((node: NeighborhoodNodeGeometry<N>) => PibblNode) | undefinedRelated API: NeighborhoodNodeGeometry, PibblNode.
Replaces the default node mark with this composition. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:987
onNodeClick (optional)
readonly onNodeClick?: ((node: NeighborhoodNodeGeometry<N>, event: ClickEvent) => void) | undefinedRelated API: NeighborhoodNodeGeometry.
Receives clicks on a node mark. GraphLayout
Parameters
Section titled “Parameters”-
node— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:991
style (optional)
readonly style?: Style<NeighborhoodStyle> | undefinedRelated API: Style, NeighborhoodStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:996
nodeKey
readonly nodeKey: Accessor<N, VizKey>Related API: Accessor, VizKey.
Reads each node’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:86
edgeKey
readonly edgeKey: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads each edge’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:88
source
readonly source: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:90
target
readonly target: Accessor<E, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:92
label (optional)
readonly label?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:94
detail (optional)
readonly detail?: Accessor<N, string> | undefinedRelated API: Accessor.
Optional reader for a node’s secondary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:96
nodeStyle (optional)
readonly nodeStyle?: MarkStyle<NeighborhoodNodeGeometry<N>, NodeStyle> | undefinedRelated API: MarkStyle, NeighborhoodNodeGeometry, NodeStyle.
Style or geometry-aware style for node marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:156
edgeStyle (optional)
readonly edgeStyle?: MarkStyle<GraphEdgeGeometry<E>, EdgeStyle> | undefinedRelated API: MarkStyle, GraphEdgeGeometry, EdgeStyle.
Style or geometry-aware style for edge marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:158
labelStyle (optional)
readonly labelStyle?: MarkStyle<NeighborhoodNodeGeometry<N>, LabelStyle> | undefinedRelated API: MarkStyle, NeighborhoodNodeGeometry, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:160
renderEdge (optional)
readonly renderEdge?: ((edge: GraphEdgeGeometry<E>) => PibblNode) | undefinedRelated API: GraphEdgeGeometry, PibblNode.
Replaces the default edge mark with this composition. GraphLayout
Parameters
Section titled “Parameters”edge— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:168
onEdgeClick (optional)
readonly onEdgeClick?: ((edge: GraphEdgeGeometry<E>, event: ClickEvent) => void) | undefinedRelated API: GraphEdgeGeometry.
Receives clicks on an edge mark. GraphLayout
Parameters
Section titled “Parameters”-
edge— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:176
IcicleStyle
Section titled “IcicleStyle”Frame options for icicle cell and level spacing. GraphLayout
interface IcicleStyle extends GStyleRelated API: IcicleStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:1000
Properties and methods
Section titled “Properties and methods”
cellGap (optional)
readonly cellGap?: number | undefinedGap between cells in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1002
levelGap (optional)
readonly levelGap?: number | undefinedGap between hierarchy levels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1004
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
IcicleOptions
Section titled “IcicleOptions”Pure icicle inputs and finite output bounds. GraphLayout
interface IcicleOptions<D> extends PartitionAccessors<D>Related API: IcicleOptions, PartitionAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:1007
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1009
cellGap (optional)
readonly cellGap?: number | undefinedGap between cells in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1011
levelGap (optional)
readonly levelGap?: number | undefinedGap between hierarchy levels in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1013
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
value
readonly value: Accessor<D, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:819
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:821
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:825
IcicleProps
Section titled “IcicleProps”Reactive hierarchy input and presentation for Icicle. GraphLayout
interface IcicleProps<D> extends PartitionAccessors<D>, PartitionPresentation<D>Related API: IcicleProps, PartitionAccessors, PartitionPresentation.
View source — packages/core/src/features/viz/lib/graph/types.ts:1016
Properties and methods
Section titled “Properties and methods”
root
readonly root: SignalValue<D>Related API: SignalValue.
Hierarchy root; publish a new root to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1019
style (optional)
readonly style?: Style<IcicleStyle> | undefinedRelated API: Style, IcicleStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1021
keyBy
readonly keyBy: Accessor<D, VizKey>Related API: Accessor, VizKey.
Reads each hierarchy record’s stable key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:359
childrenBy
readonly childrenBy: Accessor<D, readonly D[] | null | undefined>Related API: Accessor.
Reads ordered child records; null and undefined mean no children. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:361
label (optional)
readonly label?: Accessor<D, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:363
collapsed (optional)
readonly collapsed?: ((node: D) => boolean) | undefinedWhether this item hides its descendants. GraphLayout
Parameters
Section titled “Parameters”node— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:367
value
readonly value: Accessor<D, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:819
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:821
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:825
cellStyle (optional)
readonly cellStyle?: MarkStyle<PartitionCellGeometry<D>, NodeStyle> | undefinedRelated API: MarkStyle, PartitionCellGeometry, NodeStyle.
Style or geometry-aware style for cell marks. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:866
labelStyle (optional)
readonly labelStyle?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:868
renderCell (optional)
readonly renderCell?: ((cell: PartitionCellGeometry<D>) => PibblNode) | undefinedRelated API: PartitionCellGeometry, PibblNode.
Replaces the default cell mark with this composition. GraphLayout
Parameters
Section titled “Parameters”cell— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:872
onCellClick (optional)
readonly onCellClick?: ((cell: PartitionCellGeometry<D>, event: ClickEvent) => void) | undefinedRelated API: PartitionCellGeometry.
Receives clicks on a cell mark. GraphLayout
Parameters
Section titled “Parameters”-
cell— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:876
ChordData
Section titled “ChordData”Ordered categories and directed transfer records for a chord diagram. GraphLayout
interface ChordData<C, T>Related API: ChordData.
View source — packages/core/src/features/viz/lib/graph/types.ts:1025
Properties and methods
Section titled “Properties and methods”
categories
readonly categories: readonly C[]Ordered category records. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1027
transfers
readonly transfers: readonly T[]Source transfer records. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1029
ChordAccessors
Section titled “ChordAccessors”Typed category and transfer readers with quantity display settings. GraphLayout
interface ChordAccessors<C, T>Related API: ChordAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:1032
Properties and methods
Section titled “Properties and methods”
categoryKey
readonly categoryKey: Accessor<C, VizKey>Related API: Accessor, VizKey.
Reads each category key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1034
label (optional)
readonly label?: Accessor<C, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:1036
source
readonly source: Accessor<T, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1038
target
readonly target: Accessor<T, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1040
value
readonly value: Accessor<T, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1042
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1044
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:1048
ChordArc
Section titled “ChordArc”A clockwise angular span in graph-local polar geometry. GraphLayout
interface ChordArcRelated API: ChordArc.
View source — packages/core/src/features/viz/lib/graph/types.ts:1051
Properties and methods
Section titled “Properties and methods”
center
readonly center: Readonly<{ x: number; y: number; }>Center point in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1053
radius
readonly radius: numberRadius in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1055
startAngleDegrees
readonly startAngleDegrees: numberClockwise start angle from twelve o’clock. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1057
endAngleDegrees
readonly endAngleDegrees: numberClockwise end angle from twelve o’clock. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1059
ChordBandGeometry
Section titled “ChordBandGeometry”Immutable outer category band geometry and aggregate quantities. GraphLayout
interface ChordBandGeometry<C>Related API: ChordBandGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:1062
Properties and methods
Section titled “Properties and methods”
key
readonly key: VizKeyRelated API: VizKey.
Stable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1064
datum
readonly datum: COriginal application record. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1066
incomingValue
readonly incomingValue: numberTotal value arriving at this node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1068
outgoingValue
readonly outgoingValue: numberTotal value leaving this node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1070
arc
readonly arc: ChordArcRelated API: ChordArc.
Angular span for the visible category band. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1072
innerRadius
readonly innerRadius: numberInner ribbon radius in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1074
segments
readonly segments: readonly Readonly<PathSegment>[]Related API: PathSegment.
Path segments from source to target. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1076
path
readonly path: stringSVG path serialization of the route. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1078
label
readonly label: LabelGeometryRelated API: LabelGeometry.
Decorative label geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1080
ChordRibbonGeometry
Section titled “ChordRibbonGeometry”Immutable grouped transfer-ribbon geometry and source records. GraphLayout
interface ChordRibbonGeometry<T>Related API: ChordRibbonGeometry.
View source — packages/core/src/features/viz/lib/graph/types.ts:1083
Properties and methods
Section titled “Properties and methods”
key
readonly key: stringStable application-provided key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1085
sourceKey
readonly sourceKey: VizKeyRelated API: VizKey.
Stable key of the edge source node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1087
targetKey
readonly targetKey: VizKeyRelated API: VizKey.
Stable key of the edge target node. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1089
records
readonly records: readonly T[]Original records represented by this aggregate. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1091
value
readonly value: numberReads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1093
sourceArc
readonly sourceArc: ChordArcRelated API: ChordArc.
Angular span allocated to the source side. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1095
targetArc
readonly targetArc: ChordArcRelated API: ChordArc.
Angular span allocated to the target side. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1097
segments
readonly segments: readonly Readonly<PathSegment>[]Related API: PathSegment.
Path segments from source to target. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1099
path
readonly path: stringSVG path serialization of the route. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1101
ChordLayout
Section titled “ChordLayout”Immutable category bands and grouped transfer ribbons. GraphLayout
interface ChordLayout<C, T>Related API: ChordLayout.
View source — packages/core/src/features/viz/lib/graph/types.ts:1104
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1106
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1108
total
readonly total: numberSum of all source leaf values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1110
bands
readonly bands: readonly ChordBandGeometry<C>[]Related API: ChordBandGeometry.
Immutable category-band geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1112
ribbons
readonly ribbons: readonly ChordRibbonGeometry<T>[]Related API: ChordRibbonGeometry.
Immutable grouped transfer-ribbon geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1114
ChordStyle
Section titled “ChordStyle”Frame options for chord band width and angular spacing. GraphLayout
interface ChordStyle extends GStyleRelated API: ChordStyle, GStyle.
View source — packages/core/src/features/viz/lib/graph/types.ts:1117
Properties and methods
Section titled “Properties and methods”
bandWidth (optional)
readonly bandWidth?: number | undefinedChord-band thickness in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1119
padAngle (optional)
readonly padAngle?: number | undefinedAngular gap between chord categories in degrees. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1121
startAngle (optional)
readonly startAngle?: number | undefinedClockwise chord rotation from twelve o’clock in degrees. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1123
position (optional)
position?: "absolute" | "relative" | "static" | undefinedExperimental direct-Flex placement mode. In a finite Flex, static keeps the allocated slot and ignores insets; relative offsets final geometry once without moving siblings. Primitive static/relative leaves support every main/writing direction and wrapping mode. Wrapped parents admit fixed numeric direct Flex owners that remain internally nowrap; non-row chains use the same fixed owner restriction, with zero grow/shrink and omitted or automatic basis; physical offsets retain their sign through main reversal. Absolute stays out of sibling allocation, using the padding box for explicit insets and content alignment for omitted axes. Fixed numeric, percentage and admitted automatic absolute profiles support all main directions and RTL, with numeric or percentage bounds applied before placement. In every wrapping mode, omitted axes use whole-content main/cross alignment; wrap-reverse reverses omitted cross alignment and combines with column RTL exactly once. Paired natural providers keep their exact/unbounded query in every admitted direction. Direct wrapped Text with a generic pixel font and visible fit/overflow may measure automatic height at a resolved numeric or percentage width through the same owned query. Unwrapped Text may measure automatic width at a resolved numeric or percentage height, using its existing Canvas ink-bounds width before bounds and physical anchoring. Generic unwrapped Text also supports natural ink height and both automatic dimensions through one unbounded query before independent numeric clamps; mixed opposing-pair/natural feedback and both-auto aspect remain excluded. On the documented finite direct-child path, automatic absolute axes resolve from opposing numeric or percentage physical insets. With a positive finite aspectRatio, exactly one automatic axis can instead derive from its resolved declared finite numeric or percentage opposite axis. Opposing insets win. Finite numeric or percentage min/max bounds clamp used axes independently after derivation; a clamp does not recouple aspectRatio, and a numeric minimum above its maximum rejects. A direct custom primitive with paired pure measurement providers may instead measure natural automatic width at a declared numeric or percentage height, or natural height at a declared numeric or percentage width. The automatic axis is unbounded; the exact axis uses its declared resolved padding-box value before bounds clamp the used dimensions. In direct declarative Flex chains, static Flex passes the containing box outward while relative Flex owns a local box. Omission retains the legacy local Flex boundary and left/top behavior.
View source — packages/core/src/lib/style/positioning.ts:194
left (optional)
left?: number | `${number}%` | undefinedLeft edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:196
right (optional)
right?: number | `${number}%` | undefinedRight edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box width; relative percentages use the parent content-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:198
top (optional)
top?: number | `${number}%` | undefinedTop edge coordinate or inset. Explicit absolute Flex insets accept finite numbers or percentages of the containing padding-box axis; relative percentages use the parent content-box axis. See Length.
View source — packages/core/src/lib/style/positioning.ts:200
bottom (optional)
bottom?: number | `${number}%` | undefinedBottom edge inset. Absolute Flex accepts finite numbers or percentages of the containing padding-box height; relative percentages use the parent content-box height. See Length.
View source — packages/core/src/lib/style/positioning.ts:202
insetStart (optional)
insetStart?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-start inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge, including zero. Percentages use the selected containing padding-box width. See Length.
View source — packages/core/src/lib/style/positioning.ts:204
insetEnd (optional)
insetEnd?: number | `${number}%` | undefinedExperimental direct absolute Flex inline-end inset, mapped through the receiving Flex direction. Overrides the corresponding physical edge. See Length.
View source — packages/core/src/lib/style/positioning.ts:206
aspectRatio (optional)
aspectRatio?: number | undefinedPositive finite width/height ratio. A declared definite axis derives the automatic axis before its bounds; boxSizing selects content or border geometry. See resolveBox.
boxSizing (optional)
boxSizing?: "border-box" | "content-box" | undefinedSelects whether dimensions, bounds and Flex basis include padding and layout borders. Defaults to content-box. Border-box content floors at zero and the outer box floors at total axis padding plus layout borders. Painted stroke widths remain independent. See ResolvedBoxStyle.
width (optional)
width?: SizingLength | undefinedRelated API: SizingLength.
Horizontal extent in the units of the containing geometry or surface. See SizingLength.
height (optional)
height?: SizingLength | undefinedRelated API: SizingLength.
Vertical extent in the units of the containing geometry or surface. See SizingLength.
minWidth (optional)
minWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
maxWidth (optional)
maxWidth?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted horizontal width. Finite horizontal Flex intrinsic owners also accept intrinsic sizing requests; automatic remains invalid. See SizingLength.
minHeight (optional)
minHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Minimum permitted height. See Length.
maxHeight (optional)
maxHeight?: number | "stretch" | FitContent | `${number}%` | SizingKeyword | undefinedRelated API: FitContent, SizingKeyword.
Maximum permitted height. See Length.
padding (optional)
padding?: EdgeValues<number | `${number}%`> | undefinedRelated API: EdgeValues.
Padding inside layout borders. Experimental allocated Flex percentages use owner content width for every edge. See EdgeValues, Percentage.
paddingStart (optional)
paddingStart?: number | `${number}%` | undefinedNonnegative inline-start padding overriding its physical padding edge. Experimental percentages require an allocated Flex owner and use its content width. See BoxStyle.
paddingEnd (optional)
paddingEnd?: number | `${number}%` | undefinedNonnegative inline-end padding overriding its physical padding edge. See BoxStyle.
borderWidth (optional)
borderWidth?: EdgeValues<number> | undefinedRelated API: EdgeValues.
Layout-only physical border insets, in logical pixels. Defaults to zero; does not paint a stroke. See EdgeValues.
borderStartWidth (optional)
borderStartWidth?: number | undefinedExperimental nonnegative numeric inline-start layout border overriding its physical borderWidth edge. Does not paint a stroke. See BoxStyle.
borderEndWidth (optional)
borderEndWidth?: number | undefinedExperimental nonnegative numeric inline-end layout border overriding its physical borderWidth edge. See BoxStyle.
overflow (optional)
overflow?: "clip" | "visible" | undefinedSelects "visible", "clip" for overflow. See BoxStyle.
margin (optional)
margin?: FlexMargin | undefinedRelated API: FlexMargin.
Uniform physical margin in logical Canvas units, a percentage of allocated Flex content width, or auto on supported finite Flex axes. Finite negatives are allowed; specific edges override this value. Consumed by experimental Flex only. See LayoutItemStyle.
marginTop (optional)
marginTop?: FlexMargin | undefinedRelated API: FlexMargin.
Physical top margin overriding margin. See LayoutItemStyle.
marginRight (optional)
marginRight?: FlexMargin | undefinedRelated API: FlexMargin.
Physical right margin overriding margin. See LayoutItemStyle.
marginBottom (optional)
marginBottom?: FlexMargin | undefinedRelated API: FlexMargin.
Physical bottom margin overriding margin. See LayoutItemStyle.
marginLeft (optional)
marginLeft?: FlexMargin | undefinedRelated API: FlexMargin.
Physical left margin overriding margin. See LayoutItemStyle.
marginStart (optional)
marginStart?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-start margin overriding the corresponding physical edge and margin shorthand in experimental Flex. Signed percentages use allocated content width. See LayoutItemStyle.
marginEnd (optional)
marginEnd?: FlexMargin | undefinedRelated API: FlexMargin.
Inline-end margin overriding the corresponding physical edge and margin shorthand in experimental Flex. See LayoutItemStyle.
alignSelf (optional)
alignSelf?: "auto" | "center" | "end" | "flex-end" | "flex-start" | "start" | "stretch" | undefinedThis child’s cross-axis or block-axis alignment override. See LayoutItemStyle.
justifySelf (optional)
justifySelf?: "auto" | "center" | "end" | "start" | "stretch" | undefinedThis child’s inline-axis alignment override. See LayoutItemStyle.
flexBasis (optional)
flexBasis?: SizingLength | undefinedRelated API: SizingLength.
Initial main-axis size before flex growth or shrinkage. See SizingLength.
flexGrow (optional)
flexGrow?: number | undefinedRelative share of positive free space assigned to this child. See LayoutItemStyle.
flexShrink (optional)
flexShrink?: number | undefinedRelative factor used when reducing main-axis size. See LayoutItemStyle.
gridColumnStart (optional)
gridColumnStart?: number | undefinedExplicit starting grid column. See LayoutItemStyle.
gridColumnSpan (optional)
gridColumnSpan?: number | undefinedNumber of columns occupied by this child. See LayoutItemStyle.
gridRowStart (optional)
gridRowStart?: number | undefinedExplicit starting grid row. See LayoutItemStyle.
gridRowSpan (optional)
gridRowSpan?: number | undefinedNumber of rows occupied by this child. See LayoutItemStyle.
scaleX (optional)
scaleX?: number | undefinedHorizontal scale factor. See GStyle.
scaleY (optional)
scaleY?: number | undefinedVertical scale factor. See GStyle.
rotationDegrees (optional)
rotationDegrees?: number | undefinedClockwise rotation in degrees.
rotationOrigin (optional)
rotationOrigin?: [number, number] | undefinedPoint around which the rotation is applied. See GStyle.
translateX (optional)
translateX?: number | undefinedHorizontal translation in the current logical coordinate system. See GStyle.
translateY (optional)
translateY?: number | undefinedVertical translation in the current logical coordinate system. See GStyle.
skewX (optional)
skewX?: number | undefinedHorizontal skew angle in degrees.
skewY (optional)
skewY?: number | undefinedVertical skew angle in degrees.
layoutParticipation (optional)
layoutParticipation?: "contents" | "hidden" | "normal" | undefinedNumeric layout participation. Hidden subtrees retain mounted ownership without geometry or paint; contents retains logical ancestry without owning a box. See SystemStyle.
transition (optional)
transition?: PibblTransitionBinding | undefinedRelated API: PibblTransitionBinding.
Visibility-transition binding applied to this primitive and its captured descendants. See SystemStyle.
custom (optional)
custom?: unknownApplication-defined style payload passed through the runtime. See SystemStyle.
filter (optional)
filter?: PibblFilter | readonly PibblFilter[] | undefinedRelated API: PibblFilter.
Ordered pixel-only filters applied to the receiving primitive and its descendants. See PibblFilter.
ChordOptions
Section titled “ChordOptions”Pure chord inputs and finite output bounds. GraphLayout
interface ChordOptions<C, T> extends ChordAccessors<C, T>Related API: ChordOptions, ChordAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:1126
Properties and methods
Section titled “Properties and methods”
bounds
readonly bounds: Readonly<{ x: number; y: number; width: number; height: number; }>Finite local logical bounds for this geometry. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1128
bandWidth (optional)
readonly bandWidth?: number | undefinedChord-band thickness in local logical pixels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1130
padAngle (optional)
readonly padAngle?: number | undefinedAngular gap between chord categories in degrees. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1132
startAngle (optional)
readonly startAngle?: number | undefinedClockwise chord rotation from twelve o’clock in degrees. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1134
categoryKey
readonly categoryKey: Accessor<C, VizKey>Related API: Accessor, VizKey.
Reads each category key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1034
label (optional)
readonly label?: Accessor<C, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:1036
source
readonly source: Accessor<T, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1038
target
readonly target: Accessor<T, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1040
value
readonly value: Accessor<T, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1042
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1044
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:1048
ChordDiagramProps
Section titled “ChordDiagramProps”Reactive chord data and default band/ribbon presentation. GraphLayout
interface ChordDiagramProps<C, T> extends ChordAccessors<C, T>Related API: ChordDiagramProps, ChordAccessors.
View source — packages/core/src/features/viz/lib/graph/types.ts:1137
Properties and methods
Section titled “Properties and methods”
data
readonly data: SignalValue<ChordData<C, T>>Related API: SignalValue, ChordData.
Input records; publish a new snapshot to update. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1139
style (optional)
readonly style?: Style<ChordStyle> | undefinedRelated API: Style, ChordStyle.
Frame style and responsive size allocation. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1141
bandStyle (optional)
readonly bandStyle?: MarkStyle<ChordBandGeometry<C>, EdgeStyle> | undefinedRelated API: MarkStyle, ChordBandGeometry, EdgeStyle.
Style for category bands. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1143
ribbonStyle (optional)
readonly ribbonStyle?: MarkStyle<ChordRibbonGeometry<T>, EdgeStyle> | undefinedRelated API: MarkStyle, ChordRibbonGeometry, EdgeStyle.
Style for transfer ribbons. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1145
labelStyle (optional)
readonly labelStyle?: Style<LabelStyle> | undefinedRelated API: Style, LabelStyle.
Style for decorative labels. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1147
renderBand (optional)
readonly renderBand?: ((band: ChordBandGeometry<C>) => PibblNode) | undefinedRelated API: ChordBandGeometry, PibblNode.
Replaces the default category-band mark with this composition. GraphLayout
Parameters
Section titled “Parameters”band— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:1151
renderRibbon (optional)
readonly renderRibbon?: ((ribbon: ChordRibbonGeometry<T>) => PibblNode) | undefinedRelated API: ChordRibbonGeometry, PibblNode.
Replaces the default ribbon mark with this composition. GraphLayout
Parameters
Section titled “Parameters”ribbon— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:1155
onBandClick (optional)
readonly onBandClick?: ((band: ChordBandGeometry<C>, event: ClickEvent) => void) | undefinedRelated API: ChordBandGeometry.
Receives clicks on a band mark. GraphLayout
Parameters
Section titled “Parameters”-
band— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:1159
onRibbonClick (optional)
readonly onRibbonClick?: ((ribbon: ChordRibbonGeometry<T>, event: ClickEvent) => void) | undefinedRelated API: ChordRibbonGeometry.
Receives clicks on a ribbon mark. GraphLayout
Parameters
Section titled “Parameters”-
ribbon— The source record or geometry supplied by Pibbl. -
event— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:1166
categoryKey
readonly categoryKey: Accessor<C, VizKey>Related API: Accessor, VizKey.
Reads each category key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1034
label (optional)
readonly label?: Accessor<C, string> | undefinedRelated API: Accessor.
Optional reader for a node’s primary text. LabelGeometry
View source — packages/core/src/features/viz/lib/graph/types.ts:1036
source
readonly source: Accessor<T, VizKey>Related API: Accessor, VizKey.
Reads an edge source key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1038
target
readonly target: Accessor<T, VizKey>Related API: Accessor, VizKey.
Reads an edge target key. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1040
value
readonly value: Accessor<T, number>Related API: Accessor.
Reads the finite quantitative value. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1042
unit
readonly unit: stringDisplay unit for quantitative values. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1044
formatValue (optional)
readonly formatValue?: ((value: number) => string) | undefinedFormats a quantitative value for display. GraphLayout
Parameters
Section titled “Parameters”value— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:1048
ForceSimulation
Section titled “ForceSimulation”A manual deterministic solver with no scheduler or resource ownership. GraphLayout
interface ForceSimulation<N, E>Related API: ForceSimulation.
View source — packages/core/src/features/viz/lib/graph/types.ts:1176
Properties and methods
Section titled “Properties and methods”
read
read: () => ForceLayout<N, E>Related API: ForceLayout.
Reads the current immutable solver snapshot. GraphLayout
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:1179
step
step: (options: Readonly<{ iterations: number; }>) => ForceLayout<N, E>Related API: ForceLayout.
Advances at most the requested solver iterations. GraphLayout
Parameters
Section titled “Parameters”options— The source record or geometry supplied by Pibbl.
Returns
Section titled “Returns”The value produced by this callback.
View source — packages/core/src/features/viz/lib/graph/types.ts:1183
update
update: (graph: GraphData<N, E>, options: ForceOptions<N, E>) => voidRelated API: GraphData, ForceOptions.
Reconfigures this manual solver with a new graph snapshot. GraphLayout
Parameters
Section titled “Parameters”-
graph— The source record or geometry supplied by Pibbl. -
options— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:1192
restart
restart: () => voidRestarts the current solver without discarding node positions. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1194
reset
reset: () => voidRestores seeded positions and clears pins. GraphLayout
View source — packages/core/src/features/viz/lib/graph/types.ts:1196
pin
pin: (key: VizKey, position: Point) => voidPins one node at a finite local position. GraphLayout
Parameters
Section titled “Parameters”-
key— The source record or geometry supplied by Pibbl. -
position— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:1200
release
release: (key: VizKey) => voidRelated API: VizKey.
Releases a previously pinned node. GraphLayout
Parameters
Section titled “Parameters”key— The source record or geometry supplied by Pibbl.
View source — packages/core/src/features/viz/lib/graph/types.ts:1203
ForceSimulationFactory
Section titled “ForceSimulationFactory”Creates a compatible manual force solver for supplied graph inputs. GraphLayout
type ForceSimulationFactory<N, E> = ( graph: GraphData<N, E>, options: ForceOptions<N, E>, ) => ForceSimulation<N, E>Related API: ForceSimulationFactory, GraphData, ForceOptions, ForceSimulation.
Parameters
Section titled “Parameters”-
graph— Source graph. -
options— Solver options.
Returns
Section titled “Returns”Simulation.
View source — packages/core/src/features/viz/lib/graph/types.ts:1209
GraphNode
Section titled “GraphNode”Draw a node box; children use node-local coordinates and ordinary Pibbl events.
GraphNode: <N>({ node, style, children, ...events }: GraphNodeProps<N>) => PibblNodeRelated API: GraphNode, GraphNodeProps, PibblNode.
Parameters
Section titled “Parameters”props— Box geometry, paint and event handlers. See GraphNodeProps.
Returns
Section titled “Returns”A group containing the box and authored children. See GraphNodeProps.
View source — packages/core/src/features/viz/lib/graph/shared.tsx:219
GraphEdge
Section titled “GraphEdge”Draw an edge path and optional arrow with ordinary path targeting.
GraphEdge: <E>({ edge, style, ...events }: GraphEdgeProps<E>) => PibblNodeRelated API: GraphEdge, GraphEdgeProps, PibblNode.
Parameters
Section titled “Parameters”props— Edge geometry, paint and event handlers. See GraphEdgeProps.
Returns
Section titled “Returns”Path content in diagram-local coordinates. See GraphEdgeProps.
View source — packages/core/src/features/viz/lib/graph/shared.tsx:252
GraphLabel
Section titled “GraphLabel”Draw decorative label text at its supplied box and rotation.
GraphLabel: ({ label, style }: GraphLabelProps) => PibblNodeRelated API: GraphLabel, GraphLabelProps, PibblNode.
Parameters
Section titled “Parameters”props— Text geometry and optional text paint. See GraphLabelProps.
Returns
Section titled “Returns”A transformed decorative Text component. See GraphLabelProps.
View source — packages/core/src/features/viz/lib/graph/shared.tsx:293
GraphView
Section titled “GraphView”Render supplied graph geometry without layout, fitting, or simulation.
GraphView: <N, E>(props: GraphViewProps<N, E>) => PibblNodeRelated API: GraphView, GraphViewProps, PibblNode.
Parameters
Section titled “Parameters”props— A snapshot or signal, item overrides and events. See GraphViewProps.
Returns
Section titled “Returns”An ordinary Pibbl composition preserving source paint order. See GraphViewProps.
View source — packages/core/src/features/viz/lib/graph/shared.tsx:325
defaultGraphNodeStyle
Section titled “defaultGraphNodeStyle”Return the built-in node paint as an ordinary reusable style.
defaultGraphNodeStyle: <N>(_node: GraphNodeGeometry<N>) => NodeStyleRelated API: defaultGraphNodeStyle, GraphNodeGeometry, NodeStyle.
Parameters
Section titled “Parameters”_node— The node being painted. See GraphNodeGeometry.
Returns
Section titled “Returns”Default fill, stroke and corner radius. See NodeStyle.
View source — packages/core/src/features/viz/lib/graph/shared.tsx:186
defaultGraphEdgeStyle
Section titled “defaultGraphEdgeStyle”Return the built-in edge paint as an ordinary reusable style.
defaultGraphEdgeStyle: <E>(_edge: GraphEdgeGeometry<E>) => EdgeStyleRelated API: defaultGraphEdgeStyle, GraphEdgeGeometry, EdgeStyle.
Parameters
Section titled “Parameters”_edge— The edge being painted. See GraphEdgeGeometry.
Returns
Section titled “Returns”Default stroke and logical stroke width. See EdgeStyle.
View source — packages/core/src/features/viz/lib/graph/shared.tsx:201
defaultGraphLabelStyle
Section titled “defaultGraphLabelStyle”Return the built-in label paint as an ordinary reusable style.
defaultGraphLabelStyle: (_label: LabelGeometry) => LabelStyleRelated API: defaultGraphLabelStyle, LabelGeometry, LabelStyle.
Parameters
Section titled “Parameters”_label— The label being painted. See LabelGeometry.
Returns
Section titled “Returns”Default Canvas font, fill and middle baseline. See LabelStyle.
View source — packages/core/src/features/viz/lib/graph/shared.tsx:211
straightGraphRoute
Section titled “straightGraphRoute”Build an independent straight graph route in local logical units.
straightGraphRoute: (endpoints: Endpoints, options?: Readonly<{ arrowLength?: number; }>) => GraphRouteRelated API: straightGraphRoute, GraphRoute.
Parameters
Section titled “Parameters”-
endpoints— Finite named source and target anchor points. See GraphRoute. -
options— Optional nonnegative arrowLength (default zero).
Returns
Section titled “Returns”Named anchors and independently editable core path segments. See GraphRoute.
View source — packages/core/src/features/viz/lib/graph/routes.ts:45
orthogonalGraphRoute
Section titled “orthogonalGraphRoute”Build an independent horizontal orthogonal graph route in local logical units.
orthogonalGraphRoute: (endpoints: Endpoints, options?: Readonly<{ arrowLength?: number; }>) => GraphRouteRelated API: orthogonalGraphRoute, GraphRoute.
Parameters
Section titled “Parameters”-
endpoints— Finite named source and target anchor points. See GraphRoute. -
options— Optional nonnegative arrowLength (default zero).
Returns
Section titled “Returns”Named anchors and independently editable core path segments. See GraphRoute.
View source — packages/core/src/features/viz/lib/graph/routes.ts:65
curvedGraphRoute
Section titled “curvedGraphRoute”Build an independent horizontal cubic graph route in local logical units.
curvedGraphRoute: (endpoints: Endpoints, options?: Readonly<{ curvature?: number; arrowLength?: number; }>) => GraphRouteRelated API: curvedGraphRoute, GraphRoute.
Parameters
Section titled “Parameters”-
endpoints— Finite named source and target anchor points. See GraphRoute. -
options— Optional nonnegative arrowLength (default zero); curvature defaults to 0.5 and must be in [0, 1].
Returns
Section titled “Returns”Named anchors and independently editable core path segments. See GraphRoute.
View source — packages/core/src/features/viz/lib/graph/routes.ts:97
layoutDependencies
Section titled “layoutDependencies”Place a DAG in longest-path ranks with editable orthogonal routes. Cycles and insufficient bounds throw.
layoutDependencies: <N, E>(graph: GraphData<N, E>, options: DependencyOptions<N, E>) => GraphLayout<N, E>Related API: layoutDependencies, GraphData, DependencyOptions, GraphLayout.
Parameters
Section titled “Parameters”-
graph— Original node and edge records. See GraphData. -
options— Typed accessors, finite bounds, node sizes and nonnegative gaps. See DependencyOptions.
Returns
Section titled “Returns”Original-record node geometry and routes in local logical units. See GraphLayout.
View source — packages/core/src/features/viz/lib/graph/dependency.tsx:65
DependencyGraph
Section titled “DependencyGraph”Compose the public dependency layout helper and graph marks with useful defaults.
DependencyGraph: <N, E>(props: DependencyGraphProps<N, E>) => PibblNodeRelated API: DependencyGraph, DependencyGraphProps, PibblNode.
Parameters
Section titled “Parameters”props— Graph input, accessors, presentation and definite allocation. See DependencyGraphProps.
Returns
Section titled “Returns”The same graph composition available through layoutDependencies and GraphView. See GraphView.
View source — packages/core/src/features/viz/lib/graph/dependency.tsx:174
layoutMatrix
Section titled “layoutMatrix”Computes ordered cells for an explicit row/column relation matrix.
layoutMatrix: <R, C, E>(data: MatrixData<R, C, E>, options: MatrixOptions<R, C, E>) => MatrixLayout<R, C, E>Related API: layoutMatrix, MatrixData, MatrixOptions, MatrixLayout.
Parameters
Section titled “Parameters”-
data— Explicit rows, columns, and ordered relations. See MatrixData. -
options— Typed accessors, dimensions, labels, and unit. See MatrixOptions.
Returns
Section titled “Returns”Immutable cell and label geometry. See MatrixLayout.
View source — packages/core/src/features/viz/lib/graph/matrix.tsx:61
AdjacencyMatrix
Section titled “AdjacencyMatrix”Render an ordered relation matrix with default marks and labels.
AdjacencyMatrix: <R, C, E>(props: AdjacencyMatrixProps<R, C, E>) => PibblNodeRelated API: AdjacencyMatrix, AdjacencyMatrixProps, PibblNode.
Parameters
Section titled “Parameters”props— Matrix data and presentation.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/matrix.tsx:256
MatrixCell
Section titled “MatrixCell”Draw one supplied matrix cell geometry.
MatrixCell: <R, C, E>({ cell, style: input, children, ...events }: MatrixCellProps<R, C, E>) => PibblNodeRelated API: MatrixCell, MatrixCellProps, PibblNode.
Parameters
Section titled “Parameters”argument— Cell props.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/matrix.tsx:227
defaultMatrixCellStyle
Section titled “defaultMatrixCellStyle”Default cell paint for custom matrix compositions.
defaultMatrixCellStyle: <R, C, E>(cell: MatrixCellGeometry<R, C, E>, range: Readonly<{ minimum: number; maximum: number; }>) => NodeStyleRelated API: defaultMatrixCellStyle, MatrixCellGeometry, NodeStyle.
Parameters
Section titled “Parameters”-
cell— Cell geometry. -
range— Observed numeric extent.
Returns
Section titled “Returns”Resolved cell paint.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/matrix.tsx:206
layoutSankey
Section titled “layoutSankey”Places an acyclic weighted flow graph in deterministic left-to-right ranks.
layoutSankey: <N, E>(graph: GraphData<N, E>, options: SankeyOptions<N, E>) => SankeyLayout<N, E>Related API: layoutSankey, GraphData, SankeyOptions, SankeyLayout.
Parameters
Section titled “Parameters”-
graph— Nodes and acyclic weighted edges. See GraphData. -
options— Accessors, bounds, and display unit. See SankeyOptions.
Returns
Section titled “Returns”Immutable nodes and proportional flow geometry. See SankeyLayout.
View source — packages/core/src/features/viz/lib/graph/sankey.tsx:59
Sankey
Section titled “Sankey”Render a weighted acyclic flow graph.
Sankey: <N, E>(props: SankeyProps<N, E>) => PibblNodeRelated API: Sankey, SankeyProps, PibblNode.
Parameters
Section titled “Parameters”props— Graph data and presentation.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/sankey.tsx:354
SankeyNode
Section titled “SankeyNode”Draw one supplied Sankey node.
SankeyNode: <N>({ node, style: input, children, ...events }: GraphNodeProps<N> & { readonly node: SankeyNodeGeometry<N>; }) => PibblNodeRelated API: SankeyNode, GraphNodeProps, SankeyNodeGeometry, PibblNode.
Parameters
Section titled “Parameters”argument— Node props.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/sankey.tsx:317
SankeyFlow
Section titled “SankeyFlow”Draw one supplied Sankey flow.
SankeyFlow: <E>({ flow, style: input, ...events }: MarkInteraction & { readonly flow: SankeyFlowGeometry<E>; readonly style?: Style<EdgeStyle>; }) => PibblNodeRelated API: SankeyFlow, MarkInteraction, SankeyFlowGeometry, Style, EdgeStyle, PibblNode.
Parameters
Section titled “Parameters”argument— Flow props.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/sankey.tsx:334
defaultSankeyNodeStyle
Section titled “defaultSankeyNodeStyle”Default node paint for custom Sankey compositions.
defaultSankeyNodeStyle: <N>(_node: SankeyNodeGeometry<N>) => NodeStyleRelated API: defaultSankeyNodeStyle, SankeyNodeGeometry, NodeStyle.
Parameters
Section titled “Parameters”_node— Node geometry.
Returns
Section titled “Returns”Resolved node paint.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/sankey.tsx:297
defaultSankeyFlowStyle
Section titled “defaultSankeyFlowStyle”Default flow paint for custom Sankey compositions.
defaultSankeyFlowStyle: <E>(_flow: SankeyFlowGeometry<E>) => EdgeStyleRelated API: defaultSankeyFlowStyle, SankeyFlowGeometry, EdgeStyle.
Parameters
Section titled “Parameters”_flow— Flow geometry.
Returns
Section titled “Returns”Resolved flow paint.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/sankey.tsx:307
layoutBipartite
Section titled “layoutBipartite”Arranges two explicit entity sets in columns, retaining side-qualified identity.
layoutBipartite: <L, R, E>(graph: BipartiteData<L, R, E>, options: BipartiteOptions<L, R, E>) => BipartiteLayout<L, R, E>Related API: layoutBipartite, BipartiteData, BipartiteOptions, BipartiteLayout.
Parameters
Section titled “Parameters”-
graph— Explicit left and right entities with cross-set edges. See BipartiteData. -
options— Accessors, dimensions, and column spacing. See BipartiteOptions.
Returns
Section titled “Returns”Immutable side-aware nodes and routed edges. See BipartiteLayout.
View source — packages/core/src/features/viz/lib/graph/bipartite.tsx:123
BipartiteGraph
Section titled “BipartiteGraph”Render left/right entity sets and their cross-set relationships.
BipartiteGraph: <L, R, E>(props: BipartiteGraphProps<L, R, E>) => PibblNodeRelated API: BipartiteGraph, BipartiteGraphProps, PibblNode.
Parameters
Section titled “Parameters”props— Entity data and presentation.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/bipartite.tsx:227
layoutChords
Section titled “layoutChords”Computes a directed chord layout, aggregating repeated ordered transfer pairs.
layoutChords: <C, T>(data: ChordData<C, T>, options: ChordOptions<C, T>) => ChordLayout<C, T>Related API: layoutChords, ChordData, ChordOptions, ChordLayout.
Parameters
Section titled “Parameters”-
data— Ordered category transfers. See ChordData. -
options— Accessors, bounds, angular spacing, and unit. See ChordOptions.
Returns
Section titled “Returns”Immutable bands and directed ribbon geometry. See ChordLayout.
View source — packages/core/src/features/viz/lib/graph/chord.tsx:98
ChordDiagram
Section titled “ChordDiagram”Render a directed transfer chord diagram.
ChordDiagram: <C, T>(props: ChordDiagramProps<C, T>) => PibblNodeRelated API: ChordDiagram, ChordDiagramProps, PibblNode.
Parameters
Section titled “Parameters”props— Transfer data and presentation.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/chord.tsx:382
ChordBand
Section titled “ChordBand”Draw one supplied category band.
ChordBand: <C>({ band, style: input, ...events }: MarkInteraction & { readonly band: ChordBandGeometry<C>; readonly style?: Style<EdgeStyle>; }) => PibblNodeRelated API: ChordBand, MarkInteraction, ChordBandGeometry, Style, EdgeStyle, PibblNode.
Parameters
Section titled “Parameters”argument— Band props.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/chord.tsx:342
ChordRibbon
Section titled “ChordRibbon”Draw one supplied directed ribbon.
ChordRibbon: <T>({ ribbon, style: input, ...events }: MarkInteraction & { readonly ribbon: ChordRibbonGeometry<T>; readonly style?: Style<EdgeStyle>; }) => PibblNodeRelated API: ChordRibbon, MarkInteraction, ChordRibbonGeometry, Style, EdgeStyle, PibblNode.
Parameters
Section titled “Parameters”argument— Ribbon props.
Returns
Section titled “Returns”Canvas node.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/chord.tsx:362
defaultChordBandStyle
Section titled “defaultChordBandStyle”Default outer-band paint for custom chord compositions.
defaultChordBandStyle: <C>(_band: ChordBandGeometry<C>) => EdgeStyleRelated API: defaultChordBandStyle, ChordBandGeometry, EdgeStyle.
Parameters
Section titled “Parameters”_band— Band geometry.
Returns
Section titled “Returns”Resolved band paint.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/chord.tsx:322
defaultChordRibbonStyle
Section titled “defaultChordRibbonStyle”Default directed-ribbon paint for custom chord compositions.
defaultChordRibbonStyle: <T>(_ribbon: ChordRibbonGeometry<T>) => EdgeStyleRelated API: defaultChordRibbonStyle, ChordRibbonGeometry, EdgeStyle.
Parameters
Section titled “Parameters”_ribbon— Ribbon geometry.
Returns
Section titled “Returns”Resolved ribbon paint.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/chord.tsx:332
layoutTree
Section titled “layoutTree”Lay out a validated hierarchy with stable child order and variable node dimensions.
layoutTree: <D>(root: D, options: TreeOptions<D>) => TreeLayout<D>Related API: layoutTree, TreeOptions, TreeLayout.
Parameters
Section titled “Parameters”-
root— Hierarchy root. -
options— Named hierarchy accessors and finite bounds.
Returns
Section titled “Returns”Immutable node and edge geometry.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/tree.tsx:40
TidyTree
Section titled “TidyTree”Render a tidy hierarchy from ordinary data using default marks or caller compositions.
TidyTree: <D>(props: TidyTreeProps<D>) => PibblNodeRelated API: TidyTree, TidyTreeProps, PibblNode.
Parameters
Section titled “Parameters”props— Reactive hierarchy data, presentation, and frame style.
Returns
Section titled “Returns”Canvas composition.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/tree.tsx:181
layoutTreemap
Section titled “layoutTreemap”Squarify weighted hierarchy leaves into stable, compact rectangles.
layoutTreemap: <D>(root: D, options: TreemapOptions<D>) => PartitionLayout<D>Related API: layoutTreemap, TreemapOptions, PartitionLayout.
Parameters
Section titled “Parameters”-
root— Hierarchy root. -
options— Accessors, units, and finite bounds.
Returns
Section titled “Returns”Immutable partition geometry.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/treemap.tsx:140
Treemap
Section titled “Treemap”Render a squarified hierarchy with visible quantitative labels.
Treemap: <D>(props: TreemapProps<D>) => PibblNodeRelated API: Treemap, TreemapProps, PibblNode.
Parameters
Section titled “Parameters”props— Reactive hierarchy data and presentation.
Returns
Section titled “Returns”Canvas composition.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/treemap.tsx:242
TreemapCell
Section titled “TreemapCell”Paint one partition cell at its immutable geometry.
TreemapCell: <D>(props: PartitionCellProps<D>) => PibblNodeRelated API: TreemapCell, PartitionCellProps, PibblNode.
Parameters
Section titled “Parameters”props— Cell geometry, paint, events, and optional global-coordinate children.
Returns
Section titled “Returns”Canvas composition.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/treemap.tsx:219
defaultPartitionCellStyle
Section titled “defaultPartitionCellStyle”Return the built-in depth-aware partition paint.
defaultPartitionCellStyle: <D>(cell: PartitionCellGeometry<D>) => NodeStyleRelated API: defaultPartitionCellStyle, PartitionCellGeometry, NodeStyle.
Parameters
Section titled “Parameters”cell— Partition cell geometry.
Returns
Section titled “Returns”Ordinary rectangle style.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/treemap.tsx:35
layoutIcicle
Section titled “layoutIcicle”Lay out hierarchy values in depth rows.
layoutIcicle: <D>(root: D, options: IcicleOptions<D>) => PartitionLayout<D>Related API: layoutIcicle, IcicleOptions, PartitionLayout.
Parameters
Section titled “Parameters”-
root— Hierarchy root. -
options— Accessors, units, and finite bounds.
Returns
Section titled “Returns”Immutable partition geometry.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/icicle.tsx:35
Icicle
Section titled “Icicle”Render hierarchy values as depth-aligned bands.
Icicle: <D>(props: IcicleProps<D>) => PibblNodeRelated API: Icicle, IcicleProps, PibblNode.
Parameters
Section titled “Parameters”props— Reactive hierarchy data and presentation.
Returns
Section titled “Returns”Canvas composition.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/icicle.tsx:141
IcicleCell
Section titled “IcicleCell”Paint one icicle partition cell.
IcicleCell: <D>(props: PartitionCellProps<D>) => PibblNodeRelated API: IcicleCell, PartitionCellProps, PibblNode.
Parameters
Section titled “Parameters”props— Cell geometry, paint, events, and optional children.
Returns
Section titled “Returns”Canvas composition.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/icicle.tsx:118
layoutNeighborhood
Section titled “layoutNeighborhood”Lay out the reachable neighborhood around one stable key in concentric rings.
layoutNeighborhood: <N, E>(graph: GraphData<N, E>, options: NeighborhoodOptions<N, E>) => NeighborhoodLayout<N, E>Related API: layoutNeighborhood, GraphData, NeighborhoodOptions, NeighborhoodLayout.
Parameters
Section titled “Parameters”-
graph— Nodes and edges in source order. -
options— Accessors, center, hops, and finite bounds.
Returns
Section titled “Returns”Immutable neighborhood geometry.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/neighborhood.tsx:43
RadialNeighborhood
Section titled “RadialNeighborhood”Render an interactive radial neighborhood from ordinary graph records.
RadialNeighborhood: <N, E>(props: RadialNeighborhoodProps<N, E>) => PibblNodeRelated API: RadialNeighborhood, RadialNeighborhoodProps, PibblNode.
Parameters
Section titled “Parameters”props— Reactive graph, center, presentation, and frame style.
Returns
Section titled “Returns”Canvas composition.
See also
Section titled “See also”View source — packages/core/src/features/viz/lib/graph/neighborhood.tsx:242
createForceSimulation
Section titled “createForceSimulation”Create a deterministic, manually stepped numeric solver without resources or scheduling. Uses inverse-square repulsion, Hooke link relaxation, damping, box collisions and bounded iterations.
createForceSimulation: <N, E>(graph: GraphData<N, E>, options: ForceOptions<N, E>) => ForceSimulation<N, E>Related API: createForceSimulation, GraphData, ForceOptions, ForceSimulation.
Parameters
Section titled “Parameters”-
graph— Original records. See GraphData. -
options— Accessors, bounds and seed. See ForceOptions.
Returns
Section titled “Returns”Numeric session whose snapshots can be rendered or advanced by any public driver. See ForceSimulation.
View source — packages/core/src/features/viz/lib/graph/force.tsx:102
layoutForceNetwork
Section titled “layoutForceNetwork”Solve a seeded force layout synchronously, bounded by maxIterations. No timers or resources are allocated.
layoutForceNetwork: <N, E>(graph: GraphData<N, E>, options: ForceOptions<N, E>) => ForceLayout<N, E>Related API: layoutForceNetwork, GraphData, ForceOptions, ForceLayout.
Parameters
Section titled “Parameters”-
graph— Original node and edge records. See GraphData. -
options— Accessors, finite bounds and numeric settings. See ForceOptions.
Returns
Section titled “Returns”A bounded result which may remain unsettled on exhaustion. See ForceLayout.
View source — packages/core/src/features/viz/lib/graph/force.tsx:365
useForceNetwork
Section titled “useForceNetwork”Own a force session through public stepper, drive, usePlayback and signals.
useForceNetwork: <N, E>(graph: SignalValue<GraphData<N, E>>, options: ForceHookOptions<N, E>) => ForceNetworkController<N, E>Related API: useForceNetwork, SignalValue, GraphData, ForceHookOptions, ForceNetworkController.
Parameters
Section titled “Parameters”-
graph— Graph input or signal; accessors are snapshotted during component evaluation. See GraphData. -
options— Geometry and optional resource-free numeric solver factory. See ForceHookOptions.
Returns
Section titled “Returns”Readonly snapshots and commands; playback is released on unmount. See ForceNetworkController.
View source — packages/core/src/features/viz/lib/graph/force.tsx:470
ForceNetwork
Section titled “ForceNetwork”Own and render a live force network through the public hook and GraphView; unmount releases playback.
ForceNetwork: <N, E>(props: ForceNetworkProps<N, E>) => PibblNodeRelated API: ForceNetwork, ForceNetworkProps, PibblNode.
Parameters
Section titled “Parameters”props— Graph, definite frame, optional solver factory, controlled pause and presentation. See ForceNetworkProps.
Returns
Section titled “Returns”A public-hook and public-marks composition. See useForceNetwork.
View source — packages/core/src/features/viz/lib/graph/force.tsx:709
Implementation guidance for agents
Section titled “Implementation guidance for agents”Read the Data visualization companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.
Complete minimal examples
Section titled “Complete minimal examples”- Typed graph customization contracts: Bind graph input, options, output geometry, component props, styles, and simulation ownership to application records. Plain source
- Graph components and pure layouts: Author the ten graph families with shared record accessors, or rebuild a view from immutable geometry. Plain source
- Rebuild graph views with public marks: Compose live force geometry, standalone routes, matrix cells, Sankey flows, partition cells, and chord ribbons through public marks. Plain source
Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision a1dcf8e. ALPHA — NOT FOR PRODUCTION USE.