pixi-effects 0.48.1 → 0.49.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +51 -7
  3. package/ai/chat-template.html +8 -4
  4. package/ai/tools/check.mjs +6 -6
  5. package/dist/3d.cjs +963 -0
  6. package/dist/3d.cjs.map +1 -0
  7. package/dist/3d.d.cts +303 -0
  8. package/dist/3d.d.ts +303 -0
  9. package/dist/3d.js +956 -0
  10. package/dist/3d.js.map +1 -0
  11. package/dist/Canvas-BfZkAFJm.d.cts +12 -0
  12. package/dist/Canvas-BfZkAFJm.d.ts +12 -0
  13. package/dist/Composition-464AWDV6.cjs +16 -0
  14. package/dist/{Composition-ZZEOEETS.cjs.map → Composition-464AWDV6.cjs.map} +1 -1
  15. package/dist/Composition-5U63LMPX.js +7 -0
  16. package/dist/{Composition-BOLWGT2R.js.map → Composition-5U63LMPX.js.map} +1 -1
  17. package/dist/Controller.d.cts +2 -2
  18. package/dist/Controller.d.ts +2 -2
  19. package/dist/{Movie--qSYKgAQ.d.ts → Movie-6EWOz6Yw.d.ts} +21 -5
  20. package/dist/{Movie-svZQF-9Z.d.cts → Movie-BxB7bauG.d.cts} +21 -5
  21. package/dist/{Spans-MWYFG7RI.cjs → Spans-DUR2W5EH.cjs} +11 -11
  22. package/dist/{Spans-MWYFG7RI.cjs.map → Spans-DUR2W5EH.cjs.map} +1 -1
  23. package/dist/{Spans-PGXRMD6J.js → Spans-W5VJRMGC.js} +6 -6
  24. package/dist/{Spans-PGXRMD6J.js.map → Spans-W5VJRMGC.js.map} +1 -1
  25. package/dist/{blendModes-V5XHC7U4.cjs → blendModes-NC76DNVX.cjs} +5 -5
  26. package/dist/{blendModes-V5XHC7U4.cjs.map → blendModes-NC76DNVX.cjs.map} +1 -1
  27. package/dist/{blendModes-535EMYGK.js → blendModes-ZOBLPSR3.js} +4 -4
  28. package/dist/{blendModes-535EMYGK.js.map → blendModes-ZOBLPSR3.js.map} +1 -1
  29. package/dist/{chunk-V3VBHSK6.cjs → chunk-33USHRV5.cjs} +94 -104
  30. package/dist/chunk-33USHRV5.cjs.map +1 -0
  31. package/dist/{chunk-WYR2AU4W.cjs → chunk-5YNME6AH.cjs} +5 -5
  32. package/dist/{chunk-WYR2AU4W.cjs.map → chunk-5YNME6AH.cjs.map} +1 -1
  33. package/dist/{chunk-NGJXVJB7.cjs → chunk-ABWRISRK.cjs} +3 -2
  34. package/dist/chunk-ABWRISRK.cjs.map +1 -0
  35. package/dist/{chunk-M2LFQY2E.cjs → chunk-BSFWVTSR.cjs} +93 -93
  36. package/dist/chunk-BSFWVTSR.cjs.map +1 -0
  37. package/dist/{chunk-L3MEZZAV.js → chunk-DOGY3EAW.js} +25 -17
  38. package/dist/chunk-DOGY3EAW.js.map +1 -0
  39. package/dist/{chunk-L3XC464G.cjs → chunk-GUDLIAIG.cjs} +89 -66
  40. package/dist/chunk-GUDLIAIG.cjs.map +1 -0
  41. package/dist/{chunk-BFRWSV3R.js → chunk-H363KMJR.js} +3 -3
  42. package/dist/chunk-H363KMJR.js.map +1 -0
  43. package/dist/{chunk-JBDBICS2.js → chunk-MXACRKAN.js} +4 -4
  44. package/dist/{chunk-JBDBICS2.js.map → chunk-MXACRKAN.js.map} +1 -1
  45. package/dist/{chunk-IY5YTIK3.js → chunk-PBMDZT2T.js} +47 -24
  46. package/dist/chunk-PBMDZT2T.js.map +1 -0
  47. package/dist/{chunk-AJWUCFGM.js → chunk-USUUAYTE.js} +6 -6
  48. package/dist/chunk-USUUAYTE.js.map +1 -0
  49. package/dist/index.cjs +35 -35
  50. package/dist/index.d.cts +3 -3
  51. package/dist/index.d.ts +3 -3
  52. package/dist/index.js +5 -5
  53. package/dist/loader.css +1 -1
  54. package/dist/{music-P4JRT73P.js → music-ATX22VAT.js} +3 -3
  55. package/dist/{music-P4JRT73P.js.map → music-ATX22VAT.js.map} +1 -1
  56. package/dist/{music-XQEPBIDT.cjs → music-OFVM3PYH.cjs} +3 -3
  57. package/dist/{music-XQEPBIDT.cjs.map → music-OFVM3PYH.cjs.map} +1 -1
  58. package/dist/present.cjs +5 -5
  59. package/dist/present.d.cts +2 -2
  60. package/dist/present.d.ts +2 -2
  61. package/dist/present.js +5 -5
  62. package/dist/three.cjs +7 -8
  63. package/dist/three.cjs.map +1 -1
  64. package/dist/three.d.cts +2 -12
  65. package/dist/three.d.ts +2 -12
  66. package/dist/three.js +2 -3
  67. package/dist/three.js.map +1 -1
  68. package/dist/{types-CTSrPvY3.d.cts → types-kt7DQKfO.d.cts} +1 -1
  69. package/dist/{types-CTSrPvY3.d.ts → types-kt7DQKfO.d.ts} +1 -1
  70. package/docs/api.md +41 -1
  71. package/docs/dsl.md +81 -1
  72. package/llms-full.txt +218 -5
  73. package/package.json +19 -3
  74. package/skills/pixi-effects/SKILL.md +3 -2
  75. package/skills/pixi-effects/reference/cheatsheet.md +2 -0
  76. package/skills/pixi-effects/reference/pitfalls.md +14 -0
  77. package/skills/pixi-effects/reference/recipes.md +77 -1
  78. package/skills/pixi-effects/template.html +13 -8
  79. package/dist/Composition-BOLWGT2R.js +0 -7
  80. package/dist/Composition-ZZEOEETS.cjs +0 -16
  81. package/dist/chunk-AJWUCFGM.js.map +0 -1
  82. package/dist/chunk-BFRWSV3R.js.map +0 -1
  83. package/dist/chunk-IY5YTIK3.js.map +0 -1
  84. package/dist/chunk-L3MEZZAV.js.map +0 -1
  85. package/dist/chunk-L3XC464G.cjs.map +0 -1
  86. package/dist/chunk-M2LFQY2E.cjs.map +0 -1
  87. package/dist/chunk-NGJXVJB7.cjs.map +0 -1
  88. package/dist/chunk-V3VBHSK6.cjs.map +0 -1
package/dist/three.d.cts CHANGED
@@ -1,7 +1,8 @@
1
- import { b as Sequence, c as SpaceNow, d as SequenceCommon, e as PropValue, f as PathRouters, S as SequenceSpec } from './types-CTSrPvY3.cjs';
1
+ import { e as Sequence, b as SpaceNow, c as SequenceCommon, d as PropValue, f as PathRouters, S as SequenceSpec } from './types-kt7DQKfO.cjs';
2
2
  import { Renderer } from 'pixi.js';
3
3
  import { Material, Texture, Scene, Camera, WebGLRenderer, Object3D, Group, Vector3, PerspectiveCamera } from 'three';
4
4
  import { WebGPURenderer } from 'three/webgpu';
5
+ import { C as CanvasCheck } from './Canvas-BfZkAFJm.cjs';
5
6
 
6
7
  /** The page-level default renderer of the three layers: `registerThree({ renderer })` sets it, a layer's own `renderer` wins. */
7
8
  type ThreeRendererKind = 'webgl' | 'webgpu';
@@ -145,17 +146,6 @@ interface ThreeSequenceSpec extends SequenceCommon {
145
146
  dispose?: (ctx: ThreeContext) => void;
146
147
  }
147
148
 
148
- /** What the determinism check found: the moments whose two pictures differ (channel values that differ, the largest difference out of 255; -1 when only a hash was compared) and the usual time of one draw. */
149
- interface CanvasCheck {
150
- differs: Array<{
151
- t: number;
152
- pixels: number;
153
- maxDiff: number;
154
- }>;
155
- drawMs: number; /** Moments where `draw` threw (or the layer has no working draw): the picture there is a checkerboard, which is not a picture that is the same twice. */
156
- threw: number[];
157
- }
158
-
159
149
  declare class ThreeSequence extends Sequence {
160
150
  private _renderer;
161
151
  /** The renderer this layer draws with (`'webgl'` or `'webgpu'`), once it is built. */
package/dist/three.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { b as Sequence, c as SpaceNow, d as SequenceCommon, e as PropValue, f as PathRouters, S as SequenceSpec } from './types-CTSrPvY3.js';
1
+ import { e as Sequence, b as SpaceNow, c as SequenceCommon, d as PropValue, f as PathRouters, S as SequenceSpec } from './types-kt7DQKfO.js';
2
2
  import { Renderer } from 'pixi.js';
3
3
  import { Material, Texture, Scene, Camera, WebGLRenderer, Object3D, Group, Vector3, PerspectiveCamera } from 'three';
4
4
  import { WebGPURenderer } from 'three/webgpu';
5
+ import { C as CanvasCheck } from './Canvas-BfZkAFJm.js';
5
6
 
6
7
  /** The page-level default renderer of the three layers: `registerThree({ renderer })` sets it, a layer's own `renderer` wins. */
7
8
  type ThreeRendererKind = 'webgl' | 'webgpu';
@@ -145,17 +146,6 @@ interface ThreeSequenceSpec extends SequenceCommon {
145
146
  dispose?: (ctx: ThreeContext) => void;
146
147
  }
147
148
 
148
- /** What the determinism check found: the moments whose two pictures differ (channel values that differ, the largest difference out of 255; -1 when only a hash was compared) and the usual time of one draw. */
149
- interface CanvasCheck {
150
- differs: Array<{
151
- t: number;
152
- pixels: number;
153
- maxDiff: number;
154
- }>;
155
- drawMs: number; /** Moments where `draw` threw (or the layer has no working draw): the picture there is a checkerboard, which is not a picture that is the same twice. */
156
- threw: number[];
157
- }
158
-
159
149
  declare class ThreeSequence extends Sequence {
160
150
  private _renderer;
161
151
  /** The renderer this layer draws with (`'webgl'` or `'webgpu'`), once it is built. */
package/dist/three.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Sequence, buildScope, evaluateExpr, registerSequenceType } from './chunk-L3MEZZAV.js';
2
- import './chunk-BFRWSV3R.js';
1
+ import { Sequence, NOT_PURE, buildScope, evaluateExpr, registerSequenceType } from './chunk-DOGY3EAW.js';
2
+ import './chunk-H363KMJR.js';
3
3
  import './chunk-WGRWFQOB.js';
4
4
  import { Texture, Sprite, TextureSource, RenderTexture, Matrix } from 'pixi.js';
5
5
  import { WebGLRenderer, Scene, PerspectiveCamera, Raycaster, Vector2, Vector3, Quaternion, Plane, Box3, RenderTarget, Group, AnimationMixer, LoopOnce, LoopRepeat, AmbientLight, DirectionalLight, SpotLight, PointLight, Color, SRGBColorSpace, Fog } from 'three';
@@ -167,7 +167,6 @@ function releaseThree(kind) {
167
167
  }
168
168
 
169
169
  // src/three/ThreeSequence.ts
170
- var NOT_PURE = /\bMath\s*\.\s*random\s*\(|\bDate\s*\.\s*now\s*\(|\bperformance\s*\.\s*now\s*\(|\bnew\s+Date\s*\(/;
171
170
  var ThreeSequence = class extends Sequence {
172
171
  _renderer = null;
173
172
  /** The renderer this layer draws with (`'webgl'` or `'webgpu'`), once it is built. */