@soonspacejs/plugin-cps-scheme 2.13.7 → 2.13.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @soonspacejs/plugin-cps-scheme
2
-
3
- > CPS 预案插件
4
-
5
-
1
+ # @soonspacejs/plugin-cps-scheme
2
+
3
+ > CPS 预案插件
4
+
5
+
@@ -0,0 +1 @@
1
+ export declare const SCHEME_DATA_FILE_PATH = "/db/prediction_scheme.json";
@@ -0,0 +1,41 @@
1
+ import SoonSpace from 'soonspacejs';
2
+ import CpsSoonmanagerPlugin from '@soonspacejs/plugin-cps-soonmanager';
3
+ import { Platter } from './controller/platter';
4
+ import { ISchemeData, TInitOptions } from './types';
5
+ declare class CpsSchemePlugin {
6
+ readonly ssp: SoonSpace;
7
+ cpsSoonmanagerPlugin: CpsSoonmanagerPlugin;
8
+ platter: Platter | null;
9
+ schemeData: ISchemeData[] | null;
10
+ platterDomElement: SVGElement | null;
11
+ /**
12
+ * 自动运行流程
13
+ */
14
+ autoRunFlow: boolean;
15
+ private _platterListener;
16
+ private _platterState;
17
+ constructor(ssp: SoonSpace);
18
+ /**
19
+ * 初始化预案八卦盘
20
+ * @param options
21
+ * @returns
22
+ */
23
+ init(options: TInitOptions): Promise<void>;
24
+ /**
25
+ * 设置按钮状态 ready
26
+ */
27
+ setBtnReady(btnId: string, ready?: boolean): void;
28
+ /**
29
+ * 设置按钮状态 hover
30
+ */
31
+ setBtnHover(btnId: string, hover?: boolean): void;
32
+ /**
33
+ * 清除预案八卦盘
34
+ * @returns
35
+ */
36
+ dispose(): void;
37
+ private _resolvePath;
38
+ fetchContent(path: string): Promise<string>;
39
+ fetchSchemeData(): Promise<ISchemeData[]>;
40
+ }
41
+ export default CpsSchemePlugin;