pixi-effects 0.48.2 → 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.
- package/CHANGELOG.md +8 -0
- package/README.md +51 -7
- package/ai/chat-template.html +8 -4
- package/ai/tools/check.mjs +6 -6
- package/dist/3d.cjs +963 -0
- package/dist/3d.cjs.map +1 -0
- package/dist/3d.d.cts +303 -0
- package/dist/3d.d.ts +303 -0
- package/dist/3d.js +956 -0
- package/dist/3d.js.map +1 -0
- package/dist/Canvas-BfZkAFJm.d.cts +12 -0
- package/dist/Canvas-BfZkAFJm.d.ts +12 -0
- package/dist/Composition-464AWDV6.cjs +16 -0
- package/dist/{Composition-TJ5D7Z63.cjs.map → Composition-464AWDV6.cjs.map} +1 -1
- package/dist/Composition-5U63LMPX.js +7 -0
- package/dist/{Composition-5FKV2IBP.js.map → Composition-5U63LMPX.js.map} +1 -1
- package/dist/Controller.d.cts +2 -2
- package/dist/Controller.d.ts +2 -2
- package/dist/{Movie--qSYKgAQ.d.ts → Movie-6EWOz6Yw.d.ts} +21 -5
- package/dist/{Movie-svZQF-9Z.d.cts → Movie-BxB7bauG.d.cts} +21 -5
- package/dist/{Spans-5ENZ3XGS.cjs → Spans-DUR2W5EH.cjs} +11 -11
- package/dist/{Spans-5ENZ3XGS.cjs.map → Spans-DUR2W5EH.cjs.map} +1 -1
- package/dist/{Spans-6A3VLHRH.js → Spans-W5VJRMGC.js} +6 -6
- package/dist/{Spans-6A3VLHRH.js.map → Spans-W5VJRMGC.js.map} +1 -1
- package/dist/{blendModes-V5XHC7U4.cjs → blendModes-NC76DNVX.cjs} +5 -5
- package/dist/{blendModes-V5XHC7U4.cjs.map → blendModes-NC76DNVX.cjs.map} +1 -1
- package/dist/{blendModes-535EMYGK.js → blendModes-ZOBLPSR3.js} +4 -4
- package/dist/{blendModes-535EMYGK.js.map → blendModes-ZOBLPSR3.js.map} +1 -1
- package/dist/{chunk-Z3DM4ETD.cjs → chunk-33USHRV5.cjs} +43 -32
- package/dist/chunk-33USHRV5.cjs.map +1 -0
- package/dist/{chunk-WYR2AU4W.cjs → chunk-5YNME6AH.cjs} +5 -5
- package/dist/{chunk-WYR2AU4W.cjs.map → chunk-5YNME6AH.cjs.map} +1 -1
- package/dist/{chunk-NGJXVJB7.cjs → chunk-ABWRISRK.cjs} +3 -2
- package/dist/chunk-ABWRISRK.cjs.map +1 -0
- package/dist/{chunk-CCPJD76D.cjs → chunk-BSFWVTSR.cjs} +93 -93
- package/dist/chunk-BSFWVTSR.cjs.map +1 -0
- package/dist/{chunk-IVKI6CPH.js → chunk-DOGY3EAW.js} +19 -9
- package/dist/chunk-DOGY3EAW.js.map +1 -0
- package/dist/{chunk-45ALIMAF.cjs → chunk-GUDLIAIG.cjs} +58 -55
- package/dist/chunk-GUDLIAIG.cjs.map +1 -0
- package/dist/{chunk-BFRWSV3R.js → chunk-H363KMJR.js} +3 -3
- package/dist/chunk-H363KMJR.js.map +1 -0
- package/dist/{chunk-JBDBICS2.js → chunk-MXACRKAN.js} +4 -4
- package/dist/{chunk-JBDBICS2.js.map → chunk-MXACRKAN.js.map} +1 -1
- package/dist/{chunk-RCKLUCB7.js → chunk-PBMDZT2T.js} +15 -12
- package/dist/chunk-PBMDZT2T.js.map +1 -0
- package/dist/{chunk-6D4W2KZQ.js → chunk-USUUAYTE.js} +6 -6
- package/dist/chunk-USUUAYTE.js.map +1 -0
- package/dist/index.cjs +35 -35
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/loader.css +1 -1
- package/dist/{music-P4JRT73P.js → music-ATX22VAT.js} +3 -3
- package/dist/{music-P4JRT73P.js.map → music-ATX22VAT.js.map} +1 -1
- package/dist/{music-XQEPBIDT.cjs → music-OFVM3PYH.cjs} +3 -3
- package/dist/{music-XQEPBIDT.cjs.map → music-OFVM3PYH.cjs.map} +1 -1
- package/dist/present.cjs +5 -5
- package/dist/present.d.cts +2 -2
- package/dist/present.d.ts +2 -2
- package/dist/present.js +5 -5
- package/dist/three.cjs +7 -8
- package/dist/three.cjs.map +1 -1
- package/dist/three.d.cts +2 -12
- package/dist/three.d.ts +2 -12
- package/dist/three.js +2 -3
- package/dist/three.js.map +1 -1
- package/dist/{types-CTSrPvY3.d.cts → types-kt7DQKfO.d.cts} +1 -1
- package/dist/{types-CTSrPvY3.d.ts → types-kt7DQKfO.d.ts} +1 -1
- package/docs/api.md +41 -1
- package/docs/dsl.md +81 -1
- package/llms-full.txt +218 -5
- package/package.json +19 -3
- package/skills/pixi-effects/SKILL.md +3 -2
- package/skills/pixi-effects/reference/cheatsheet.md +2 -0
- package/skills/pixi-effects/reference/pitfalls.md +14 -0
- package/skills/pixi-effects/reference/recipes.md +77 -1
- package/skills/pixi-effects/template.html +13 -8
- package/dist/Composition-5FKV2IBP.js +0 -7
- package/dist/Composition-TJ5D7Z63.cjs +0 -16
- package/dist/chunk-45ALIMAF.cjs.map +0 -1
- package/dist/chunk-6D4W2KZQ.js.map +0 -1
- package/dist/chunk-BFRWSV3R.js.map +0 -1
- package/dist/chunk-CCPJD76D.cjs.map +0 -1
- package/dist/chunk-IVKI6CPH.js.map +0 -1
- package/dist/chunk-NGJXVJB7.cjs.map +0 -1
- package/dist/chunk-RCKLUCB7.js.map +0 -1
- package/dist/chunk-Z3DM4ETD.cjs.map +0 -1
package/dist/three.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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-
|
|
2
|
-
import './chunk-
|
|
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. */
|