@zakkster/lite-tools 2.0.6 → 2.0.8

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/LiteEngine.d.ts CHANGED
@@ -100,7 +100,7 @@ export { Tween } from '@zakkster/lite-tween';
100
100
  export { SpringStandalone, SpringPool } from '@zakkster/lite-spring';
101
101
  export { Gradient } from '@zakkster/lite-gradient';
102
102
  export { seedNoise, simplex2, simplex3, fbm2, fbm3, curl2 } from '@zakkster/lite-noise';
103
- export { Timeline } from '@zakkster/lite-timeline';
103
+ export { createTimeline } from '@zakkster/lite-timeline';
104
104
 
105
105
  // Interaction + utility
106
106
  export { GestureTracker } from '@zakkster/lite-gesture';
@@ -110,7 +110,7 @@ export { Vec2 } from '@zakkster/lite-vec';
110
110
  export { Seek, Flee, Wander, Arrive, Pursuit, Evade, PathFollow, Separation, Alignment, Cohesion, Flock } from '@zakkster/lite-steer';
111
111
 
112
112
  // Game layer
113
- export { BmFont } from '@zakkster/lite-bmfont';
113
+ export { BitmapFont } from '@zakkster/lite-bmfont';
114
114
  export { InputPoller } from '@zakkster/lite-gamepad';
115
115
  export { CinematicCamera } from '@zakkster/lite-camera';
116
116
  export { SpatialHash } from '@zakkster/lite-spatial';
@@ -145,7 +145,7 @@ import type {Viewport} from 'lite-viewport';
145
145
  import type {FSM} from 'lite-states';
146
146
  import type {FPSMeter} from 'lite-fps-meter';
147
147
  import type {PointerTracker} from 'lite-pointer-tracker';
148
- import type {BmFont} from '@zakkster/lite-bmfont';
148
+ import type {BitmapFont} from '@zakkster/lite-bmfont';
149
149
  import type {CinematicCamera} from '@zakkster/lite-camera';
150
150
  import type {SpatialHash} from '@zakkster/lite-spatial';
151
151
  import type {EmberEngine} from '@zakkster/lite-embers';
@@ -155,7 +155,7 @@ import type {SnowEngine} from '@zakkster/lite-snow';
155
155
  import type {SparkEngine} from '@zakkster/lite-sparks';
156
156
  import type {FireworksEngine} from '@zakkster/lite-fireworks';
157
157
  import type {GestureTracker} from '@zakkster/lite-gesture';
158
- import type {Timeline} from '@zakkster/lite-timeline';
158
+ import type {createTimeline} from '@zakkster/lite-timeline';
159
159
 
160
160
  /** All recipes return at least a destroy() method. */
161
161
  interface Destroyable {
package/LiteEngine.js CHANGED
@@ -99,7 +99,7 @@ export {Tween} from '@zakkster/lite-tween';
99
99
  export {SpringStandalone, SpringPool} from '@zakkster/lite-spring';
100
100
  export {Gradient} from '@zakkster/lite-gradient';
101
101
  export {seedNoise, simplex2, simplex3, fbm2, fbm3, curl2} from '@zakkster/lite-noise';
102
- export {Timeline} from '@zakkster/lite-timeline';
102
+ export {createTimeline} from '@zakkster/lite-timeline';
103
103
 
104
104
  // Interaction + utility
105
105
  export {GestureTracker} from '@zakkster/lite-gesture';
@@ -111,7 +111,7 @@ export {
111
111
  }from '@zakkster/lite-steer';
112
112
 
113
113
  // Game layer
114
- export {BmFont} from '@zakkster/lite-bmfont';
114
+ export {BitmapFont} from '@zakkster/lite-bmfont';
115
115
  export {InputPoller} from '@zakkster/lite-gamepad';
116
116
  export {CinematicCamera} from '@zakkster/lite-camera';
117
117
  export {SpatialHash} from '@zakkster/lite-spatial';
@@ -164,13 +164,13 @@ import {Tween} from '@zakkster/lite-tween';
164
164
  import {SpringPool} from '@zakkster/lite-spring';
165
165
  import {Gradient} from '@zakkster/lite-gradient';
166
166
  import {seedNoise, fbm2} from '@zakkster/lite-noise';
167
- import {Timeline} from '@zakkster/lite-timeline';
167
+ import {createTimeline} from '@zakkster/lite-timeline';
168
168
  import {GestureTracker} from '@zakkster/lite-gesture';
169
169
  import {confetti as confettiFn} from '@zakkster/lite-confetti';
170
170
  import {liteId} from '@zakkster/lite-id';
171
171
  import {Vec2} from '@zakkster/lite-vec';
172
172
  import {Flock, Wander, Separation, Alignment, Cohesion} from '@zakkster/lite-steer';
173
- import {BmFont} from '@zakkster/lite-bmfont';
173
+ import {BitmapFont} from '@zakkster/lite-bmfont';
174
174
  import {InputPoller} from '@zakkster/lite-gamepad';
175
175
  import {CinematicCamera} from '@zakkster/lite-camera';
176
176
  import {SpatialHash} from '@zakkster/lite-spatial';
@@ -967,7 +967,7 @@ export const Recipes = {
967
967
  retroArcadeText(ctx, fontImage, fontData, options = {}) {
968
968
  const {seed = Date.now(), maxNumbers = 30} = options;
969
969
  const rng = new Random(seed);
970
- const font = new BmFont(fontImage, fontData);
970
+ const font = new BitmapFont(fontImage, fontData);
971
971
  const numbers = [];
972
972
  let score = 0;
973
973
 
@@ -1292,7 +1292,7 @@ export const Recipes = {
1292
1292
  currentIndex = clamp(idx, 0, slides.length - 1);
1293
1293
  const targetX = -currentIndex * slideWidth;
1294
1294
  const startX = offsetX;
1295
- const tl = new Timeline();
1295
+ const tl = createTimeline();
1296
1296
  tl.add({
1297
1297
  duration: 400, onUpdate(t) {
1298
1298
  offsetX = startX + (targetX - startX) * easeOutCubic(t);
@@ -1335,7 +1335,7 @@ export const Recipes = {
1335
1335
  timelineShowcase(elements, overlayCanvas, options = {}) {
1336
1336
  const {brandColor = {l: 0.6, c: 0.25, h: 280}} = options;
1337
1337
  const els = typeof elements === 'string' ? document.querySelectorAll(elements) : elements;
1338
- const tl = new Timeline({loop: false});
1338
+ const tl = createTimeline({loop: false});
1339
1339
 
1340
1340
  // Stagger each element in with eased opacity + translateY
1341
1341
  let offset = 0;
package/README.md CHANGED
@@ -418,7 +418,7 @@ hud.update(dt);
418
418
  console.log(hud.getScore()); // cumulative
419
419
  ```
420
420
 
421
- **Composes:** `BmFont` + `easeOutCubic` + `easeInOutCubic` + `liteId()` + `Random`
421
+ **Composes:** `BitmapFont` + `easeOutCubic` + `easeInOutCubic` + `liteId()` + `Random`
422
422
 
423
423
  </details>
424
424
 
@@ -558,7 +558,7 @@ carousel.goTo(2);
558
558
  console.log(carousel.getCurrentIndex()); // 2
559
559
  ```
560
560
 
561
- **Composes:** `GestureTracker` (pan + panEnd with velocity) + `Timeline` + `easeOutCubic`
561
+ **Composes:** `GestureTracker` (pan + panEnd with velocity) + `createTimeline` + `easeOutCubic`
562
562
 
563
563
  </details>
564
564
 
@@ -577,7 +577,7 @@ const show = Recipes.timelineShowcase('.feature-card', overlayCanvas, {
577
577
  show.play(); // stagger in → confetti burst
578
578
  ```
579
579
 
580
- **Composes:** `Timeline` + `easeOutBack` (overshoot entrance) + `confetti()` (fire-and-forget)
580
+ **Composes:** `createTimeline` + `easeOutBack` (overshoot entrance) + `confetti()` (fire-and-forget)
581
581
 
582
582
  </details>
583
583
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zakkster/lite-tools",
3
3
  "author": "Zahary Shinikchiev <shinikchiev@yahoo.com>",
4
- "version": "2.0.6",
4
+ "version": "2.0.8",
5
5
  "sideEffects": false,
6
6
  "description": "The standard library for high-performance web presentation — 45+ micro-libraries, 24 recipes, zero-GC, deterministic, tree-shakeable.",
7
7
  "type": "module",