pixi-effects 0.30.0 → 0.31.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 +25 -0
- package/README.md +6 -5
- package/ai/chat-template.html +3 -3
- package/ai/tools/check.mjs +42 -2
- package/ai/tools/lookup.mjs +12 -6
- package/ai/tools/render.mjs +15 -2
- package/ai/tools/varArgs.mjs +75 -0
- package/dist/{Base-CB1_FPZD.d.cts → Base-BKagtWc0.d.cts} +1 -1
- package/dist/{Base-Ne74ztNl.d.ts → Base-jRiMHcWT.d.ts} +1 -1
- package/dist/Composition-DQCPJPFE.js +7 -0
- package/dist/{Composition-RJGA7KDU.js.map → Composition-DQCPJPFE.js.map} +1 -1
- package/dist/Composition-V2XYSW6P.cjs +16 -0
- package/dist/{Composition-MUKR3FYD.cjs.map → Composition-V2XYSW6P.cjs.map} +1 -1
- package/dist/Controller.cjs +42 -1
- package/dist/Controller.cjs.map +1 -1
- package/dist/Controller.d.cts +10 -2
- package/dist/Controller.d.ts +10 -2
- package/dist/Controller.js +42 -1
- package/dist/Controller.js.map +1 -1
- package/dist/{Movie-DdnpLpw1.d.cts → Movie-BH81stkb.d.cts} +90 -3
- package/dist/{Movie-C2rZFkrO.d.ts → Movie-CfFPItoL.d.ts} +90 -3
- package/dist/{chunk-A3Q3SDSH.js → chunk-BGMCZA36.js} +3 -3
- package/dist/{chunk-A3Q3SDSH.js.map → chunk-BGMCZA36.js.map} +1 -1
- package/dist/{chunk-ZVUO325O.cjs → chunk-DJ5B7IKT.cjs} +9 -3
- package/dist/chunk-DJ5B7IKT.cjs.map +1 -0
- package/dist/{chunk-WHNADXXG.cjs → chunk-L73KRFXI.cjs} +61 -61
- package/dist/{chunk-WHNADXXG.cjs.map → chunk-L73KRFXI.cjs.map} +1 -1
- package/dist/{chunk-ZAXYPXKW.js → chunk-MMTESMJ5.js} +9 -4
- package/dist/chunk-MMTESMJ5.js.map +1 -0
- package/dist/{chunk-CRQFDY7E.js → chunk-UTIBYMIO.js} +461 -56
- package/dist/chunk-UTIBYMIO.js.map +1 -0
- package/dist/{chunk-HREBQAY4.cjs → chunk-X3WHETQ3.cjs} +485 -80
- package/dist/chunk-X3WHETQ3.cjs.map +1 -0
- package/dist/index.cjs +31 -31
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/loader.css +1 -1
- package/dist/present.cjs +3 -3
- package/dist/present.d.cts +2 -2
- package/dist/present.d.ts +2 -2
- package/dist/present.js +3 -3
- 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-BzIB65Vk.d.cts → types-CK_crNAI.d.cts} +2 -0
- package/dist/{types-BzIB65Vk.d.ts → types-CK_crNAI.d.ts} +2 -0
- package/docs/api.md +28 -1
- package/docs/dsl.md +32 -1
- package/llms-full.txt +145 -11
- package/package.json +83 -20
- package/skills/pixi-effects/SKILL.md +1 -1
- package/skills/pixi-effects/reference/cheatsheet.md +3 -0
- package/skills/pixi-effects/reference/pitfalls.md +4 -0
- package/skills/pixi-effects/reference/recipes.md +79 -8
- package/skills/pixi-effects/template.html +6 -6
- package/dist/Composition-MUKR3FYD.cjs +0 -16
- package/dist/Composition-RJGA7KDU.js +0 -7
- package/dist/chunk-CRQFDY7E.js.map +0 -1
- package/dist/chunk-HREBQAY4.cjs.map +0 -1
- package/dist/chunk-ZAXYPXKW.js.map +0 -1
- package/dist/chunk-ZVUO325O.cjs.map +0 -1
|
@@ -975,6 +975,7 @@ var FUNCS = {
|
|
|
975
975
|
step: (edge, x) => x >= edge ? 1 : 0
|
|
976
976
|
};
|
|
977
977
|
var CONSTS = { PI: Math.PI };
|
|
978
|
+
var EXPRESSION_NAMES = [...Object.keys(FUNCS), ...Object.keys(CONSTS)];
|
|
978
979
|
function isDigit(c) {
|
|
979
980
|
return c >= "0" && c <= "9";
|
|
980
981
|
}
|
|
@@ -1481,6 +1482,8 @@ function buildScope(sequence, parent, root) {
|
|
|
1481
1482
|
const contain = w === 0 || h === 0 ? 1 : Math.min(W / w, H / h);
|
|
1482
1483
|
const cover = w === 0 || h === 0 ? 1 : Math.max(W / w, H / h);
|
|
1483
1484
|
return {
|
|
1485
|
+
...root.vars ?? {},
|
|
1486
|
+
// the declared numbers first: the built-in words below win
|
|
1484
1487
|
w,
|
|
1485
1488
|
h,
|
|
1486
1489
|
W,
|
|
@@ -3500,6 +3503,8 @@ var TextSequence = class extends Sequence {
|
|
|
3500
3503
|
);
|
|
3501
3504
|
const unset = Object.keys(resolved).filter((k) => resolved[k] === void 0);
|
|
3502
3505
|
if (unset.length) console.warn(`pixi-effects: ${chunkLYOKH7KE_cjs.describeLayer(this.spec)}: ${unset.map((k) => `style.${k}`).join(", ")} ${unset.length > 1 ? "are" : "is"} undefined (a variable that was never set?), so ${unset.length > 1 ? "they are" : "it is"} ignored and the default is used: omit the key instead`);
|
|
3506
|
+
const outline = resolved.stroke;
|
|
3507
|
+
if (outline && typeof outline === "object" && !("join" in outline) && !("lineJoin" in outline)) resolved.stroke = { ...outline, join: "round" };
|
|
3503
3508
|
for (const k of Object.keys(resolved)) {
|
|
3504
3509
|
if (unset.includes(k)) continue;
|
|
3505
3510
|
text.style[k] = resolved[k];
|
|
@@ -5419,7 +5424,7 @@ function resolveDim(v, scope) {
|
|
|
5419
5424
|
var _CompositionSequence = null;
|
|
5420
5425
|
async function getCompositionSequence() {
|
|
5421
5426
|
if (!_CompositionSequence) {
|
|
5422
|
-
_CompositionSequence = (await import('./Composition-
|
|
5427
|
+
_CompositionSequence = (await import('./Composition-V2XYSW6P.cjs')).CompositionSequence;
|
|
5423
5428
|
}
|
|
5424
5429
|
return _CompositionSequence;
|
|
5425
5430
|
}
|
|
@@ -5464,6 +5469,7 @@ async function buildSequenceTree(specs, parent, root) {
|
|
|
5464
5469
|
exports.CameraSequence = CameraSequence;
|
|
5465
5470
|
exports.DEFAULT_FOV = DEFAULT_FOV;
|
|
5466
5471
|
exports.DEG = DEG3;
|
|
5472
|
+
exports.EXPRESSION_NAMES = EXPRESSION_NAMES;
|
|
5467
5473
|
exports.FALLOFFS = FALLOFFS;
|
|
5468
5474
|
exports.LIGHT_KINDS = LIGHT_KINDS;
|
|
5469
5475
|
exports.LIGHT_PROPS = LIGHT_PROPS;
|
|
@@ -5507,5 +5513,5 @@ exports.registerSequenceType = registerSequenceType;
|
|
|
5507
5513
|
exports.remapOf = remapOf;
|
|
5508
5514
|
exports.resolveAt = resolveAt;
|
|
5509
5515
|
exports.timeRemapOf = timeRemapOf;
|
|
5510
|
-
//# sourceMappingURL=chunk-
|
|
5511
|
-
//# sourceMappingURL=chunk-
|
|
5516
|
+
//# sourceMappingURL=chunk-DJ5B7IKT.cjs.map
|
|
5517
|
+
//# sourceMappingURL=chunk-DJ5B7IKT.cjs.map
|