@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 +5 -0
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.esm.js +1 -0
- package/dist/types.d.ts +25 -0
- package/package.json +26 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SCHEME_DATA_FILE_PATH = "/db/prediction_scheme.json";
|
package/dist/index.d.ts
ADDED
|
@@ -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;
|