pixi-effects 0.27.1 → 0.28.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 +19 -0
- package/README.md +7 -7
- package/ai/chat-template.html +3 -3
- package/ai/tools/check.mjs +30 -0
- package/dist/{Base-CKGl6jCo.d.ts → Base-C6f0fE8j.d.ts} +1 -1
- package/dist/{Base-DjhdL8B1.d.cts → Base-DI1FCGcH.d.cts} +1 -1
- package/dist/Composition-HFEVIYHN.js +7 -0
- package/dist/{Composition-BJVY5HP7.js.map → Composition-HFEVIYHN.js.map} +1 -1
- package/dist/Composition-NI74UJT3.cjs +16 -0
- package/dist/{Composition-YW2G6EXL.cjs.map → Composition-NI74UJT3.cjs.map} +1 -1
- package/dist/Controller.d.cts +2 -2
- package/dist/Controller.d.ts +2 -2
- package/dist/{Movie-CbYwTs6U.d.cts → Movie-CHcM8HNB.d.ts} +3 -1
- package/dist/{Movie-ILKq2fw_.d.ts → Movie-Cx5ozUGb.d.cts} +3 -1
- package/dist/Presenter.d.cts +2 -2
- package/dist/Presenter.d.ts +2 -2
- package/dist/chunk-4LEX3G3M.cjs +259 -0
- package/dist/chunk-4LEX3G3M.cjs.map +1 -0
- package/dist/{chunk-X42BGR6P.js → chunk-AK54FIWM.js} +7 -4
- package/dist/chunk-AK54FIWM.js.map +1 -0
- package/dist/{chunk-ETKTRQL2.cjs → chunk-MZCDBRTY.cjs} +7 -4
- package/dist/chunk-MZCDBRTY.cjs.map +1 -0
- package/dist/{chunk-VH5R473P.cjs → chunk-SBOVUZZY.cjs} +61 -61
- package/dist/{chunk-VH5R473P.cjs.map → chunk-SBOVUZZY.cjs.map} +1 -1
- package/dist/{chunk-AR3HVHKF.js → chunk-WEJAQAFX.js} +3 -3
- package/dist/{chunk-AR3HVHKF.js.map → chunk-WEJAQAFX.js.map} +1 -1
- package/dist/chunk-ZHUUIF6A.js +250 -0
- package/dist/chunk-ZHUUIF6A.js.map +1 -0
- package/dist/events-EE3SM5LM.cjs +16 -0
- package/dist/events-EE3SM5LM.cjs.map +1 -0
- package/dist/events-KXBWR4IV.js +3 -0
- package/dist/events-KXBWR4IV.js.map +1 -0
- package/dist/index.cjs +49 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -5
- package/dist/index.d.ts +19 -5
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/loader.css +1 -1
- package/dist/{music-YPUZTWTN.cjs → music-6WFTPVHU.cjs} +308 -297
- package/dist/music-6WFTPVHU.cjs.map +1 -0
- package/dist/{music-JVRNXHQ5.js → music-JKOM5YK6.js} +273 -287
- package/dist/music-JKOM5YK6.js.map +1 -0
- package/dist/three.cjs +5 -5
- package/dist/three.d.cts +2 -2
- package/dist/three.d.ts +2 -2
- package/dist/three.js +1 -1
- package/dist/{types-BNVsBBZf.d.cts → types-DpK1vwcl.d.cts} +79 -1
- package/dist/{types-BNVsBBZf.d.ts → types-DpK1vwcl.d.ts} +79 -1
- package/docs/api.md +28 -0
- package/docs/dsl.md +8 -4
- package/llms-full.txt +39 -6
- package/package.json +1 -1
- package/skills/pixi-effects/SKILL.md +1 -1
- package/skills/pixi-effects/reference/cheatsheet.md +1 -1
- package/skills/pixi-effects/reference/pitfalls.md +1 -0
- package/skills/pixi-effects/template.html +6 -6
- package/dist/Composition-BJVY5HP7.js +0 -7
- package/dist/Composition-YW2G6EXL.cjs +0 -16
- package/dist/chunk-ETKTRQL2.cjs.map +0 -1
- package/dist/chunk-X42BGR6P.js.map +0 -1
- package/dist/music-JVRNXHQ5.js.map +0 -1
- package/dist/music-YPUZTWTN.cjs.map +0 -1
|
@@ -3637,6 +3637,7 @@ function pickFill(props) {
|
|
|
3637
3637
|
var AudioSequence = class extends Sequence {
|
|
3638
3638
|
_audioBuffer = null;
|
|
3639
3639
|
_synth = null;
|
|
3640
|
+
_music = null;
|
|
3640
3641
|
_source = "";
|
|
3641
3642
|
_remap = null;
|
|
3642
3643
|
async build() {
|
|
@@ -3684,7 +3685,7 @@ var AudioSequence = class extends Sequence {
|
|
|
3684
3685
|
const raw = spec;
|
|
3685
3686
|
if (raw.asset !== void 0) console.warn(`pixi-effects: ${who}: has both asset and music \u2014 the music plays; remove one`);
|
|
3686
3687
|
if (raw.sfx !== void 0) console.warn(`pixi-effects: ${who}: has both sfx and music \u2014 the music plays; remove one`);
|
|
3687
|
-
const { resolveMusic, renderMusic, renderMusicAsync, musicLength, musicKey } = await import('./music-
|
|
3688
|
+
const { resolveMusic, renderMusic, renderMusicAsync, musicLength, musicKey, summarizeMusic } = await import('./music-JKOM5YK6.js');
|
|
3688
3689
|
const music = resolveMusic(spec.music, who);
|
|
3689
3690
|
if (!music) return;
|
|
3690
3691
|
const natural = musicLength(music);
|
|
@@ -3701,6 +3702,7 @@ var AudioSequence = class extends Sequence {
|
|
|
3701
3702
|
this.duration = length;
|
|
3702
3703
|
const loop = !!spec.loop;
|
|
3703
3704
|
this._source = "music";
|
|
3705
|
+
this._music = summarizeMusic(music);
|
|
3704
3706
|
this._synth = { key: musicKey(music, length, loop), render: (sr) => renderMusic(music, sr, length, loop), renderAsync: (sr, pace) => renderMusicAsync(music, sr, length, loop, pace) };
|
|
3705
3707
|
}
|
|
3706
3708
|
bindTimeline(_timeline) {
|
|
@@ -3716,6 +3718,7 @@ var AudioSequence = class extends Sequence {
|
|
|
3716
3718
|
...this._audioBuffer ? { buffer: this._audioBuffer } : { synth: this._synth },
|
|
3717
3719
|
layer: describeLayer(this.spec),
|
|
3718
3720
|
source: this._source,
|
|
3721
|
+
...this._music ? { music: this._music } : {},
|
|
3719
3722
|
loop: !this._synth && !!this.spec.loop,
|
|
3720
3723
|
start: t0,
|
|
3721
3724
|
end: t0 + dur,
|
|
@@ -5384,7 +5387,7 @@ function resolveDim(v, scope) {
|
|
|
5384
5387
|
var _CompositionSequence = null;
|
|
5385
5388
|
async function getCompositionSequence() {
|
|
5386
5389
|
if (!_CompositionSequence) {
|
|
5387
|
-
_CompositionSequence = (await import('./Composition-
|
|
5390
|
+
_CompositionSequence = (await import('./Composition-HFEVIYHN.js')).CompositionSequence;
|
|
5388
5391
|
}
|
|
5389
5392
|
return _CompositionSequence;
|
|
5390
5393
|
}
|
|
@@ -5427,5 +5430,5 @@ async function buildSequenceTree(specs, parent, root) {
|
|
|
5427
5430
|
}
|
|
5428
5431
|
|
|
5429
5432
|
export { CameraSequence, DEFAULT_FOV, DEG3 as DEG, FALLOFFS, LIGHT_KINDS, LIGHT_PROPS, LightSequence, MANY_BLURRED, MAX_BLUR, MAX_CASTERS, MAX_LIGHTS, MIN_BLUR, NEAR, NullSequence, SHADOW_TAPS, Sequence, bindClock, blurRadius, buildScope, buildSequenceTree, cameraBasis, checkEase, clockTable, contentLength, createTimeline, ensureFilterLibrary, evaluateExpr, flattenSvgPath, focusProblems, homeCamera, homeDistance, layerInitialZ, layerToWorld, lengthen, lightLevel, noise, packLights, parseEase, projectLayer, projectPoint, rand, random, registerSequenceType, remapOf, resolveAt, timeRemapOf };
|
|
5430
|
-
//# sourceMappingURL=chunk-
|
|
5431
|
-
//# sourceMappingURL=chunk-
|
|
5433
|
+
//# sourceMappingURL=chunk-AK54FIWM.js.map
|
|
5434
|
+
//# sourceMappingURL=chunk-AK54FIWM.js.map
|