refactor: remove createjs.Tween dependency from render loop and tick handler#7470
refactor: remove createjs.Tween dependency from render loop and tick handler#7470Mohd-Ali-Creator wants to merge 1 commit into
Conversation
|
🧪 Jest Test Results ❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Coverage: Statements: 48.23% | Branches: 39.78% | Functions: 52.95% | Lines: 48.63% Note: These failures may be introduced by this PR or may already exist in the master branch. Failed Tests: |
|
This PR has merge conflicts with Please rebase your branch: # Add upstream remote (one-time setup)
git remote add upstream https://github.com/sugarlabs/musicblocks.git
# Fetch latest master and rebase
git fetch upstream
git rebase upstream/master
# Resolve any conflicts, then:
git push --force-with-lease origin YOUR_BRANCH
|
|
@Mohd-Ali-Creator Rebase on to the master |
|
@Mohd-Ali-Creator I noticed there are still active createjs.Tween.get(...) usages in artwork.js, block.js, and trash.js. Can you clarify why removing createjs.Tween.hasActiveTweens() is safe in the render loop? Are these tween animations guaranteed to update stageDirty/update so rendering continues while they are active? |
d72589f to
9f6e286
Compare
|
🧪 Jest Test Results ✅ All Jest tests passed! This PR is ready to merge. Coverage: Statements: 49.43% | Branches: 40.91% | Functions: 53.88% | Lines: 49.85% |
|
Hi @ssz2605! Thank you for the detailed review as You are correct that createjs.Tween.get() After your feedback, I investigated This removal may be premature while Two options I see:
@sum2it @walterbender — which approach Also rebased on latest master |
|
This PR has merge conflicts with Please rebase your branch: # Add upstream remote (one-time setup)
git remote add upstream https://github.com/sugarlabs/musicblocks.git
# Fetch latest master and rebase
git fetch upstream
git rebase upstream/master
# Resolve any conflicts, then:
git push --force-with-lease origin YOUR_BRANCH
|
|
@Mohd-Ali-Creator Please resolve merge conflicts. |
9f6e286 to
7e0ac1a
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7470 +/- ##
=======================================
Coverage 59.27% 59.27%
=======================================
Files 176 176
Lines 57975 57974 -1
=======================================
Hits 34365 34365
+ Misses 23610 23609 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PR Category
Summary
Removes
createjs.Tween.hasActiveTweens()callsfrom two locations as part of the CreateJS
migration effort (Issue #6612).
Changes
1. _startRenderLoop (line ~545)
Removed
createjs.Tween.hasActiveTweens()check.All render conditions already covered by:
this.stageDirty— visual changeshasActiveGifs— GIF animationsisInteracting— drag/select states2. __tick function (line ~5099)
Removed
createjs.Tween.hasActiveTweens()from condition.
this.updateflag is sufficient.Why This Is Safe
All animation states covered by Tween tracking
are already handled by existing flags.
No behavioral change — removes CreateJS dependency.
Note on Jest Failure
The failing test (aidebugger.test.js) is a
pre-existing failure on master branch —
NOT introduced by this PR.
Verified by running test on clean master:
npx jest aidebugger.test.js → FAILS on master too
Reference: #7403 (raised by @kartikscodes)
cc @walterbender @sum2it
Testing
exists on master (unrelated to this change)
Part of CreateJS migration: #6612
cc @walterbender @sum2it @omsuneri