@johnmorrisdotca/dougu-sports 0.30.0 → 0.32.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 +21 -0
- package/README.md +4 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,27 @@ All notable changes to this project are written here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.32.0] - 2026-11-03
|
|
10
|
+
|
|
11
|
+
- Demo: the bar's Auto-turn speeds are the family's speed buttons, 0.5×, 1× and 2× (`<kazoku-speed-buttons>`, kazoku-ui 0.14, `^0.14.0`), in place of Slow, Medium and Fast; the choice is kept in the address as `pace` (the key was `speed`). The trophy case, whose four Auto-turn buttons had no speed to choose, has the same three buttons above it (`?casepace=2`), which set each emblem's speed with `update`. The package is unchanged. Browser tests hold the bar's three buttons and the speed each sets, and that 2× in the case for half the time is the same turn as 1×.
|
|
12
|
+
|
|
13
|
+
- Test only: the family's shared drag check (`e2e/ground.mjs`) now also runs on a textured emblem at a desk's size with the arrow keys and Auto-turn, beside the drag and the exact grab it already ran: the ground follows the hand, Arrow Right and Arrow Up agree, and Auto-turn swings the front to the viewer's right.
|
|
14
|
+
|
|
15
|
+
## [0.31.0] - 2026-11-03
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **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.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- 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.
|
|
24
|
+
|
|
25
|
+
### Also in this release
|
|
26
|
+
|
|
27
|
+
- 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.
|
|
28
|
+
- 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`.
|
|
29
|
+
|
|
9
30
|
## [0.30.0] - 2026-11-03
|
|
10
31
|
|
|
11
32
|
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)
|
|
747
|
+
See [CHANGELOG.md](./CHANGELOG.md), which has every release from 0.0.1 with its date and what it added. 0.32.0 puts the family's speed buttons (0.5×, 1×, 2×) on the playground's bar and over the trophy case, on kazoku-ui 0.14. 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
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/dougu-sports",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.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.
|
|
155
|
+
"@johnmorrisdotca/kazoku-ui": "^0.14.0",
|
|
156
156
|
"@playwright/test": "^1.63.0",
|
|
157
157
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
158
158
|
"@types/node": "^24.0.0",
|