@naanouff/w3dts-chess 0.0.0-stage → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +18 -3
  2. package/dist/board/bookMoveSpline.d.ts +19 -0
  3. package/dist/board/bookMoveSpline.d.ts.map +1 -0
  4. package/dist/board/cemeterySlots.d.ts +14 -0
  5. package/dist/board/cemeterySlots.d.ts.map +1 -0
  6. package/dist/board/chessBoard.d.ts +36 -0
  7. package/dist/board/chessBoard.d.ts.map +1 -0
  8. package/dist/board/fileRankGlyph.d.ts +12 -0
  9. package/dist/board/fileRankGlyph.d.ts.map +1 -0
  10. package/dist/board/fileRankLabels.d.ts +33 -0
  11. package/dist/board/fileRankLabels.d.ts.map +1 -0
  12. package/dist/board/pieceTravel.d.ts +8 -0
  13. package/dist/board/pieceTravel.d.ts.map +1 -0
  14. package/dist/ecs/ChessPieceComponent.d.ts +14 -0
  15. package/dist/ecs/ChessPieceComponent.d.ts.map +1 -0
  16. package/dist/geometry/boardBody.d.ts +12 -0
  17. package/dist/geometry/boardBody.d.ts.map +1 -0
  18. package/dist/geometry/cylindricalPieceUv.d.ts +7 -0
  19. package/dist/geometry/cylindricalPieceUv.d.ts.map +1 -0
  20. package/dist/geometry/meshBuilder.d.ts +32 -0
  21. package/dist/geometry/meshBuilder.d.ts.map +1 -0
  22. package/dist/geometry/pieceColliders.d.ts +10 -0
  23. package/dist/geometry/pieceColliders.d.ts.map +1 -0
  24. package/dist/geometry/stauntonPieces.d.ts +11 -0
  25. package/dist/geometry/stauntonPieces.d.ts.map +1 -0
  26. package/dist/geometry/stauntonProfiles.d.ts +25 -0
  27. package/dist/geometry/stauntonProfiles.d.ts.map +1 -0
  28. package/dist/gproc/chessBoardGraph.d.ts +4 -0
  29. package/dist/gproc/chessBoardGraph.d.ts.map +1 -0
  30. package/dist/gproc/chessPieceGraphs.d.ts +11 -0
  31. package/dist/gproc/chessPieceGraphs.d.ts.map +1 -0
  32. package/dist/gproc/executeChessGProc.d.ts +7 -0
  33. package/dist/gproc/executeChessGProc.d.ts.map +1 -0
  34. package/dist/grab/MouseGrabController.d.ts +27 -0
  35. package/dist/grab/MouseGrabController.d.ts.map +1 -0
  36. package/dist/grab/grabMath.d.ts +28 -0
  37. package/dist/grab/grabMath.d.ts.map +1 -0
  38. package/dist/grab/pickRay.d.ts +20 -0
  39. package/dist/grab/pickRay.d.ts.map +1 -0
  40. package/dist/index.d.ts +53 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/learn/OpeningTrainer.d.ts +28 -0
  43. package/dist/learn/OpeningTrainer.d.ts.map +1 -0
  44. package/dist/learn/ecoOpenings.d.ts +18 -0
  45. package/dist/learn/ecoOpenings.d.ts.map +1 -0
  46. package/dist/look/chessAlbedo.d.ts +23 -0
  47. package/dist/look/chessAlbedo.d.ts.map +1 -0
  48. package/dist/look/chessProceduralShaderGraphs.d.ts +6 -0
  49. package/dist/look/chessProceduralShaderGraphs.d.ts.map +1 -0
  50. package/dist/net/chessWire.d.ts +30 -0
  51. package/dist/net/chessWire.d.ts.map +1 -0
  52. package/dist/physics/chessGroups.d.ts +14 -0
  53. package/dist/physics/chessGroups.d.ts.map +1 -0
  54. package/dist/physics/piecePose.d.ts +8 -0
  55. package/dist/physics/piecePose.d.ts.map +1 -0
  56. package/dist/play/chessHudState.d.ts +69 -0
  57. package/dist/play/chessHudState.d.ts.map +1 -0
  58. package/dist/play/chessTableSfx.d.ts +19 -0
  59. package/dist/play/chessTableSfx.d.ts.map +1 -0
  60. package/dist/play/parseChessDemoQuery.d.ts +17 -0
  61. package/dist/play/parseChessDemoQuery.d.ts.map +1 -0
  62. package/dist/rules/ChessMatch.d.ts +37 -0
  63. package/dist/rules/ChessMatch.d.ts.map +1 -0
  64. package/dist/rules/HeuristicChessEngine.d.ts +15 -0
  65. package/dist/rules/HeuristicChessEngine.d.ts.map +1 -0
  66. package/dist/rules/IChessEngine.d.ts +12 -0
  67. package/dist/rules/IChessEngine.d.ts.map +1 -0
  68. package/dist/rules/chessTypes.d.ts +37 -0
  69. package/dist/rules/chessTypes.d.ts.map +1 -0
  70. package/dist/scene/chessSceneExtension.d.ts +30 -0
  71. package/dist/scene/chessSceneExtension.d.ts.map +1 -0
  72. package/dist/w3dts-chess.es.js +3662 -0
  73. package/dist/w3dts-chess.umd.js +1 -0
  74. package/package.json +44 -3
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @naanouff/w3dts-chess
2
+
3
+ Chess rules (`ChessMatch` over chessops), board coordinates, Staunton procedural meshes, and fingertip mouse grab for W3DTS.
4
+
5
+ V1 plan: [documentation/domains/chess/CHESS_DEMO.md](../../documentation/domains/chess/CHESS_DEMO.md). V2 (CHESS-B4): GPROC graphs. Play: vs CPU (`HeuristicChessEngine`), hot-seat, two-tab P2P (`?chess=p2p`), or ECO learn (`?chess=learn`). Game HUD: `w3dts-chess-hud-state` (CHESS-B5). Learn UX + juice: CHESS-B6.
6
+
7
+ ```ts
8
+ import { ChessMatch, squareToWorld, worldToSquare } from '@naanouff/w3dts-chess';
9
+
10
+ const match = ChessMatch.starting();
11
+ const legal = match.legalSquares('e2');
12
+ const result = match.tryMove('e2', 'e4');
13
+ ```
14
+
15
+ ```bash
16
+ pnpm --filter @naanouff/w3dts-chess test
17
+ pnpm --filter @naanouff/w3dts-chess build
18
+ ```
@@ -0,0 +1,19 @@
1
+ import { ChessSquareName } from '../rules/chessTypes';
2
+ export type BookMoveSplinePoint = [number, number, number];
3
+ /** Elbow of the knight L (after the two-step), in file/rank indices. */
4
+ export declare function knightElbowIndices(from: ChessSquareName, to: ChessSquareName): {
5
+ file: number;
6
+ rank: number;
7
+ };
8
+ export interface SampleBookMoveSplineOptions {
9
+ knight?: boolean;
10
+ liftY?: number;
11
+ samples?: number;
12
+ }
13
+ /**
14
+ * Polyline `from → to` slightly above the varnish.
15
+ * Knight: two-segment **L** (not the diagonal). Others: single lifted arc.
16
+ */
17
+ export declare function sampleBookMoveSpline(from: ChessSquareName, to: ChessSquareName, options?: SampleBookMoveSplineOptions): BookMoveSplinePoint[];
18
+ export declare function bookMoveSplineLength(points: readonly BookMoveSplinePoint[]): number;
19
+ //# sourceMappingURL=bookMoveSpline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookMoveSpline.d.ts","sourceRoot":"","sources":["../../src/board/bookMoveSpline.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAc3D,wEAAwE;AACxE,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,eAAe,GAClB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAOhC;AA2BD,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,eAAe,EACnB,OAAO,GAAE,2BAAgC,GACxC,mBAAmB,EAAE,CAqBvB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,mBAAmB,EAAE,GAAG,MAAM,CAQnF"}
@@ -0,0 +1,14 @@
1
+ import { ChessColor } from '../rules/chessTypes';
2
+ export interface CemeterySlotPose {
3
+ x: number;
4
+ y: number;
5
+ z: number;
6
+ }
7
+ /**
8
+ * Two rails along ±X, outside {@link CHESS_BOARD_MESH_EXTENT}.
9
+ * White pieces captured (removed from White) sit on −X; black on +X.
10
+ * Slots fill toward +Z in capture order.
11
+ */
12
+ export declare function assignCemeterySlot(capturedColor: ChessColor, slotIndex: number): CemeterySlotPose;
13
+ export declare function cemeterySlotIsOffBoard(pose: CemeterySlotPose): boolean;
14
+ //# sourceMappingURL=cemeterySlots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cemeterySlots.d.ts","sourceRoot":"","sources":["../../src/board/cemeterySlots.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD,MAAM,WAAW,gBAAgB;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAUjG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAEtE"}
@@ -0,0 +1,36 @@
1
+ import { vec3 } from 'gl-matrix';
2
+ import { ChessSquareName } from '../rules/chessTypes';
3
+ /** Square edge length in metres (full-size tournament-ish). */
4
+ export declare const CHESS_SQUARE_SIZE = 0.06;
5
+ /** 8×8 playing-surface extent in metres (not including the wooden frame). */
6
+ export declare const CHESS_BOARD_EXTENT: number;
7
+ /**
8
+ * Wooden frame on each edge of the board albedo, as a fraction of the cube UV.
9
+ * Must match {@link fillBoardAlbedo}.
10
+ */
11
+ export declare const CHESS_BOARD_BORDER_FRAC = 0.06;
12
+ /** Inner UV span occupied by the 8×8 checker (`1 - 2 * border`). */
13
+ export declare const CHESS_BOARD_INNER_FRAC: number;
14
+ /**
15
+ * Visual cube XZ size including the frame. Playing squares stay {@link CHESS_BOARD_EXTENT}.
16
+ */
17
+ export declare const CHESS_BOARD_MESH_EXTENT: number;
18
+ /** Fine 45° chamfer on board edges and corners (metres). */
19
+ export declare const CHESS_BOARD_BEVEL_M = 0.002;
20
+ /** Slab thickness (metres). Visual cube centre sits at `-height/2`. */
21
+ export declare const CHESS_BOARD_BODY_HEIGHT = 0.024;
22
+ /** Y of the playing surface (piece origins sit on this plane, above the varnish quad). */
23
+ export declare const CHESS_BOARD_SURFACE_Y = 0.001;
24
+ /**
25
+ * World-space centre of a square. X = files (a −X … h +X), Z = ranks (1 −Z … 8 +Z).
26
+ */
27
+ export declare function squareToWorld(square: ChessSquareName, y?: number): vec3;
28
+ /**
29
+ * Nearest square for a world XZ, or `null` when outside the board (no snap).
30
+ */
31
+ export declare function worldToSquare(x: number, z: number): ChessSquareName | null;
32
+ /**
33
+ * Snap XZ onto a square centre, or `null` outside the board.
34
+ */
35
+ export declare function snapWorldToSquareCenter(x: number, z: number, y?: number): vec3 | null;
36
+ //# sourceMappingURL=chessBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chessBoard.d.ts","sourceRoot":"","sources":["../../src/board/chessBoard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,+DAA+D;AAC/D,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,QAAwB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,QAAkC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAA8C,CAAC;AAEnF,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAE7C,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAS3C;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,GAAE,MAA8B,GAAG,IAAI,CAM9F;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAQ1E;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,GAAE,MAA8B,GAChC,IAAI,GAAG,IAAI,CAIb"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file fileRankGlyph.ts
3
+ * @project w3dts
4
+ * @description Serif (Palatino) file/rank glyphs with a champagne intaglio (CHESS-B6a).
5
+ */
6
+ export declare const CHESS_GLYPH_TEXTURE_SIZE = 128;
7
+ /**
8
+ * RGBA8 serif glyph. Transparent outside the cut.
9
+ * Browser: Palatino (empatements). Node: bilinear 5×7. Champagne inlay, not plinth gold.
10
+ */
11
+ export declare function fillChessGlyphAlbedo(glyph: string, size?: number): Uint8ClampedArray;
12
+ //# sourceMappingURL=fileRankGlyph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileRankGlyph.d.ts","sourceRoot":"","sources":["../../src/board/fileRankGlyph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAmCH,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAmK5C;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,IAAI,SAA2B,GAC9B,iBAAiB,CAGnB"}
@@ -0,0 +1,33 @@
1
+ import { quat, vec3 } from 'gl-matrix';
2
+ import { ChessColor } from '../rules/chessTypes';
3
+ export type ChessBoardLabelKind = 'file' | 'rank';
4
+ export interface ChessBoardLabelPose {
5
+ glyph: string;
6
+ kind: ChessBoardLabelKind;
7
+ x: number;
8
+ y: number;
9
+ z: number;
10
+ /**
11
+ * In-plane twist (degrees) after Rx(−90). Viewer must use {@link chessBoardLabelQuat}
12
+ * (Ry, not Rz) so the decal still projects along world −Y.
13
+ */
14
+ yawDeg: number;
15
+ }
16
+ /** Mid-frame (between play edge and mesh edge). */
17
+ export declare function chessBoardRimRadius(): number;
18
+ /** Glyph footprint on the rim (⅔ of the border so the cut sits inside the gold). */
19
+ export declare function chessBoardLabelSize(): number;
20
+ /**
21
+ * 32 labels: a–h on both file rims, 1–8 on both flanks (SAN `Nf3` / `Nc6`).
22
+ * World axes stay algebraic (a −X, 1 −Z). Each edge faces the player sitting there:
23
+ * −Z → white, +Z → black, ±X flanks face outward. {@link localColor} does not
24
+ * spin every glyph the same way (that made them all read for black).
25
+ */
26
+ export declare function chessBoardLabelPoses(localColor: ChessColor): ChessBoardLabelPose[];
27
+ export declare function chessBoardLabelPoseVec(pose: ChessBoardLabelPose, out?: vec3): vec3;
28
+ /**
29
+ * Decal projector: Rx(−90) then Ry(yaw). Local −Z stays world −Y while the glyph
30
+ * spins on the frame (Rz after Rx would aim the projector into the XZ plane).
31
+ */
32
+ export declare function chessBoardLabelQuat(pose: ChessBoardLabelPose, out?: quat): quat;
33
+ //# sourceMappingURL=fileRankLabels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileRankLabels.d.ts","sourceRoot":"","sources":["../../src/board/fileRankLabels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAyC,MAAM,qBAAqB,CAAC;AAQ7F,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,mBAAmB,CAAC;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAKD,mDAAmD;AACnD,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,IAAI,MAAM,CAG5C;AAID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,mBAAmB,EAAE,CA0ClF;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,mBAAmB,EAAE,GAAG,OAAgB,GAAG,IAAI,CAE3F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,EAAE,GAAG,OAAgB,GAAG,IAAI,CAExF"}
@@ -0,0 +1,8 @@
1
+ import { ChessSquareName } from '../rules/chessTypes';
2
+ export declare function easeSmoothstep(t: number): number;
3
+ /** Default hop height (~pawn). */
4
+ export declare const CHESS_PIECE_TRAVEL_LIFT_Y = 0.042;
5
+ /** World position along a single lifted arc (all roles, including knight). */
6
+ export declare function samplePieceTravel(from: ChessSquareName, to: ChessSquareName, t: number, liftY?: number): [number, number, number];
7
+ export declare function samplePieceTravelWorld(from: readonly [number, number, number], to: readonly [number, number, number], t: number): [number, number, number];
8
+ //# sourceMappingURL=pieceTravel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pieceTravel.d.ts","sourceRoot":"","sources":["../../src/board/pieceTravel.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,kCAAkC;AAClC,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAE/C,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,eAAe,EACrB,EAAE,EAAE,eAAe,EACnB,CAAC,EAAE,MAAM,EACT,KAAK,GAAE,MAAkC,GACxC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAU1B;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACvC,EAAE,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACrC,CAAC,EAAE,MAAM,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAS1B"}
@@ -0,0 +1,14 @@
1
+ import { IComponent } from '@naanouff/w3dts-core';
2
+ import { ChessColor, ChessPieceRole } from '../rules/chessTypes';
3
+ /**
4
+ * Marks an entity as a chess piece for SceneDD / future ChessMatchSystem.
5
+ */
6
+ export declare class ChessPieceComponent implements IComponent {
7
+ static readonly componentName = "ChessPieceComponent";
8
+ color: ChessColor;
9
+ role: ChessPieceRole;
10
+ /** Algebraic square e.g. `e2`, or empty when off-board / cemetery. */
11
+ square: string;
12
+ constructor(color?: ChessColor, role?: ChessPieceRole, square?: string);
13
+ }
14
+ //# sourceMappingURL=ChessPieceComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChessPieceComponent.d.ts","sourceRoot":"","sources":["../../src/ecs/ChessPieceComponent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;GAEG;AACH,qBAAa,mBAAoB,YAAW,UAAU;IACpD,gBAAuB,aAAa,yBAAyB;IAEtD,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IAC5B,sEAAsE;IAC/D,MAAM,EAAE,MAAM,CAAC;gBAEV,KAAK,GAAE,UAAoB,EAAE,IAAI,GAAE,cAAuB,EAAE,MAAM,SAAK;CAKpF"}
@@ -0,0 +1,12 @@
1
+ import { Mesh } from '@naanouff/w3dts-core';
2
+ /**
3
+ * Per-face 0–1 UVs squash the thin rim. Rewrite as metres so gold tiles at a
4
+ * uniform world density on top, underside, and edges.
5
+ */
6
+ export declare function applyChessBoardWorldUvs(mesh: Mesh): Mesh;
7
+ /**
8
+ * Body centred at the origin. Outer AABB is `extentXz + 2*bevel`; the inset
9
+ * top face is `extentXz` so the checker plane sits flush without shrinking squares.
10
+ */
11
+ export declare function buildChessBoardBodyMesh(extentXz?: number, height?: number, bevel?: number): Mesh;
12
+ //# sourceMappingURL=boardBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boardBody.d.ts","sourceRoot":"","sources":["../../src/geometry/boardBody.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAA+B,MAAM,sBAAsB,CAAC;AAWzE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAwDxD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,SAA0B,EAClC,MAAM,GAAE,MAAgC,EACxC,KAAK,SAAsB,GAC1B,IAAI,CAQN"}
@@ -0,0 +1,7 @@
1
+ import { Mesh } from '@naanouff/w3dts-core';
2
+ /**
3
+ * Writes cylindrical UVs (θ around Y, V along height) and matching tangents.
4
+ * Duplicates seam-crossing corners so the 0/1 wrap does not smear the texture.
5
+ */
6
+ export declare function applyCylindricalPieceUvs(mesh: Mesh): Mesh;
7
+ //# sourceMappingURL=cylindricalPieceUv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cylindricalPieceUv.d.ts","sourceRoot":"","sources":["../../src/geometry/cylindricalPieceUv.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAA+B,MAAM,sBAAsB,CAAC;AAOzE;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAgEzD"}
@@ -0,0 +1,32 @@
1
+ import { Mesh } from '@naanouff/w3dts-core';
2
+ export declare class MeshBuilder {
3
+ private readonly verts;
4
+ private readonly indices;
5
+ get vertexCount(): number;
6
+ addVertex(x: number, y: number, z: number, u: number, v: number, nx: number, ny: number, nz: number, tangent?: readonly [number, number, number]): number;
7
+ addTri(a: number, b: number, c: number): void;
8
+ /**
9
+ * Fan from `pts[0]`. Winding is flipped when the first triangle's normal
10
+ * points against `outward` so callers can list vertices in either order.
11
+ */
12
+ addConvexPolygon(pts: ReadonlyArray<readonly [number, number, number]>, outward: readonly [number, number, number]): void;
13
+ /**
14
+ * AABB with a uniform edge chamfer. Original faces stay on the AABB planes
15
+ * and shrink by `bevel`; 12 edge quads + 8 corner triangles fill the cuts.
16
+ */
17
+ addChamferedBox(cx: number, cy: number, cz: number, hx: number, hy: number, hz: number, bevel: number): void;
18
+ /** Axis-aligned box. Half-extents hx,hy,hz. Origin at centre. */
19
+ addBox(cx: number, cy: number, cz: number, hx: number, hy: number, hz: number): void;
20
+ /**
21
+ * Revolution of a (y, radius) profile around Y. First ring at profile[0].y.
22
+ * Winding is CCW from outside (WebGPU back-face cull, same convention as engine cylinders).
23
+ */
24
+ addLathe(profile: ReadonlyArray<readonly [number, number]>, segments?: number): void;
25
+ /**
26
+ * Extrudes a YZ polyline (y, z) along ±X by halfThickness.
27
+ * Belt vertices use silhouette normals; cap vertices use ±X so the flat sides light correctly.
28
+ */
29
+ addExtrudedYz(profile: ReadonlyArray<readonly [number, number]>, halfThickness: number): void;
30
+ toMesh(name: string): Mesh;
31
+ }
32
+ //# sourceMappingURL=meshBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meshBuilder.d.ts","sourceRoot":"","sources":["../../src/geometry/meshBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,IAAI,EAA+B,MAAM,sBAAsB,CAAC;AAmFzE,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IAExC,IAAW,WAAW,IAAI,MAAM,CAE/B;IAEM,SAAS,CACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAC1C,MAAM;IAuCF,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAIpD;;;OAGG;IACI,gBAAgB,CACrB,GAAG,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,EACrD,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACzC,IAAI;IA8BP;;;OAGG;IACI,eAAe,CACpB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,GACZ,IAAI;IA+FP,iEAAiE;IAC1D,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IA2E3F;;;OAGG;IACI,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,SAAK,GAAG,IAAI;IAuDvF;;;OAGG;IACI,aAAa,CAClB,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACjD,aAAa,EAAE,MAAM,GACpB,IAAI;IAmCA,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAMlC"}
@@ -0,0 +1,10 @@
1
+ import { ColliderShapeOptions } from '@naanouff/w3dts-physics';
2
+ import { ChessPieceRole } from '../rules/chessTypes';
3
+ /** Compound OBB stack (base + stem + head). Offsets are shape centres in local space. */
4
+ export declare function stauntonPieceColliderShapes(role: ChessPieceRole): ColliderShapeOptions[];
5
+ /**
6
+ * Board slab in the rigid body's local space. Place the body at the visual cube
7
+ * centre (`y = -halfY`) so the top face sits on the playing surface (world y = 0).
8
+ */
9
+ export declare function boardColliderShape(halfY?: number): ColliderShapeOptions;
10
+ //# sourceMappingURL=pieceColliders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pieceColliders.d.ts","sourceRoot":"","sources":["../../src/geometry/pieceColliders.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAmB1D,yFAAyF;AACzF,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,cAAc,GAAG,oBAAoB,EAAE,CAyCxF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,SAAQ,GAAG,oBAAoB,CAOtE"}
@@ -0,0 +1,11 @@
1
+ import { Mesh } from '@naanouff/w3dts-core';
2
+ import { ChessPieceRole } from '../rules/chessTypes';
3
+ /**
4
+ * Pawn lathe with cylindrical UVs (0–1 wrap) for sampled PBR maps.
5
+ * GPROC lathe pieces have no UVs — they stay on triplanar graph materials.
6
+ */
7
+ export declare function buildStauntonPawnUvMesh(): Mesh;
8
+ /** Builds a local-space Staunton mesh. Origin at the base centre (y=0 on the board). */
9
+ export declare function buildStauntonPieceMesh(role: ChessPieceRole): Mesh;
10
+ export declare function stauntonPieceHeight(role: ChessPieceRole): number;
11
+ //# sourceMappingURL=stauntonPieces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stauntonPieces.d.ts","sourceRoot":"","sources":["../../src/geometry/stauntonPieces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAM1D;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAI9C;AAED,wFAAwF;AACxF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAKjE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAiBhE"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @file stauntonProfiles.ts
3
+ * @project w3dts
4
+ * @description Shared [y, radius] lathe profiles and knight silhouette (CHESS-B4).
5
+ */
6
+ /** Azimuthal revolution count. 32-gons read as faceted at Game camera distance. */
7
+ export declare const STAUNTON_LATHE_SEGMENTS = 96;
8
+ /** Pawn collar / stem / head. First component is Y, second is radius. */
9
+ export declare const STAUNTON_PAWN_PROFILE: Array<[number, number]>;
10
+ export declare const STAUNTON_ROOK_PROFILE: Array<[number, number]>;
11
+ export declare const STAUNTON_BISHOP_PROFILE: Array<[number, number]>;
12
+ export declare const STAUNTON_QUEEN_PROFILE: Array<[number, number]>;
13
+ export declare const STAUNTON_KING_PROFILE: Array<[number, number]>;
14
+ /** Closed YZ silhouette (y, z): Staunton horse on the pedestal, facing +Z. */
15
+ export declare const STAUNTON_KNIGHT_PROFILE: Array<[number, number]>;
16
+ export declare const STAUNTON_KNIGHT_PEDESTAL: Array<[number, number]>;
17
+ /** Open Chaikin: keeps endpoints, fillets collars without overshoot. */
18
+ export declare function chaikinOpen(profile: ReadonlyArray<readonly [number, number]>, iterations: number): Array<[number, number]>;
19
+ /** Closed silhouette resample (knight extrusion). Interpolates the control loop. */
20
+ export declare function resampleClosedPolyline(loop: ReadonlyArray<readonly [number, number]>, samplesPerSpan: number): Array<[number, number]>;
21
+ /** GPROC Lathe profile: (radius, y, 0). No r=0 poles (those degenerate the revolve). */
22
+ export declare function latheCurvePoints(profile: ReadonlyArray<readonly [number, number]>): Array<[number, number, number]>;
23
+ /** Closed knight silhouette in XYZ for a filled PrimitivePolyline (YZ plane, x=0). */
24
+ export declare function knightSilhouettePoints(samplesPerSpan?: number): Array<[number, number, number]>;
25
+ //# sourceMappingURL=stauntonProfiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stauntonProfiles.d.ts","sourceRoot":"","sources":["../../src/geometry/stauntonProfiles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAWzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAOzD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAS3D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAS1D,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CASzD,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAiB3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAK5D,CAAC;AAcF,wEAAwE;AACxE,wBAAgB,WAAW,CACzB,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACjD,UAAU,EAAE,MAAM,GACjB,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAgBzB;AA0BD,oFAAoF;AACpF,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAC9C,cAAc,EAAE,MAAM,GACrB,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAezB;AAED,wFAAwF;AACxF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAChD,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAEjC;AAWD,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,cAAc,SAAI,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAI1F"}
@@ -0,0 +1,4 @@
1
+ import { GProcGraph } from '@naanouff/w3dts-gproc';
2
+ /** Parametric Staunton board body: ExtentXz + Height + Bevel → PrimitiveChamferedBox. */
3
+ export declare function createChessBoardGraph(): GProcGraph;
4
+ //# sourceMappingURL=chessBoardGraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chessBoardGraph.d.ts","sourceRoot":"","sources":["../../src/gproc/chessBoardGraph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAOxD,yFAAyF;AACzF,wBAAgB,qBAAqB,IAAI,UAAU,CAqLlD"}
@@ -0,0 +1,11 @@
1
+ import { GProcGraph } from '@naanouff/w3dts-gproc';
2
+ import { ChessPieceRole } from '../rules/chessTypes';
3
+ /** Full X thickness of the horse head (matches TS `addExtrudedYz` halfThickness 0.011). */
4
+ export declare const CHESS_KNIGHT_HEAD_THICKNESS = 0.022;
5
+ export type ChessLatheRole = Exclude<ChessPieceRole, 'knight'>;
6
+ export declare function isChessLatheRole(role: ChessPieceRole): role is ChessLatheRole;
7
+ /** Parametric Staunton lathe piece. GroupInput `Scale` (default 1). */
8
+ export declare function createChessPieceGraph(role: ChessLatheRole): GProcGraph;
9
+ /** Pedestal lathe + filled YZ silhouette → ExtrudeMesh + ear cubes (CHESS-B4c). */
10
+ export declare function createChessKnightGraph(): GProcGraph;
11
+ //# sourceMappingURL=chessPieceGraphs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chessPieceGraphs.d.ts","sourceRoot":"","sources":["../../src/gproc/chessPieceGraphs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAA4B,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAa1D,2FAA2F;AAC3F,eAAO,MAAM,2BAA2B,QAAQ,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AA0E/D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,IAAI,cAAc,CAE7E;AAED,uEAAuE;AACvE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAiItE;AAQD,mFAAmF;AACnF,wBAAgB,sBAAsB,IAAI,UAAU,CA+InD"}
@@ -0,0 +1,7 @@
1
+ import { Mesh } from '@naanouff/w3dts-core';
2
+ import { GProcGraph } from '@naanouff/w3dts-gproc';
3
+ /** Execute `graph` and convert the first sub-mesh to a CPU `Mesh`. */
4
+ export declare function executeChessGProcToMesh(graph: GProcGraph, parameters: Record<string, unknown>, name: string): Mesh;
5
+ /** Bake concavity / AO / height into vertex color (CPU path; graphs use BakeMeshMaps). */
6
+ export declare function bakeChessMeshMaps(mesh: Mesh, aoRadius?: number): Mesh;
7
+ //# sourceMappingURL=executeChessGProc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeChessGProc.d.ts","sourceRoot":"","sources":["../../src/gproc/executeChessGProc.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAOL,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAU/B,sEAAsE;AACtE,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,MAAM,GACX,IAAI,CAaN;AAED,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,SAAQ,GAAG,IAAI,CAgBpE"}
@@ -0,0 +1,27 @@
1
+ import { vec3 } from 'gl-matrix';
2
+ import { Entity, World } from '@naanouff/w3dts-core';
3
+ export interface ChessGrabState {
4
+ entity: Entity;
5
+ previousMask: number;
6
+ grabHeightY: number;
7
+ targetX: number;
8
+ targetY: number;
9
+ targetZ: number;
10
+ velX: number;
11
+ velY: number;
12
+ velZ: number;
13
+ }
14
+ /**
15
+ * Lifts a piece with a damped spring onto the grab plane and follows the cursor.
16
+ * Motion is kinematic: a dynamic zero-length DISTANCE weld ejected 40 g pieces.
17
+ */
18
+ export declare class MouseGrabController {
19
+ private state;
20
+ get grabbed(): ChessGrabState | null;
21
+ /** Cursor / drop target XZ on the grab plane (not the lagged piece pose). */
22
+ dropXZ(): [number, number] | null;
23
+ begin(world: World, entity: Entity, worldHit: vec3 | readonly [number, number, number], grabHeightY: number): boolean;
24
+ updateWorldAnchor(world: World, worldX: number, worldZ: number, dt: number): void;
25
+ end(world: World): Entity | null;
26
+ }
27
+ //# sourceMappingURL=MouseGrabController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MouseGrabController.d.ts","sourceRoot":"","sources":["../../src/grab/MouseGrabController.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAc,IAAI,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAU1D,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAOD;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,KAAK,CAA+B;IAE5C,IAAW,OAAO,IAAI,cAAc,GAAG,IAAI,CAE1C;IAED,6EAA6E;IACtE,MAAM,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAKjC,KAAK,CACV,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAClD,WAAW,EAAE,MAAM,GAClB,OAAO;IA8CH,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAkBjF,GAAG,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI;CAgBxC"}
@@ -0,0 +1,28 @@
1
+ import { vec3 } from 'gl-matrix';
2
+ export declare const CHESS_GRAB_FREQUENCY_HZ = 8;
3
+ export declare const CHESS_GRAB_DAMPING_RATIO = 0.55;
4
+ export declare const CHESS_GRAB_LIFT_M = 0.025;
5
+ export interface ClientRectLike {
6
+ left: number;
7
+ top: number;
8
+ width: number;
9
+ height: number;
10
+ }
11
+ /**
12
+ * Converts client coordinates to NDC (x,y in [-1,1], +Y up).
13
+ * Points outside the rect are still converted (needed while dragging off-canvas).
14
+ */
15
+ export declare function clientPointToNdc(clientX: number, clientY: number, rect: ClientRectLike): {
16
+ ndcX: number;
17
+ ndcY: number;
18
+ } | null;
19
+ /**
20
+ * Intersects a world ray with the plane y = planeY. Returns null if parallel or behind the origin.
21
+ */
22
+ export declare function intersectRayHorizontalPlane(origin: readonly [number, number, number] | vec3, direction: readonly [number, number, number] | vec3, planeY: number): vec3 | null;
23
+ /**
24
+ * Semi-implicit Euler spring toward `target` (under-damped fingertip follow).
25
+ * Mutates `pos` and `vel` in place.
26
+ */
27
+ export declare function stepChessGrabSpring(pos: vec3, vel: vec3, target: readonly [number, number, number] | vec3, dt: number, frequencyHz?: number, dampingRatio?: number): void;
28
+ //# sourceMappingURL=grabMath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grabMath.d.ts","sourceRoot":"","sources":["../../src/grab/grabMath.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,cAAc,GACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAKvC;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EAChD,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EACnD,MAAM,EAAE,MAAM,GACb,IAAI,GAAG,IAAI,CAMb;AAID;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EAChD,EAAE,EAAE,MAAM,EACV,WAAW,GAAE,MAAgC,EAC7C,YAAY,GAAE,MAAiC,GAC9C,IAAI,CAWN"}
@@ -0,0 +1,20 @@
1
+ import { mat4, vec3 } from 'gl-matrix';
2
+ export interface ChessPickRay {
3
+ origin: [number, number, number];
4
+ direction: [number, number, number];
5
+ }
6
+ /**
7
+ * Perspective view-projection looking from `eye` toward `target` (Y-up).
8
+ * `aspect` must be the pick canvas width/height — not ECS `camera.aspect`.
9
+ */
10
+ export declare function viewProjectionLookAt(eye: readonly [number, number, number] | vec3, target: readonly [number, number, number] | vec3, fovY: number, aspect: number, near: number, far: number, out?: mat4): mat4;
11
+ /**
12
+ * View-projection matching the camera system: eye at the world
13
+ * translation, look along local −Z.
14
+ */
15
+ export declare function viewProjectionFromWorldTransform(worldTransform: mat4, fovY: number, aspect: number, near: number, far: number, out?: mat4): mat4;
16
+ /**
17
+ * Builds a world-space ray from NDC through the inverse view-projection matrix.
18
+ */
19
+ export declare function pickRayFromViewProjection(viewProjection: mat4, ndcX: number, ndcY: number): ChessPickRay | null;
20
+ //# sourceMappingURL=pickRay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickRay.d.ts","sourceRoot":"","sources":["../../src/grab/pickRay.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAQ,IAAI,EAAQ,MAAM,WAAW,CAAC;AAEnD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAeD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EAC7C,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EAChD,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,IAAoB,GACxB,IAAI,CAKN;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,cAAc,EAAE,IAAI,EACpB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,IAAoB,GACxB,IAAI,CAON;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,IAAI,EACpB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,YAAY,GAAG,IAAI,CAiBrB"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @file index.ts
3
+ * @project w3dts
4
+ * @author Cyril TARRIET
5
+ * @date 2026-08-26
6
+ * @description Public exports for @naanouff/w3dts-chess.
7
+ */
8
+ export { ChessMatch } from './rules/ChessMatch';
9
+ export type { IChessEngine, ChessEngineMove } from './rules/IChessEngine';
10
+ export { HeuristicChessEngine } from './rules/HeuristicChessEngine';
11
+ export type { HeuristicChessEngineOptions } from './rules/HeuristicChessEngine';
12
+ export { encodeChessWire, decodeChessWire, chessPlyFromFen, decideChessFenSync, } from './net/chessWire';
13
+ export type { ChessWireMessage, ChessFenSyncDecision } from './net/chessWire';
14
+ export { parseChessDemoQuery, formatChessClock, parseChessDemoSession, mergeChessDemoQueryIntoSearch, chessDemoQueryToParams, replaceChessDemoQueryInLocation, } from './play/parseChessDemoQuery';
15
+ export type { ChessPlayMode, ChessDemoQuery } from './play/parseChessDemoQuery';
16
+ export { CHESS_HUD_STATE_EVENT, CHESS_HUD_COMMAND_EVENT, buildChessHudLearnPlies, chessPlayP2pHint, normalizeChessHudP2pStatus, parseChessHudState, parseChessHudCommand, stripChessSanSuffix, } from './play/chessHudState';
17
+ export type { ChessHudCommand, ChessHudLearnState, ChessHudPlayMode, ChessHudPlayState, ChessHudP2pStatus, ChessHudSanPly, ChessHudSanStatus, ChessHudState, } from './play/chessHudState';
18
+ export { ECO_OPENINGS, findEcoOpeningIndex, openingSlug } from './learn/ecoOpenings';
19
+ export type { EcoOpening } from './learn/ecoOpenings';
20
+ export { OpeningTrainer, resolveEcoLine } from './learn/OpeningTrainer';
21
+ export type { BookPly } from './learn/OpeningTrainer';
22
+ export type { ChessCastleDelta, ChessColor, ChessFile, ChessMoveFailReason, ChessMoveFailure, ChessMoveResult, ChessMoveSuccess, ChessPieceOnSquare, ChessPieceRole, ChessRank, ChessSquareName, } from './rules/chessTypes';
23
+ export { CHESS_BOARD_BEVEL_M, CHESS_BOARD_BODY_HEIGHT, CHESS_BOARD_BORDER_FRAC, CHESS_BOARD_EXTENT, CHESS_BOARD_INNER_FRAC, CHESS_BOARD_MESH_EXTENT, CHESS_BOARD_SURFACE_Y, CHESS_SQUARE_SIZE, snapWorldToSquareCenter, squareToWorld, worldToSquare, } from './board/chessBoard';
24
+ export { chessBoardLabelPoses, chessBoardLabelQuat, chessBoardLabelSize, chessBoardRimRadius, chessBoardLabelPoseVec, } from './board/fileRankLabels';
25
+ export type { ChessBoardLabelKind, ChessBoardLabelPose } from './board/fileRankLabels';
26
+ export { fillChessGlyphAlbedo, CHESS_GLYPH_TEXTURE_SIZE } from './board/fileRankGlyph';
27
+ export { sampleBookMoveSpline, bookMoveSplineLength, knightElbowIndices, } from './board/bookMoveSpline';
28
+ export type { BookMoveSplinePoint, SampleBookMoveSplineOptions } from './board/bookMoveSpline';
29
+ export { samplePieceTravel, samplePieceTravelWorld, easeSmoothstep, CHESS_PIECE_TRAVEL_LIFT_Y, } from './board/pieceTravel';
30
+ export { assignCemeterySlot, cemeterySlotIsOffBoard } from './board/cemeterySlots';
31
+ export type { CemeterySlotPose } from './board/cemeterySlots';
32
+ export { chessTableSfxForPly } from './play/chessTableSfx';
33
+ export type { ChessTableSfxId, ChessTableSfxCue } from './play/chessTableSfx';
34
+ export { CHESS_GROUP_BOARD, CHESS_GROUP_PIECE, CHESS_MASK_BOARD, CHESS_MASK_PIECE, CHESS_MASK_PIECE_GRABBED, } from './physics/chessGroups';
35
+ export { buildStauntonPieceMesh, buildStauntonPawnUvMesh, stauntonPieceHeight, } from './geometry/stauntonPieces';
36
+ export { applyCylindricalPieceUvs } from './geometry/cylindricalPieceUv';
37
+ export { CHESS_KNIGHT_HEAD_THICKNESS, createChessKnightGraph, createChessPieceGraph, isChessLatheRole, } from './gproc/chessPieceGraphs';
38
+ export type { ChessLatheRole } from './gproc/chessPieceGraphs';
39
+ export { buildChessBoardBodyMesh, applyChessBoardWorldUvs } from './geometry/boardBody';
40
+ export { createChessBoardGraph } from './gproc/chessBoardGraph';
41
+ export { executeChessGProcToMesh, bakeChessMeshMaps } from './gproc/executeChessGProc';
42
+ export { createMarbleProceduralPBRGraph, createBrushedSteelProceduralPBRGraph, MARBLE_PBR_SHADER_ID, STEEL_PBR_SHADER_ID, } from './look/chessProceduralShaderGraphs';
43
+ export { boardColliderShape, stauntonPieceColliderShapes } from './geometry/pieceColliders';
44
+ export { MeshBuilder } from './geometry/meshBuilder';
45
+ export { fillBoardAlbedo, fillEbonyAlbedo, fillIvoryAlbedo, boardAlbedoCell, } from './look/chessAlbedo';
46
+ export type { BoardAlbedoCell } from './look/chessAlbedo';
47
+ export { CHESS_GRAB_DAMPING_RATIO, CHESS_GRAB_FREQUENCY_HZ, CHESS_GRAB_LIFT_M, clientPointToNdc, intersectRayHorizontalPlane, stepChessGrabSpring, } from './grab/grabMath';
48
+ export { pickRayFromViewProjection, viewProjectionFromWorldTransform, viewProjectionLookAt, } from './grab/pickRay';
49
+ export { MouseGrabController, type ChessGrabState } from './grab/MouseGrabController';
50
+ export { lockChessPieceTilt, seatChessPieceUpright, setChessPieceHeld } from './physics/piecePose';
51
+ export { ChessPieceComponent } from './ecs/ChessPieceComponent';
52
+ export { createChessSceneExtensionHandler, W3DTS_CHESS_EXTENSION_ID, type ChessSceneExtensionPayload, type ChessSceneExtensionHandler, } from './scene/chessSceneExtension';
53
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,28 @@
1
+ import { ChessSquareName } from '../rules/chessTypes';
2
+ import { EcoOpening } from './ecoOpenings';
3
+ export interface BookPly {
4
+ from: ChessSquareName;
5
+ to: ChessSquareName;
6
+ san: string;
7
+ }
8
+ export declare function resolveEcoLine(opening: EcoOpening): BookPly[];
9
+ /** Sequential book quiz: accept only the next SAN ply. */
10
+ export declare class OpeningTrainer {
11
+ private readonly catalog;
12
+ private index;
13
+ private plies;
14
+ private ply;
15
+ constructor(ecoOrName?: string, catalog?: readonly EcoOpening[]);
16
+ opening(): EcoOpening;
17
+ plyIndex(): number;
18
+ plyCount(): number;
19
+ isComplete(): boolean;
20
+ expected(): BookPly | null;
21
+ isBookMove(from: ChessSquareName, to: ChessSquareName): boolean;
22
+ /** Advance if `from`/`to` is the next book ply. */
23
+ accept(from: ChessSquareName, to: ChessSquareName): boolean;
24
+ restart(): void;
25
+ nextOpening(): EcoOpening;
26
+ private reload;
27
+ }
28
+ //# sourceMappingURL=OpeningTrainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpeningTrainer.d.ts","sourceRoot":"","sources":["../../src/learn/OpeningTrainer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEnF,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,eAAe,CAAC;IACtB,EAAE,EAAE,eAAe,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,EAAE,CAe7D;AAED,0DAA0D;AAC1D,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwB;IAChD,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,GAAG,CAAK;gBAEJ,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,SAAS,UAAU,EAAiB;IAMtE,OAAO,IAAI,UAAU;IAIrB,QAAQ,IAAI,MAAM;IAIlB,QAAQ,IAAI,MAAM;IAIlB,UAAU,IAAI,OAAO;IAIrB,QAAQ,IAAI,OAAO,GAAG,IAAI;IAI1B,UAAU,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,GAAG,OAAO;IAKtE,mDAAmD;IAC5C,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,GAAG,OAAO;IAM3D,OAAO,IAAI,IAAI;IAIf,WAAW,IAAI,UAAU;IAMhC,OAAO,CAAC,MAAM;CAKf"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @file ecoOpenings.ts
3
+ * @project w3dts
4
+ * @author Cyril TARRIET
5
+ * @date 2026-08-27
6
+ * @description Curated ECO teaching lines for CHESS-B3 (not a full opening book).
7
+ */
8
+ export interface EcoOpening {
9
+ eco: string;
10
+ name: string;
11
+ /** SAN plies from the start position, both colours. */
12
+ sans: string[];
13
+ }
14
+ /** Short, well-known lines for the Game-view quiz. */
15
+ export declare const ECO_OPENINGS: readonly EcoOpening[];
16
+ export declare function openingSlug(name: string): string;
17
+ export declare function findEcoOpeningIndex(catalog: readonly EcoOpening[], ecoOrName?: string): number;
18
+ //# sourceMappingURL=ecoOpenings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecoOpenings.d.ts","sourceRoot":"","sources":["../../src/learn/ecoOpenings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,sDAAsD;AACtD,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAS7C,CAAC;AAEF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMhD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAU9F"}