@chessdrive/board 0.1.0 → 0.1.1

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  Pin the exact version, from jsDelivr:
8
8
 
9
9
  ```html
10
- <script src="https://cdn.jsdelivr.net/npm/@chessdrive/board@0.1.0/dist/board.umd.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/@chessdrive/board@0.1.1/dist/board.umd.js"></script>
11
11
  <chessdrive-board></chessdrive-board>
12
12
  ```
13
13
 
@@ -47,7 +47,7 @@ One object describes the whole Board. `board.state` returns it; `board.set(patch
47
47
  | `lastMove` | The move into the position, in UCI (`e2e4`), tinted. A game supplies its own. | `null` |
48
48
  | `marks` | Arrows `{ arrow: 'e2e4' }`, circles `{ circle: 'f7' }` and square highlights `{ square: 'd5' }`, each with a `color` (`green`, `red`, `blue`, `yellow`, `orange`) and an `author`. | `[]` |
49
49
  | `annotations` | Verdicts on a game's moves: a map from ply to `{ glyph, comment }`, either part optional. `glyph` is `!!` (best), `!` (good), `?!` (inaccuracy), `?` (mistake) or `??` (blunder). See [Verdicts](#verdicts). | none |
50
- | `eval` | `{ cp: 35 }` (centipawns, White's view) or `{ mate: -3 }`. `null` hides the bar. | `null` |
50
+ | `eval` | `{ cp: 35 }` (centipawns, White's view) or `{ mate: -3 }`. `null` hides the bar, and leaves its place once it has shown, so the squares don't move. | `null` |
51
51
  | `mode` | `view` (locked), `play-white`, `play-black` or `play-both`. | `play-both` |
52
52
  | `moves` | `true` shows the move list. | `false` |
53
53
  | `players` | `{ white: { name, rating }, black: { name, rating } }`, or `true` for plain rows, with captures and material. | `null` |
package/dist/board.d.ts CHANGED
@@ -34,7 +34,7 @@ export type State = {
34
34
  marks: Mark[];
35
35
  /** Verdicts by ply, shown while that ply is on view; left out when there are none. */
36
36
  annotations?: Record<number, Annotation>;
37
- /** null hides the eval bar. */
37
+ /** null hides the eval bar; once shown it keeps its place, so the squares don't move. */
38
38
  eval: Eval | null;
39
39
  mode: Mode;
40
40
  /** Shows the move list. */