v2.0.0
Major Changes
-
#19
eb78b20Thanks @ParthJadhav! - Remove keyboard aiming and the whole-page collapseTwo toolbar actions are gone, along with everything behind them.
The collapse action. The
Xshortcut, the toolbar button,engine.collapse(), the
element-by-element fall queue, and thecollapseMsfield ofPerformanceFrameBreakdown.
harvestElementsstill measures the page —engine.demolish(x, y)continues to knock individual
elements loose, andelementsInBand()is still exported if you want to drive a wave yourself.Keyboard aiming. The
Ashortcut, the crosshair button, the arrow/Enter/Eschandling, the
on-canvas reticle,engine.setAim(),engine.aim,ToolbarModel.startAiming()/stopAiming()/
moveAim()/strikeAtAim(), theaimStepandstrikeHoldMsmodel options,ToolbarState.aim,
ToolbarState.announcementand its live region, and thekeyboardCursor,keyboardCursorHint,
keyboardMovedandkeyboardStruckstrings.Accessibility impact — please read
Aiming mode was how a visitor without a pointing device actually used a tool. The toolbar remains
fully keyboard-operable, but the canvas is a pointer surface and now has no built-in keyboard route:
a keyboard-only visitor can select the hammer and not swing it.engine.strike(x, y, { holdMs })is unchanged and still public. It runs the sameonDown/onUp
pair a click produces and takes a history checkpoint, so a host that needs keyboard operation can
rebuild it — supplying the cursor, the key handling, and the live region itself. Treat RageLayer as
strictly optional decoration and keep real content and controls out from behind it.Migration
engine.collapse()— no replacement. Callengine.demolish(x, y)per element, or
engine.fracture(x, y, r, { power })across the viewport.engine.setAim()/engine.aim— track the cursor in your own state and draw it yourself.model.strikeAtAim()— callengine.strike(x, y, { holdMs: 260 })with your own coordinates.state.aim/state.announcement— removed fromToolbarState; own them in the host.- Custom
stringsobjects: the fourkeyboard*keys andcollapseare no longer read.
Partial<RageLayerStrings>will now reject them as unknown properties. TOOLBAR_ICONSno longer hasaimorcollapseentries, andToolbarIconNameno longer
includes those names.PerformanceFrameBreakdown.collapseMs— removed; the time it measured no longer exists.
formatStringis still exported, though no built-in string carries a placeholder now.