VerticalLine
import { VerticalLine } from "@pibbl/core";VerticalLine uses VerticalLineProps and VerticalLineStyle. It rejects
children and supplies an allocation-aware default endpoint. Stroke targeting
honors lineInteractionWidth; use a declared box when percentage geometry
needs a finite basis.
<VerticalLine style={{ x: 52, y1: 12, y2: 152, stroke: "#334155", strokeWidth: 2 }}/>Try the Vertical line live example.
API details from source
Section titled “API details from source”
Describes a vertical-line primitive for JSX or createElement authoring.
VerticalLine: PibblPrimitiveComponent<VerticalLineProps, PrimitiveInput<VerticalLineProps, VerticalLineStyle>>Related API: VerticalLine, PibblPrimitiveComponent, VerticalLineProps, PrimitiveInput, VerticalLineStyle.
Parameters
Section titled “Parameters”props— Authored component inputs, supplied through JSX or createElement. See the linked props and style types.
Throws
Section titled “Throws”When called directly; Pibbl mounts this component through JSX or createElement.
See also
Section titled “See also”View source — packages/core/src/lib/components/vertical-line.ts:128
Implementation guidance for agents
Section titled “Implementation guidance for agents”Read the Drawing, layout, and effects companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.
Complete minimal example
Section titled “Complete minimal example”Compile this TSX module with jsx: "react-jsx" and jsxImportSource: "@pibbl/core", then load it from a browser entry point after the document body exists. It creates and mounts one canvas; dispose the controller before removing or replacing that canvas. The interactive study linked below adds controls beyond this minimal use case.
/** @jsxImportSource @pibbl/core */import { pibbl, VerticalLine } from '@pibbl/core';
const canvas = document.createElement('canvas');canvas.width = 320;canvas.height = 240;document.body.append(canvas);
const controller = pibbl(canvas, (<VerticalLine style={{ x: 52, y1: 12, y2: 152, stroke: "#334155", strokeWidth: 2 }}/>));
window.addEventListener('pagehide', () => controller.dispose(), { once: true });Complete minimal examples
Section titled “Complete minimal examples”- Lines and authored paths: Combine polyline, axis-aligned strokes, mutable geometry, and SVG path data. Plain source
Interactive examples
Section titled “Interactive examples”Documentation version
Section titled “Documentation version”Documentation built with @pibbl/core 0.0.2, revision 272a94a. ALPHA — NOT FOR PRODUCTION USE.