File tree 12 files changed +37
-29
lines changed
12 files changed +37
-29
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.18.2
2
+
3
+ This version corrects a bug in the ` moveViewportToStep ` method that caused the viewport to move to the incorrect position.
4
+
1
5
## 0.18.1
2
6
3
7
This version exposes the definition walker from the ` Designer ` class [ #109 ] ( https://github.com/nocode-js/sequential-workflow-designer/issues/109 ) .
Original file line number Diff line number Diff line change @@ -96,10 +96,10 @@ Add the below code to your head section in HTML document.
96
96
``` html
97
97
<head >
98
98
...
99
- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.1 /css/designer.css" rel =" stylesheet" >
100
- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.1 /css/designer-light.css" rel =" stylesheet" >
101
- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.1 /css/designer-dark.css" rel =" stylesheet" >
102
- <script src =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.1 /dist/index.umd.js" ></script >
99
+ <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.2 /css/designer.css" rel =" stylesheet" >
100
+ <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.2 /css/designer-light.css" rel =" stylesheet" >
101
+ <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.2 /css/designer-dark.css" rel =" stylesheet" >
102
+ <script src =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.2 /dist/index.umd.js" ></script >
103
103
```
104
104
105
105
Call the designer by:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sequential-workflow-designer-angular" ,
3
3
"description" : " Angular wrapper for Sequential Workflow Designer component." ,
4
- "version" : " 0.18.1 " ,
4
+ "version" : " 0.18.2 " ,
5
5
"author" : {
6
6
"name" : " NoCode JS" ,
7
7
"url" : " https://nocode-js.com/"
15
15
"peerDependencies" : {
16
16
"@angular/common" : " 12 - 16" ,
17
17
"@angular/core" : " 12 - 16" ,
18
- "sequential-workflow-designer" : " ^0.18.1 "
18
+ "sequential-workflow-designer" : " ^0.18.2 "
19
19
},
20
20
"dependencies" : {
21
21
"tslib" : " ^2.3.0"
Original file line number Diff line number Diff line change 26
26
"@angular/platform-browser-dynamic" : " ^15.2.9" ,
27
27
"@angular/router" : " ^15.2.9" ,
28
28
"rxjs" : " ~7.8.0" ,
29
- "sequential-workflow-designer" : " ^0.18.1 " ,
30
- "sequential-workflow-designer-angular" : " ^0.18.1 " ,
29
+ "sequential-workflow-designer" : " ^0.18.2 " ,
30
+ "sequential-workflow-designer-angular" : " ^0.18.2 " ,
31
31
"tslib" : " ^2.3.0" ,
32
32
"zone.js" : " ~0.13.0"
33
33
},
Original file line number Diff line number Diff line change @@ -5956,17 +5956,17 @@ send@0.18.0:
5956
5956
range-parser "~1.2.1"
5957
5957
statuses "2.0.1"
5958
5958
5959
- sequential-workflow-designer-angular@^0.18.1 :
5960
- version "0.18.1 "
5961
- resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.18.1 .tgz#43ed92743ca2cfbc41556db937d1f201797ff411 "
5962
- integrity sha512-13eH8bVz60titbeg+q8B7JGSKWeDIksacWV3ftDe6Irp7ffcwh+P0vD00vTseaqqIin6TdGyIlAe6krZ+HQ6gg ==
5959
+ sequential-workflow-designer-angular@^0.18.2 :
5960
+ version "0.18.2 "
5961
+ resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.18.2 .tgz#30fa8257d79a402ebd8523ba06567c8d6ed01e93 "
5962
+ integrity sha512-gHIeBCJo9q/+a0r7geGgA//oEO/wXQXEAUwUQ8nwfPBWrm2/mwW77SSX7JnVO1jnrptcThL0ynDKeyzPa/qdQg ==
5963
5963
dependencies :
5964
5964
tslib "^2.3.0"
5965
5965
5966
- sequential-workflow-designer@^0.18.1 :
5967
- version "0.18.1 "
5968
- resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.18.1 .tgz#5aba520ac21f8a1ba29c350fa3e044c05b21a756 "
5969
- integrity sha512-pL2sS4dJT5xSBx1rmViLcuppAPhvZDMGq9/wHehTV93aK/QzJhLeW3hna0UephrjPWSafclDdijYwsNgLq87cg ==
5966
+ sequential-workflow-designer@^0.18.2 :
5967
+ version "0.18.2 "
5968
+ resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.18.2 .tgz#03c4bd0ed3e6d0a78cfa43a8f8a59c4787fdf910 "
5969
+ integrity sha512-BCWQWw6BwIaENsEt+73XYhfxP782wb7ludgqJYMuY9TDjTRjY4dii03gh9FLYDKwBMDQxdFdCbYcgvT2BhbXkw ==
5970
5970
dependencies :
5971
5971
sequential-workflow-model "^0.2.0"
5972
5972
Original file line number Diff line number Diff line change 6
6
"dependencies" : {
7
7
"react" : " ^18.2.0" ,
8
8
"react-dom" : " ^18.2.0" ,
9
- "sequential-workflow-designer" : " ^0.18.1 " ,
10
- "sequential-workflow-designer-react" : " ^0.18.1 "
9
+ "sequential-workflow-designer" : " ^0.18.2 " ,
10
+ "sequential-workflow-designer-react" : " ^0.18.2 "
11
11
},
12
12
"devDependencies" : {
13
13
"@types/jest" : " ^29.2.5" ,
Original file line number Diff line number Diff line change 16
16
"eslint" : " eslint ./src --ext .ts"
17
17
},
18
18
"dependencies" : {
19
- "sequential-workflow-designer" : " ^0.18.1 " ,
20
- "sequential-workflow-designer-svelte" : " ^0.18.1 "
19
+ "sequential-workflow-designer" : " ^0.18.2 " ,
20
+ "sequential-workflow-designer-svelte" : " ^0.18.2 "
21
21
},
22
22
"devDependencies" : {
23
23
"@sveltejs/adapter-static" : " ^2.0.3" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sequential-workflow-designer" ,
3
3
"description" : " Customizable no-code component for building flow-based programming applications." ,
4
- "version" : " 0.18.1 " ,
4
+ "version" : " 0.18.2 " ,
5
5
"type" : " module" ,
6
6
"main" : " ./lib/esm/index.js" ,
7
7
"types" : " ./lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ export class ViewportApi {
18
18
19
19
public moveViewportToStep ( stepId : string ) {
20
20
const component = this . workspaceController . getComponentByStepId ( stepId ) ;
21
- const componentPosition = component . view . getClientPosition ( ) ;
21
+ const canvasPosition = this . workspaceController . getCanvasPosition ( ) ;
22
+
23
+ const clientPosition = component . view . getClientPosition ( ) ;
24
+ const componentPosition = clientPosition . subtract ( canvasPosition ) ;
25
+
22
26
const componentSize = new Vector ( component . view . width , component . view . height ) ;
23
27
this . viewportController . focusOnComponent ( componentPosition , componentSize ) ;
24
28
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function embedStylesheet(url) {
19
19
20
20
const baseUrl = isTestEnv ( )
21
21
? '../designer'
22
- : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.1 ' ;
22
+ : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.18.2 ' ;
23
23
24
24
embedScript ( `${ baseUrl } /dist/index.umd.js` ) ;
25
25
embedStylesheet ( `${ baseUrl } /css/designer.css` ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sequential-workflow-designer-react" ,
3
3
"description" : " React wrapper for Sequential Workflow Designer component." ,
4
- "version" : " 0.18.1 " ,
4
+ "version" : " 0.18.2 " ,
5
5
"type" : " module" ,
6
6
"main" : " ./lib/esm/index.js" ,
7
7
"types" : " ./lib/index.d.ts" ,
47
47
"peerDependencies" : {
48
48
"react" : " ^18.2.0" ,
49
49
"react-dom" : " ^18.2.0" ,
50
- "sequential-workflow-designer" : " ^0.18.1 "
50
+ "sequential-workflow-designer" : " ^0.18.2 "
51
51
},
52
52
"devDependencies" : {
53
53
"@rollup/plugin-node-resolve" : " ^15.0.1" ,
63
63
"prettier" : " ^2.8.2" ,
64
64
"react" : " ^18.2.0" ,
65
65
"react-dom" : " ^18.2.0" ,
66
- "sequential-workflow-designer" : " ^0.18.1 " ,
66
+ "sequential-workflow-designer" : " ^0.18.2 " ,
67
67
"rollup" : " ^3.18.0" ,
68
68
"rollup-plugin-dts" : " ^5.2.0" ,
69
69
"rollup-plugin-typescript2" : " ^0.34.1" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sequential-workflow-designer-svelte" ,
3
3
"description" : " Svelte wrapper for Sequential Workflow Designer component." ,
4
- "version" : " 0.18.1 " ,
4
+ "version" : " 0.18.2 " ,
5
5
"license" : " MIT" ,
6
6
"scripts" : {
7
7
"prepare" : " cp ../LICENSE LICENSE" ,
28
28
],
29
29
"peerDependencies" : {
30
30
"svelte" : " ^4.0.0" ,
31
- "sequential-workflow-designer" : " ^0.18.1 "
31
+ "sequential-workflow-designer" : " ^0.18.2 "
32
32
},
33
33
"devDependencies" : {
34
- "sequential-workflow-designer" : " ^0.18.1 " ,
34
+ "sequential-workflow-designer" : " ^0.18.2 " ,
35
35
"@sveltejs/adapter-static" : " ^2.0.3" ,
36
36
"@sveltejs/kit" : " ^1.20.4" ,
37
37
"@sveltejs/package" : " ^2.0.0" ,
You can’t perform that action at this time.
0 commit comments