pixi-effects 0.48.1 → 0.48.2

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 (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -5
  3. package/ai/chat-template.html +3 -3
  4. package/dist/Composition-5FKV2IBP.js +7 -0
  5. package/dist/{Composition-BOLWGT2R.js.map → Composition-5FKV2IBP.js.map} +1 -1
  6. package/dist/Composition-TJ5D7Z63.cjs +16 -0
  7. package/dist/{Composition-ZZEOEETS.cjs.map → Composition-TJ5D7Z63.cjs.map} +1 -1
  8. package/dist/{Spans-MWYFG7RI.cjs → Spans-5ENZ3XGS.cjs} +9 -9
  9. package/dist/{Spans-MWYFG7RI.cjs.map → Spans-5ENZ3XGS.cjs.map} +1 -1
  10. package/dist/{Spans-PGXRMD6J.js → Spans-6A3VLHRH.js} +4 -4
  11. package/dist/{Spans-PGXRMD6J.js.map → Spans-6A3VLHRH.js.map} +1 -1
  12. package/dist/{chunk-L3XC464G.cjs → chunk-45ALIMAF.cjs} +76 -56
  13. package/dist/chunk-45ALIMAF.cjs.map +1 -0
  14. package/dist/{chunk-AJWUCFGM.js → chunk-6D4W2KZQ.js} +3 -3
  15. package/dist/{chunk-AJWUCFGM.js.map → chunk-6D4W2KZQ.js.map} +1 -1
  16. package/dist/{chunk-M2LFQY2E.cjs → chunk-CCPJD76D.cjs} +63 -63
  17. package/dist/{chunk-M2LFQY2E.cjs.map → chunk-CCPJD76D.cjs.map} +1 -1
  18. package/dist/{chunk-L3MEZZAV.js → chunk-IVKI6CPH.js} +10 -12
  19. package/dist/chunk-IVKI6CPH.js.map +1 -0
  20. package/dist/{chunk-IY5YTIK3.js → chunk-RCKLUCB7.js} +36 -16
  21. package/dist/chunk-RCKLUCB7.js.map +1 -0
  22. package/dist/{chunk-V3VBHSK6.cjs → chunk-Z3DM4ETD.cjs} +55 -76
  23. package/dist/chunk-Z3DM4ETD.cjs.map +1 -0
  24. package/dist/index.cjs +33 -33
  25. package/dist/index.js +3 -3
  26. package/dist/loader.css +1 -1
  27. package/dist/present.cjs +3 -3
  28. package/dist/present.js +3 -3
  29. package/dist/three.cjs +5 -5
  30. package/dist/three.js +1 -1
  31. package/llms-full.txt +1 -1
  32. package/package.json +1 -1
  33. package/skills/pixi-effects/SKILL.md +1 -1
  34. package/skills/pixi-effects/template.html +6 -6
  35. package/dist/Composition-BOLWGT2R.js +0 -7
  36. package/dist/Composition-ZZEOEETS.cjs +0 -16
  37. package/dist/chunk-IY5YTIK3.js.map +0 -1
  38. package/dist/chunk-L3MEZZAV.js.map +0 -1
  39. package/dist/chunk-L3XC464G.cjs.map +0 -1
  40. package/dist/chunk-V3VBHSK6.cjs.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import { describeLayer, collectPropKeys } from './chunk-BFRWSV3R.js';
2
2
  import { suggestName, warnUnknownOptions } from './chunk-WGRWFQOB.js';
3
- import * as PIXI from 'pixi.js';
4
- import { Rectangle, Container, FillGradient, Text, Color, GraphicsPath, Sprite, Texture, Graphics, Assets, Filter, GlProgram, defaultFilterVert, GpuProgram, UniformGroup, TextStyle, CanvasTextMetrics } from 'pixi.js';
3
+ import { Rectangle, Container, FillGradient, Text, Color, GraphicsPath, Sprite, Texture, Graphics, Assets, Filter, GlProgram, defaultFilterVert, GpuProgram, UniformGroup, AlphaFilter, NoiseFilter, BlurFilter, TextStyle, CanvasTextMetrics, ColorMatrixFilter } from 'pixi.js';
5
4
 
6
5
  // src/core/spring.ts
7
6
  var SETTLE_TOL = 5e-3;
@@ -2185,7 +2184,7 @@ var WarpFilter = class extends Filter {
2185
2184
  };
2186
2185
 
2187
2186
  // src/filters/named.ts
2188
- var CORE = { blur: "BlurFilter", noise: "NoiseFilter", alpha: "AlphaFilter" };
2187
+ var CORE = { blur: () => BlurFilter, noise: () => NoiseFilter, alpha: () => AlphaFilter };
2189
2188
  var CORE_TYPES = ["blur", "noise", "alpha", "colorMatrix", "grain", "warp"];
2190
2189
  var LIBRARY_TYPES = [
2191
2190
  "adjustment",
@@ -2284,7 +2283,7 @@ async function ensureFilterLibrary(spec, load = () => import('pixi-filters')) {
2284
2283
  var SINGLE_VALUE = { pixelate: "size", emboss: "strength" };
2285
2284
  var MATRIX_PRESETS = ["sepia", "grayscale", "negative", "polaroid", "technicolor", "vintage", "kodachrome", "browni"];
2286
2285
  function colorMatrix(params) {
2287
- const f = new PIXI.ColorMatrixFilter();
2286
+ const f = new ColorMatrixFilter();
2288
2287
  const preset = params.preset;
2289
2288
  if (preset !== void 0) {
2290
2289
  if (!MATRIX_PRESETS.includes(preset)) {
@@ -2314,9 +2313,8 @@ function lintBulgeCenter(params) {
2314
2313
  function fixRadialBlurGpu(f) {
2315
2314
  const holder = f;
2316
2315
  const gp = holder.gpuProgram;
2317
- const GpuProgram5 = PIXI.GpuProgram;
2318
- if (!gp || !GpuProgram5 || !/uKernelSize\s*:\s*f32/.test(gp.fragment.source)) return f;
2319
- holder.gpuProgram = GpuProgram5.from({ name: gp.name, vertex: gp.vertex, fragment: { ...gp.fragment, source: gp.fragment.source.replace(/uKernelSize(\s*):\s*f32/, "uKernelSize$1: i32") } });
2316
+ if (!gp || !/uKernelSize\s*:\s*f32/.test(gp.fragment.source)) return f;
2317
+ holder.gpuProgram = GpuProgram.from({ name: gp.name, vertex: gp.vertex, fragment: { ...gp.fragment, source: gp.fragment.source.replace(/uKernelSize(\s*):\s*f32/, "uKernelSize$1: i32") } });
2320
2318
  return f;
2321
2319
  }
2322
2320
  function createNamedFilter(type, params) {
@@ -2325,7 +2323,7 @@ function createNamedFilter(type, params) {
2325
2323
  if (lower(type) === "grain") return new GrainFilter(params);
2326
2324
  if (lower(type) === "warp") return new WarpFilter(params);
2327
2325
  const core = Object.entries(CORE).find(([k]) => lower(k) === lower(type));
2328
- if (core) return new PIXI[core[1]](params);
2326
+ if (core) return new (core[1]())(params);
2329
2327
  if (!isLibraryType(type)) throw unknownType(type);
2330
2328
  const Ctor = library?.get(lower(type));
2331
2329
  if (!Ctor) throw MISSING(`"${type}"`, library ? "not found in the loaded package" : "not loaded yet");
@@ -6072,13 +6070,13 @@ var CanvasSequence = class extends Sequence {
6072
6070
  var _CompositionSequence = null;
6073
6071
  async function getCompositionSequence() {
6074
6072
  if (!_CompositionSequence) {
6075
- _CompositionSequence = (await import('./Composition-BOLWGT2R.js')).CompositionSequence;
6073
+ _CompositionSequence = (await import('./Composition-5FKV2IBP.js')).CompositionSequence;
6076
6074
  }
6077
6075
  return _CompositionSequence;
6078
6076
  }
6079
6077
  var _SpansSequence = null;
6080
6078
  async function getSpansSequence() {
6081
- if (!_SpansSequence) _SpansSequence = (await import('./Spans-PGXRMD6J.js')).SpansSequence;
6079
+ if (!_SpansSequence) _SpansSequence = (await import('./Spans-6A3VLHRH.js')).SpansSequence;
6082
6080
  return _SpansSequence;
6083
6081
  }
6084
6082
  var staticTypes = {
@@ -6124,5 +6122,5 @@ async function buildSequenceTree(specs, parent, root, out = []) {
6124
6122
  }
6125
6123
 
6126
6124
  export { CameraSequence, DEFAULT_FOV, DEG3 as DEG, EXPRESSION_NAMES, FALLOFFS, LIGHT_KINDS, LIGHT_PROPS, LightSequence, MANY_BLURRED, MAX_BLUR, MAX_CASTERS, MAX_LIGHTS, MIN_BLUR, NEAR, NullSequence, SHADOW_TAPS, Sequence, TextSequence, bindClock, bindCounterKeyframes, blurRadius, buildScope, buildSequenceTree, cameraBasis, checkEase, clockTable, contentLength, createTimeline, ensureFilterLibrary, evaluateExpr, flattenSvgPath, focusProblems, homeCamera, homeDistance, layerInitialZ, layerToWorld, lengthen, lightLevel, noise, noise2, packLights, parseEase, parseSpring, projectLayer, projectPoint, rand, random, registerSequenceType, remapOf, resolveAt, resolveNumber, spansMeta, springDuration, timeRemapOf, trimPolylines };
6127
- //# sourceMappingURL=chunk-L3MEZZAV.js.map
6128
- //# sourceMappingURL=chunk-L3MEZZAV.js.map
6125
+ //# sourceMappingURL=chunk-IVKI6CPH.js.map
6126
+ //# sourceMappingURL=chunk-IVKI6CPH.js.map