From 7ffae3135472152003852d6af3e6af14aa9a59a5 Mon Sep 17 00:00:00 2001 From: Kim Nguyen Date: Thu, 2 Mar 2023 14:02:36 -0800 Subject: [PATCH] add missing types for lottie worker --- build/player/lottie_worker.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build/player/lottie_worker.js b/build/player/lottie_worker.js index 2da51ea0c..a8c1f9d6d 100644 --- a/build/player/lottie_worker.js +++ b/build/player/lottie_worker.js @@ -20193,6 +20193,10 @@ 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); } @@ -20523,6 +20527,15 @@ var lottie = (function () { }, }); }, + resetSegments: function (forceFlag) { + workerInstance.postMessage({ + type: 'resetSegments', + payload: { + id: animationId, + forceFlag: forceFlag, + }, + }); + }, setSubframe: function (value) { workerInstance.postMessage({ type: 'setSubframe',