@logicflow/extension 1.1.19 → 1.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/extension",
3
- "version": "1.1.19",
3
+ "version": "1.1.22",
4
4
  "description": "LogicFlow extension",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -15,12 +15,12 @@
15
15
  "scripts": {
16
16
  "dev": "cross-env NODE_ENV=development webpack-dev-server --client-log-level warning --config scripts/webpack.config.dev.js",
17
17
  "test": "echo \"Error: no test specified\" && exit 1",
18
- "style": "echo ./cjs ./es ./lib | xargs -n 1 cp -v -r ./src/style",
18
+ "copy": "node ./scripts/copy.js",
19
19
  "types": "tsc -d --declarationDir ./types --outDir temp && rimraf -R temp",
20
20
  "build:esm": "tsc --module esnext --target es5 --outDir ./es -d",
21
21
  "build:cjs": "tsc --module commonjs --target es5 --outDir ./cjs",
22
22
  "build:umd": "cross-env NODE_ENV=production webpack --config scripts/webpack.config.build.js",
23
- "build": "rimraf ./es ./cjs ./lib && npm run build:esm & npm run build:cjs & npm run build:umd && npm run style",
23
+ "build": "rimraf ./es ./cjs ./lib && npm run build:esm & npm run build:cjs & npm run build:umd && npm run copy",
24
24
  "publish-lib": "npm run build && npm publish"
25
25
  },
26
26
  "author": "",
@@ -32,7 +32,7 @@
32
32
  "readme.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@logicflow/core": "^1.1.19",
35
+ "@logicflow/core": "^1.1.22",
36
36
  "ids": "^1.0.0",
37
37
  "preact": "^10.4.8"
38
38
  },
@@ -0,0 +1,21 @@
1
+ import LogicFlow from '@logicflow/core';
2
+ declare type IMode = 'single' | 'path';
3
+ declare class Highlight {
4
+ lf: LogicFlow;
5
+ static pluginName: string;
6
+ mode: IMode;
7
+ manual: boolean;
8
+ tempStyles: {};
9
+ constructor({ lf }: {
10
+ lf: any;
11
+ });
12
+ setMode(mode: IMode): void;
13
+ setManual(manual: boolean): void;
14
+ private highlightSingle;
15
+ private highlightPath;
16
+ highlight(id: string, mode?: IMode): void;
17
+ restoreHighlight(): void;
18
+ render(lf: any, domContainer: any): void;
19
+ destroy(): void;
20
+ }
21
+ export { Highlight };
@@ -68,6 +68,7 @@ declare class MiniMap {
68
68
  }): void;
69
69
  __createViewPort(): void;
70
70
  __startDrag: (e: any) => void;
71
+ moveViewport: (top: any, left: any) => void;
71
72
  __drag: (e: any) => void;
72
73
  __drop: () => void;
73
74
  }
package/types/index.d.ts CHANGED
@@ -16,3 +16,4 @@ export * from './tools/flow-path';
16
16
  export * from './tools/auto-layout';
17
17
  export * from './bpmn-adapter/xml2json';
18
18
  export * from './bpmn-adapter/json2xml';
19
+ export * from './components/highlight';