pixi-effects 0.26.3 → 0.27.1

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +12 -10
  3. package/ai/CHAT.md +1 -1
  4. package/ai/chat-template.html +4 -6
  5. package/dist/{Base-CpdDs4HT.d.ts → Base-CKGl6jCo.d.ts} +2 -4
  6. package/dist/{Base-TbBhHPrG.d.cts → Base-DjhdL8B1.d.cts} +2 -4
  7. package/dist/Composition-BJVY5HP7.js +7 -0
  8. package/dist/{Composition-3O7L2VL5.js.map → Composition-BJVY5HP7.js.map} +1 -1
  9. package/dist/Composition-YW2G6EXL.cjs +16 -0
  10. package/dist/{Composition-EE3KEE2L.cjs.map → Composition-YW2G6EXL.cjs.map} +1 -1
  11. package/dist/Controller.d.cts +2 -3
  12. package/dist/Controller.d.ts +2 -3
  13. package/dist/{Movie-BkP82KXS.d.ts → Movie-CbYwTs6U.d.cts} +2 -3
  14. package/dist/{Movie-BWLLWRRe.d.cts → Movie-ILKq2fw_.d.ts} +2 -3
  15. package/dist/Presenter.d.cts +2 -3
  16. package/dist/Presenter.d.ts +2 -3
  17. package/dist/{blendModes-YV43K6E7.cjs → blendModes-HDOP6R7T.cjs} +5 -5
  18. package/dist/{blendModes-YV43K6E7.cjs.map → blendModes-HDOP6R7T.cjs.map} +1 -1
  19. package/dist/{blendModes-G3NOAU3T.js → blendModes-PAVTW3BO.js} +4 -4
  20. package/dist/{blendModes-G3NOAU3T.js.map → blendModes-PAVTW3BO.js.map} +1 -1
  21. package/dist/{chunk-TLYTYBWX.js → chunk-45QKLD6M.js} +9 -11
  22. package/dist/chunk-45QKLD6M.js.map +1 -0
  23. package/dist/{chunk-WMMZDPWK.js → chunk-AR3HVHKF.js} +7 -11
  24. package/dist/chunk-AR3HVHKF.js.map +1 -0
  25. package/dist/{chunk-A225HYSY.cjs → chunk-ETKTRQL2.cjs} +970 -258
  26. package/dist/chunk-ETKTRQL2.cjs.map +1 -0
  27. package/dist/{chunk-3DLYAPK7.cjs → chunk-P4GY3Z4G.cjs} +5 -5
  28. package/dist/{chunk-3DLYAPK7.cjs.map → chunk-P4GY3Z4G.cjs.map} +1 -1
  29. package/dist/{chunk-AXZUKNXF.js → chunk-TYWFKCPY.js} +4 -4
  30. package/dist/{chunk-AXZUKNXF.js.map → chunk-TYWFKCPY.js.map} +1 -1
  31. package/dist/{chunk-IIDBEYQH.cjs → chunk-VH5R473P.cjs} +91 -95
  32. package/dist/chunk-VH5R473P.cjs.map +1 -0
  33. package/dist/{chunk-FXAHNPBP.js → chunk-X42BGR6P.js} +950 -241
  34. package/dist/chunk-X42BGR6P.js.map +1 -0
  35. package/dist/{chunk-ECA2WNRX.cjs → chunk-ZMAD3KJU.cjs} +9 -11
  36. package/dist/chunk-ZMAD3KJU.cjs.map +1 -0
  37. package/dist/index.cjs +102 -105
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +16 -14
  40. package/dist/index.d.ts +16 -14
  41. package/dist/index.js +48 -33
  42. package/dist/index.js.map +1 -1
  43. package/dist/loader.css +1 -1
  44. package/dist/{music-3O5MDQXY.js → music-JVRNXHQ5.js} +34 -7
  45. package/dist/music-JVRNXHQ5.js.map +1 -0
  46. package/dist/{music-4O367SPR.cjs → music-YPUZTWTN.cjs} +34 -6
  47. package/dist/music-YPUZTWTN.cjs.map +1 -0
  48. package/dist/three.cjs +6 -6
  49. package/dist/three.d.cts +2 -3
  50. package/dist/three.d.ts +2 -3
  51. package/dist/three.js +2 -2
  52. package/dist/{types-DSGwN5w1.d.cts → types-BNVsBBZf.d.cts} +130 -3
  53. package/dist/{types-DSGwN5w1.d.ts → types-BNVsBBZf.d.ts} +130 -3
  54. package/docs/api.md +5 -1
  55. package/docs/dsl.md +13 -15
  56. package/llms-full.txt +24 -22
  57. package/llms.txt +1 -1
  58. package/package.json +4 -5
  59. package/skills/pixi-effects/SKILL.md +1 -1
  60. package/skills/pixi-effects/reference/cheatsheet.md +1 -1
  61. package/skills/pixi-effects/reference/pitfalls.md +3 -3
  62. package/skills/pixi-effects/reference/recipes.md +1 -1
  63. package/skills/pixi-effects/template.html +6 -8
  64. package/dist/Composition-3O7L2VL5.js +0 -7
  65. package/dist/Composition-EE3KEE2L.cjs +0 -16
  66. package/dist/chunk-A225HYSY.cjs.map +0 -1
  67. package/dist/chunk-ECA2WNRX.cjs.map +0 -1
  68. package/dist/chunk-FXAHNPBP.js.map +0 -1
  69. package/dist/chunk-IIDBEYQH.cjs.map +0 -1
  70. package/dist/chunk-TLYTYBWX.js.map +0 -1
  71. package/dist/chunk-WMMZDPWK.js.map +0 -1
  72. package/dist/music-3O5MDQXY.js.map +0 -1
  73. package/dist/music-4O367SPR.cjs.map +0 -1
@@ -95,7 +95,7 @@ return [
95
95
 
96
96
  ## Rewind and play again: a composition whose own time you control
97
97
 
98
- Put the part you want to rewind, slow down or freeze **in a composition**, then give that composition `speed` (one straight speed: `0.5` slow motion, `-1` backward) or `time` keyframes (any curve of its own time: play, hold, rewind, play slowly). The layers inside write `at` / `duration` / `keyframes` in the composition's own seconds; the composition's own `at` / `duration` stay in the outer time. A sound or `sfx` inside follows the clock (backward and lower when it rewinds, like a tape). `cubic-bezier(.2, .8, .2, 1)` is front-loaded, not slow motion: half of the replay passes in the first 13 % of its time and 99 % by 74 %, so the replay opens quickly and what sits at the END of the content (the ring, the settle) gets the long glide. GSAP's `power2` is a cubic: `power2.in` has done only 12.5 % at half time, so the dismantling bunches up in the last third of the rewind.
98
+ Put the part you want to rewind, slow down or freeze **in a composition**, then give that composition `speed` (one straight speed: `0.5` slow motion, `-1` backward) or `time` keyframes (any curve of its own time: play, hold, rewind, play slowly). The layers inside write `at` / `duration` / `keyframes` in the composition's own seconds; the composition's own `at` / `duration` stay in the outer time. A sound or `sfx` inside follows the clock (backward and lower when it rewinds, like a tape). `cubic-bezier(.2, .8, .2, 1)` is front-loaded, not slow motion: half of the replay passes in the first 13 % of its time and 99 % by 74 %, so the replay opens quickly and what sits at the END of the content (the ring, the settle) gets the long glide. `power2` is a cubic: `power2.in` has done only 12.5 % at half time, so the dismantling bunches up in the last third of the rewind.
99
99
 
100
100
  ```js
101
101
  // @recipe rewind-and-replay
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>pixi-effects video</title>
7
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pixi-effects@0.26.3/dist/loader.css" /> <!-- the loader: HTML + CSS only, so it is on screen at once and keeps moving while the page builds the video -->
7
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/loader.css" /> <!-- the loader: HTML + CSS only, so it is on screen at once and keeps moving while the page builds the video -->
8
8
  <style>
9
9
  body { background: #0d1220; margin: 0; padding: 16px; }
10
10
  .stage { position: relative; width: min(960px, 100%); } /* the player and the loader both sit inside this box */
@@ -36,19 +36,17 @@
36
36
  {
37
37
  "imports": {
38
38
  "pixi.js": "https://esm.sh/pixi.js@8.22.0?bundle-deps",
39
- "gsap": "https://esm.sh/gsap@3.12.5",
40
- "gsap/PixiPlugin": "https://esm.sh/gsap@3.12.5/PixiPlugin",
41
39
  "mediabunny": "https://esm.sh/mediabunny",
42
- "pixi-effects": "https://cdn.jsdelivr.net/npm/pixi-effects@0.26.3/dist/index.js",
43
- "pixi-effects/controller": "https://cdn.jsdelivr.net/npm/pixi-effects@0.26.3/dist/Controller.js",
44
- "pixi-effects/presenter": "https://cdn.jsdelivr.net/npm/pixi-effects@0.26.3/dist/Presenter.js",
45
- "pixi-effects/three": "https://cdn.jsdelivr.net/npm/pixi-effects@0.26.3/dist/three.js",
40
+ "pixi-effects": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/index.js",
41
+ "pixi-effects/controller": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/Controller.js",
42
+ "pixi-effects/presenter": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/Presenter.js",
43
+ "pixi-effects/three": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/three.js",
46
44
  "pixi-filters": "https://esm.sh/pixi-filters@6.1.5?external=pixi.js",
47
45
  "three": "https://esm.sh/three@0.178.0"
48
46
  }
49
47
  }
50
48
  </script>
51
- <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/pixi-effects@0.26.3/dist/index.js" /> <!-- after the import map: the library downloads while the page is parsed -->
49
+ <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/index.js" /> <!-- after the import map: the library downloads while the page is parsed -->
52
50
 
53
51
  <script type="module">
54
52
  import { Movie, kenBurns, withFade } from 'pixi-effects';
@@ -1,7 +0,0 @@
1
- export { CompositionSequence } from './chunk-WMMZDPWK.js';
2
- import './chunk-FXAHNPBP.js';
3
- import './chunk-AXZUKNXF.js';
4
- import './chunk-TLYTYBWX.js';
5
- import './chunk-BXOCEZ4U.js';
6
- //# sourceMappingURL=Composition-3O7L2VL5.js.map
7
- //# sourceMappingURL=Composition-3O7L2VL5.js.map
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkIIDBEYQH_cjs = require('./chunk-IIDBEYQH.cjs');
4
- require('./chunk-A225HYSY.cjs');
5
- require('./chunk-3DLYAPK7.cjs');
6
- require('./chunk-ECA2WNRX.cjs');
7
- require('./chunk-TWZNOUM7.cjs');
8
-
9
-
10
-
11
- Object.defineProperty(exports, "CompositionSequence", {
12
- enumerable: true,
13
- get: function () { return chunkIIDBEYQH_cjs.CompositionSequence; }
14
- });
15
- //# sourceMappingURL=Composition-EE3KEE2L.cjs.map
16
- //# sourceMappingURL=Composition-EE3KEE2L.cjs.map