@soonspacejs/plugin-cps-scheme 2.9.0

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 ADDED
@@ -0,0 +1,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,44 @@
1
+ import SoonSpace from 'soonspacejs';
2
+ import SoonFlow from '@soonflow/core';
3
+ import { Platter } from './controller/platter';
4
+ import { ISchemeData, TInitOptions } from './types';
5
+ declare class CpsSchemePlugin {
6
+ readonly ssp: SoonSpace;
7
+ path: string;
8
+ soonflow: SoonFlow | null;
9
+ flowListData: any[];
10
+ platter: Platter | null;
11
+ schemeData: ISchemeData[] | null;
12
+ platterDomElement: SVGElement | null;
13
+ private _platterListener;
14
+ private _platterState;
15
+ constructor(ssp: SoonSpace);
16
+ /**
17
+ * 设置 path
18
+ * @param path
19
+ */
20
+ setPath(path: string): this;
21
+ /**
22
+ * 初始化预案八卦盘
23
+ * @param options
24
+ * @returns
25
+ */
26
+ init(options: TInitOptions): Promise<void>;
27
+ /**
28
+ * 初始化流程数据
29
+ */
30
+ private initFlowData;
31
+ /**
32
+ * 设置按钮状态
33
+ */
34
+ setBtnReady(btnId: string, ready?: boolean): void;
35
+ /**
36
+ * 清除预案八卦盘
37
+ * @returns
38
+ */
39
+ dispose(): void;
40
+ private _resolvePath;
41
+ fetchContent(path: string): Promise<string>;
42
+ fetchSchemeData(): Promise<ISchemeData[]>;
43
+ }
44
+ export default CpsSchemePlugin;