pixi-effects 0.19.0 → 0.21.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 (69) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +6 -6
  3. package/ai/SKILL.md +3 -2
  4. package/ai/chat-template.html +3 -3
  5. package/ai/reference/cheatsheet.md +10 -9
  6. package/ai/reference/pitfalls.md +8 -0
  7. package/ai/reference/recipes.md +77 -0
  8. package/ai/template.html +5 -5
  9. package/ai/tools/check.mjs +16 -4
  10. package/dist/{Base-B4WbUJO2.d.ts → Base-CzfLGoDr.d.ts} +9 -1
  11. package/dist/{Base-i88XXaiP.d.cts → Base-wYJQ2g5Q.d.cts} +9 -1
  12. package/dist/Composition-2UFPSNVN.cjs +14 -0
  13. package/dist/{Composition-KYNPRWK3.cjs.map → Composition-2UFPSNVN.cjs.map} +1 -1
  14. package/dist/Composition-BVI236ZR.js +5 -0
  15. package/dist/{Composition-QBKEEJBV.js.map → Composition-BVI236ZR.js.map} +1 -1
  16. package/dist/Controller.cjs +2 -2
  17. package/dist/Controller.d.cts +2 -2
  18. package/dist/Controller.d.ts +2 -2
  19. package/dist/Controller.js +1 -1
  20. package/dist/{Movie-8IrqL3kO.d.ts → Movie-CgYwa5QG.d.ts} +10 -2
  21. package/dist/{Movie-CpmdNadg.d.cts → Movie-mtX9AkQ-.d.cts} +10 -2
  22. package/dist/Presenter.cjs +2 -2
  23. package/dist/Presenter.d.cts +2 -2
  24. package/dist/Presenter.d.ts +2 -2
  25. package/dist/Presenter.js +1 -1
  26. package/dist/{chunk-CTZRFSVU.cjs → chunk-6JJC37ZD.cjs} +326 -41
  27. package/dist/chunk-6JJC37ZD.cjs.map +1 -0
  28. package/dist/{chunk-VTBT6NNE.cjs → chunk-BPW42X7C.cjs} +385 -32
  29. package/dist/chunk-BPW42X7C.cjs.map +1 -0
  30. package/dist/{chunk-YRXTKOV5.js → chunk-DDIXIWXK.js} +366 -25
  31. package/dist/chunk-DDIXIWXK.js.map +1 -0
  32. package/dist/{chunk-DKGG7WD4.js → chunk-MNM56B3X.js} +6 -3
  33. package/dist/chunk-MNM56B3X.js.map +1 -0
  34. package/dist/{chunk-B3YB2TNY.js → chunk-NGYGFGDS.js} +304 -19
  35. package/dist/chunk-NGYGFGDS.js.map +1 -0
  36. package/dist/{chunk-UQBGW5DO.cjs → chunk-WTRKDIKH.cjs} +6 -3
  37. package/dist/chunk-WTRKDIKH.cjs.map +1 -0
  38. package/dist/index.cjs +215 -91
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.d.cts +4 -4
  41. package/dist/index.d.ts +4 -4
  42. package/dist/index.js +156 -32
  43. package/dist/index.js.map +1 -1
  44. package/dist/loader.css +1 -1
  45. package/dist/{music-4HDFULNR.js → music-CFEC7HKL.js} +3 -3
  46. package/dist/{music-4HDFULNR.js.map → music-CFEC7HKL.js.map} +1 -1
  47. package/dist/{music-3OF5C6X5.cjs → music-UAN7DXK4.cjs} +7 -7
  48. package/dist/{music-3OF5C6X5.cjs.map → music-UAN7DXK4.cjs.map} +1 -1
  49. package/dist/{sfx-MZJZXYY3.cjs → sfx-EX4PUBMV.cjs} +8 -8
  50. package/dist/{sfx-MZJZXYY3.cjs.map → sfx-EX4PUBMV.cjs.map} +1 -1
  51. package/dist/{sfx-S37DDC66.js → sfx-U3GM2MED.js} +3 -3
  52. package/dist/{sfx-S37DDC66.js.map → sfx-U3GM2MED.js.map} +1 -1
  53. package/dist/three.cjs +6 -6
  54. package/dist/three.d.cts +2 -2
  55. package/dist/three.d.ts +2 -2
  56. package/dist/three.js +2 -2
  57. package/dist/{types-bzLJ7aUx.d.ts → types-YmUaViL1.d.cts} +24 -0
  58. package/dist/{types-bzLJ7aUx.d.cts → types-YmUaViL1.d.ts} +24 -0
  59. package/docs/dsl.md +62 -2
  60. package/llms-full.txt +160 -13
  61. package/package.json +3 -1
  62. package/dist/Composition-KYNPRWK3.cjs +0 -14
  63. package/dist/Composition-QBKEEJBV.js +0 -5
  64. package/dist/chunk-B3YB2TNY.js.map +0 -1
  65. package/dist/chunk-CTZRFSVU.cjs.map +0 -1
  66. package/dist/chunk-DKGG7WD4.js.map +0 -1
  67. package/dist/chunk-UQBGW5DO.cjs.map +0 -1
  68. package/dist/chunk-VTBT6NNE.cjs.map +0 -1
  69. package/dist/chunk-YRXTKOV5.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { Application } from 'pixi.js';
2
2
  import { gsap } from 'gsap';
3
- import { U as Stop, e as AssetSpec, c as CompositionSpec } from './types-bzLJ7aUx.js';
3
+ import { U as Stop, e as AssetSpec, c as CompositionSpec } from './types-YmUaViL1.js';
4
4
 
5
5
  interface AudioInspectOptions {
6
6
  /** Width of each loudness window in seconds. Default 0.1. */
@@ -142,6 +142,8 @@ interface LayerInfo {
142
142
  /** Where it is drawn, in canvas pixels. `null` inside a `threeD` layer (it is rendered into that layer's texture). */
143
143
  bounds: Rect | null;
144
144
  onCanvas: 'full' | 'partial' | 'none' | null;
145
+ /** Depth of field (threeD layers only): the blur radius in canvas pixels this frame, from the layer's depth and the camera's focus; 0 = sharp. */
146
+ depthBlur?: number;
145
147
  }
146
148
  interface InspectReport {
147
149
  frame: number;
@@ -185,12 +187,18 @@ interface TimelineRow {
185
187
  partNames?: string[];
186
188
  /** A short text for the tooltip (a text layer's words, an asset name). */
187
189
  detail?: string;
190
+ /**
191
+ * Set on every row inside a time-remapped composition: where its time comes from (`stage ×0.5`, `stage time keyframes`). Such rows
192
+ * are in that composition's LOCAL seconds (start, end, keys), not the movie's.
193
+ */
194
+ local?: string;
188
195
  }
189
196
  interface TimelineTransition {
190
197
  from: string;
191
198
  to: string;
192
199
  start: number;
193
- end: number;
200
+ end: number; /** as `TimelineRow.local`: the window is in local seconds */
201
+ local?: string;
194
202
  }
195
203
  interface TimelineData {
196
204
  duration: number;
@@ -1,6 +1,6 @@
1
1
  import { Application } from 'pixi.js';
2
2
  import { gsap } from 'gsap';
3
- import { U as Stop, e as AssetSpec, c as CompositionSpec } from './types-bzLJ7aUx.cjs';
3
+ import { U as Stop, e as AssetSpec, c as CompositionSpec } from './types-YmUaViL1.cjs';
4
4
 
5
5
  interface AudioInspectOptions {
6
6
  /** Width of each loudness window in seconds. Default 0.1. */
@@ -142,6 +142,8 @@ interface LayerInfo {
142
142
  /** Where it is drawn, in canvas pixels. `null` inside a `threeD` layer (it is rendered into that layer's texture). */
143
143
  bounds: Rect | null;
144
144
  onCanvas: 'full' | 'partial' | 'none' | null;
145
+ /** Depth of field (threeD layers only): the blur radius in canvas pixels this frame, from the layer's depth and the camera's focus; 0 = sharp. */
146
+ depthBlur?: number;
145
147
  }
146
148
  interface InspectReport {
147
149
  frame: number;
@@ -185,12 +187,18 @@ interface TimelineRow {
185
187
  partNames?: string[];
186
188
  /** A short text for the tooltip (a text layer's words, an asset name). */
187
189
  detail?: string;
190
+ /**
191
+ * Set on every row inside a time-remapped composition: where its time comes from (`stage ×0.5`, `stage time keyframes`). Such rows
192
+ * are in that composition's LOCAL seconds (start, end, keys), not the movie's.
193
+ */
194
+ local?: string;
188
195
  }
189
196
  interface TimelineTransition {
190
197
  from: string;
191
198
  to: string;
192
199
  start: number;
193
- end: number;
200
+ end: number; /** as `TimelineRow.local`: the window is in local seconds */
201
+ local?: string;
194
202
  }
195
203
  interface TimelineData {
196
204
  duration: number;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUQBGW5DO_cjs = require('./chunk-UQBGW5DO.cjs');
3
+ var chunkWTRKDIKH_cjs = require('./chunk-WTRKDIKH.cjs');
4
4
 
5
5
  // src/Presenter.ts
6
6
  var OPTION_KEYS = ["canvas", "keyboard", "clickToAdvance", "swipe", "indicator", "autoAdvance", "loop", "accent", "onExit"];
@@ -147,7 +147,7 @@ var Presenter = class {
147
147
  };
148
148
  constructor(movie, options) {
149
149
  if (!options || !options.canvas) throw new Error("Presenter requires options.canvas (HTMLCanvasElement).");
150
- chunkUQBGW5DO_cjs.warnUnknownOptions("Presenter", options, OPTION_KEYS);
150
+ chunkWTRKDIKH_cjs.warnUnknownOptions("Presenter", options, OPTION_KEYS);
151
151
  this.movie = movie;
152
152
  this.options = {
153
153
  canvas: options.canvas,
@@ -1,7 +1,7 @@
1
- import { h as Movie } from './Movie-CpmdNadg.cjs';
1
+ import { h as Movie } from './Movie-mtX9AkQ-.cjs';
2
2
  import 'pixi.js';
3
3
  import 'gsap';
4
- import './types-bzLJ7aUx.cjs';
4
+ import './types-YmUaViL1.cjs';
5
5
 
6
6
  interface PresenterOptions {
7
7
  canvas: HTMLCanvasElement;
@@ -1,7 +1,7 @@
1
- import { h as Movie } from './Movie-8IrqL3kO.js';
1
+ import { h as Movie } from './Movie-CgYwa5QG.js';
2
2
  import 'pixi.js';
3
3
  import 'gsap';
4
- import './types-bzLJ7aUx.js';
4
+ import './types-YmUaViL1.js';
5
5
 
6
6
  interface PresenterOptions {
7
7
  canvas: HTMLCanvasElement;
package/dist/Presenter.js CHANGED
@@ -1,4 +1,4 @@
1
- import { warnUnknownOptions } from './chunk-DKGG7WD4.js';
1
+ import { warnUnknownOptions } from './chunk-MNM56B3X.js';
2
2
 
3
3
  // src/Presenter.ts
4
4
  var OPTION_KEYS = ["canvas", "keyboard", "clickToAdvance", "swipe", "indicator", "autoAdvance", "loop", "accent", "onExit"];