UNPKG

@vscubing/cubing

Version:

A collection of JavaScript cubing libraries.

46 lines (40 loc) 1.76 kB
import { t as PuzzleID, s as PuzzleLoader, u as KPuzzle, i as PuzzleGeometry, E as ExperimentalStickering, v as StickeringMask, w as PuzzleSpecificSimplifyOptions, A as AlgLeaf, x as AlgTransformData } from '../PuzzleLoader-_z--T5BU.js'; import 'type-fest'; import 'three/src/Three.js'; interface EventInfo { puzzleID: PuzzleID; eventName: string; /** Whether/how scrambles are implemented in `randomScrambleForEvent(…)` in this version of `cubing.js` */ scramblesImplemented: null | "random-state" | "random-moves"; } declare const wcaEvents: Record<string, EventInfo>; /** @category Event Info */ declare function wcaEventInfo(event: string): EventInfo | null; declare const twizzleEvents: Record<string, EventInfo>; /** @category Event Info */ declare function eventInfo(event: string): EventInfo | null; /** @category Specific Puzzles */ declare const cube2x2x2: PuzzleLoader; /** @category Specific Puzzles */ declare const cube3x3x3: { id: string; fullName: string; inventedBy: string[]; inventionYear: number; kpuzzle: () => Promise<KPuzzle>; svg: () => Promise<string>; llSVG: () => Promise<string>; llFaceSVG: () => Promise<string>; pg: () => Promise<PuzzleGeometry>; stickeringMask: (stickering: ExperimentalStickering) => Promise<StickeringMask>; stickerings: () => Promise<string[]>; puzzleSpecificSimplifyOptions: PuzzleSpecificSimplifyOptions; keyMapping: () => Promise<{ [key: string]: AlgLeaf; [key: number]: AlgLeaf; }>; algTransformData: AlgTransformData; }; /** @category All Puzzles */ declare const puzzles: Record<string, PuzzleLoader>; export { PuzzleLoader, cube2x2x2, cube3x3x3, eventInfo, puzzles, twizzleEvents, wcaEventInfo, wcaEvents };