Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added resetSegments to worker_wrapper #3015

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: added resetSegments to worker_wrapper
  • Loading branch information
samuelOsborne committed Jul 18, 2023
commit a77933060a2da15557818ae03326eb77945e4b65
4 changes: 4 additions & 0 deletions player/js/worker_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ function workerContent() {
if (animations[payload.id]) {
animations[payload.id].animation.playSegments(payload.arr, payload.forceFlag);
}
} else if (type === 'resetSegments') {
if (animations[payload.id]) {
animations[payload.id].animation.resetSegments(payload.forceFlag);
}
} else if (type === 'updateDocumentData') {
animations[payload.id].animation.updateDocumentData(payload.path, payload.documentData, payload.index);
}
Expand Down