editor/patches/koota+0.6.6.patch
konstantin-paulus e76ed7d609 Enhance runtime package with new motion system and text animation utilities
Introduced a comprehensive motion system for keyframe interpolation and animation, leveraging the animejs library. Added new utilities for text animations, including functions for revealing words and characters, and scrambling text. Updated the runtime's world and queries to integrate the new document root trait, improving the structure and functionality of the animation system.
2026-08-12 08:24:09 +02:00

151 lines
6.4 KiB
Diff

diff --git a/node_modules/koota/dist/chunk-ZWIGMIL4.js b/node_modules/koota/dist/chunk-ZWIGMIL4.js
index feb90a8..16e3081 100644
--- a/node_modules/koota/dist/chunk-ZWIGMIL4.js
+++ b/node_modules/koota/dist/chunk-ZWIGMIL4.js
@@ -176,6 +176,8 @@ function checkQuery(world, query, entity) {
const ctx = world[$internal];
const eid = entity & ENTITY_ID_MASK;
if (query.traitInstances.all.length === 0) return false;
+ let staticHasOr = false;
+ let staticOrMatched = false;
for (let i = 0; i < generations.length; i++) {
const generationId = generations[i];
const bitmask = staticBitmasks[i];
@@ -187,8 +189,12 @@ function checkQuery(world, query, entity) {
if (!forbidden && !required && !or) return false;
if (forbidden && (entityMask & forbidden) !== 0) return false;
if (required && (entityMask & required) !== required) return false;
- if (or !== 0 && (entityMask & or) === 0) return false;
+ if (or !== 0) {
+ staticHasOr = true;
+ if ((entityMask & or) !== 0) staticOrMatched = true;
+ }
}
+ if (staticHasOr && !staticOrMatched) return false;
return true;
}
@@ -222,6 +228,8 @@ function checkQueryTracking(world, query, entity, eventType, eventGenerationId,
const generationsLen = generations.length;
const trackingGroupsLen = trackingGroups.length;
if (traitInstancesAll.length === 0) return false;
+ let staticHasOr = false;
+ let staticOrMatched = false;
for (let i = 0; i < generationsLen; i++) {
const generationId = generations[i];
const bitmask = staticBitmasks[i];
@@ -233,8 +241,12 @@ function checkQueryTracking(world, query, entity, eventType, eventGenerationId,
const entityMask = genMasks ? genMasks[eid] | 0 : 0;
if (forbidden && (entityMask & forbidden) !== 0) return false;
if (required && (entityMask & required) !== required) return false;
- if (or !== 0 && (entityMask & or) === 0) return false;
+ if (or !== 0) {
+ staticHasOr = true;
+ if ((entityMask & or) !== 0) staticOrMatched = true;
+ }
}
+ if (staticHasOr && !staticOrMatched) return false;
let hasOrGroup = false;
let anyOrMatched = false;
for (let i = 0; i < trackingGroupsLen; i++) {
diff --git a/node_modules/koota/dist/index.cjs b/node_modules/koota/dist/index.cjs
index efa87da..7f3fedd 100644
--- a/node_modules/koota/dist/index.cjs
+++ b/node_modules/koota/dist/index.cjs
@@ -222,6 +222,8 @@ function checkQuery(world, query, entity) {
const ctx = world[$internal];
const eid = entity & ENTITY_ID_MASK;
if (query.traitInstances.all.length === 0) return false;
+ let staticHasOr = false;
+ let staticOrMatched = false;
for (let i = 0; i < generations.length; i++) {
const generationId = generations[i];
const bitmask = staticBitmasks[i];
@@ -233,8 +235,12 @@ function checkQuery(world, query, entity) {
if (!forbidden && !required && !or) return false;
if (forbidden && (entityMask & forbidden) !== 0) return false;
if (required && (entityMask & required) !== required) return false;
- if (or !== 0 && (entityMask & or) === 0) return false;
+ if (or !== 0) {
+ staticHasOr = true;
+ if ((entityMask & or) !== 0) staticOrMatched = true;
+ }
}
+ if (staticHasOr && !staticOrMatched) return false;
return true;
}
@@ -654,6 +660,8 @@ function checkQueryTracking(world, query, entity, eventType, eventGenerationId,
const generationsLen = generations.length;
const trackingGroupsLen = trackingGroups.length;
if (traitInstancesAll.length === 0) return false;
+ let staticHasOr = false;
+ let staticOrMatched = false;
for (let i = 0; i < generationsLen; i++) {
const generationId = generations[i];
const bitmask = staticBitmasks[i];
@@ -665,8 +673,12 @@ function checkQueryTracking(world, query, entity, eventType, eventGenerationId,
const entityMask = genMasks ? genMasks[eid] | 0 : 0;
if (forbidden && (entityMask & forbidden) !== 0) return false;
if (required && (entityMask & required) !== required) return false;
- if (or !== 0 && (entityMask & or) === 0) return false;
+ if (or !== 0) {
+ staticHasOr = true;
+ if ((entityMask & or) !== 0) staticOrMatched = true;
+ }
}
+ if (staticHasOr && !staticOrMatched) return false;
let hasOrGroup = false;
let anyOrMatched = false;
for (let i = 0; i < trackingGroupsLen; i++) {
diff --git a/node_modules/koota/dist/react.cjs b/node_modules/koota/dist/react.cjs
index 3117293..6b99f96 100644
--- a/node_modules/koota/dist/react.cjs
+++ b/node_modules/koota/dist/react.cjs
@@ -118,6 +118,8 @@ function checkQuery(world, query, entity) {
const ctx = world[$internal];
const eid = entity & ENTITY_ID_MASK;
if (query.traitInstances.all.length === 0) return false;
+ let staticHasOr = false;
+ let staticOrMatched = false;
for (let i = 0; i < generations.length; i++) {
const generationId = generations[i];
const bitmask = staticBitmasks[i];
@@ -129,8 +131,12 @@ function checkQuery(world, query, entity) {
if (!forbidden && !required && !or) return false;
if (forbidden && (entityMask & forbidden) !== 0) return false;
if (required && (entityMask & required) !== required) return false;
- if (or !== 0 && (entityMask & or) === 0) return false;
+ if (or !== 0) {
+ staticHasOr = true;
+ if ((entityMask & or) !== 0) staticOrMatched = true;
+ }
}
+ if (staticHasOr && !staticOrMatched) return false;
return true;
}
@@ -493,6 +499,8 @@ function checkQueryTracking(world, query, entity, eventType, eventGenerationId,
const generationsLen = generations.length;
const trackingGroupsLen = trackingGroups.length;
if (traitInstancesAll.length === 0) return false;
+ let staticHasOr = false;
+ let staticOrMatched = false;
for (let i = 0; i < generationsLen; i++) {
const generationId = generations[i];
const bitmask = staticBitmasks[i];
@@ -504,8 +512,12 @@ function checkQueryTracking(world, query, entity, eventType, eventGenerationId,
const entityMask = genMasks ? genMasks[eid] | 0 : 0;
if (forbidden && (entityMask & forbidden) !== 0) return false;
if (required && (entityMask & required) !== required) return false;
- if (or !== 0 && (entityMask & or) === 0) return false;
+ if (or !== 0) {
+ staticHasOr = true;
+ if ((entityMask & or) !== 0) staticOrMatched = true;
+ }
}
+ if (staticHasOr && !staticOrMatched) return false;
let hasOrGroup = false;
let anyOrMatched = false;
for (let i = 0; i < trackingGroupsLen; i++) {