@johnmorrisdotca/kyogijo-stadiums 0.5.0 → 0.6.0

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 (193) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/NOTICE.md +179 -3
  3. package/README.md +43 -11
  4. package/dist/arenas-entry.d.ts +4 -0
  5. package/dist/arenas-entry.js +3 -0
  6. package/dist/arenas.d.ts +125 -0
  7. package/dist/arenas.data.d.ts +2 -0
  8. package/dist/arenas.data.js +3763 -0
  9. package/dist/arenas.js +72 -0
  10. package/dist/atlas-entry.d.ts +3 -1
  11. package/dist/atlas-entry.js +3 -2
  12. package/dist/atlas.d.ts +37 -19
  13. package/dist/atlas.js +92 -7
  14. package/dist/background.js +2 -1
  15. package/dist/budo/describe.d.ts +13 -0
  16. package/dist/budo/describe.js +120 -0
  17. package/dist/budo/dojo.api.d.ts +64 -0
  18. package/dist/budo/dojo.api.js +46 -0
  19. package/dist/budo/dojo.d.ts +72 -0
  20. package/dist/budo/dojo.js +300 -0
  21. package/dist/budo/judo.d.ts +61 -0
  22. package/dist/budo/judo.js +109 -0
  23. package/dist/budo/karate.d.ts +29 -0
  24. package/dist/budo/karate.js +80 -0
  25. package/dist/budo/kendo.d.ts +18 -0
  26. package/dist/budo/kendo.js +44 -0
  27. package/dist/budo/kimarite.d.ts +19 -0
  28. package/dist/budo/kimarite.js +33 -0
  29. package/dist/budo/kit.d.ts +16 -0
  30. package/dist/budo/kit.js +24 -0
  31. package/dist/budo/kyudo.d.ts +28 -0
  32. package/dist/budo/kyudo.js +66 -0
  33. package/dist/budo/looks.d.ts +28 -0
  34. package/dist/budo/looks.js +58 -0
  35. package/dist/budo/parts.d.ts +32 -0
  36. package/dist/budo/parts.js +10 -0
  37. package/dist/budo/plan.d.ts +64 -0
  38. package/dist/budo/plan.js +139 -0
  39. package/dist/budo/room.d.ts +133 -0
  40. package/dist/budo/room.js +111 -0
  41. package/dist/budo/sumo.d.ts +31 -0
  42. package/dist/budo/sumo.js +71 -0
  43. package/dist/budo/tatami.d.ts +55 -0
  44. package/dist/budo/tatami.js +156 -0
  45. package/dist/budo/types.d.ts +192 -0
  46. package/dist/budo/types.js +2 -0
  47. package/dist/budo-entry.d.ts +22 -0
  48. package/dist/budo-entry.js +13 -0
  49. package/dist/budo.board.d.ts +28 -0
  50. package/dist/budo.board.js +81 -0
  51. package/dist/budo.score.d.ts +18 -0
  52. package/dist/budo.score.js +52 -0
  53. package/dist/budo.style.d.ts +6 -0
  54. package/dist/budo.style.js +67 -0
  55. package/dist/charts.baseball.js +1 -1
  56. package/dist/charts.js +4 -4
  57. package/dist/charts.soccer.js +3 -3
  58. package/dist/charts.types.d.ts +10 -0
  59. package/dist/colour.d.ts +4 -4
  60. package/dist/colour.js +4 -4
  61. package/dist/crowd.d.ts +11 -1
  62. package/dist/crowd.draw.js +15 -9
  63. package/dist/crowd.js +17 -2
  64. package/dist/draw.js +156 -31
  65. package/dist/element-entry.d.ts +2 -0
  66. package/dist/element-entry.js +1 -0
  67. package/dist/element.d.ts +2 -2
  68. package/dist/element.js +2 -1
  69. package/dist/emblems-source.d.ts +50 -0
  70. package/dist/emblems-source.js +56 -0
  71. package/dist/eras.d.ts +3 -1
  72. package/dist/eras.js +8 -3
  73. package/dist/features.js +73 -0
  74. package/dist/field.data.d.ts +16 -0
  75. package/dist/field.data.js +50 -0
  76. package/dist/fields.kit.d.ts +2 -2
  77. package/dist/fields.types.d.ts +9 -3
  78. package/dist/formations.js +18 -7
  79. package/dist/formations.sports.d.ts +8 -0
  80. package/dist/formations.sports.js +251 -0
  81. package/dist/frames.providers.js +9 -1
  82. package/dist/halls.d.ts +65 -0
  83. package/dist/halls.js +122 -0
  84. package/dist/heat.js +17 -10
  85. package/dist/heat.zones.d.ts +4 -2
  86. package/dist/heat.zones.js +55 -3
  87. package/dist/homeside.js +7 -0
  88. package/dist/index.d.ts +15 -3
  89. package/dist/index.js +8 -1
  90. package/dist/layers-entry.d.ts +2 -1
  91. package/dist/layers-entry.js +1 -0
  92. package/dist/layers.d.ts +2 -1
  93. package/dist/layers.env.d.ts +10 -1
  94. package/dist/layers.env.js +33 -3
  95. package/dist/layers.js +30 -11
  96. package/dist/layers.types.d.ts +9 -2
  97. package/dist/leagues/budo.d.ts +196 -0
  98. package/dist/leagues/budo.js +105 -0
  99. package/dist/leagues/hockey.js +41 -19
  100. package/dist/leagues/sources.js +21 -0
  101. package/dist/leagues/types.d.ts +1 -1
  102. package/dist/leagues.d.ts +4 -1
  103. package/dist/leagues.js +102 -2
  104. package/dist/lineup.codes.d.ts +23 -0
  105. package/dist/lineup.codes.js +122 -0
  106. package/dist/logo.d.ts +25 -0
  107. package/dist/logo.js +47 -0
  108. package/dist/outline.d.ts +1 -1
  109. package/dist/outline.js +17 -3
  110. package/dist/pageant.js +7 -3
  111. package/dist/pointer-entry.d.ts +2 -0
  112. package/dist/pointer-entry.js +2 -0
  113. package/dist/pointer.d.ts +113 -0
  114. package/dist/pointer.js +151 -0
  115. package/dist/pool.d.ts +7 -7
  116. package/dist/pool.figures.d.ts +57 -55
  117. package/dist/pool.figures.js +59 -55
  118. package/dist/pool.js +7 -7
  119. package/dist/pool.labels.js +2 -1
  120. package/dist/ranges.names.js +6 -0
  121. package/dist/road.draw.js +3 -2
  122. package/dist/road.js +2 -1
  123. package/dist/road.types.d.ts +3 -0
  124. package/dist/rules.d.ts +138 -0
  125. package/dist/rules.js +511 -0
  126. package/dist/rules.types.d.ts +4 -0
  127. package/dist/rules.types.js +64 -0
  128. package/dist/score.d.ts +3 -0
  129. package/dist/score.js +23 -1
  130. package/dist/situation.d.ts +135 -0
  131. package/dist/situation.draw.d.ts +34 -0
  132. package/dist/situation.draw.js +202 -0
  133. package/dist/situation.js +337 -0
  134. package/dist/situation.style.d.ts +2 -0
  135. package/dist/situation.style.js +45 -0
  136. package/dist/situation.types.d.ts +77 -0
  137. package/dist/situation.types.js +3 -0
  138. package/dist/situation.widgets.d.ts +39 -0
  139. package/dist/situation.widgets.js +129 -0
  140. package/dist/strings.d.ts +175 -1
  141. package/dist/strings.js +364 -20
  142. package/dist/style.js +9 -2
  143. package/dist/surfaces/artistic.d.ts +3 -3
  144. package/dist/surfaces/artistic.js +3 -3
  145. package/dist/surfaces/baseball.js +2 -0
  146. package/dist/surfaces/basketball.js +1 -1
  147. package/dist/surfaces/budo.d.ts +6 -0
  148. package/dist/surfaces/budo.js +104 -0
  149. package/dist/surfaces/dive.d.ts +3 -3
  150. package/dist/surfaces/dive.js +3 -3
  151. package/dist/surfaces/football.js +7 -0
  152. package/dist/surfaces/hockey.js +3 -2
  153. package/dist/surfaces/polo.d.ts +4 -4
  154. package/dist/surfaces/polo.js +5 -5
  155. package/dist/surfaces/pool.d.ts +1 -1
  156. package/dist/surfaces/pool.js +3 -3
  157. package/dist/surfaces/surface.d.ts +32 -0
  158. package/dist/surfaces/venue.d.ts +1 -1
  159. package/dist/surfaces/venue.js +1 -1
  160. package/dist/target-entry.d.ts +2 -0
  161. package/dist/target-entry.js +2 -0
  162. package/dist/target.d.ts +200 -0
  163. package/dist/target.js +525 -0
  164. package/dist/team.common.d.ts +1 -1
  165. package/dist/team.common.js +3 -3
  166. package/dist/team.formation.d.ts +3 -1
  167. package/dist/team.formation.js +3 -3
  168. package/dist/team.layers.d.ts +2 -2
  169. package/dist/team.layers.js +4 -1
  170. package/dist/team.lineup.d.ts +27 -0
  171. package/dist/team.lineup.js +207 -0
  172. package/dist/team.network.js +6 -5
  173. package/dist/team.shape.js +5 -5
  174. package/dist/team.types.d.ts +40 -1
  175. package/dist/tenants.data.js +848 -0
  176. package/dist/turn-entry.d.ts +2 -2
  177. package/dist/turn-entry.js +1 -1
  178. package/dist/turn.camera.d.ts +12 -1
  179. package/dist/turn.camera.js +18 -2
  180. package/dist/turn.dom.js +11 -9
  181. package/dist/turn.kit.d.ts +2 -2
  182. package/dist/turn.style.js +4 -3
  183. package/dist/types.d.ts +43 -7
  184. package/dist/units.js +7 -0
  185. package/dist/uprights.budo.d.ts +17 -0
  186. package/dist/uprights.budo.js +87 -0
  187. package/dist/uprights.js +10 -1
  188. package/dist/uprights.pools.js +4 -4
  189. package/dist/version.d.ts +1 -1
  190. package/dist/version.js +1 -1
  191. package/dist/zones-entry.d.ts +2 -0
  192. package/dist/zones-entry.js +2 -0
  193. package/package.json +39 -3
package/dist/strings.d.ts CHANGED
@@ -1,4 +1,67 @@
1
+ import type { RuleId } from "./rules.types.ts";
1
2
  import type { Language, RangeName, Sport } from "./types.ts";
3
+ /** The words of a game's situation (`situation`): the short ones on the pills and tags, and the sentences of the description. */
4
+ export interface SituationWords {
5
+ /** The teams when the drawing names none. */
6
+ home: string;
7
+ away: string;
8
+ /** The labels of the shootout's two rows when the drawing names no team. */
9
+ homeShort: string;
10
+ awayShort: string;
11
+ /** Hockey's short words on the pill: the power play, the empty net, a delayed penalty, the shootout and its sudden-death rounds. */
12
+ pp: string;
13
+ en: string;
14
+ delayed: string;
15
+ shootout: string;
16
+ /** The shootout's word where the rulebook calls it the game winning shots: the IIHF's, the Olympic and the Japanese leagues'. */
17
+ gws: string;
18
+ sudden: string;
19
+ /** Hockey sentences ({team}, {a}, {b}, {clock}, {n}, {away}, {home}, {awayGoals}, {homeGoals}). */
20
+ powerPlay: string;
21
+ strength: string;
22
+ penaltyTime: string;
23
+ emptyNet: string;
24
+ delayedPenalty: string;
25
+ shootoutScore: string;
26
+ gwsScore: string;
27
+ suddenDeath: string;
28
+ /** Baseball: {half} is `top` or `bottom`, {n} the inning, {nth} the inning as an ordinal ({list} the bases, {b} the balls, {s} the strikes). */
29
+ top: string;
30
+ bottom: string;
31
+ inning: string;
32
+ inningOnly: string;
33
+ halfOnly: string;
34
+ noOuts: string;
35
+ oneOut: string;
36
+ outs: string;
37
+ basesEmpty: string;
38
+ basesLoaded: string;
39
+ runnersOn: string;
40
+ bases: readonly [string, string, string];
41
+ and: string;
42
+ count: string;
43
+ /** Football: the down's ordinal (first to fourth), the tag ({ord}, {n}), the sentences ({ord}, {n}, {team}, {where}, {from}, {to}, {result}). */
44
+ downs: readonly [string, string, string, string];
45
+ tag: string;
46
+ tagGoal: string;
47
+ down: string;
48
+ downDistance: string;
49
+ downGoal: string;
50
+ ballOwn: string;
51
+ ballOpp: string;
52
+ ballMid: string;
53
+ /** A yard line in a drive's sentence and on the tag: {n}. */
54
+ placeOwn: string;
55
+ placeOpp: string;
56
+ placeMid: string;
57
+ tagOwn: string;
58
+ tagOpp: string;
59
+ redZone: string;
60
+ possession: string;
61
+ driveLine: string;
62
+ driveNoResult: string;
63
+ results: Readonly<Record<"touchdown" | "field-goal" | "missed-field-goal" | "punt" | "turnover" | "interception" | "fumble" | "downs" | "safety" | "end-of-half", string>>;
64
+ }
2
65
  /** The words of a folded curling sheet: the labels of its enlarged ends and the sentences that say what is drawn. */
3
66
  export interface FoldedWords {
4
67
  top: string;
@@ -343,6 +406,57 @@ export interface KyogijoWords {
343
406
  ground: string;
344
407
  data: AthleticsData;
345
408
  };
409
+ /**
410
+ * The budō surfaces' description (judo, karate, kendo, sumo, kyūdō and a dojo): each a fragment with its figures ({contest}, {safety}, {tatami}, {area}, {side}, {height}...), the sentences
411
+ * that follow it, the names of the four sides, and the words of the scoreboards.
412
+ */
413
+ budo: {
414
+ sides: Record<"north" | "south" | "east" | "west", string>;
415
+ judo: string;
416
+ judoMany: string;
417
+ judoKata: string;
418
+ danger: string;
419
+ platform: string;
420
+ start: string;
421
+ officials: string;
422
+ tatami: string;
423
+ karate: string;
424
+ karateMany: string;
425
+ karateKata: string;
426
+ karateOfficials: string;
427
+ kendo: string;
428
+ sumo: string;
429
+ sumoBare: string;
430
+ tassels: string;
431
+ kyudo: string;
432
+ kyudoEnteki: string;
433
+ dojoTraditional: string;
434
+ dojoCompetition: string;
435
+ dojoChecker: string;
436
+ dojoBorder: string;
437
+ dojoKamiza: string;
438
+ dojoShinzen: string;
439
+ dojoDais: string;
440
+ dojoBanner: string;
441
+ dojoAreas: string;
442
+ dojoWalls: string;
443
+ /** The scoreboards: the heads and the sentences that say what each side scored. */
444
+ board: {
445
+ ippon: string;
446
+ wazaari: string;
447
+ yuko: string;
448
+ shido: string;
449
+ senshu: string;
450
+ chui: string;
451
+ points: string;
452
+ kimarite: string;
453
+ techniques: Record<"men" | "kote" | "do" | "tsuki" | "hansoku", string>;
454
+ judoScore: string;
455
+ karateScore: string;
456
+ kendoScore: string;
457
+ sumoScore: string;
458
+ };
459
+ };
346
460
  /** The title of a score: placeholders {away}, {awayScore}, {home} and {homeScore}. */
347
461
  scoreTitle: string;
348
462
  /** The sentences of a description. */
@@ -357,6 +471,16 @@ export interface KyogijoWords {
357
471
  /** A soccer ground drawn at its published size, or without one: {ground}. */
358
472
  ground: string;
359
473
  groundDefault: string;
474
+ /** The title of an arena's drawing: {arena}. */
475
+ arenaRink: string;
476
+ arenaCourt: string;
477
+ /** What an arena drawn at the size its sources publish is, in place of the league's description: {length} and {width} in feet, {lengthM} and {widthM} in metres. */
478
+ arenaRinkAbout: string;
479
+ arenaCourtAbout: string;
480
+ /** The size is the one published for {arena}. */
481
+ arenaSize: string;
482
+ /** An arena whose rink is said to have been shorter than the NHL's, with no size given: {arena}. */
483
+ arenaUnknown: string;
360
484
  /** A game decided on penalties: {name}, and the shoot-out score {a}-{b}, winner first. */
361
485
  wonPens: string;
362
486
  /** The shoot-out, as it is written beside a status: {a} and {b}, in the order of the sides on the drawing. */
@@ -383,6 +507,8 @@ export interface KyogijoWords {
383
507
  emblem: string;
384
508
  emblemNamed: string;
385
509
  };
510
+ /** A game's situation: hockey's skaters and shootout, baseball's bases, outs and count, football's down and distance and drives. */
511
+ situation: SituationWords;
386
512
  /**
387
513
  * A special game, one surface set inside another: the title ({guest} is the inner surface, {host} where it is), the sentence that names the game ({event}, {date}),
388
514
  * whether the surface lies wholly inside the host ({guest}, {host}) or reaches beyond it ({pct} percent of its area), how its place was decided, and the date.
@@ -635,6 +761,19 @@ export interface KyogijoWords {
635
761
  rinkLeft: string;
636
762
  rinkMiddle: string;
637
763
  rinkRight: string;
764
+ /** The budō surfaces' zones: the contest area and the safety area, the boundary band, the floor, the clay, the sand and the ring of a dohyō, the shajō, the yamichi and the azuchi, the kamiza and the rest. */
765
+ budoContest: string;
766
+ budoSafety: string;
767
+ budoBand: string;
768
+ budoFloor: string;
769
+ budoClay: string;
770
+ budoJano: string;
771
+ budoRing: string;
772
+ budoShajo: string;
773
+ budoYamichi: string;
774
+ budoAzuchi: string;
775
+ budoKamiza: string;
776
+ budoRest: string;
638
777
  sideRight: string;
639
778
  };
640
779
  };
@@ -657,6 +796,14 @@ export interface KyogijoWords {
657
796
  formationNote: string;
658
797
  formationPlayers: string;
659
798
  formationItem: string;
799
+ /** A lineup: the title ({name} and {n} players), the captain ({who}), the volleyball rotation ({n}), the players with no place ({list}), the armband's tooltip and letter, and the head of the captain column. */
800
+ lineupTitle: string;
801
+ lineupCaptain: string;
802
+ lineupRotation: string;
803
+ lineupUnplaced: string;
804
+ captainTip: string;
805
+ captainMark: string;
806
+ tableCaptain: string;
660
807
  /** Space control: the title ({n} players), the share of the surface nearest each team ({list}; each {name} and {pct}) and the players who share a place with another ({n}). */
661
808
  voronoiTitle: string;
662
809
  voronoiNote: string;
@@ -868,7 +1015,34 @@ export interface KyogijoWords {
868
1015
  item: string;
869
1016
  itemSag: string;
870
1017
  /** The names of what stands on the surface, by kind. */
871
- parts: Record<"scoreboard" | "net" | "antennae" | "goalposts" | "netposts" | "hoop" | "goal" | "boards" | "stumps" | "pylons" | "flags" | "fence" | "backstop" | "foul-poles" | "table-legs" | "walls" | "starting-blocks" | "backstroke-flags" | "false-start-rope" | "springboards" | "platforms" | "judges-stand" | "hurdles" | "steeplechase" | "high-jump" | "pole-vault" | "cage" | "padding" | "rink-boards", string>;
1018
+ parts: Record<"scoreboard" | "net" | "antennae" | "goalposts" | "netposts" | "hoop" | "goal" | "boards" | "stumps" | "pylons" | "flags" | "fence" | "backstop" | "foul-poles" | "table-legs" | "walls" | "starting-blocks" | "backstroke-flags" | "false-start-rope" | "springboards" | "platforms" | "judges-stand" | "hurdles" | "steeplechase" | "high-jump" | "pole-vault" | "cage" | "padding" | "rink-boards" | "mound" | "azuchi" | "targets", string>;
1019
+ };
1020
+ /** The names of the zones that `zoneAt` answers with (rules.ts), by id. */
1021
+ rules: Record<RuleId, string>;
1022
+ /** The words of the rules that FIBA's rule book says another way than the NBA's, for a court of `league: "fiba"`: the restricted area is the no-charge semicircle. */
1023
+ rulesFiba: Partial<Record<RuleId, string>>;
1024
+ /** The words of the targets seen end-on (target.ts): the goals, the stumps and the strike zone. */
1025
+ target: {
1026
+ sports: Record<"nhl" | "soccer" | "handball" | "waterpolo" | "lacrosse" | "fieldhockey" | "cricket" | "mlb", string>;
1027
+ /** Titles ({name}) and descriptions ({name} {w} {h} {unit}; {w} {bottom} {top} {side}). */
1028
+ titleGoal: string;
1029
+ descGoal: string;
1030
+ titleStrike: string;
1031
+ descStrike: string;
1032
+ titleStumps: string;
1033
+ descStumps: string;
1034
+ left: string;
1035
+ right: string;
1036
+ units: Record<"m" | "ft" | "in" | "cm" | "yd", string>;
1037
+ /** What became of a shot, a pitch or a delivery. */
1038
+ outcomes: Record<string, string>;
1039
+ /** The zones, by id. */
1040
+ zones: Record<string, string>;
1041
+ /** The length zones of a delivery, by id. */
1042
+ lengths: Record<string, string>;
1043
+ pitches: string;
1044
+ deliveries: string;
1045
+ numbers: string;
872
1046
  };
873
1047
  }
874
1048
  /** The words of the package, by language. */