@logicflow/core 1.1.20 → 1.1.21

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,9 +1,11 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/entry.js",
6
+ "module": "dist/logic-flow.js",
6
7
  "unpkg": "dist/logic-flow.min.js",
8
+ "sideEffects": true,
7
9
  "jsdelivr": "dist/logic-flow.min.js",
8
10
  "license": "Apache-2.0",
9
11
  "homepage": "http://logic-flow.org/",
@@ -17,12 +19,13 @@
17
19
  "dev": "cross-env NODE_ENV=development webpack-dev-server --client-log-level warning --config scripts/webpack.config.dev.js",
18
20
  "clean": "rimraf dist lib esm cjs",
19
21
  "build": "npm run build:umd",
20
- "build:umd": "cross-env NODE_ENV=production webpack --config scripts/webpack.config.build.js && cp -r src/style/ dist/style && cp scripts/entry.js dist",
22
+ "build:umd": "cross-env NODE_ENV=production webpack --config scripts/webpack.config.build.js && npm run copy",
21
23
  "build-analyse": "cross-env analyse=true npm run build",
22
24
  "types": "tsc -d --declarationDir ./types --outDir temp && rimraf temp",
23
25
  "lint": "eslint . --ext .ts,.tsx",
24
26
  "publish-lib": "npm run types & npm run clean && npm run build && npm publish",
25
- "publish-next": "npm run types & npm run clean && npm run build && npm publish --tag next"
27
+ "publish-next": "npm run types & npm run clean && npm run build && npm publish --tag next",
28
+ "copy": "node ./scripts/copy.js"
26
29
  },
27
30
  "files": [
28
31
  "dist",
@@ -133,8 +133,9 @@ export default class LogicFlow {
133
133
  setTheme(style: Theme): void;
134
134
  /**
135
135
  * 重新设置画布的宽高
136
+ * 不传会自动计算画布宽高
136
137
  */
137
- resize(width: number, height: number): void;
138
+ resize(width?: number, height?: number): void;
138
139
  /**
139
140
  * 设置默认的边类型。
140
141
  * 也就是设置在节点直接有用户手动绘制的连线类型。
@@ -89,6 +89,7 @@ export default class EditConfigModel {
89
89
  edgeTextEdit: boolean;
90
90
  nodeTextDraggable: boolean;
91
91
  edgeTextDraggable: boolean;
92
+ autoExpand: boolean;
92
93
  multipleSelectKey: string;
93
94
  defaultConfig: {};
94
95
  constructor(config: EditConfigInterface);
@@ -417,7 +417,7 @@ declare class GraphModel {
417
417
  /**
418
418
  * 重新设置画布的宽高
419
419
  */
420
- resize(width: number, height: number): void;
420
+ resize(width?: number, height?: number): void;
421
421
  /**
422
422
  * 清空画布
423
423
  */