Core · SDK adapter21 / 21

Public API reference

Every class, method, and type linked to an example.

All public core and adapter classes are listed below. Each link opens a short lesson with an example. Import from @gamedevland/cyber-ui; import ToolkitComponent, PanelReveal, and UiViewport from @gamedevland/cyber-ui-sdk.

Classes and methods
APIMethods and fieldsPurpose
TerminalUiplate, icon, traces, etch, clippedRectPlates, icons, decoration, and paths
TerminalGlassdraw, focusGlass and accents
PanelSurfacedrawInformation panel
ButtonSurfacedraw, segmentTrack, toggle10 button variants and group backgrounds
ButtonPricelayoutMeasured label and price row
CyberPresetpalette, triangle, trianglePalette, textEcho, glitchFrozen defaults
BinaryFielddrawPattern from seed and integer frame
TriangleLoaderupdate, draw, outerRadiusOutlines and particles
SignalBracketsdrawBrackets around an emblem
TerminalSweepdrawScan down/right
TextEchoupdate, draw, offsetOffset for main text and copy
SurfaceGlitchshow, update, hideSlices of a live Graphics
FaultGlyphdrawWarning symbol
SignalLostdrawFault overlay and label position
PanelTransitionoriginOpening and closing geometry
AnimatedEffectelapsedSeconds, update, setActive, setReducedMotion, disposeClock and lifecycle base
ToolkitComponentownEffect, setUiReducedMotion, uiViewportSDK adapter component
PanelRevealrunActionSDK adapter action

TriangleLoader, TextEcho, and SurfaceGlitch also expose elapsedSeconds, setActive(), setReducedMotion(), and dispose(). They inherit the shared lifecycle from AnimatedEffect.

Types and fields
TypeFields / values
UiBoundsx, y, w, h
PanelPalettesurface, edge, accent
ButtonVariantprimary, module, danger, icon, nav, segment, tab, switch, utility, line
ButtonSurfaceOptionswidth, height, variant, enabled, selected, explicitAccent?, ready?
ButtonPalettebackground, panel, inset, panelEdge, signal, focus, accent, steel, sapphire, text, muted, danger
TerminalIcon27 names
TriangleOptionscycleMs, spinDelayMs, spinDurationMs, layers, layerGap, layerLift, strokeWidth, haloWidth, haloAlpha, echoAlpha, particles, particleSize, particleSpread, particleAlpha, seed
TrianglePaletteaccent, secondary, highlight, text
TriangleLayoutx, y, radius, scale
TextEchoOptionsframeMs, cycleMs, shift
GlitchOptionsdurationMs, minDelayMs, spreadMs, seed
GlitchTargetsurface, x, y, w, h
BracketOptionscycleMs, travel, scale, jitter, distanceRatio, maxDistance, halfHeight, bevel, strokeWidth, alpha, peakAlpha, markerSize, markerAlpha
SignalPalettebackground, danger, accent, highlight
PanelTransitionInputoffset, axis?, pivotX?, pivotY?, closing?
UiEffectupdate, setActive, setReducedMotion, dispose
UiViewportwidth, height, cssWidth, cssHeight, scale

Shared rules

  • Position and dimensions use local logical PixiJS units. Surfaces use the top-left corner; icons use the center.
  • update() takes seconds; *Ms fields and SignalBrackets time use milliseconds. TerminalSweep progress is [0, 1); SignalLost progress is [0, 1].
  • Drawing appends geometry. Clear a layer before rebuilding it; TriangleLoader.draw() clears its two dedicated surfaces itself.
  • Colors are numeric RGB. Decode external JSON through the application before calling typed APIs.
  • The application owns text, layout, input, fonts, audio, pause, and reduced motion. Dispose effects before destroying their borrowed objects.

Sources ↗

Cyber UI Toolkit · core exports↗Public core exports.Cyber UI Toolkit · SDK exports↗Public adapter exports.

Course curriculum →