@johnmorrisdotca/dougu-sports 0.33.0 → 1.1.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 (40) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSES/README.md +2 -11
  3. package/NOTICE.md +7 -5
  4. package/README.md +77 -25
  5. package/dist/element.js +18 -7
  6. package/dist/emblems/ball/ball.baseball.vintage.d.ts +3 -3
  7. package/dist/emblems/ball/ball.baseball.vintage.js +4 -4
  8. package/dist/emblems/ball/ball.basketball3x3.js +1 -1
  9. package/dist/emblems/ball/ball.index.d.ts +1 -1
  10. package/dist/emblems/ball/ball.index.js +1 -1
  11. package/dist/emblems/ball/ball.plastic.js +8 -10
  12. package/dist/emblems/ball/ball.soccer.vintage.js +3 -3
  13. package/dist/emblems/emblem.descriptions.js +24 -0
  14. package/dist/emblems/emblem.equipment.d.ts +1 -1
  15. package/dist/emblems/emblem.equipment.js +4 -4
  16. package/dist/emblems/emblem.ids.d.ts +25 -4
  17. package/dist/emblems/emblem.ids.js +16 -4
  18. package/dist/emblems/emblem.lathe.d.ts +4 -2
  19. package/dist/emblems/emblem.lathe.js +7 -5
  20. package/dist/emblems/emblem.named.js +30 -0
  21. package/dist/emblems/emblem.registry.js +6 -0
  22. package/dist/emblems/gear/gear.combat.d.ts +36 -0
  23. package/dist/emblems/gear/gear.combat.js +83 -0
  24. package/dist/emblems/gear/gear.index.d.ts +1 -1
  25. package/dist/emblems/gear/gear.index.js +3 -2
  26. package/dist/emblems/lathe.extras.js +2 -0
  27. package/dist/emblems/trophy/africa-cup-of-nations.d.ts +9 -0
  28. package/dist/emblems/trophy/africa-cup-of-nations.js +42 -0
  29. package/dist/emblems/trophy/ryder-cup.d.ts +9 -0
  30. package/dist/emblems/trophy/ryder-cup.js +44 -0
  31. package/dist/emblems/trophy/walter-a-brown-trophy.d.ts +9 -0
  32. package/dist/emblems/trophy/walter-a-brown-trophy.js +42 -0
  33. package/dist/emblems-entry.d.ts +1 -1
  34. package/dist/emblems-entry.js +2 -2
  35. package/dist/index.d.ts +4 -0
  36. package/dist/index.js +4 -0
  37. package/dist/revisions.json +1 -0
  38. package/dist/version.d.ts +1 -1
  39. package/dist/version.js +1 -1
  40. package/package.json +4 -2
@@ -1,6 +1,5 @@
1
- // The slotted plastic practice baseball: a hollow white plastic ball the size of a baseball, with eight oblong slots on one half and the other half solid. The figures are from the English Wikipedia
2
- // article on the ball (accessed 2026-10-21): hollow resilient plastic, a wall no more than 1/8 inch (3.2 mm) thick, eight oblong holes of 0.75 inch (19 mm), on one half only, about the size of a regulation
3
- // baseball. The holes are real, as a pickleball's are (ball.holes.ts): the near ones are cut out of the shell and show the inside of the ball, and where a near slot and a far one line up the page shows through.
1
+ // A hollow white plastic practice baseball with eight oblong slots in one half. The drawing uses regulation baseball diameter and an illustrative slot size.
2
+ // The holes are real, as a pickleball's are (ball.holes.ts): the near ones are cut out of the shell and show the inside of the ball, and where a near slot and a far one line up the page shows through.
4
3
  // No maker's name is in this package: it is a generic ball.
5
4
  import { defineBall } from "./ball.engine.js";
6
5
  import { holeLayers, slotRing } from "./ball.holes.js";
@@ -8,10 +7,10 @@ import { greatCircle } from "./ball.math.js";
8
7
  import { region } from "./ball.region.js";
9
8
  /** The axis of the perforated half: its pole, the middle of the solid-free half's ring of slots. */
10
9
  const POLE = [0, 0, 1];
11
- /** Eight slots in a ring round the pole at 36 degrees from it (the ring is about half way out in a picture of the ball seen from its pole), each running along the line to the pole. */
10
+ /** Eight slots in a ring 36 degrees from the pole in the drawing, each running along the line to the pole. */
12
11
  const COLATITUDE = (36 * Math.PI) / 180;
13
12
  const SLOTS = 8;
14
- /** A slot is 19 mm long on a ball 73.8 mm across (a radius of 36.9 mm): 0.515 radians, half of it 0.2575. Its width is not given; a third of its length is how it is drawn. */
13
+ /** Draw each slot 19 mm long and a third as wide on a ball 73.8 mm across. */
15
14
  const HALF_LONG = 19 / 73.8;
16
15
  const HALF_WIDTH = HALF_LONG / 3;
17
16
  const CENTRES = Array.from({ length: SLOTS }, (_, i) => {
@@ -31,7 +30,7 @@ export const BALL_PLASTIC_BASEBALL_SLOTTED = /* @__PURE__ */ defineBall({
31
30
  id: "ball:plastic-baseball-slotted",
32
31
  en: "Plastic baseball, slotted",
33
32
  ja: "野球の穴あき練習球",
34
- size: { extentMm: 73.8, diameterMm: 73.8, rule: "English Wikipedia, the article on the perforated plastic practice ball (accessed 2026-10-21): hollow plastic, wall at most 3.2 mm, eight oblong holes of 19 mm on one half only; size taken from Official Baseball Rules, Rule 3.01 The Ball", note: "The article says only that the ball is about the size of a regulation baseball, so the diameter is a baseball's (the middle of the circumference range). No mass is stated by a source read; none is given. The slots' width is not given and is drawn at a third of their length." },
33
+ size: { extentMm: 73.8, diameterMm: 73.8, rule: "Official Baseball Rules, Rule 3.01 The Ball (reference diameter)", note: "Diameter worked out from the middle of the regulation baseball circumference range. The eight oblong slots in one half, their dimensions and the shell thickness are drawing choices." },
35
34
  spec: {
36
35
  view: { yaw: -22, pitch: 22, roll: 0 },
37
36
  base: "#f4f4f0",
@@ -41,9 +40,8 @@ export const BALL_PLASTIC_BASEBALL_SLOTTED = /* @__PURE__ */ defineBall({
41
40
  },
42
41
  });
43
42
  /**
44
- * The common hollow plastic practice baseball with slots all over it (the other, the one-sided ball above, is the first): one ring of five large oval slots on each half, running toward the pole, the two rings
45
- * turned half a step apart so that no slot faces another across the seam, and often two-tone, the halves split along the seam. A slot is about 22 mm long and 14 mm wide on a ball of the size of a baseball, an oval
46
- * and not a slit (larger than the 19 mm of the one-sided ball, as the photographs show); the other figures are the same facts as above, and the number and the layout of the slots are drawn from photographs looked at and never copied. No maker's name is in this package.
43
+ * The drawing has one ring of six large oval slots per hemisphere, running toward the pole. The rings are staggered by half a slot spacing, and the two-tone variant splits colour along the equator.
44
+ * Each slot is drawn about 22 mm long by 14 mm wide on the reference baseball diameter.
47
45
  */
48
46
  const PRACTICE_HALF_LONG = 0.3;
49
47
  const PRACTICE_HALF_WIDTH = 0.19;
@@ -64,7 +62,7 @@ function practice(id, en, ja, colours) {
64
62
  id,
65
63
  en,
66
64
  ja,
67
- size: { extentMm: 73.8, diameterMm: 73.8, rule: "English Wikipedia, the article on the perforated plastic practice ball (accessed 2026-10-21): hollow plastic, wall at most 3.2 mm; size taken from Official Baseball Rules, Rule 3.01 (the middle of the circumference range). The count and layout of the slots are drawn from photographs looked at, not copied.", note: "The size of a slot on this ball is not given by the article (19 mm is the one-sided ball's): it is drawn about 22 by 14 mm, an oval, to match the photographs. The mass is not stated. " },
65
+ size: { extentMm: 73.8, diameterMm: 73.8, rule: "Official Baseball Rules, Rule 3.01 The Ball (reference diameter)", note: "Diameter worked out from the middle of the regulation baseball circumference range. The slot count, layout and dimensions describe the drawing." },
68
66
  spec: {
69
67
  view: { yaw: -22, pitch: 26, roll: 0 },
70
68
  base: colours.second ?? colours.first,
@@ -9,13 +9,13 @@ import { smallCircle } from "./ball.math.js";
9
9
  import { truncatedIcosahedron } from "./ball.polyhedra.js";
10
10
  import { dodecahedron, gorePoint, gores } from "./ball.tilings.js";
11
11
  import { SOCCER_SIZE } from "./ball.soccer.size.js";
12
- /** The ball the Laws describe from 1872: a sphere 27 to 28 inches (68.6 to 71.1 cm) round. The Laws' mass for the early years is left out, because the secondary sources read disagree on the figure and the year. */
12
+ /** The four older drawings use the 27 to 28 inch circumference recorded in the 1903/04 Laws. */
13
13
  const OLD_SIZE = {
14
14
  extentMm: 698.5 / Math.PI,
15
15
  diameterMm: 698.5 / Math.PI,
16
16
  circumferenceMm: 698.5,
17
- rule: "Laws of the Game of the Football Association, revised 1872: the ball is a sphere 27 to 28 inches round",
18
- note: "Before 1872 there was no rule. Diameter worked out from the middle of the circumference range. No mass is given, because the early figures could not be confirmed in a primary text.",
17
+ rule: "IFAB Laws of the Game 1903/04, Law 1: circumference 27 to 28 inches",
18
+ note: "The four drawings share this historical size as a reference. Diameter worked out from the middle of the circumference range.",
19
19
  };
20
20
  const LEATHER = { gloss: 0.22, shade: "#2b1608", grain: { f: 2.1, a: 0.34 } };
21
21
  const THREAD = "#e9d8b0";
@@ -28,11 +28,31 @@ function soccerColourways() {
28
28
  * ```
29
29
  */
30
30
  export const EMBLEM_DESCRIPTIONS = {
31
+ "award:medal": { en: "A gold star hanging from a notched red ribbon", ja: "先端に切り込みのある赤いリボンから下がる金色の星" },
32
+ "award:badge": { en: "A round seal with a star and two ribbon tails", ja: "中央に星があり、リボンの端が2本下がる丸いバッジ" },
33
+ "award:crown": { en: "A three-point crown with round tips and a jewelled band", ja: "丸い飾りの付いた3つの先端と、宝石付きの帯を持つ王冠" },
34
+ "award:star": { en: "A five-pointed gold star with bevelled edges", ja: "縁を面取りした金色の五芒星" },
35
+ "award:shield": { en: "A plain silver shield with a bevelled inset", ja: "縁を面取りした無地の銀色の盾" },
36
+ "award:ribbon": { en: "A gold band with two notched red ribbon tails", ja: "金色の帯の後ろから、先端に切り込みのある赤いリボンが2本下がる飾り" },
37
+ "medal:gold": { en: "A gold disc with a raised star, hanging from a five-colour ribbon", ja: "5色のリボンから下がる金色の円盤。表に浮き出た星がある" },
38
+ "medal:silver": { en: "A silver disc with a raised star, hanging from a five-colour ribbon", ja: "5色のリボンから下がる銀色の円盤。表に浮き出た星がある" },
39
+ "medal:bronze": { en: "A bronze disc with a raised star, hanging from a five-colour ribbon", ja: "5色のリボンから下がる銅色の円盤。表に浮き出た星がある" },
40
+ "medal:place-1": { en: "A bevelled gold badge with the numeral 1", ja: "縁を面取りし、数字の1を入れた金色の順位章" },
41
+ "medal:place-2": { en: "A bevelled silver badge with the numeral 2", ja: "縁を面取りし、数字の2を入れた銀色の順位章" },
42
+ "medal:place-3": { en: "A bevelled bronze badge with the numeral 3", ja: "縁を面取りし、数字の3を入れた銅色の順位章" },
43
+ "crest:shield": { en: "A shield with a band across the top, with a star or initials", ja: "上端に帯のある盾形の紋章。中央に星またはイニシャルが入る" },
44
+ "crest:roundel": { en: "A round crest with an inset ring and a star or initials", ja: "縁の内側に輪がある円形の紋章。中央に星またはイニシャルが入る" },
45
+ "crest:diamond": { en: "A double-bordered diamond with a star or initials", ja: "二重の縁取りがあるひし形の紋章。中央に星またはイニシャルが入る" },
46
+ "crest:pennant": { en: "A triangular flag on a pole, with a star or initials", ja: "棒に付けた三角旗の紋章。中央に星またはイニシャルが入る" },
47
+ "pennant:championship": { en: "A felt pennant with a stitched edge and a wooden dowel, with space for words and a year", ja: "縁を縫い合わせ、木の棒に付けたフェルトのペナント。文字と年を入れられる" },
31
48
  "trophy:hockey-cup": { en: "Tall banded silver cup", ja: "帯を何段も重ねた背の高い銀のカップ" },
32
49
  "trophy:basketball": { en: "Basketball trophy", ja: "バスケットボールのトロフィー" },
33
50
  "trophy:football": { en: "Football trophy", ja: "アメリカンフットボールのトロフィー" },
34
51
  "trophy:soccer-ball": { en: "Soccer ball trophy", ja: "サッカーボールのトロフィー" },
35
52
  "trophy:tennis-cup": { en: "Two-handled cup with a pineapple", ja: "取っ手が二つあり、ふたにパイナップルの飾りが付いたカップ" },
53
+ "trophy:ryder-cup": { en: "A gold lidded cup with scroll handles, a golfer finial and a tall stepped base", ja: "曲線を描く取っ手の付いた金色の杯。ふたにはゴルファーの像があり、背の高い台座は段を重ねている" },
54
+ "trophy:africa-cup-of-nations": { en: "A golden globe and a ring of small balls on a fluted stem above a blue stone base", ja: "金色の地球儀を小さな球が囲み、縦溝のある支柱と青い石の台座が支える" },
55
+ "trophy:walter-a-brown-trophy": { en: "A broad silver bowl on a wooden pedestal with four rows of champion plates", ja: "幅広い銀色の鉢と、優勝チームの銘板が4段並ぶ木製の台座" },
36
56
  "sport:ifaf": { en: "American football, international rules", ja: "国際ルールのアメリカンフットボール" },
37
57
  "sport:pickleball": { en: "Pickleball paddle and ball", ja: "ピックルボールのパドルとボール" },
38
58
  "sport:tabletennis": { en: "Table tennis paddle and ball", ja: "卓球のラケットとボール" },
@@ -82,6 +102,10 @@ export const EMBLEM_DESCRIPTIONS = {
82
102
  "gear:football-helmet": { en: "Football helmet", ja: "アメリカンフットボールのヘルメット" },
83
103
  "gear:baseball-cap": { en: "A baseball cap in three-quarter view: a dome crown with a button, a seam and three eyelets, and a curved brim with its edge and rows of stitching.", ja: "野球帽を斜め前から描いています。頭頂のボタン、縫い目、3つのはと目のあるドーム形のクラウンと、縁と何列もの縫い目のある湾曲したつばが見えます。" },
84
104
  "gear:hurley": { en: "Hurley", ja: "ハーリー(ハーリングのスティック)" },
105
+ "gear:boxing-glove": { en: "A padded red glove with an attached thumb and a dark wrist cuff", ja: "親指部分を本体に留め、手首に濃い色のカフを付けた赤いグローブ" },
106
+ "gear:mma-glove": { en: "A blue open-finger glove with a padded knuckle panel and wrist strap", ja: "指先の出る青いグローブ。拳を覆うパッドと手首のベルトが付く" },
107
+ "gear:wrestling-mat": { en: "A square mat in perspective, with an orange band around the competition area", ja: "斜めから見た正方形のマット。競技面をオレンジ色の帯が囲む" },
108
+ "gear:wrestling-ring": { en: "A square raised ring with three ropes and padded corner posts", ja: "高くなった正方形のリング。3本のロープとパッド付きのコーナーポストがある" },
85
109
  "trophy:sumo-cup": { en: "A tall silver cup on a tall stepped stand, with an ornate phoenix-crested handle on each side", ja: "段のある高い台に載った、背の高い銀の杯。両側の取っ手に鳳凰の飾りが付く" },
86
110
  "trophy:paterson-cup": { en: "The Paterson Cup: a wide silver bowl with a straight engraved band at the rim, two scrolled ear handles, a short stem and a dark wooden base. Given to the champion of the Pacific Coast Hockey Association from 1912", ja: "パターソン・カップ。縁にまっすぐな彫刻の帯がある幅広の銀のボウルで、渦巻き形の耳状の取っ手が2つ付き、短い脚と濃い色の木の台座があります。1912年から、パシフィック・コースト・ホッケー協会の優勝チームに贈られました。" },
87
111
  "trophy:stanley-cup": { en: "The Stanley Cup: a wide fluted bowl with a smooth band at the rim, a beaded neck, three narrow rings that step out and a barrel of five bands on a black base.", ja: "縁に滑らかな帯がある縦溝入りの広いボウル、玉飾りのある首、段状に広がる細い三つの輪、黒い台座にのった五段の帯の胴を描いています。ナショナル・ホッケー・リーグのプレーオフの優勝チームに贈られます(初授与は1893年)。" },
@@ -13,7 +13,7 @@ export interface SportEquipment {
13
13
  sport: SportName;
14
14
  /** The ball, or the implement that stands for one (the puck, the shuttlecock, the shot). Swimming, diving, artistic swimming, skating, the Japanese sports (sumo, kendo, judo, kyudo, karate) and the combat sports (MMA, boxing, wrestling, professional wrestling) have none. */
15
15
  ball?: BallId;
16
- /** The gear the sport has an emblem for, most telling first. Empty where the package has none yet (the combat sports). */
16
+ /** The gear the sport has an emblem for, most telling first. The array is new on each call. */
17
17
  gear: GearId[];
18
18
  /** The trophy that stands for the sport's cup: its own where the package draws one, otherwise a plain cup, bowl or globe. */
19
19
  trophy: TrophyId;
@@ -38,10 +38,10 @@ const TABLE = {
38
38
  judo: [undefined, ["gear:judogi", "gear:obi"], "trophy:cup", GOLD],
39
39
  kyudo: [undefined, ["gear:yumi", "gear:ya"], "trophy:cup"],
40
40
  karate: [undefined, ["gear:karate-gi"], "trophy:cup", GOLD],
41
- mma: [undefined, [], "trophy:belt"],
42
- boxing: [undefined, [], "trophy:belt", GOLD],
43
- wrestling: [undefined, [], "trophy:cup", GOLD],
44
- prowrestling: [undefined, [], "trophy:belt"],
41
+ mma: [undefined, ["gear:mma-glove"], "trophy:belt"],
42
+ boxing: [undefined, ["gear:boxing-glove"], "trophy:belt", GOLD],
43
+ wrestling: [undefined, ["gear:wrestling-mat"], "trophy:cup", GOLD],
44
+ prowrestling: [undefined, ["gear:wrestling-ring"], "trophy:belt"],
45
45
  };
46
46
  /**
47
47
  * What a sport is played and won with, as ids of the registry: `sportEquipment("nhl")` is the puck, a stick, a skate, a goalie's mask and a net, and the hockey cup. The arrays are new each call. An unknown sport is an error.
@@ -44,7 +44,7 @@ export type AwardId = (typeof AWARD_IDS)[number];
44
44
  * console.log(TROPHY_IDS.length, TROPHY_IDS[0]);
45
45
  * ```
46
46
  */
47
- export declare const TROPHY_IDS: readonly ["trophy:cup", "trophy:lidded-cup", "trophy:bowl", "trophy:salver", "trophy:globe", "trophy:hockey-cup", "trophy:basketball", "trophy:baseball", "trophy:football", "trophy:canadian-bowl", "trophy:soccer-ball", "trophy:soccer-globe", "trophy:tennis-plate", "trophy:tennis-cup", "trophy:cricket-urn", "trophy:rugby-cup", "trophy:plaque", "trophy:belt", "trophy:laurel", "trophy:rosette", "trophy:ring", "trophy:banner", "trophy:sumo-cup", "trophy:championship-banner", "trophy:paterson-cup", "trophy:stanley-cup", "trophy:hart-trophy", "trophy:vezina-trophy", "trophy:norris-trophy", "trophy:calder-trophy", "trophy:presidents-trophy", "trophy:art-ross-trophy", "trophy:lady-byng-trophy", "trophy:jennings-trophy", "trophy:selke-trophy", "trophy:king-clancy-trophy", "trophy:masterton-trophy", "trophy:jack-adams-trophy", "trophy:prince-of-wales-trophy", "trophy:campbell-bowl", "trophy:rocket-richard-trophy", "trophy:conn-smythe-trophy", "trophy:ted-lindsay-award", "trophy:lester-patrick-trophy", "trophy:lombardi-trophy", "trophy:larry-obrien-trophy", "trophy:commissioners-trophy", "trophy:grey-cup", "trophy:cy-young-award", "trophy:mlb-mvp-award", "trophy:relief-man-award", "trophy:hank-aaron-award", "trophy:bill-russell-trophy", "trophy:nba-western-conference-2001", "trophy:nba-eastern-conference-2001", "trophy:oscar-robertson-trophy", "trophy:bob-cousy-trophy", "trophy:magic-johnson-trophy", "trophy:larry-bird-trophy", "trophy:larry-obrien-trophy-1977", "trophy:walter-cup", "trophy:wnba-championship-trophy", "trophy:lamar-hunt-trophy", "trophy:george-halas-trophy", "trophy:silver-slugger-award", "trophy:world-series-mvp-trophy", "trophy:avco-world-trophy", "trophy:obrien-cup", "trophy:gold-glove-award", "trophy:fifa-world-cup", "trophy:woodlawn-vase", "trophy:dfb-pokal", "trophy:champions-league-trophy", "trophy:webb-ellis-cup", "trophy:fa-cup", "trophy:cricket-world-cup", "trophy:wimbledon-gentlemens-trophy", "trophy:venus-rosewater-dish", "trophy:ballon-dor", "trophy:ashes-urn", "trophy:borg-warner-trophy", "trophy:americas-cup", "trophy:jackie-robinson-award", "trophy:calder-cup", "trophy:kelly-cup", "trophy:cfp-trophy", "trophy:mls-cup", "trophy:foundation-player-award", "trophy:willie-oree-award", "trophy:messier-leadership-award"];
47
+ export declare const TROPHY_IDS: readonly ["trophy:cup", "trophy:lidded-cup", "trophy:bowl", "trophy:salver", "trophy:globe", "trophy:hockey-cup", "trophy:basketball", "trophy:baseball", "trophy:football", "trophy:canadian-bowl", "trophy:soccer-ball", "trophy:soccer-globe", "trophy:tennis-plate", "trophy:tennis-cup", "trophy:cricket-urn", "trophy:rugby-cup", "trophy:plaque", "trophy:belt", "trophy:laurel", "trophy:rosette", "trophy:ring", "trophy:banner", "trophy:sumo-cup", "trophy:championship-banner", "trophy:paterson-cup", "trophy:stanley-cup", "trophy:hart-trophy", "trophy:vezina-trophy", "trophy:norris-trophy", "trophy:calder-trophy", "trophy:presidents-trophy", "trophy:art-ross-trophy", "trophy:lady-byng-trophy", "trophy:jennings-trophy", "trophy:selke-trophy", "trophy:king-clancy-trophy", "trophy:masterton-trophy", "trophy:jack-adams-trophy", "trophy:prince-of-wales-trophy", "trophy:campbell-bowl", "trophy:rocket-richard-trophy", "trophy:conn-smythe-trophy", "trophy:ted-lindsay-award", "trophy:lester-patrick-trophy", "trophy:lombardi-trophy", "trophy:larry-obrien-trophy", "trophy:commissioners-trophy", "trophy:grey-cup", "trophy:cy-young-award", "trophy:mlb-mvp-award", "trophy:relief-man-award", "trophy:hank-aaron-award", "trophy:bill-russell-trophy", "trophy:nba-western-conference-2001", "trophy:nba-eastern-conference-2001", "trophy:oscar-robertson-trophy", "trophy:bob-cousy-trophy", "trophy:magic-johnson-trophy", "trophy:larry-bird-trophy", "trophy:larry-obrien-trophy-1977", "trophy:walter-cup", "trophy:wnba-championship-trophy", "trophy:lamar-hunt-trophy", "trophy:george-halas-trophy", "trophy:silver-slugger-award", "trophy:world-series-mvp-trophy", "trophy:avco-world-trophy", "trophy:obrien-cup", "trophy:gold-glove-award", "trophy:fifa-world-cup", "trophy:woodlawn-vase", "trophy:dfb-pokal", "trophy:champions-league-trophy", "trophy:webb-ellis-cup", "trophy:fa-cup", "trophy:cricket-world-cup", "trophy:wimbledon-gentlemens-trophy", "trophy:venus-rosewater-dish", "trophy:ballon-dor", "trophy:ashes-urn", "trophy:borg-warner-trophy", "trophy:americas-cup", "trophy:jackie-robinson-award", "trophy:calder-cup", "trophy:kelly-cup", "trophy:cfp-trophy", "trophy:mls-cup", "trophy:foundation-player-award", "trophy:willie-oree-award", "trophy:messier-leadership-award", "trophy:ryder-cup", "trophy:africa-cup-of-nations", "trophy:walter-a-brown-trophy"];
48
48
  /**
49
49
  * The id of a trophy.
50
50
  * @example
@@ -177,7 +177,7 @@ export type PuckId = (typeof PUCK_IDS)[number];
177
177
  * console.log(GEAR_IDS.length, GEAR_IDS[0]);
178
178
  * ```
179
179
  */
180
- export declare const GEAR_IDS: readonly ["gear:hockey-stick", "gear:goalie-stick", "gear:hockey-skate", "gear:goalie-mask", "gear:goal-net", "gear:field-hockey-stick", "gear:lacrosse-stick", "gear:cricket-bat", "gear:wicket", "gear:table-tennis-paddle", "gear:badminton-racket", "gear:tennis-racket", "gear:squash-racket", "gear:racquetball-racket", "gear:padel-racket", "gear:pickleball-paddle", "gear:roundnet-set", "gear:takraw-net", "gear:netball-post", "gear:teqball-table", "gear:volleyball-net", "gear:basketball-hoop", "gear:baseball-bat", "gear:baseball-glove", "gear:baseball-cap", "gear:football-helmet", "gear:goalposts", "gear:hurley", "gear:curling-broom", "gear:figure-skate", "gear:speed-skate", "gear:diving-board", "gear:swim-goggles", "gear:starting-blocks", "gear:relay-baton", "gear:javelin", "gear:hurdles", "gear:gunbai", "gear:mawashi", "gear:shinai", "gear:kendo-men", "gear:judogi", "gear:judogi-blue", "gear:judogi-folded", "gear:judogi-blue-folded", "gear:judogi-back", "gear:judogi-blue-back", "gear:obi", "gear:obi-white", "gear:obi-yellow", "gear:obi-orange", "gear:obi-green", "gear:obi-blue", "gear:obi-brown", "gear:obi-kohaku", "gear:obi-red", "gear:obi-women", "gear:obi-white-yellow", "gear:obi-yellow-orange", "gear:obi-orange-green", "gear:obi-green-blue", "gear:obi-blue-brown", "gear:obi-step-1", "gear:obi-step-2", "gear:obi-step-3", "gear:obi-step-4", "gear:obi-step-5", "gear:obi-step-6", "gear:yumi", "gear:ya", "gear:karate-gi"];
180
+ export declare const GEAR_IDS: readonly ["gear:hockey-stick", "gear:goalie-stick", "gear:hockey-skate", "gear:goalie-mask", "gear:goal-net", "gear:field-hockey-stick", "gear:lacrosse-stick", "gear:cricket-bat", "gear:wicket", "gear:table-tennis-paddle", "gear:badminton-racket", "gear:tennis-racket", "gear:squash-racket", "gear:racquetball-racket", "gear:padel-racket", "gear:pickleball-paddle", "gear:roundnet-set", "gear:takraw-net", "gear:netball-post", "gear:teqball-table", "gear:volleyball-net", "gear:basketball-hoop", "gear:baseball-bat", "gear:baseball-glove", "gear:baseball-cap", "gear:football-helmet", "gear:goalposts", "gear:hurley", "gear:curling-broom", "gear:figure-skate", "gear:speed-skate", "gear:diving-board", "gear:swim-goggles", "gear:starting-blocks", "gear:relay-baton", "gear:javelin", "gear:hurdles", "gear:gunbai", "gear:mawashi", "gear:shinai", "gear:kendo-men", "gear:judogi", "gear:judogi-blue", "gear:judogi-folded", "gear:judogi-blue-folded", "gear:judogi-back", "gear:judogi-blue-back", "gear:obi", "gear:obi-white", "gear:obi-yellow", "gear:obi-orange", "gear:obi-green", "gear:obi-blue", "gear:obi-brown", "gear:obi-kohaku", "gear:obi-red", "gear:obi-women", "gear:obi-white-yellow", "gear:obi-yellow-orange", "gear:obi-orange-green", "gear:obi-green-blue", "gear:obi-blue-brown", "gear:obi-step-1", "gear:obi-step-2", "gear:obi-step-3", "gear:obi-step-4", "gear:obi-step-5", "gear:obi-step-6", "gear:yumi", "gear:ya", "gear:karate-gi", "gear:boxing-glove", "gear:mma-glove", "gear:wrestling-mat", "gear:wrestling-ring"];
181
181
  /**
182
182
  * The id of a piece of gear.
183
183
  * @example
@@ -265,12 +265,12 @@ export type EmblemId = AwardId | TrophyId | MedalId | CrestId | BallId | PuckId
265
265
  */
266
266
  export declare const EMBLEM_GROUPS: {
267
267
  readonly award: readonly ["award:medal", "award:badge", "award:crown", "award:star", "award:shield", "award:ribbon"];
268
- readonly trophy: readonly ["trophy:cup", "trophy:lidded-cup", "trophy:bowl", "trophy:salver", "trophy:globe", "trophy:hockey-cup", "trophy:basketball", "trophy:baseball", "trophy:football", "trophy:canadian-bowl", "trophy:soccer-ball", "trophy:soccer-globe", "trophy:tennis-plate", "trophy:tennis-cup", "trophy:cricket-urn", "trophy:rugby-cup", "trophy:plaque", "trophy:belt", "trophy:laurel", "trophy:rosette", "trophy:ring", "trophy:banner", "trophy:sumo-cup", "trophy:championship-banner", "trophy:paterson-cup", "trophy:stanley-cup", "trophy:hart-trophy", "trophy:vezina-trophy", "trophy:norris-trophy", "trophy:calder-trophy", "trophy:presidents-trophy", "trophy:art-ross-trophy", "trophy:lady-byng-trophy", "trophy:jennings-trophy", "trophy:selke-trophy", "trophy:king-clancy-trophy", "trophy:masterton-trophy", "trophy:jack-adams-trophy", "trophy:prince-of-wales-trophy", "trophy:campbell-bowl", "trophy:rocket-richard-trophy", "trophy:conn-smythe-trophy", "trophy:ted-lindsay-award", "trophy:lester-patrick-trophy", "trophy:lombardi-trophy", "trophy:larry-obrien-trophy", "trophy:commissioners-trophy", "trophy:grey-cup", "trophy:cy-young-award", "trophy:mlb-mvp-award", "trophy:relief-man-award", "trophy:hank-aaron-award", "trophy:bill-russell-trophy", "trophy:nba-western-conference-2001", "trophy:nba-eastern-conference-2001", "trophy:oscar-robertson-trophy", "trophy:bob-cousy-trophy", "trophy:magic-johnson-trophy", "trophy:larry-bird-trophy", "trophy:larry-obrien-trophy-1977", "trophy:walter-cup", "trophy:wnba-championship-trophy", "trophy:lamar-hunt-trophy", "trophy:george-halas-trophy", "trophy:silver-slugger-award", "trophy:world-series-mvp-trophy", "trophy:avco-world-trophy", "trophy:obrien-cup", "trophy:gold-glove-award", "trophy:fifa-world-cup", "trophy:woodlawn-vase", "trophy:dfb-pokal", "trophy:champions-league-trophy", "trophy:webb-ellis-cup", "trophy:fa-cup", "trophy:cricket-world-cup", "trophy:wimbledon-gentlemens-trophy", "trophy:venus-rosewater-dish", "trophy:ballon-dor", "trophy:ashes-urn", "trophy:borg-warner-trophy", "trophy:americas-cup", "trophy:jackie-robinson-award", "trophy:calder-cup", "trophy:kelly-cup", "trophy:cfp-trophy", "trophy:mls-cup", "trophy:foundation-player-award", "trophy:willie-oree-award", "trophy:messier-leadership-award"];
268
+ readonly trophy: readonly ["trophy:cup", "trophy:lidded-cup", "trophy:bowl", "trophy:salver", "trophy:globe", "trophy:hockey-cup", "trophy:basketball", "trophy:baseball", "trophy:football", "trophy:canadian-bowl", "trophy:soccer-ball", "trophy:soccer-globe", "trophy:tennis-plate", "trophy:tennis-cup", "trophy:cricket-urn", "trophy:rugby-cup", "trophy:plaque", "trophy:belt", "trophy:laurel", "trophy:rosette", "trophy:ring", "trophy:banner", "trophy:sumo-cup", "trophy:championship-banner", "trophy:paterson-cup", "trophy:stanley-cup", "trophy:hart-trophy", "trophy:vezina-trophy", "trophy:norris-trophy", "trophy:calder-trophy", "trophy:presidents-trophy", "trophy:art-ross-trophy", "trophy:lady-byng-trophy", "trophy:jennings-trophy", "trophy:selke-trophy", "trophy:king-clancy-trophy", "trophy:masterton-trophy", "trophy:jack-adams-trophy", "trophy:prince-of-wales-trophy", "trophy:campbell-bowl", "trophy:rocket-richard-trophy", "trophy:conn-smythe-trophy", "trophy:ted-lindsay-award", "trophy:lester-patrick-trophy", "trophy:lombardi-trophy", "trophy:larry-obrien-trophy", "trophy:commissioners-trophy", "trophy:grey-cup", "trophy:cy-young-award", "trophy:mlb-mvp-award", "trophy:relief-man-award", "trophy:hank-aaron-award", "trophy:bill-russell-trophy", "trophy:nba-western-conference-2001", "trophy:nba-eastern-conference-2001", "trophy:oscar-robertson-trophy", "trophy:bob-cousy-trophy", "trophy:magic-johnson-trophy", "trophy:larry-bird-trophy", "trophy:larry-obrien-trophy-1977", "trophy:walter-cup", "trophy:wnba-championship-trophy", "trophy:lamar-hunt-trophy", "trophy:george-halas-trophy", "trophy:silver-slugger-award", "trophy:world-series-mvp-trophy", "trophy:avco-world-trophy", "trophy:obrien-cup", "trophy:gold-glove-award", "trophy:fifa-world-cup", "trophy:woodlawn-vase", "trophy:dfb-pokal", "trophy:champions-league-trophy", "trophy:webb-ellis-cup", "trophy:fa-cup", "trophy:cricket-world-cup", "trophy:wimbledon-gentlemens-trophy", "trophy:venus-rosewater-dish", "trophy:ballon-dor", "trophy:ashes-urn", "trophy:borg-warner-trophy", "trophy:americas-cup", "trophy:jackie-robinson-award", "trophy:calder-cup", "trophy:kelly-cup", "trophy:cfp-trophy", "trophy:mls-cup", "trophy:foundation-player-award", "trophy:willie-oree-award", "trophy:messier-leadership-award", "trophy:ryder-cup", "trophy:africa-cup-of-nations", "trophy:walter-a-brown-trophy"];
269
269
  readonly medal: readonly ["medal:gold", "medal:silver", "medal:bronze", "medal:place-1", "medal:place-2", "medal:place-3"];
270
270
  readonly crest: readonly ["crest:shield", "crest:roundel", "crest:diamond", "crest:pennant"];
271
271
  readonly ball: readonly ["ball:soccer", "ball:soccer-colour", "ball:soccer-26", "ball:soccer-18", "ball:soccer-14", "ball:soccer-12", "ball:soccer-6", "ball:soccer-orange", "ball:soccer-26-orange", "ball:soccer-18-orange", "ball:soccer-14-orange", "ball:soccer-12-orange", "ball:soccer-6-orange", "ball:soccer-yellow", "ball:soccer-26-yellow", "ball:soccer-18-yellow", "ball:soccer-14-yellow", "ball:soccer-12-yellow", "ball:soccer-6-yellow", "ball:futsal", "ball:beach-soccer", "ball:soccer-1870-hand-stitched", "ball:soccer-1900-laced", "ball:soccer-1930-18-panel", "ball:soccer-1950-12-panel", "ball:soccer-1960-32-panel-leather", "ball:soccer-retro-pentagons", "ball:soccer-retro-leaves", "ball:soccer-retro-rosette", "ball:soccer-retro-star", "ball:soccer-retro-pinwheel", "ball:soccer-retro-kites", "ball:soccer-14-panel-double-border", "ball:soccer-8-panel-plain", "ball:soccer-6-panel-bands", "ball:soccer-6-panel-diamonds", "ball:soccer-20-panel-dots", "ball:soccer-training-high-vis", "ball:soccer-stars-blue", "ball:soccer-stars-red", "ball:soccer-stars-night", "ball:soccer-hexagons-cyan", "ball:soccer-hexagons-magenta", "ball:soccer-hexagons-lime", "ball:soccer-flames-fire", "ball:soccer-flames-ice", "ball:soccer-flames-toxic", "ball:soccer-chevrons-red", "ball:soccer-chevrons-green", "ball:soccer-chevrons-blue", "ball:soccer-swirl-blue", "ball:soccer-swirl-red", "ball:soccer-swirl-teal", "ball:soccer-metallic-gold", "ball:soccer-metallic-silver", "ball:soccer-metallic-cobalt", "ball:teqball", "ball:basketball", "ball:basketball-6", "ball:basketball-3x3", "ball:baseball", "ball:softball", "ball:baseball-lemon-peel", "ball:baseball-red-blue", "ball:baseball-black-red", "ball:baseball-vintage-leather", "ball:softball-11-optic", "ball:tennis", "ball:padel", "ball:sliotar", "ball:volleyball", "ball:volleyball-8", "ball:beach-volleyball", "ball:volleyball-colours", "ball:volleyball-brazil", "ball:volleyball-japan", "ball:volleyball-canada", "ball:volleyball-usa", "ball:volleyball-italy", "ball:volleyball-poland", "ball:volleyball-france", "ball:volleyball-serbia", "ball:volleyball-netherlands", "ball:volleyball-germany", "ball:cricket-red", "ball:cricket-white", "ball:cricket-pink", "ball:football", "ball:football-cfl", "ball:football-ifaf", "ball:rugby", "ball:afl", "ball:gaelic-football", "ball:netball", "ball:pickleball-outdoor", "ball:pickleball-indoor", "ball:plastic-baseball-slotted", "ball:plastic-baseball-practice", "ball:plastic-baseball-practice-white", "ball:plastic-baseball-practice-orange", "ball:squash", "ball:squash-yellow", "ball:squash-green", "ball:squash-red", "ball:squash-blue", "ball:racquetball", "ball:lacrosse", "ball:field-hockey", "ball:table-tennis", "ball:handball", "ball:water-polo", "ball:golf", "ball:puck", "ball:curling-stone", "ball:shot", "ball:discus", "ball:hammer", "ball:sepak-takraw", "ball:roundnet", "ball:shuttlecock-feather", "ball:shuttlecock-nylon"];
272
272
  readonly puck: readonly ["puck:canada", "puck:canada-red", "puck:canada-white", "puck:usa", "puck:usa-navy", "puck:player", "puck:signed", "puck:souvenir"];
273
- readonly gear: readonly ["gear:hockey-stick", "gear:goalie-stick", "gear:hockey-skate", "gear:goalie-mask", "gear:goal-net", "gear:field-hockey-stick", "gear:lacrosse-stick", "gear:cricket-bat", "gear:wicket", "gear:table-tennis-paddle", "gear:badminton-racket", "gear:tennis-racket", "gear:squash-racket", "gear:racquetball-racket", "gear:padel-racket", "gear:pickleball-paddle", "gear:roundnet-set", "gear:takraw-net", "gear:netball-post", "gear:teqball-table", "gear:volleyball-net", "gear:basketball-hoop", "gear:baseball-bat", "gear:baseball-glove", "gear:baseball-cap", "gear:football-helmet", "gear:goalposts", "gear:hurley", "gear:curling-broom", "gear:figure-skate", "gear:speed-skate", "gear:diving-board", "gear:swim-goggles", "gear:starting-blocks", "gear:relay-baton", "gear:javelin", "gear:hurdles", "gear:gunbai", "gear:mawashi", "gear:shinai", "gear:kendo-men", "gear:judogi", "gear:judogi-blue", "gear:judogi-folded", "gear:judogi-blue-folded", "gear:judogi-back", "gear:judogi-blue-back", "gear:obi", "gear:obi-white", "gear:obi-yellow", "gear:obi-orange", "gear:obi-green", "gear:obi-blue", "gear:obi-brown", "gear:obi-kohaku", "gear:obi-red", "gear:obi-women", "gear:obi-white-yellow", "gear:obi-yellow-orange", "gear:obi-orange-green", "gear:obi-green-blue", "gear:obi-blue-brown", "gear:obi-step-1", "gear:obi-step-2", "gear:obi-step-3", "gear:obi-step-4", "gear:obi-step-5", "gear:obi-step-6", "gear:yumi", "gear:ya", "gear:karate-gi"];
273
+ readonly gear: readonly ["gear:hockey-stick", "gear:goalie-stick", "gear:hockey-skate", "gear:goalie-mask", "gear:goal-net", "gear:field-hockey-stick", "gear:lacrosse-stick", "gear:cricket-bat", "gear:wicket", "gear:table-tennis-paddle", "gear:badminton-racket", "gear:tennis-racket", "gear:squash-racket", "gear:racquetball-racket", "gear:padel-racket", "gear:pickleball-paddle", "gear:roundnet-set", "gear:takraw-net", "gear:netball-post", "gear:teqball-table", "gear:volleyball-net", "gear:basketball-hoop", "gear:baseball-bat", "gear:baseball-glove", "gear:baseball-cap", "gear:football-helmet", "gear:goalposts", "gear:hurley", "gear:curling-broom", "gear:figure-skate", "gear:speed-skate", "gear:diving-board", "gear:swim-goggles", "gear:starting-blocks", "gear:relay-baton", "gear:javelin", "gear:hurdles", "gear:gunbai", "gear:mawashi", "gear:shinai", "gear:kendo-men", "gear:judogi", "gear:judogi-blue", "gear:judogi-folded", "gear:judogi-blue-folded", "gear:judogi-back", "gear:judogi-blue-back", "gear:obi", "gear:obi-white", "gear:obi-yellow", "gear:obi-orange", "gear:obi-green", "gear:obi-blue", "gear:obi-brown", "gear:obi-kohaku", "gear:obi-red", "gear:obi-women", "gear:obi-white-yellow", "gear:obi-yellow-orange", "gear:obi-orange-green", "gear:obi-green-blue", "gear:obi-blue-brown", "gear:obi-step-1", "gear:obi-step-2", "gear:obi-step-3", "gear:obi-step-4", "gear:obi-step-5", "gear:obi-step-6", "gear:yumi", "gear:ya", "gear:karate-gi", "gear:boxing-glove", "gear:mma-glove", "gear:wrestling-mat", "gear:wrestling-ring"];
274
274
  readonly sport: readonly ("sport:sumo" | "sport:kendo" | "sport:judo" | "sport:kyudo" | "sport:karate" | "sport:nfl" | "sport:cfl" | "sport:ifaf" | "sport:nhl" | "sport:nba" | "sport:mlb" | "sport:soccer" | "sport:curling" | "sport:tennis" | "sport:volleyball" | "sport:badminton" | "sport:pickleball" | "sport:tabletennis" | "sport:padel" | "sport:squash" | "sport:racquetball" | "sport:sepaktakraw" | "sport:teqball" | "sport:roundnet" | "sport:netball" | "sport:swimming" | "sport:waterpolo" | "sport:diving" | "sport:artisticswimming" | "sport:lacrosse" | "sport:rugby" | "sport:afl" | "sport:gaelic" | "sport:cricket" | "sport:fieldhockey" | "sport:handball" | "sport:athletics" | "sport:skating" | "sport:mma" | "sport:boxing" | "sport:wrestling" | "sport:prowrestling")[];
275
275
  readonly pennant: readonly ["pennant:championship"];
276
276
  };
@@ -312,6 +312,27 @@ export declare const EMBLEM_FOLDERS: {
312
312
  readonly sport: "sport";
313
313
  readonly pennant: "pennant";
314
314
  };
315
+ /**
316
+ * The emblems that were renamed, each old id with the id it became: the era balls that early versions published under their year, now under neutral names. An id is never removed: each old id still reads as the emblem that
317
+ * replaced it, in `parseEmblem`, `renderEmblem` and every other call that takes an id or a short name. These are part of `EMBLEM_ALIASES`, which also holds the short names of the trophies and awards.
318
+ * @example
319
+ * ```ts
320
+ * import { RENAMED_IDS, renderEmblem } from "@johnmorrisdotca/dougu-sports/emblems";
321
+ * console.log(RENAMED_IDS["ball:soccer-1970-black-white"], renderEmblem("ball:soccer-1970-black-white") === renderEmblem("ball:soccer-retro-pentagons"));
322
+ * ```
323
+ */
324
+ export declare const RENAMED_IDS: {
325
+ readonly "ball:soccer-1970-black-white": "ball:soccer-retro-pentagons";
326
+ readonly "ball:soccer-1978-triad": "ball:soccer-retro-leaves";
327
+ readonly "ball:soccer-1986-decorated-triad": "ball:soccer-retro-rosette";
328
+ readonly "ball:soccer-1998-coloured-triad": "ball:soccer-retro-pinwheel";
329
+ readonly "ball:soccer-2002-triangle-sweep": "ball:soccer-retro-kites";
330
+ readonly "ball:soccer-2006-propeller": "ball:soccer-14-panel-double-border";
331
+ readonly "ball:soccer-2010-grooved": "ball:soccer-8-panel-plain";
332
+ readonly "ball:soccer-2014-ribbon": "ball:soccer-6-panel-bands";
333
+ readonly "ball:soccer-2018-pixel": "ball:soccer-6-panel-diamonds";
334
+ readonly "ball:soccer-2022-speed-shell": "ball:soccer-20-panel-dots";
335
+ };
315
336
  /**
316
337
  * The short names of the trophies and awards that stand for a full id (`"cup"` is `"trophy:cup"`, `"crown"` is `"award:crown"`), and the old ids of the era balls that were renamed.
317
338
  * @example
@@ -103,6 +103,9 @@ export const TROPHY_IDS = [
103
103
  "trophy:foundation-player-award",
104
104
  "trophy:willie-oree-award",
105
105
  "trophy:messier-leadership-award",
106
+ "trophy:ryder-cup",
107
+ "trophy:africa-cup-of-nations",
108
+ "trophy:walter-a-brown-trophy",
106
109
  ];
107
110
  /**
108
111
  * The medals on a ribbon, and the badges for the first three places.
@@ -180,7 +183,8 @@ export const GEAR_IDS = [
180
183
  "gear:curling-broom", "gear:figure-skate", "gear:speed-skate", "gear:diving-board", "gear:swim-goggles", "gear:starting-blocks", "gear:relay-baton", "gear:javelin", "gear:hurdles",
181
184
  "gear:gunbai", "gear:mawashi", "gear:shinai", "gear:kendo-men", "gear:judogi", "gear:judogi-blue", "gear:judogi-folded", "gear:judogi-blue-folded", "gear:judogi-back", "gear:judogi-blue-back",
182
185
  "gear:obi", "gear:obi-white", "gear:obi-yellow", "gear:obi-orange", "gear:obi-green", "gear:obi-blue", "gear:obi-brown", "gear:obi-kohaku", "gear:obi-red", "gear:obi-women", "gear:obi-white-yellow", "gear:obi-yellow-orange", "gear:obi-orange-green", "gear:obi-green-blue", "gear:obi-blue-brown", "gear:obi-step-1", "gear:obi-step-2", "gear:obi-step-3", "gear:obi-step-4", "gear:obi-step-5", "gear:obi-step-6",
183
- "gear:yumi", "gear:ya", "gear:karate-gi"
186
+ "gear:yumi", "gear:ya", "gear:karate-gi",
187
+ "gear:boxing-glove", "gear:mma-glove", "gear:wrestling-mat", "gear:wrestling-ring",
184
188
  ];
185
189
  /**
186
190
  * The Japanese sports and budo: sumo, kendo, judo, kyudo and karate, with the trophies and the gear that belong to them. Every one is also in its own group; this list is for showing them together.
@@ -254,8 +258,16 @@ export const EMBLEM_IDS = Object.values(EMBLEM_GROUPS).flat();
254
258
  * ```
255
259
  */
256
260
  export const EMBLEM_FOLDERS = { award: "award", trophy: "trophy", medal: "medal", crest: "crest", ball: "ball", puck: "ball", gear: "gear", sport: "sport", pennant: "pennant" };
257
- /** The ids that early versions published for era balls, now under neutral names: each still reads as the ball that replaced it. */
258
- const RENAMED_BALLS = {
261
+ /**
262
+ * The emblems that were renamed, each old id with the id it became: the era balls that early versions published under their year, now under neutral names. An id is never removed: each old id still reads as the emblem that
263
+ * replaced it, in `parseEmblem`, `renderEmblem` and every other call that takes an id or a short name. These are part of `EMBLEM_ALIASES`, which also holds the short names of the trophies and awards.
264
+ * @example
265
+ * ```ts
266
+ * import { RENAMED_IDS, renderEmblem } from "@johnmorrisdotca/dougu-sports/emblems";
267
+ * console.log(RENAMED_IDS["ball:soccer-1970-black-white"], renderEmblem("ball:soccer-1970-black-white") === renderEmblem("ball:soccer-retro-pentagons"));
268
+ * ```
269
+ */
270
+ export const RENAMED_IDS = {
259
271
  "ball:soccer-1970-black-white": "ball:soccer-retro-pentagons",
260
272
  "ball:soccer-1978-triad": "ball:soccer-retro-leaves",
261
273
  "ball:soccer-1986-decorated-triad": "ball:soccer-retro-rosette",
@@ -275,4 +287,4 @@ const RENAMED_BALLS = {
275
287
  * console.log(Object.keys(EMBLEM_ALIASES).length);
276
288
  * ```
277
289
  */
278
- export const EMBLEM_ALIASES = { ...Object.fromEntries([...TROPHY_IDS, ...AWARD_IDS].map((id) => [id.slice(id.indexOf(":") + 1), id])), ...RENAMED_BALLS };
290
+ export const EMBLEM_ALIASES = { ...Object.fromEntries([...TROPHY_IDS, ...AWARD_IDS].map((id) => [id.slice(id.indexOf(":") + 1), id])), ...RENAMED_IDS };
@@ -86,7 +86,7 @@ export type BallKind = "plain" | "basket" | "soccer" | "base" | "globe" | "footb
86
86
  /**
87
87
  * A ball on the body: `cy` its centre, `r` its radius (and `ry` when it is longer than it is wide), `rot` the lean of a football in degrees. `fwd` sets the ball that far from the axis, toward the eye or, with `dir`, toward that angle (and so round the axis with the turn).
88
88
  * `nba` gives it the seams of a basketball as grooves, drawn by the model's `ballExtras` (`LATHE_BALL`): in the tone `seam` when given, the ball leaning by `lean` (degrees about the line of sight, then about the horizontal)
89
- * and, when `grain` is a number, that many specks of a grained finish.
89
+ * and, when `grain` is a number, that many specks of a grained finish. On a soccer ball, `seam` outlines the panels in that tone.
90
90
  * @example
91
91
  * ```ts
92
92
  * import type { Ball } from "@johnmorrisdotca/dougu-sports/emblems";
@@ -108,6 +108,8 @@ export interface Ball {
108
108
  seam?: string;
109
109
  lean?: readonly [number, number];
110
110
  grain?: number;
111
+ /** Draws a ball that sits partly inside its support behind the solid's front. */
112
+ under?: boolean;
111
113
  }
112
114
  /** What a drawer of `ballExtras` is given: the ball, where it is drawn, the turn and the eye's elevation, and the tones. */
113
115
  export interface BallCtx {
@@ -269,7 +271,7 @@ export interface LatheModel {
269
271
  edgeWidth?: number;
270
272
  /** The highest elevation of the eye in degrees that a turn may reach (75 by default): a body that leans far from the axis swings its far end up the page by the sine of the elevation times its depth, so one that is tall and leaning stops short of a view from straight above. */
271
273
  maxElevation?: number;
272
- /** Draws the seams and the grain of the balls that ask for them (`nba`); `LATHE_BALL` in `lathe.extras.ts`. */
274
+ /** Draws a ball's own details, such as the seams and grain of a basketball (`LATHE_BALL` in `lathe.extras.ts`). */
273
275
  ballExtras?: (c: BallCtx) => string;
274
276
  }
275
277
  /** The radius of the body at a height. */
@@ -394,10 +394,12 @@ function draw(model, r, o, yaw, pitch) {
394
394
  default:
395
395
  break;
396
396
  }
397
- if (ball.nba)
398
- parts.push(model.ballExtras?.({ ball, cx, cy, yaw, elevation, line, flat, tone }) ?? "");
399
- if (patches !== "")
400
- parts.push(`<path d="${patches}" fill="${line ? "none" : t.deep}" stroke-width="1"/>`);
397
+ if (model.ballExtras !== undefined)
398
+ parts.push(model.ballExtras({ ball, cx, cy, yaw, elevation, line, flat, tone }));
399
+ if (patches !== "") {
400
+ const seam = ball.seam === undefined || line ? "" : ` stroke="${tone(ball.seam).fill}"`;
401
+ parts.push(`<path d="${patches}" fill="${line || seam !== "" ? "none" : t.deep}" stroke-width="1"${seam}/>`);
402
+ }
401
403
  if (seams !== "") {
402
404
  if (ball.kind === "base")
403
405
  parts.push(`<path d="${seams}" stroke="${line ? "currentColor" : "#c0392b"}" stroke-width="${line ? 1.6 : 1.1}" stroke-dasharray="${line ? "none" : "1.4 1"}"/>`);
@@ -407,7 +409,7 @@ function draw(model, r, o, yaw, pitch) {
407
409
  if (!line && !flat && ball.kind !== "pine")
408
410
  parts.push(`<ellipse cx="${f(cx - rx * 0.36)}" cy="${f(cy - ry * 0.4)}" rx="${f(rx * 0.3)}" ry="${f(ry * 0.2)}" fill="#fff" fill-opacity=".38" stroke="none" transform="rotate(-30 ${f(cx - rx * 0.36)} ${f(cy - ry * 0.4)})"/>`);
409
411
  }
410
- mid.push(...parts);
412
+ (ball.under ? back : mid).push(...parts);
411
413
  }
412
414
  // Cut-outs and ribbons: the ones behind the bodies first, then the rest in front of them.
413
415
  if (model.parts !== undefined && model.sculptor !== undefined) {
@@ -667,6 +667,36 @@ export const NAMED_TROPHIES = [
667
667
  first: "1947",
668
668
  reference: "Photographs of the plaques of 1989 and 1992, a close photograph of the bronze relief and one of the nameplate and emblem, supplied by John (looked at and measured only; not copied; a Getty photograph and a 1940s plaque looked at only, not used). No freely licensed photograph on Wikimedia Commons.",
669
669
  },
670
+ {
671
+ id: "trophy:ryder-cup",
672
+ name: "Ryder Cup",
673
+ sport: "golf",
674
+ competition: "Ryder Cup",
675
+ kind: "champion",
676
+ honours: "The winner of the international team golf competition first played by the United States and Great Britain in 1927.",
677
+ first: "1927",
678
+ reference: "File:Ryder Cup and Lombardi Trophy.jpg (JoeSchilp, Wikimedia Commons, CC BY-SA 4.0), with File:Ryder Cup - 2014 - Paul McGinley (15360203186).jpg (Scottish Government, CC BY 2.0)",
679
+ },
680
+ {
681
+ id: "trophy:africa-cup-of-nations",
682
+ name: "Africa Cup of Nations Trophy",
683
+ sport: "soccer",
684
+ competition: "Africa Cup of Nations",
685
+ kind: "champion",
686
+ honours: "The winner of the Africa Cup of Nations, in the trophy design introduced in 2002.",
687
+ first: "2002",
688
+ reference: "File:Trophée CAN (1).jpg and File:Trophée CAN (8).jpg (Jeanpierrekepseu, Wikimedia Commons, CC BY-SA 4.0).",
689
+ },
690
+ {
691
+ id: "trophy:walter-a-brown-trophy",
692
+ name: "Walter A. Brown Trophy",
693
+ sport: "basketball",
694
+ competition: "National Basketball Association",
695
+ kind: "champion",
696
+ honours: "The NBA and BAA champion from the 1946-47 through the 1976-77 season, named after the Boston Celtics' first owner.",
697
+ first: "1946-47",
698
+ reference: "File:Walter A Brown Trophy.jpg (Cmcnicoll, Wikimedia Commons, CC BY 3.0), on display at the Basketball Hall of Fame.",
699
+ },
670
700
  ];
671
701
  /**
672
702
  * The facts of a named trophy by its emblem id, or `undefined` for a generic trophy.
@@ -76,6 +76,9 @@ import { TROPHY_GOLD_GLOVE_AWARD } from "./trophy/gold-glove-award.js";
76
76
  import { TROPHY_FIFA_WORLD_CUP } from "./trophy/fifa-world-cup.js";
77
77
  import { TROPHY_WOODLAWN_VASE } from "./trophy/woodlawn-vase.js";
78
78
  import { TROPHY_DFB_POKAL } from "./trophy/dfb-pokal.js";
79
+ import { TROPHY_RYDER_CUP } from "./trophy/ryder-cup.js";
80
+ import { TROPHY_AFRICA_CUP_OF_NATIONS } from "./trophy/africa-cup-of-nations.js";
81
+ import { TROPHY_WALTER_A_BROWN_TROPHY } from "./trophy/walter-a-brown-trophy.js";
79
82
  import { TROPHY_CHAMPIONS_LEAGUE_TROPHY } from "./trophy/champions-league-trophy.js";
80
83
  import { TROPHY_JACKIE_ROBINSON_AWARD } from "./trophy/jackie-robinson-award.js";
81
84
  import { TROPHY_CALDER_CUP } from "./trophy/calder-cup.js";
@@ -192,6 +195,9 @@ const OWN = {
192
195
  "trophy:cricket-world-cup": TROPHY_CRICKET_WORLD_CUP,
193
196
  "trophy:fa-cup": TROPHY_FA_CUP,
194
197
  "trophy:webb-ellis-cup": TROPHY_WEBB_ELLIS_CUP,
198
+ "trophy:ryder-cup": TROPHY_RYDER_CUP,
199
+ "trophy:africa-cup-of-nations": TROPHY_AFRICA_CUP_OF_NATIONS,
200
+ "trophy:walter-a-brown-trophy": TROPHY_WALTER_A_BROWN_TROPHY,
195
201
  "trophy:champions-league-trophy": TROPHY_CHAMPIONS_LEAGUE_TROPHY,
196
202
  "trophy:calder-cup": TROPHY_CALDER_CUP,
197
203
  "trophy:jackie-robinson-award": TROPHY_JACKIE_ROBINSON_AWARD,
@@ -0,0 +1,36 @@
1
+ /**
2
+ * A padded boxing glove with an attached thumb and a wrist cuff.
3
+ * @example
4
+ * ```ts
5
+ * import { GEAR_BOXING_GLOVE } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
6
+ * console.log(GEAR_BOXING_GLOVE.id, GEAR_BOXING_GLOVE.svg({ size: 48 }).startsWith("<svg"));
7
+ * ```
8
+ */
9
+ export declare const GEAR_BOXING_GLOVE: import("./gear.index.ts").Piece<import("./gear.core.ts").GearSpec>;
10
+ /**
11
+ * An open-finger MMA glove with a knuckle pad and wrist strap.
12
+ * @example
13
+ * ```ts
14
+ * import { GEAR_MMA_GLOVE } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
15
+ * console.log(GEAR_MMA_GLOVE.id, GEAR_MMA_GLOVE.svg({ size: 48 }).startsWith("<svg"));
16
+ * ```
17
+ */
18
+ export declare const GEAR_MMA_GLOVE: import("./gear.index.ts").Piece<import("./gear.core.ts").GearSpec>;
19
+ /**
20
+ * A wrestling mat with a circular competition area and an orange passivity band.
21
+ * @example
22
+ * ```ts
23
+ * import { GEAR_WRESTLING_MAT } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
24
+ * console.log(GEAR_WRESTLING_MAT.id, GEAR_WRESTLING_MAT.svg({ size: 48 }).startsWith("<svg"));
25
+ * ```
26
+ */
27
+ export declare const GEAR_WRESTLING_MAT: import("./gear.index.ts").Piece<import("./gear.core.ts").GearSpec>;
28
+ /**
29
+ * A professional wrestling ring with three ropes and padded corner posts.
30
+ * @example
31
+ * ```ts
32
+ * import { GEAR_WRESTLING_RING } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
33
+ * console.log(GEAR_WRESTLING_RING.id, GEAR_WRESTLING_RING.svg({ size: 48 }).startsWith("<svg"));
34
+ * ```
35
+ */
36
+ export declare const GEAR_WRESTLING_RING: import("./gear.index.ts").Piece<import("./gear.core.ts").GearSpec>;
@@ -0,0 +1,83 @@
1
+ import { drawn, ellipse, poly, rect } from "./gear.core.js";
2
+ /**
3
+ * A padded boxing glove with an attached thumb and a wrist cuff.
4
+ * @example
5
+ * ```ts
6
+ * import { GEAR_BOXING_GLOVE } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
7
+ * console.log(GEAR_BOXING_GLOVE.id, GEAR_BOXING_GLOVE.svg({ size: 48 }).startsWith("<svg"));
8
+ * ```
9
+ */
10
+ export const GEAR_BOXING_GLOVE = /* @__PURE__ */ drawn("gear:boxing-glove", "Boxing glove", "ボクシンググローブ", {
11
+ main: "#c52e3c",
12
+ accent: "#731d2a",
13
+ parts: [
14
+ { d: "M20 46C16 42 12 35 12 26c0-9 6-17 16-19 12-3 23 2 26 12 4 13-2 25-13 30z", fill: "$main" },
15
+ { d: "M16 28c3-5 10-3 12 2 2 4 0 7-3 10l4 7-9 3c-3-3-4-6-7-10-3-4-3-9 3-12z", fill: "$main", shade: 0.65 },
16
+ { d: "M19 45q11 2 24 0l2 11q0 3-3 3H20q-3 0-3-3z", fill: "$accent", cyl: 0.5 },
17
+ { d: "M20 53h22", stroke: "#ebadb1", w: 1, line: "none" },
18
+ { d: "M17 22q5-10 20-11", stroke: "#9a1d2d", w: 0.8, line: "none" },
19
+ { d: "M21 19q8-10 22-6-10-1-20 10z", fill: "#fff", op: 0.14, fx: true },
20
+ ],
21
+ });
22
+ /**
23
+ * An open-finger MMA glove with a knuckle pad and wrist strap.
24
+ * @example
25
+ * ```ts
26
+ * import { GEAR_MMA_GLOVE } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
27
+ * console.log(GEAR_MMA_GLOVE.id, GEAR_MMA_GLOVE.svg({ size: 48 }).startsWith("<svg"));
28
+ * ```
29
+ */
30
+ export const GEAR_MMA_GLOVE = /* @__PURE__ */ drawn("gear:mma-glove", "MMA glove", "総合格闘技グローブ", {
31
+ main: "#285d9a",
32
+ accent: "#536c8b",
33
+ parts: [
34
+ { d: "M11 35q-4-6 1-10l6-5 5 5-7 14z", fill: "$accent" },
35
+ { d: "M17 22v-9q0-3 4-3t4 3v4M26 17V9q0-3 4.25-3t4.25 3v7M35.5 16.5V10q0-3 4-3t4 3v8M44.5 18.5V15q0-3 3.5-3t3.5 3v6.5", stroke: "$accent", w: 1.7 },
36
+ { d: "M17 14q4 2 8 0M26 10q4.25 2 8.5 0M35.5 11q4 2 8 0M44.5 16q3.5 2 7 0", stroke: "$accent", w: 1.4 },
37
+ { d: "M16 23q7-8 17-8 12-1 20 8l-3 11q-2 6-8 10l-22 2q-1-7-5-13-3-6 1-10z", fill: "$main" },
38
+ { d: "M17 27q17-7 33-3", stroke: "#a0c3ed", w: 1.2 },
39
+ { d: "M19 43q14 1 25-1l2 13q1 3-3 3H21q-3 0-3-3z", fill: "$accent", cyl: 0.5 },
40
+ { d: "M23 50h19", stroke: "#96b1cc", w: 1, line: "none" },
41
+ ],
42
+ });
43
+ /**
44
+ * A wrestling mat with a circular competition area and an orange passivity band.
45
+ * @example
46
+ * ```ts
47
+ * import { GEAR_WRESTLING_MAT } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
48
+ * console.log(GEAR_WRESTLING_MAT.id, GEAR_WRESTLING_MAT.svg({ size: 48 }).startsWith("<svg"));
49
+ * ```
50
+ */
51
+ export const GEAR_WRESTLING_MAT = /* @__PURE__ */ drawn("gear:wrestling-mat", "Wrestling mat", "レスリングマット", {
52
+ main: "#427fb7",
53
+ accent: "#ee852f",
54
+ parts: [
55
+ { d: "M4 16 15 46H60v3H15L4 19z", fill: "#234467", line: "none" },
56
+ { d: poly([4, 16], [49, 16], [60, 46], [15, 46]), fill: "$main", shade: 0.6 },
57
+ { d: ellipse(32, 31, 16.875, 11.25), t: "matrix(1 0 .3667 1 -11.37 0)", fill: "$accent", shade: 0.3 },
58
+ { d: ellipse(32, 31, 13.125, 8.75), t: "matrix(1 0 .3667 1 -11.37 0)", fill: "#183756", shade: 0.4 },
59
+ { d: ellipse(32, 31, 1.875, 1.25), t: "matrix(1 0 .3667 1 -11.37 0)", stroke: "$accent", w: 1 },
60
+ ],
61
+ });
62
+ /**
63
+ * A professional wrestling ring with three ropes and padded corner posts.
64
+ * @example
65
+ * ```ts
66
+ * import { GEAR_WRESTLING_RING } from "@johnmorrisdotca/dougu-sports/gear/gear.combat";
67
+ * console.log(GEAR_WRESTLING_RING.id, GEAR_WRESTLING_RING.svg({ size: 48 }).startsWith("<svg"));
68
+ * ```
69
+ */
70
+ export const GEAR_WRESTLING_RING = /* @__PURE__ */ drawn("gear:wrestling-ring", "Pro wrestling ring", "プロレスのリング", {
71
+ main: "#38587a",
72
+ accent: "#bc4650",
73
+ parts: [
74
+ { d: poly([4, 40], [32, 26], [60, 40], [60, 49], [32, 62], [4, 49]), fill: "$main" },
75
+ { d: poly([4, 40], [32, 26], [60, 40], [32, 54]), fill: "#d8dde7", shade: 0.5 },
76
+ { d: "M7 34 32 22 57 34M7 28 32 16 57 28M7 22 32 10 57 22", stroke: "$main", w: 1.45 },
77
+ { d: rect(30, 7, 4, 22, 1.5), fill: "$accent", cyl: 0.65 },
78
+ { d: "M7 34 32 46 57 34M7 28 32 40 57 28M7 22 32 34 57 22", stroke: "$accent", w: 1.55 },
79
+ { d: rect(5, 19, 4, 25, 1.5), fill: "$accent", cyl: 0.65 },
80
+ { d: rect(55, 19, 4, 25, 1.5), fill: "$accent", cyl: 0.65 },
81
+ { d: rect(30, 31, 4, 25, 1.5), fill: "$accent", cyl: 0.65 },
82
+ ],
83
+ });
@@ -11,7 +11,7 @@ export declare const isGearId: (name: unknown) => name is string;
11
11
  * A piece of gear as a document of SVG, in the colour style (the default) or the line style (`currentColor`).
12
12
  * @example
13
13
  * ```ts
14
- * import { renderGear } from "@johnmorrisdotca/kyogijo-stadiums/gear";
14
+ * import { renderGear } from "@johnmorrisdotca/dougu-sports/gear/gear.index";
15
15
  * const colour = renderGear("hockey-stick", { size: 48 });
16
16
  * const line = renderGear("hockey-stick", { size: 48, style: "line" });
17
17
  * console.log(colour !== line, line.includes("currentColor"));
@@ -1,6 +1,7 @@
1
1
  import { GEAR_BADMINTON_RACKET } from "./gear.badmintonracket.js";
2
2
  import { GEAR_BASEBALL_CAP } from "./gear.baseballcap.js";
3
3
  import { GEAR_BASEBALL_GLOVE } from "./gear.baseballglove.js";
4
+ import { GEAR_BOXING_GLOVE, GEAR_MMA_GLOVE, GEAR_WRESTLING_MAT, GEAR_WRESTLING_RING } from "./gear.combat.js";
4
5
  import { GEAR_CRICKET_BAT } from "./gear.cricketbat.js";
5
6
  import { GEAR_BASEBALL_BAT, GEAR_BASKETBALL_HOOP, GEAR_VOLLEYBALL_NET, GEAR_GOALPOSTS, GEAR_WICKET, GEAR_ROUNDNET_SET } from "./gear.field.js";
6
7
  import { GEAR_TAKRAW_NET, GEAR_NETBALL_POST, GEAR_TEQBALL_TABLE } from "./gear.nets.js";
@@ -23,7 +24,7 @@ import { GEAR_JUDOGI, GEAR_JUDOGI_BLUE, GEAR_JUDOGI_FOLDED, GEAR_JUDOGI_BLUE_FOL
23
24
  import { GEAR_OBI_STEP_1, GEAR_OBI_STEP_2, GEAR_OBI_STEP_3, GEAR_OBI_STEP_4, GEAR_OBI_STEP_5, GEAR_OBI_STEP_6 } from "./gear.budo.steps.js";
24
25
  import { GEAR_YUMI, GEAR_YA } from "./gear.kyudo.js";
25
26
  /** Every piece of gear, in the order a gallery shows them. */
26
- export const GEARS = [GEAR_HOCKEY_STICK, GEAR_GOALIE_STICK, GEAR_HOCKEY_SKATE, GEAR_GOALIE_MASK, GEAR_GOAL_NET, GEAR_FIELD_HOCKEY_STICK, GEAR_LACROSSE_STICK, GEAR_CRICKET_BAT, GEAR_WICKET, GEAR_TABLE_TENNIS_PADDLE, GEAR_BADMINTON_RACKET, GEAR_TENNIS_RACKET, GEAR_SQUASH_RACKET, GEAR_RACQUETBALL_RACKET, GEAR_PADEL_RACKET, GEAR_PICKLEBALL_PADDLE, GEAR_ROUNDNET_SET, GEAR_TAKRAW_NET, GEAR_NETBALL_POST, GEAR_TEQBALL_TABLE, GEAR_VOLLEYBALL_NET, GEAR_BASKETBALL_HOOP, GEAR_BASEBALL_BAT, GEAR_BASEBALL_GLOVE, GEAR_BASEBALL_CAP, GEAR_FOOTBALL_HELMET, GEAR_GOALPOSTS, GEAR_HURLEY, GEAR_CURLING_BROOM, GEAR_FIGURE_SKATE, GEAR_SPEED_SKATE, GEAR_DIVING_BOARD, GEAR_SWIM_GOGGLES, GEAR_STARTING_BLOCKS, GEAR_RELAY_BATON, GEAR_JAVELIN, GEAR_HURDLES, GEAR_GUNBAI, GEAR_MAWASHI, GEAR_SHINAI, GEAR_KENDO_MEN, GEAR_JUDOGI, GEAR_JUDOGI_BLUE, GEAR_JUDOGI_FOLDED, GEAR_JUDOGI_BLUE_FOLDED, GEAR_JUDOGI_BACK, GEAR_JUDOGI_BLUE_BACK, GEAR_OBI, GEAR_OBI_WHITE, GEAR_OBI_YELLOW, GEAR_OBI_ORANGE, GEAR_OBI_GREEN, GEAR_OBI_BLUE, GEAR_OBI_BROWN, GEAR_OBI_KOHAKU, GEAR_OBI_RED, GEAR_OBI_WOMEN, GEAR_OBI_WHITE_YELLOW, GEAR_OBI_YELLOW_ORANGE, GEAR_OBI_ORANGE_GREEN, GEAR_OBI_GREEN_BLUE, GEAR_OBI_BLUE_BROWN, GEAR_OBI_STEP_1, GEAR_OBI_STEP_2, GEAR_OBI_STEP_3, GEAR_OBI_STEP_4, GEAR_OBI_STEP_5, GEAR_OBI_STEP_6, GEAR_YUMI, GEAR_YA, GEAR_KARATE_GI];
27
+ export const GEARS = [GEAR_HOCKEY_STICK, GEAR_GOALIE_STICK, GEAR_HOCKEY_SKATE, GEAR_GOALIE_MASK, GEAR_GOAL_NET, GEAR_FIELD_HOCKEY_STICK, GEAR_LACROSSE_STICK, GEAR_CRICKET_BAT, GEAR_WICKET, GEAR_TABLE_TENNIS_PADDLE, GEAR_BADMINTON_RACKET, GEAR_TENNIS_RACKET, GEAR_SQUASH_RACKET, GEAR_RACQUETBALL_RACKET, GEAR_PADEL_RACKET, GEAR_PICKLEBALL_PADDLE, GEAR_ROUNDNET_SET, GEAR_TAKRAW_NET, GEAR_NETBALL_POST, GEAR_TEQBALL_TABLE, GEAR_VOLLEYBALL_NET, GEAR_BASKETBALL_HOOP, GEAR_BASEBALL_BAT, GEAR_BASEBALL_GLOVE, GEAR_BASEBALL_CAP, GEAR_FOOTBALL_HELMET, GEAR_GOALPOSTS, GEAR_HURLEY, GEAR_CURLING_BROOM, GEAR_FIGURE_SKATE, GEAR_SPEED_SKATE, GEAR_DIVING_BOARD, GEAR_SWIM_GOGGLES, GEAR_STARTING_BLOCKS, GEAR_RELAY_BATON, GEAR_JAVELIN, GEAR_HURDLES, GEAR_GUNBAI, GEAR_MAWASHI, GEAR_SHINAI, GEAR_KENDO_MEN, GEAR_JUDOGI, GEAR_JUDOGI_BLUE, GEAR_JUDOGI_FOLDED, GEAR_JUDOGI_BLUE_FOLDED, GEAR_JUDOGI_BACK, GEAR_JUDOGI_BLUE_BACK, GEAR_OBI, GEAR_OBI_WHITE, GEAR_OBI_YELLOW, GEAR_OBI_ORANGE, GEAR_OBI_GREEN, GEAR_OBI_BLUE, GEAR_OBI_BROWN, GEAR_OBI_KOHAKU, GEAR_OBI_RED, GEAR_OBI_WOMEN, GEAR_OBI_WHITE_YELLOW, GEAR_OBI_YELLOW_ORANGE, GEAR_OBI_ORANGE_GREEN, GEAR_OBI_GREEN_BLUE, GEAR_OBI_BLUE_BROWN, GEAR_OBI_STEP_1, GEAR_OBI_STEP_2, GEAR_OBI_STEP_3, GEAR_OBI_STEP_4, GEAR_OBI_STEP_5, GEAR_OBI_STEP_6, GEAR_YUMI, GEAR_YA, GEAR_KARATE_GI, GEAR_BOXING_GLOVE, GEAR_MMA_GLOVE, GEAR_WRESTLING_MAT, GEAR_WRESTLING_RING];
27
28
  /** The id of every piece of gear: `"gear:hockey-stick"`. */
28
29
  export const GEAR_IDS = GEARS.map((g) => g.id);
29
30
  const TABLE = new Map(GEARS.map((g) => [g.id, g]));
@@ -40,7 +41,7 @@ export const isGearId = (name) => typeof name === "string" && TABLE.has(name.sta
40
41
  * A piece of gear as a document of SVG, in the colour style (the default) or the line style (`currentColor`).
41
42
  * @example
42
43
  * ```ts
43
- * import { renderGear } from "@johnmorrisdotca/kyogijo-stadiums/gear";
44
+ * import { renderGear } from "@johnmorrisdotca/dougu-sports/gear/gear.index";
44
45
  * const colour = renderGear("hockey-stick", { size: 48 });
45
46
  * const line = renderGear("hockey-stick", { size: 48, style: "line" });
46
47
  * console.log(colour !== line, line.includes("currentColor"));
@@ -75,6 +75,8 @@ const rotate = (v, lz, lx, yaw) => {
75
75
  const SEAMS = [[0, 1, 0], [1, 0, 0], [Math.cos(Math.PI / 3), 0, -Math.sin(Math.PI / 3)], [Math.cos(Math.PI / 3), 0, Math.sin(Math.PI / 3)]];
76
76
  /** Draws the seams of a basketball as grooves (each the front half of a great circle: one elliptical arc), and the specks of a grained finish. */
77
77
  export function LATHE_BALL(c) {
78
+ if (!c.ball.nba)
79
+ return "";
78
80
  const { ball, cx, cy } = c;
79
81
  const r = ball.r;
80
82
  const lz = ((ball.lean?.[0] ?? 0) * Math.PI) / 180;