All files / player-engine/src display.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 60 61 62 63 64 65 66 67 68 69 70 71 72                                                                                                                                               
/**
 * `@be-music/player-engine/display`: what a host shows; nothing here changes a judgment. The notes of a play as the engine
 * times them, the scroll-distance mapper, the BGA cue on screen, the chart facts a chart screen shows, time and key
 * labels, and the TUI's note-height and BGA resize options.
 *
 * The chart-side types these read (`LongNoteMode`, `ScrollTimelinePoint`, `SpeedTimelinePoint`, `BGACue`, the BGA
 * timeline builders) come from `@be-music/chart-model`.
 */
export {
  extractInvisiblePlayableNotes,
  extractLandmineNotes,
  extractPlayableNotes,
  extractTimedNotes,
  toTimedInvisibleNote,
  toTimedLandmineNote,
  toTimedPlayableNote,
  type ExtractPlayableNotesOptions,
  type ExtractTimedNotesOptions,
  type ExtractTimedNotesResult,
  type TimedLandmineNote,
  type TimedPlayableNote,
} from './playable-notes.ts';
export {
  createScrollDistanceMapper,
  createLR2ConstantScrollMapper,
  ScrollDistanceMapper,
  type ScrollDistanceMapperLike,
  type ScrollDistanceMapperOptions,
} from './core/scroll-distance.ts';
export { DEFAULT_POOR_BGA_DISPLAY_SECONDS, pickActiveBGACue, pickActiveBGAKey } from './core/bga-timeline.ts';
export {
  formatSeconds,
  resolveAltModifierLabel,
  resolveDisplayedDifficulty,
  resolveDisplayedDifficultyValue,
  resolveDisplayedJudgeRankLabel,
  resolveDisplayedJudgeRankValue,
  resolveDisplayedPlayLevelValue,
  type DisplayedDifficulty,
} from './utils.ts';
export {
  estimateDifficultyFromNames,
  estimateDifficultyFromNoteCount,
  type DifficultyBasis,
  type DifficultyNames,
} from './difficulty-estimate.ts';
export {
  DEFAULT_TUI_NOTE_HEIGHT,
  MAX_TUI_NOTE_HEIGHT,
  MIN_TUI_NOTE_HEIGHT,
  TUI_NOTE_HEIGHT_HALF,
  type TUINoteHeight,
} from './core/ui-options.ts';
export {
  DEFAULT_IMAGE_RESIZE_ALGORITHM,
  IMAGE_RESIZE_ALGORITHMS,
  isImageResizeAlgorithm,
  type ImageResizeAlgorithm,
} from './image-resize-algorithm.ts';
 
export {
  adjustBeatorajaJudgeTiming,
  isLR2JudgeTimingAutoAdjust,
  JUDGE_TIMING_AUTO_ADJUST_MODES,
  resolveJudgeTimingAutoAdjust,
  type JudgeTimingAutoAdjust,
} from './core/judge-timing.ts';
 
export { KeyBoundBGAController, type KeyBoundBGAInput, type KeyBoundBGAFrame } from './core/key-bound-bga.ts';
 
export { BmsonBGAController, type BmsonBGAEventInput, type BmsonBGAFrame } from './core/bmson-bga.ts';