File tree Expand file tree Collapse file tree 11 files changed +48
-13
lines changed Expand file tree Collapse file tree 11 files changed +48
-13
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ module.exports = {
64
64
'@typescript-eslint/no-explicit-any' : 0 ,
65
65
'object-curly-newline' : 0 ,
66
66
'prefer-object-spread' : 0 ,
67
+ 'no-restricted-syntax' : 0 ,
67
68
'operator-assignment' : 0
68
69
} ,
69
70
} ;
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ ## [ 0.5.11] ( https://github.com/towersxu/logicflow/compare/examples@0.5.10...examples@0.5.11 ) (2021-05-31)
7
+
8
+ ** Note:** Version bump only for package examples
9
+
10
+
11
+
12
+
13
+
6
14
## [ 0.5.10] ( https://github.com/towersxu/logicflow/compare/examples@0.5.9...examples@0.5.10 ) (2021-05-28)
7
15
8
16
** Note:** Version bump only for package examples
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " examples" ,
3
- "version" : " 0.5.10 " ,
3
+ "version" : " 0.5.11 " ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"@ant-design/icons" : " ^4.3.0" ,
7
7
"@babel/core" : " 7.12.3" ,
8
- "@logicflow/core" : " ^0.4.9 " ,
9
- "@logicflow/extension" : " ^0.4.10 " ,
8
+ "@logicflow/core" : " ^0.4.11 " ,
9
+ "@logicflow/extension" : " ^0.4.11 " ,
10
10
"@pmmmwh/react-refresh-webpack-plugin" : " 0.4.2" ,
11
11
"@svgr/webpack" : " 5.4.0" ,
12
12
"@testing-library/jest-dom" : " ^5.11.4" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ ## [ 0.4.11] ( https://github.com/towersxu/logicflow/compare/@logicflow/core@0.4.9...@logicflow/core@0.4.11 ) (2021-05-31)
7
+
8
+ ** Note:** Version bump only for package @logicflow/core
9
+
10
+
11
+
12
+
13
+
6
14
## [ 0.4.9] ( https://github.com/towersxu/logicflow/compare/@logicflow/core@0.4.7...@logicflow/core@0.4.9 ) (2021-05-28)
7
15
8
16
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @logicflow/core" ,
3
- "version" : " 0.4.10 " ,
3
+ "version" : " 0.4.11 " ,
4
4
"description" : " LogicFlow core, to quickly build flowchart editor" ,
5
5
"main" : " dist/logic-flow.js" ,
6
6
"license" : " Apache 2.0" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ ## [ 0.4.11] ( https://github.com/towersxu/logicflow/compare/@logicflow/extension@0.4.10...@logicflow/extension@0.4.11 ) (2021-05-31)
7
+
8
+ ** Note:** Version bump only for package @logicflow/extension
9
+
10
+
11
+
12
+
13
+
6
14
## [ 0.4.10] ( https://github.com/towersxu/logicflow/compare/@logicflow/extension@0.4.9...@logicflow/extension@0.4.10 ) (2021-05-28)
7
15
8
16
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @logicflow/extension" ,
3
- "version" : " 0.4.10 " ,
3
+ "version" : " 0.4.11 " ,
4
4
"description" : " LogicFlow extension" ,
5
5
"main" : " cjs/index.js" ,
6
6
"module" : " es/index.js" ,
26
26
" readme.md"
27
27
],
28
28
"dependencies" : {
29
- "@logicflow/core" : " ^0.4.9 " ,
29
+ "@logicflow/core" : " ^0.4.11 " ,
30
30
"ids" : " ^1.0.0" ,
31
31
"preact" : " ^10.4.8"
32
32
},
Original file line number Diff line number Diff line change @@ -212,10 +212,11 @@ const MiniMap: MiniMapPlugin = {
212
212
// 1. 获取到图中所有的节点中的位置,将其偏移到原点开始(避免节点位置为负的时候无法展示问题)。
213
213
const data = MiniMap . __resetData ( MiniMap . __lf . getGraphRawData ( ) ) ;
214
214
// 由于随时都会有新节点注册进来,需要同步将注册的
215
- const viewMap = MiniMap . __lf . viewMap ;
216
- const modelMap = MiniMap . __lf . graphModel . modelMap ;
217
- const minimapViewMap = MiniMap . __lfMap . viewMap ;
218
- for ( let key of viewMap . keys ( ) ) {
215
+ const { viewMap } : { viewMap : Map < string , any > } = MiniMap . __lf ;
216
+ const { modelMap } : { modelMap : Map < string , any > } = MiniMap . __lf . graphModel . modelMap ;
217
+ const { viewMap : minimapViewMap } : { viewMap : Map < string , any > } = MiniMap . __lfMap ;
218
+ // todo: no-restricted-syntax
219
+ for ( const key of viewMap . keys ( ) ) {
219
220
if ( ! minimapViewMap . has ( key ) ) {
220
221
MiniMap . __lfMap . setView ( key , viewMap . get ( key ) ) ;
221
222
MiniMap . __lfMap . graphModel . modelMap . set ( key , modelMap . get ( key ) ) ;
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ ## [ 0.4.11] ( https://github.com/towersxu/logicflow/compare/site@0.4.10...site@0.4.11 ) (2021-05-31)
7
+
8
+ ** Note:** Version bump only for package site
9
+
10
+
11
+
12
+
13
+
6
14
## [ 0.4.10] ( https://github.com/towersxu/logicflow/compare/site@0.4.9...site@0.4.10 ) (2021-05-28)
7
15
8
16
** Note:** Version bump only for package site
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
3
"name" : " site" ,
4
- "version" : " 0.4.10 " ,
4
+ "version" : " 0.4.11 " ,
5
5
"description" : " LogicFlow site" ,
6
6
"scripts" : {
7
7
"dev" : " cross-env NODE_ENV=development MOCK_TYPE=mock webpack-dev-server --client-log-level warning --config scripts/webpack.config.site.js" ,
12
12
" sites"
13
13
],
14
14
"dependencies" : {
15
- "@logicflow/core" : " ^0.4.9 " ,
16
- "@logicflow/extension" : " ^0.4.10 " ,
15
+ "@logicflow/core" : " ^0.4.11 " ,
16
+ "@logicflow/extension" : " ^0.4.11 " ,
17
17
"preact" : " ^10.4.8"
18
18
},
19
19
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments