All files / player-skin-sdk/src index.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59                                                                                                                     
/**
 * `@be-music/player-skin-sdk` — everything a Be-Music Skin is written against, and nothing that draws. A skin gets
 * Canvas surfaces and plain frame data from the player, and can also mount native DOM screens. Canvas rendering can use the Canvas 2D API, raw WebGL /
 * WebGPU, or a framework such as PixiJS or three.js. The SDK itself imports no rendering framework.
 *
 * - Declaring a skin: {@link defineBeMusicSkin}, {@link BE_MUSIC_SKIN_API_VERSION}, and the `BeMusicSkin` types.
 * - Stage and layout: {@link wideStage} (the 16:9 stage), {@link cabinetStage} with {@link resolveCabinetLayout} (the
 *   play screen the built-ins draw) and {@link tallStage} (the 9:16 portrait counterpart, picked with
 *   {@link resolveBeMusicStage}), the `BeMusicGameplayLayout` each gameplay frame carries, {@link resolveLaneRuns}, and
 *   {@link resolveMilestoneArea} for placing cut-ins clear of the lanes.
 * - Score graph and stage: {@link resolveScorePace} (the player against the pacemaker and the best record),
 *   {@link resolveStageLabel} and {@link resolveDifficultyName}.
 * - Play state: judgment words (`judgeDisplayWord`, the flashing GREAT of a PERFECT), moments (combo milestones, the
 *   clear line, full combo, count-in progress), effect levels, input impulses, and the loading caption.
 * - Sound: `audioDrive` turns the frame's audio analysis into ready-to-use drive values.
 * - Chart facts: select-row facts (`resolveChartRowFacts`), best records and clear-lamp lights for select bars
 *   (`describeBestRecord`, `resolveClearLampLight`), result lamp and track rows, and judgment-timing histograms
 *   (`binJudgmentTimings`).
 * - Skin settings: `resolveBeMusicSkinSettings` fills in and checks the values of a skin's `settings` schema.
 * - Text and motion: tabular figure layout, the default text face, easing, staged timelines, roll-up counters, and a
 *   deterministic hash for jitter.
 */
export type * from './types.ts';
export type * from './dom.ts';
export type * from './chart.ts';
export type * from './result-data.ts';
export type * from './play-options.ts';
export * from './play-option-values.ts';
 
export * from './audio.ts';
export * from './playfield.ts';
export * from './lane-geometry.ts';
 
export * from './define.ts';
export * from './settings.ts';
export * from './judge-timing.ts';
export * from './stage.ts';
export * from './cabinet.ts';
export * from './song-info.ts';
export * from './layout.ts';
export * from './touch-layout.ts';
export * from './portrait.ts';
export * from './fonts.ts';
export * from './motion.ts';
export * from './hold.ts';
export * from './long-note-marks.ts';
export * from './tabular.ts';
export * from './judge-word.ts';
export * from './moments.ts';
export * from './loading.ts';
export * from './audio-drive.ts';
export * from './chart-stats.ts';
export * from './result-track.ts';
export * from './select-list.ts';
export * from './select-record.ts';
 
/** Framework-free range clamping shared with the core packages. */
export { clamp } from '@be-music/shared-utils/core';