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
|
@@ -3658,6 +3658,7 @@ function pickFill(props) {
|
|
|
3658
3658
|
var AudioSequence = class extends Sequence {
|
|
3659
3659
|
_audioBuffer = null;
|
|
3660
3660
|
_synth = null;
|
|
3661
|
+
_music = null;
|
|
3661
3662
|
_source = "";
|
|
3662
3663
|
_remap = null;
|
|
3663
3664
|
async build() {
|
|
@@ -3705,7 +3706,7 @@ var AudioSequence = class extends Sequence {
|
|
|
3705
3706
|
const raw = spec;
|
|
3706
3707
|
if (raw.asset !== void 0) console.warn(`pixi-effects: ${who}: has both asset and music \u2014 the music plays; remove one`);
|
|
3707
3708
|
if (raw.sfx !== void 0) console.warn(`pixi-effects: ${who}: has both sfx and music \u2014 the music plays; remove one`);
|
|
3708
|
-
const { resolveMusic, renderMusic, renderMusicAsync, musicLength, musicKey } = await import('./music-
|
|
3709
|
+
const { resolveMusic, renderMusic, renderMusicAsync, musicLength, musicKey, summarizeMusic } = await import('./music-6WFTPVHU.cjs');
|
|
3709
3710
|
const music = resolveMusic(spec.music, who);
|
|
3710
3711
|
if (!music) return;
|
|
3711
3712
|
const natural = musicLength(music);
|
|
@@ -3722,6 +3723,7 @@ var AudioSequence = class extends Sequence {
|
|
|
3722
3723
|
this.duration = length;
|
|
3723
3724
|
const loop = !!spec.loop;
|
|
3724
3725
|
this._source = "music";
|
|
3726
|
+
this._music = summarizeMusic(music);
|
|
3725
3727
|
this._synth = { key: musicKey(music, length, loop), render: (sr) => renderMusic(music, sr, length, loop), renderAsync: (sr, pace) => renderMusicAsync(music, sr, length, loop, pace) };
|
|
3726
3728
|
}
|
|
3727
3729
|
bindTimeline(_timeline) {
|
|
@@ -3737,6 +3739,7 @@ var AudioSequence = class extends Sequence {
|
|
|
3737
3739
|
...this._audioBuffer ? { buffer: this._audioBuffer } : { synth: this._synth },
|
|
3738
3740
|
layer: chunkZMAD3KJU_cjs.describeLayer(this.spec),
|
|
3739
3741
|
source: this._source,
|
|
3742
|
+
...this._music ? { music: this._music } : {},
|
|
3740
3743
|
loop: !this._synth && !!this.spec.loop,
|
|
3741
3744
|
start: t0,
|
|
3742
3745
|
end: t0 + dur,
|
|
@@ -5405,7 +5408,7 @@ function resolveDim(v, scope) {
|
|
|
5405
5408
|
var _CompositionSequence = null;
|
|
5406
5409
|
async function getCompositionSequence() {
|
|
5407
5410
|
if (!_CompositionSequence) {
|
|
5408
|
-
_CompositionSequence = (await import('./Composition-
|
|
5411
|
+
_CompositionSequence = (await import('./Composition-NI74UJT3.cjs')).CompositionSequence;
|
|
5409
5412
|
}
|
|
5410
5413
|
return _CompositionSequence;
|
|
5411
5414
|
}
|
|
@@ -5493,5 +5496,5 @@ exports.registerSequenceType = registerSequenceType;
|
|
|
5493
5496
|
exports.remapOf = remapOf;
|
|
5494
5497
|
exports.resolveAt = resolveAt;
|
|
5495
5498
|
exports.timeRemapOf = timeRemapOf;
|
|
5496
|
-
//# sourceMappingURL=chunk-
|
|
5497
|
-
//# sourceMappingURL=chunk-
|
|
5499
|
+
//# sourceMappingURL=chunk-MZCDBRTY.cjs.map
|
|
5500
|
+
//# sourceMappingURL=chunk-MZCDBRTY.cjs.map
|