@norbert_bodziony/bloub 0.2.0 → 0.3.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/README.md CHANGED
@@ -87,8 +87,8 @@ the DOM-less test suite possible.
87
87
  ## Using the package
88
88
 
89
89
  ```bash
90
- npm install @norbert_bodziony/bloub solid-js
91
- # or: bun add @norbert_bodziony/bloub solid-js
90
+ npm install @norbert_bodziony/bloub solid-js@2.0.0-rc.0 @solidjs/web@2.0.0-rc.0
91
+ # or: bun add @norbert_bodziony/bloub solid-js@2.0.0-rc.0 @solidjs/web@2.0.0-rc.0
92
92
  ```
93
93
 
94
94
  ```tsx
@@ -114,13 +114,21 @@ exports a ref with `svg`, `seek(index, offset?)`, and `renderAt(seconds)`.
114
114
  The package contains the complete avatar engine, all measured state transitions,
115
115
  shapes, colours, expressions, cycles, and gaze helpers. It does not contain the
116
116
  editor, Tailwind, export dialogs, video encoder, or application translations.
117
- `solid-js` stays a peer dependency, so an application keeps one Solid runtime.
117
+ `solid-js` and `@solidjs/web` stay peer dependencies, so an application keeps one
118
+ Solid runtime. The package supports SolidJS 2, starting with `2.0.0-rc.0`.
118
119
 
119
120
  Props: `size`, `shape`, `color`, `expression`, `paper`, `frozenAt`, `cycle`,
120
- `follow`, `gaze`, `ariaLabel`, `block`, `state`, `playing`, and `elapsed`. Each
121
- playback value has a matching `on...Change` callback. See
121
+ `follow`, `gaze`, `ariaLabel`, `block`, `state`, `playing`, `elapsed`, `fps`, and
122
+ `autoPause`. Each playback value has a matching `on...Change` callback. See
122
123
  [BloubBot.tsx](src/components/BloubBot.tsx) for the details.
123
124
 
125
+ An animated bot costs a style recalculation, a layout and a paint per drawn
126
+ frame, so its price is set by how often it draws and by how many of them are on
127
+ screen. `fps` caps the rate — a 40 px avatar in a list is indistinguishable at 30
128
+ from the screen's 120 — and `autoPause`, on by default, stops the loop when the
129
+ bot is off screen or its tab is in the background. Neither changes what the bot
130
+ looks like while someone is watching it.
131
+
124
132
  ## Changes
125
133
 
126
134
  [CHANGELOG.md](CHANGELOG.md), one entry per release — which is how you tell whether the