@johnmorrisdotca/dougu-sports 1.0.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.
- package/CHANGELOG.md +12 -0
- package/LICENSES/README.md +2 -11
- package/NOTICE.md +7 -5
- package/README.md +39 -21
- package/dist/element.js +18 -7
- package/dist/emblems/ball/ball.baseball.vintage.d.ts +3 -3
- package/dist/emblems/ball/ball.baseball.vintage.js +4 -4
- package/dist/emblems/ball/ball.basketball3x3.js +1 -1
- package/dist/emblems/ball/ball.index.d.ts +1 -1
- package/dist/emblems/ball/ball.index.js +1 -1
- package/dist/emblems/ball/ball.plastic.js +8 -10
- package/dist/emblems/ball/ball.soccer.vintage.js +3 -3
- package/dist/emblems/emblem.descriptions.js +24 -0
- package/dist/emblems/emblem.equipment.d.ts +1 -1
- package/dist/emblems/emblem.equipment.js +4 -4
- package/dist/emblems/emblem.ids.d.ts +4 -4
- package/dist/emblems/emblem.ids.js +5 -1
- package/dist/emblems/emblem.lathe.d.ts +4 -2
- package/dist/emblems/emblem.lathe.js +7 -5
- package/dist/emblems/emblem.named.js +30 -0
- package/dist/emblems/emblem.registry.js +6 -0
- package/dist/emblems/gear/gear.combat.d.ts +36 -0
- package/dist/emblems/gear/gear.combat.js +83 -0
- package/dist/emblems/gear/gear.index.d.ts +1 -1
- package/dist/emblems/gear/gear.index.js +3 -2
- package/dist/emblems/lathe.extras.js +2 -0
- package/dist/emblems/trophy/africa-cup-of-nations.d.ts +9 -0
- package/dist/emblems/trophy/africa-cup-of-nations.js +42 -0
- package/dist/emblems/trophy/ryder-cup.d.ts +9 -0
- package/dist/emblems/trophy/ryder-cup.js +44 -0
- package/dist/emblems/trophy/walter-a-brown-trophy.d.ts +9 -0
- package/dist/emblems/trophy/walter-a-brown-trophy.js +42 -0
- package/dist/emblems-entry.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/revisions.json +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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
|
};
|
|
@@ -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.
|
|
@@ -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
|
|
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 (
|
|
398
|
-
parts.push(model.ballExtras
|
|
399
|
-
if (patches !== "")
|
|
400
|
-
|
|
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/
|
|
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/
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Africa Cup of Nations trophy introduced in 2002: a gold globe on a fluted support over a blue base.
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* import { TROPHY_AFRICA_CUP_OF_NATIONS } from "@johnmorrisdotca/dougu-sports";
|
|
6
|
+
* console.log(TROPHY_AFRICA_CUP_OF_NATIONS.id, TROPHY_AFRICA_CUP_OF_NATIONS.svg({ size: 48 }).startsWith("<svg"));
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
export declare const TROPHY_AFRICA_CUP_OF_NATIONS: import("../emblem.core.ts").Emblem<import("../emblem.lathe.ts").LatheModel>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// The 2002 Africa Cup of Nations trophy, measured on the 2021 final's display and presentation photographs. The globe, the ring of small balls,
|
|
2
|
+
// the fluted gold support and the blue stone foot are separate parts. The globe shows a simplified geographic coast and the bands are left plain.
|
|
3
|
+
import { lonLat, rotation } from "../ball/ball.math.js";
|
|
4
|
+
import { regionPath } from "../ball/ball.region.js";
|
|
5
|
+
import { defineLathe } from "../emblem.lathe.js";
|
|
6
|
+
const RAD = Math.PI / 180;
|
|
7
|
+
// Selected points on the shoreline, in longitude and latitude, read from Natural Earth's public-domain 1:110m land data.
|
|
8
|
+
const AFRICAN_COAST = [
|
|
9
|
+
[10, 37], [0, 36], [-6, 36], [-13, 28], [-17, 15], [-15, 10], [-8, 5], [3, 6], [9, 4], [9, -1], [13, -9],
|
|
10
|
+
[13, -17], [15, -26], [18, -34], [25, -34], [33, -28], [35, -23], [40, -15], [41, -3], [51, 11],
|
|
11
|
+
[44, 11], [43, 15], [38, 18], [33, 28], [32, 31], [25, 31], [19, 31], [11, 33],
|
|
12
|
+
].map(([lon, lat]) => lonLat((lon - 16) * RAD, lat * RAD));
|
|
13
|
+
/**
|
|
14
|
+
* The Africa Cup of Nations trophy introduced in 2002: a gold globe on a fluted support over a blue base.
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { TROPHY_AFRICA_CUP_OF_NATIONS } from "@johnmorrisdotca/dougu-sports";
|
|
18
|
+
* console.log(TROPHY_AFRICA_CUP_OF_NATIONS.id, TROPHY_AFRICA_CUP_OF_NATIONS.svg({ size: 48 }).startsWith("<svg"));
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export const TROPHY_AFRICA_CUP_OF_NATIONS = /* @__PURE__ */ defineLathe("trophy:africa-cup-of-nations", "Africa Cup of Nations", "AFCON優勝杯", "ours", {
|
|
22
|
+
metal: "gold",
|
|
23
|
+
tones: { stone: "#263c68" },
|
|
24
|
+
tilt: 5,
|
|
25
|
+
turnBox: "-3.6 0 71.1 71.1",
|
|
26
|
+
lineWidth: 1.35,
|
|
27
|
+
solids: [
|
|
28
|
+
{
|
|
29
|
+
p: [[15.6, 11.6, 1], [17.7, 11.8, 1], [21, 10.3], [25, 8.4], [29.5, 6.3], [34.4, 3.9], [36, 3.6, 1],
|
|
30
|
+
[36.4, 4.3], [37.4, 4.5], [38.3, 4.2], [38.5, 3.5, 1], [43, 3.6], [47.5, 4.4], [52, 5.7], [54.1, 6.8, 1],
|
|
31
|
+
[54.2, 7.7, 1, "stone"], [56.2, 8.5, 1], [56.3, 8.6, 1, "main"], [58.2, 9.4, 1], [58.3, 9.5, 1, "stone"], [61, 10.1, 1]],
|
|
32
|
+
decor: [["dots", 16.2, 14, 3.5], ["mer", 17.7, 35.6, 12], ["mer", 38.5, 54, 12]],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
balls: [{ kind: "plain", cy: 13.2, r: 10.4, under: true }],
|
|
36
|
+
ballExtras: ({ ball, cx, cy, yaw, elevation, line, tone }) => {
|
|
37
|
+
const rot = rotation(yaw * RAD, (elevation - 20) * RAD, 0);
|
|
38
|
+
const coast = regionPath({ cx, cy, ox: cx, oy: cy, axes: [1, 1, 1], rot, k: ball.r, w: rot[2], wl: 1, rz: rot[2], point: undefined }, AFRICAN_COAST);
|
|
39
|
+
return coast === "" ? "" : `<path d="${coast}" fill="${line ? "none" : tone().deep}" fill-rule="evenodd" stroke-width=".55"/>`;
|
|
40
|
+
},
|
|
41
|
+
plate: { y0: 56.3, y1: 58.2 },
|
|
42
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Ryder Cup: a gold lidded bowl with loop handles, a golfer finial and a tiered base.
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* import { TROPHY_RYDER_CUP } from "@johnmorrisdotca/dougu-sports/trophy/ryder-cup";
|
|
6
|
+
* console.log(TROPHY_RYDER_CUP.id, TROPHY_RYDER_CUP.svg({ size: 48 }).startsWith("<svg"));
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
export declare const TROPHY_RYDER_CUP: import("../emblem.core.ts").Emblem<import("../emblem.lathe.ts").LatheModel>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// The display trophy in JoeSchilp's 2025 photograph gives the bowl, stem and tiered base.
|
|
2
|
+
// The Scottish Government's 2014 photograph confirms the handles and golfer finial. The golfer
|
|
3
|
+
// is simplified to a small figure and club. The bands are plain for optional engraving.
|
|
4
|
+
import { defineLathe } from "../emblem.lathe.js";
|
|
5
|
+
/**
|
|
6
|
+
* The Ryder Cup: a gold lidded bowl with loop handles, a golfer finial and a tiered base.
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { TROPHY_RYDER_CUP } from "@johnmorrisdotca/dougu-sports/trophy/ryder-cup";
|
|
10
|
+
* console.log(TROPHY_RYDER_CUP.id, TROPHY_RYDER_CUP.svg({ size: 48 }).startsWith("<svg"));
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export const TROPHY_RYDER_CUP = /* @__PURE__ */ defineLathe("trophy:ryder-cup", "Ryder Cup", "ライダーカップ", "ours", {
|
|
14
|
+
metal: "gold",
|
|
15
|
+
turnBox: "-3.2 0 70.4 70.4",
|
|
16
|
+
tones: { gilt: "#e8b54a", band: "#b77a2d", wood: "#8f4a24" },
|
|
17
|
+
tilt: 6,
|
|
18
|
+
solids: [
|
|
19
|
+
{ at: [1.1, 90], lean: [0.15, 90, 12], p: [[5.8, 0.65], [7.2, 1.2], [9, 0.85], [10.4, 0.8, 1]] },
|
|
20
|
+
{ at: [0.45, -90], p: [[9.7, 0.55], [11.5, 0.45], [12.1, 0.75, 1]] },
|
|
21
|
+
{ at: [1.3, 90], p: [[9.7, 0.55], [11.5, 0.45], [12.1, 0.75, 1]] },
|
|
22
|
+
{
|
|
23
|
+
p: [
|
|
24
|
+
[12, 2.6, 1], [12.9, 2.6, 1], [13.2, 2.1], [14, 3.2], [15.2, 5.5], [16.1, 8.7],
|
|
25
|
+
[16.6, 9.2, 1], [17.6, 9.1, 1], [18, 8.7, 1], [19.6, 8.4], [21.3, 7.3],
|
|
26
|
+
[22.8, 5.4], [23.5, 2.5], [24.4, 1.2, 1], [25.2, 2.2], [26.1, 2.8, 1],
|
|
27
|
+
[27.3, 2.3], [28, 1.4], [29.3, 1.65], [30.5, 1.25], [33.4, 0.9],
|
|
28
|
+
[38, 0.85], [39.3, 1.4], [40.4, 2.2], [41.2, 2.8], [42.2, 4.8],
|
|
29
|
+
[43.3, 6.1, 1], [45.7, 6.1, 1, "band"], [46.3, 6.5, 1], [47.1, 7.4, 1],
|
|
30
|
+
[50.7, 7.4, 1, "band"], [51.3, 8, 1], [52.1, 8.7, 1], [56.6, 8.7, 1, "band"],
|
|
31
|
+
[57.2, 9.3, 1], [58.7, 9.8, 1, "wood"], [60, 9.8, 1, "wood"],
|
|
32
|
+
],
|
|
33
|
+
decor: [["ring", 17.1], ["ring", 19.2], ["ring", 26.2], ["ring", 41.7], ["ring", 43.4], ["ring", 47.4], ["ring", 52.4]],
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
handles: [
|
|
37
|
+
{ a: 90, w: 0.65, pts: [[8.7, 17.4], [11.8, 17.6], [13.7, 16], [14.1, 17.7], [12.9, 20.3], [9.5, 22.4], [6.8, 22.6]] },
|
|
38
|
+
{ a: -90, w: 0.65, pts: [[8.7, 17.4], [11.8, 17.6], [13.7, 16], [14.1, 17.7], [12.9, 20.3], [9.5, 22.4], [6.8, 22.6]] },
|
|
39
|
+
{ a: 90, w: 1, pts: [[0.8, 6.7], [0, 5.1], [-1.2, 4.4]], tone: "gilt" },
|
|
40
|
+
{ a: 90, w: 0.32, pts: [[-1.2, 4.4], [-3, 8], [-3.9, 9.3], [-4.5, 9.3]], tone: "band" },
|
|
41
|
+
],
|
|
42
|
+
balls: [{ kind: "plain", cy: 5.25, r: 0.82, fwd: 1.55, dir: 90, tone: "gilt" }],
|
|
43
|
+
plate: { y0: 52.7, y1: 56, tone: "band" },
|
|
44
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Walter A. Brown Trophy: a wide silver bowl above a wood pedestal of four rows of champion plates.
|
|
3
|
+
* @example
|
|
4
|
+
* ```ts
|
|
5
|
+
* import { TROPHY_WALTER_A_BROWN_TROPHY } from "@johnmorrisdotca/dougu-sports";
|
|
6
|
+
* console.log(TROPHY_WALTER_A_BROWN_TROPHY.id, TROPHY_WALTER_A_BROWN_TROPHY.svg({ size: 48 }).startsWith("<svg"));
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
export declare const TROPHY_WALTER_A_BROWN_TROPHY: import("../emblem.core.ts").Emblem<import("../emblem.lathe.ts").LatheModel>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// The original NBA championship trophy, measured on the Hall of Fame display photograph. The wide bowl is about four-fifths as wide as the trophy is high.
|
|
2
|
+
// The rim relief is suggested by raised beads, the angular wooden base has four rows of blank plates, and the separate figured decoration is simplified.
|
|
3
|
+
import { defineLathe } from "../emblem.lathe.js";
|
|
4
|
+
import { LATHE_EXTRAS } from "../lathe.extras.js";
|
|
5
|
+
/**
|
|
6
|
+
* The Walter A. Brown Trophy: a wide silver bowl above a wood pedestal of four rows of champion plates.
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { TROPHY_WALTER_A_BROWN_TROPHY } from "@johnmorrisdotca/dougu-sports";
|
|
10
|
+
* console.log(TROPHY_WALTER_A_BROWN_TROPHY.id, TROPHY_WALTER_A_BROWN_TROPHY.svg({ size: 48 }).startsWith("<svg"));
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export const TROPHY_WALTER_A_BROWN_TROPHY = /* @__PURE__ */ defineLathe("trophy:walter-a-brown-trophy", "Walter A. Brown Trophy", "ウォルター・ブラウン杯", "ours", {
|
|
14
|
+
metal: "silver",
|
|
15
|
+
tones: { wood: "#533326", plate: "#a29a87" },
|
|
16
|
+
tilt: 11,
|
|
17
|
+
lineWidth: 1.35,
|
|
18
|
+
box: "-1.3 -1.6 66.6 66.6",
|
|
19
|
+
turnBox: "-16 -18.7 96 96",
|
|
20
|
+
extras: LATHE_EXTRAS,
|
|
21
|
+
solids: [
|
|
22
|
+
{
|
|
23
|
+
open: true,
|
|
24
|
+
p: [[4.2, 22.9, 1], [6, 23.3], [12.7, 22.5], [14, 22.3, 1], [14.5, 22.7, 1], [15.4, 22.2, 1],
|
|
25
|
+
[21, 20.6], [25, 18.1], [28.3, 14.9], [30.2, 11.3], [31.2, 8.7, 1], [33.1, 8.5, 1],
|
|
26
|
+
[34.4, 10.4], [36.7, 11.8], [38.2, 10.8, 1]],
|
|
27
|
+
decor: [["pills", 22.6, 16, 4, 2.5, "main"], ["ring", 14], ["mer", 25, 31.2, 36], ["mer", 34, 37.7, 34]],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
sides: 8,
|
|
31
|
+
tone: "wood",
|
|
32
|
+
p: [[37.5, 11.4, 1], [43.7, 12.5, 1], [49.6, 13.8, 1], [55.3, 15.1, 1], [61, 16.3, 1]],
|
|
33
|
+
decor: Array.from({ length: 8 }, (_, face) => [
|
|
34
|
+
["panel", face, 38, 43.1, 0.055, 0.945, "plate"],
|
|
35
|
+
["panel", face, 43.9, 49, 0.055, 0.945, "plate"],
|
|
36
|
+
["panel", face, 49.8, 54.7, 0.055, 0.945, "plate"],
|
|
37
|
+
["panel", face, 55.5, 60.7, 0.055, 0.945, "plate"],
|
|
38
|
+
]).flat(),
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
plate: { y0: 55.5, y1: 60.7, face: 0, tone: "plate" },
|
|
42
|
+
});
|
package/dist/emblems-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The emblems entry point: `renderEmblem(id, options)` draws any emblem from its id, and the ids and types say which there are. Nothing here imports a single drawing's module directly, so for one
|
|
2
|
-
// emblem and nothing else import its own module (`@johnmorrisdotca/dougu-sports/ball/soccer`).
|
|
2
|
+
// emblem and nothing else import its own module (`@johnmorrisdotca/dougu-sports/ball/ball.soccer`).
|
|
3
3
|
export { NAMED_TROPHIES, namedTrophy } from "./emblems/emblem.named.js";
|
|
4
4
|
export { EMBLEM_DESCRIPTIONS } from "./emblems/emblem.descriptions.js";
|
|
5
5
|
export { EMBLEMS, crest, emblemInfo, emblemModel, emblemName, emblemOf, emblemSvg, isBallId, isEmblemId, medal, parseEmblem, pennant, renderEmblem, sportIcon } from "./emblems/emblem.api.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,9 @@ export { TROPHY_GOLD_GLOVE_AWARD } from "./emblems/trophy/gold-glove-award.ts";
|
|
|
82
82
|
export { TROPHY_FIFA_WORLD_CUP } from "./emblems/trophy/fifa-world-cup.ts";
|
|
83
83
|
export { TROPHY_WOODLAWN_VASE } from "./emblems/trophy/woodlawn-vase.ts";
|
|
84
84
|
export { TROPHY_DFB_POKAL } from "./emblems/trophy/dfb-pokal.ts";
|
|
85
|
+
export { TROPHY_RYDER_CUP } from "./emblems/trophy/ryder-cup.ts";
|
|
86
|
+
export { TROPHY_AFRICA_CUP_OF_NATIONS } from "./emblems/trophy/africa-cup-of-nations.ts";
|
|
87
|
+
export { TROPHY_WALTER_A_BROWN_TROPHY } from "./emblems/trophy/walter-a-brown-trophy.ts";
|
|
85
88
|
export { TROPHY_CHAMPIONS_LEAGUE_TROPHY } from "./emblems/trophy/champions-league-trophy.ts";
|
|
86
89
|
export { TROPHY_JACKIE_ROBINSON_AWARD } from "./emblems/trophy/jackie-robinson-award.ts";
|
|
87
90
|
export { TROPHY_CALDER_CUP } from "./emblems/trophy/calder-cup.ts";
|
|
@@ -199,6 +202,7 @@ export { GEAR_CRICKET_BAT } from "./emblems/gear/gear.cricketbat.ts";
|
|
|
199
202
|
export { GEAR_BASEBALL_BAT, GEAR_BASKETBALL_HOOP, GEAR_VOLLEYBALL_NET, GEAR_GOALPOSTS, GEAR_WICKET, GEAR_ROUNDNET_SET } from "./emblems/gear/gear.field.ts";
|
|
200
203
|
export { GEAR_TAKRAW_NET, GEAR_NETBALL_POST, GEAR_TEQBALL_TABLE } from "./emblems/gear/gear.nets.ts";
|
|
201
204
|
export { GEAR_FIELD_HOCKEY_STICK } from "./emblems/gear/gear.fieldhockeystick.ts";
|
|
205
|
+
export { GEAR_BOXING_GLOVE, GEAR_MMA_GLOVE, GEAR_WRESTLING_MAT, GEAR_WRESTLING_RING } from "./emblems/gear/gear.combat.ts";
|
|
202
206
|
export { GEAR_FOOTBALL_HELMET } from "./emblems/gear/gear.footballhelmet.ts";
|
|
203
207
|
export { GEAR_GOALIE_MASK } from "./emblems/gear/gear.goaliemask.ts";
|
|
204
208
|
export { GEAR_GOAL_NET } from "./emblems/gear/gear.goalnet.ts";
|