@johnmorrisdotca/dougu-sports 0.30.0 → 0.31.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 CHANGED
@@ -6,6 +6,21 @@ All notable changes to this project are written here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.31.0] - 2026-11-03
10
+
11
+ ### Changed
12
+
13
+ - **The playground takes kazoku-ui 0.12 and its zoom slider.** On a desk the bar under the stage is now `layout="horizontal"` (a phone keeps the classic bar, which fits its width): the turn on one row and, under it, the zoom as a slider marked at 1x, 2x, 3x and 5x with the readout, zoom out, zoom in and Fit, and the Centre button of 0.11 beside More. The angle, tilt, zoom and pan are kept in the address as before.
14
+
15
+ ### Fixed
16
+
17
+ - The playground no longer drops the header's `theme=dark` from the address when the view moves: its own Look choice shares the `theme` parameter, and it wrote the default over the header's value on the next change of the view. It leaves `theme` alone until the Look is chosen on the page.
18
+
19
+ ### Also in this release
20
+
21
+ - Docs only (MODULES-247): two more guides, with Japanese twins: architecture (the pipeline from an id to an SVG document, the five rules, the entries and the checks) and podiums, sprites and data addresses; `demo/builder.html`, a page where the group, the emblem, the look, the theme, the size and the tint are chosen and the code that puts the emblem in a page is copied (`emblemEmbedCode`), with `e2e/builder.demo.ts`; the README is under npm's 64,000 characters, its list of releases now the CHANGELOG's.
22
+ - The README opens with the package's thumbnail, and the demo carries it as its link preview (og:image) and publishes the card, a dark card and an icon on Pages at `thumbnail.png`, `thumbnail-dark.png` and `icon.png`.
23
+
9
24
  ## [0.30.0] - 2026-11-03
10
25
 
11
26
  The practice baseball like the real one, and the playground's view controls with kazoku-ui 0.11.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <p align="center"><a href="https://johnmorrisdotca.github.io/dougu-sports/"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/johnmorrisdotca/dougu-sports/main/docs/images/thumbnail-dark.png"><img src="https://raw.githubusercontent.com/johnmorrisdotca/dougu-sports/main/docs/images/thumbnail.png" alt="Dougu Sports: a soccer ball, a baseball glove, a gold cup with two handles, a basketball and a tennis racket, drawn as SVG." width="1200"></picture></a></p>
2
+
1
3
  <h1 align="center">Dougu Sports <sub>道具</sub></h1>
2
4
 
3
5
  <p align="center"><strong>Sports emblems as SVG strings, with optional 3D turning.</strong><br>
@@ -643,7 +645,7 @@ The package's own words are the emblems' names, in English (`en`) and Japanese (
643
645
 
644
646
  ## Architecture
645
647
 
646
- The code is `src/emblems/`: the core (options, colours, gradients, the wrapper), the id lists, the registry, the renderers (the body of revolution, the flat object and icon, and the ball and gear engines) and one module per emblem, or per family of balls and gear, in a folder for its group; [docs/layout.md](./docs/layout.md) has the folders and how to add one. The package has no state and no clock: every function is a pure function of its arguments.
648
+ The code is `src/emblems/`: the core (options, colours, gradients, the wrapper), the id lists, the registry, the renderers (the body of revolution, the flat object and icon, and the ball and gear engines) and one module per emblem, or per family of balls and gear, in a folder for its group; [docs/layout.md](./docs/layout.md) has the folders and how to add one, and the [architecture guide](./docs/guides/architecture.md) follows one call through them. [Podiums, sprites and data addresses](./docs/guides/compose.md) is the guide to the composing functions. The package has no state and no clock: every function is a pure function of its arguments.
647
649
 
648
650
  ## The name
649
651
 
@@ -742,7 +744,7 @@ Bug reports and ideas go in the [issues](https://github.com/johnmorrisdotca/doug
742
744
 
743
745
  ## Changes
744
746
 
745
- See [CHANGELOG.md](./CHANGELOG.md). 0.30.0 makes the three practice baseballs' slots fewer, larger and rounder, like the real ball, and takes kazoku-ui 0.11 in the playground (a Centre button, a pan that cannot lose the emblem, exact grab on round balls). 0.29.0 adds `<dougu-emblem>` and the embed page, three practice baseballs with slots on both halves, and the documentation site, and puts the playground on the family's view controls. 0.28.0 adds the Jackie Robinson Rookie of the Year plaque (`trophy:jackie-robinson-award`), the Halas, Messier, O'Ree and NBA postseason trophies and redraws the WNBA, Lamar Hunt, Larry O'Brien and Bill Russell trophies (346 emblems); 0.27.0 adds the NHL Foundation Player Award (`trophy:foundation-player-award`, 335 emblems) and redraws the Kelly Cup and the Calder Cup closer to their photographs; 0.26.0 adds four league championship trophies, drawn from photographs of the real ones: the Calder Cup of the AHL, the Kelly Cup of the ECHL, the MLS Cup and the College Football Playoff trophy (`trophy:calder-cup`, `trophy:kelly-cup`, `trophy:mls-cup`, `trophy:cfp-trophy`, 334 emblems); 0.25.0 adds two of baseball's awards, drawn from photographs of the real ones: the Hank Aaron Award and the Relief Man Award (`trophy:hank-aaron-award`, `trophy:relief-man-award`, 330 emblems); 0.24.0 adds a baseball cap (`gear:baseball-cap`, 328 emblems); 0.23.0 adds the Bill Russell Finals MVP Trophy, drawn from a photograph of the real one (`trophy:bill-russell-trophy`, 327 emblems); 0.22.0 takes out the award cups and the cap of the unpublished 0.17.0 to 0.21.0, which did not match the real objects; 0.16.0 adds a slotted plastic practice baseball (`ball:plastic-baseball-slotted`, 326 emblems: [docs/slotted-ball.md](./docs/slotted-ball.md)); 0.15.0 gives the pickleballs real holes, cut through the shell and drawn with the inside of the ball behind them, so the page shows through where two holes line up ([docs/pickleball.md](./docs/pickleball.md)); 0.14.0 lets the auto-turn go either way (`direction: "clockwise"` or `"counterclockwise"`, `setDirection()`); 0.13.0 adds a pictogram for each of four combat sports, MMA (a cage), boxing (a glove), wrestling (two wrestlers on the mat) and professional wrestling (a ring with ropes), in the three styles (326 emblems); 0.12.0 adds forty-seven named trophies, each a close likeness measured on a photograph (321 emblems); 0.11.0 gives the era soccer balls neutral ids (the old ones stay as aliases), new looks and a second 1980s ball (274 emblems); 0.10.0 adds a standalone ribbon and the nets and posts of sepak takraw, netball and teqball from their rulebooks' sizes (273 emblems); 0.9.0 lets the baseball, the softball and the classic soccer balls be painted and printed: solid and two-tone colours, a logo of your own wrapped onto the ball, stamped text, an original cursive word and a small mark, all turning with the ball ([docs/custom-balls.md](./docs/custom-balls.md)); 0.8.0 makes `bindTurn` light: it takes an emblem object and then needs no registry, so a turnable cup is about 9.4 kB gzipped instead of about 81 kB, and an id loads the registry on demand; 0.7.3 turns the build, docs and picture scripts, the browser tests and the demo's source from JavaScript into TypeScript, with no change to the package; 0.7.2 makes every docs page single-language (a page in Japanese beside each page that had Japanese words in it, and a test that holds them apart), with no change to the pictures; 0.7.1 puts real countries (Canada, Japan) in the crest and puck examples in place of made-up teams, with no change to the code; 0.7.0 gives the national volleyballs layouts that tell them apart (Japan a crimson band, Poland white above and red below, the USA a navy field), strengthens the 2010-style grooved soccer ball, and adds six pictures of how the judo belt is tied, `gear:obi-step-1` to `gear:obi-step-6` (269 emblems: [docs/obi-steps.md](./docs/obi-steps.md)); 0.6.0 gives the judo suit and the karate suit their sleeves (a judogi has no short ones: they reach the wrist) and adds the judogi seen from behind with the IJF-style back number, a family name and a country code on a patch, with a `backnumber` option (269 emblems: [docs/judogi-back.md](./docs/judogi-back.md)); 0.5.1 redraws the judo suit, the belt and the football pictograms and adds the blue and folded suits and the belts of every grade (261 emblems: [docs/japanese-sports.md](./docs/japanese-sports.md)); 0.5.0 adds fifty balls: vintage leather soccer balls, era-style and shop-wall soccer balls, baseballs of other threads and volleyballs in national colours, with a `colors` option (244 emblems: [docs/vintage-balls.md](./docs/vintage-balls.md)); 0.4.0 adds eight printed pucks and a `face` option (194 emblems: [docs/pucks.md](./docs/pucks.md)); 0.3.0 adds nineteen soccer balls (26, 18, 14, 12 and 6 panels, winter orange and high-visibility yellow, futsal and beach soccer: 186 emblems); 0.2.1 draws every ball and implement to the rulebook's proportions; 0.2.0 is 167 emblems, every one drawn here, with the Japanese sports, engraving, a turn for every emblem and the compose helpers; 0.1.0 brought the first full set of 148; 0.0.1 was the first preview.
747
+ See [CHANGELOG.md](./CHANGELOG.md), which has every release from 0.0.1 with its date and what it added. 0.31.0 puts the playground's zoom on kazoku-ui 0.12's slider. 0.30.0 makes the three practice baseballs' slots fewer, larger and rounder, like the real ball, and takes kazoku-ui 0.11 in the playground. 0.29.0 adds `<dougu-emblem>` and the embed page, three practice baseballs with slots on both halves, and the documentation site. 0.28.0 adds the Jackie Robinson Rookie of the Year plaque (`trophy:jackie-robinson-award`) and the Halas, Messier, O'Ree and NBA postseason trophies (346 emblems).
746
748
 
747
749
  ## Credits
748
750
 
package/dist/version.d.ts CHANGED
@@ -6,4 +6,4 @@
6
6
  * console.log(VERSION);
7
7
  * ```
8
8
  */
9
- export declare const VERSION = "0.30.0";
9
+ export declare const VERSION = "0.31.0";
package/dist/version.js CHANGED
@@ -6,4 +6,4 @@
6
6
  * console.log(VERSION);
7
7
  * ```
8
8
  */
9
- export const VERSION = "0.30.0";
9
+ export const VERSION = "0.31.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johnmorrisdotca/dougu-sports",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Dougu Sports 道具 — Sports emblems as SVG for JavaScript: trophies, medals, crests, sport icons, and the ball and gear of every sport, in metal, line or flat colour, with optional 3D turning and a tag for any page. Light and dark, accessible, tree-shakeable. Zero dependencies.",
5
5
  "keywords": [
6
6
  "sports",
@@ -152,7 +152,7 @@
152
152
  "@angular/platform-browser": "^22.2.4",
153
153
  "@eslint/js": "^9.0.0",
154
154
  "@johnmorrisdotca/hata": "1.5.0",
155
- "@johnmorrisdotca/kazoku-ui": "^0.11.0",
155
+ "@johnmorrisdotca/kazoku-ui": "^0.12.0",
156
156
  "@playwright/test": "^1.63.0",
157
157
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
158
158
  "@types/node": "^24.0.0",