-
-
Notifications
You must be signed in to change notification settings - Fork 339
Expand file tree
/
Copy pathremoveFrame.ts
More file actions
34 lines (32 loc) · 858 Bytes
/
removeFrame.ts
File metadata and controls
34 lines (32 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { ISentence } from '@/Core/controller/scene/sceneInterface';
import { IPerform } from '@/Core/Modules/perform/performInterface';
import { stageActions } from '@/store/stageReducer';
import { webgalStore } from '@/store/store';
/**
* 移除框架
* @param sentence
*/
export const removeFrame = (sentence: ISentence): IPerform => {
const id = sentence.content;
if (!id) {
return {
performName: 'none',
duration: 0,
isHoldOn: false,
stopFunction: () => {},
blockingNext: () => false,
blockingAuto: () => true,
stopTimeout: undefined,
};
}
webgalStore.dispatch(stageActions.removeFrame(id));
return {
performName: 'none',
duration: 0,
isHoldOn: false,
stopFunction: () => {},
blockingNext: () => false,
blockingAuto: () => true,
stopTimeout: undefined,
};
};