File tree 12 files changed +36
-30
lines changed
12 files changed +36
-30
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.19.3
2
+
3
+ This version improves the experience of scrolling in the toolbox via the touchpad.
4
+
1
5
## 0.19.2
2
6
3
7
This version adds the ` alt ` key support. Now when you hold the ` alt ` key and click on the canvas, the drag and drop is disabled [ #126 ] ( https://github.com/nocode-js/sequential-workflow-designer/issues/126 ) .
Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ Add the below code to your head section in HTML document.
100
100
``` html
101
101
<head >
102
102
...
103
- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.2 /css/designer.css" rel =" stylesheet" >
104
- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.2 /css/designer-light.css" rel =" stylesheet" >
105
- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.2 /css/designer-dark.css" rel =" stylesheet" >
106
- <script src =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.2 /dist/index.umd.js" ></script >
103
+ <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.3 /css/designer.css" rel =" stylesheet" >
104
+ <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.3 /css/designer-light.css" rel =" stylesheet" >
105
+ <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.3 /css/designer-dark.css" rel =" stylesheet" >
106
+ <script src =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.3 /dist/index.umd.js" ></script >
107
107
```
108
108
109
109
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.19.2 " ,
4
+ "version" : " 0.19.3 " ,
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.19.2 "
18
+ "sequential-workflow-designer" : " ^0.19.3 "
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.19.2 " ,
30
- "sequential-workflow-designer-angular" : " ^0.19.2 " ,
29
+ "sequential-workflow-designer" : " ^0.19.3 " ,
30
+ "sequential-workflow-designer-angular" : " ^0.19.3 " ,
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.19.2 :
5960
- version "0.19.2 "
5961
- resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.19.2 .tgz#367e51b985c27ea58bf2f824dbc5b94a130f55b2 "
5962
- integrity sha512-hSZlLyBSRXOtsEZIwh92NODta8GznS8vBUHh7vgv4+33WCyip+wL8cDB/QqtFYDs/fSvCsxYsNUEgjlOrkLYCw ==
5959
+ sequential-workflow-designer-angular@^0.19.3 :
5960
+ version "0.19.3 "
5961
+ resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.19.3 .tgz#5b69f09f5d600034202ec04c42f473eb2be34841 "
5962
+ integrity sha512-H7J+Vr923SeNvnG8Uxup3Hu+lSjNodMZEILoum+uVTZP3xUZyETd4bprd5MdEE6/wlUai8cLOk69+QojQAuqUQ ==
5963
5963
dependencies :
5964
5964
tslib "^2.3.0"
5965
5965
5966
- sequential-workflow-designer@^0.19.2 :
5967
- version "0.19.2 "
5968
- resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.19.2 .tgz#885e0062d42cb325806273e7637a1407a29de7c7 "
5969
- integrity sha512-bAJae/ZTLj5wvCv5+l7ZKWRruy7lgDjYaDAaTLapPrHtf46H4pfXXe5aeSv6mNRcQaKtQ9/MsygxnC/Onlkdng ==
5966
+ sequential-workflow-designer@^0.19.3 :
5967
+ version "0.19.3 "
5968
+ resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.19.3 .tgz#967967f5772e6cbd592def584e6ba78331a837bc "
5969
+ integrity sha512-lDDclYAsbg8DXfVa4ZiFnCmnvbgO1A7bey2TO2Q6DfmiVqqQ8VhsDEpMXcSxT72O3nkQxn1YDVG2XZzpJBTxyA ==
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.19.2 " ,
10
- "sequential-workflow-designer-react" : " ^0.19.2 "
9
+ "sequential-workflow-designer" : " ^0.19.3 " ,
10
+ "sequential-workflow-designer-react" : " ^0.19.3 "
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.19.2 " ,
20
- "sequential-workflow-designer-svelte" : " ^0.19.2 "
19
+ "sequential-workflow-designer" : " ^0.19.3 " ,
20
+ "sequential-workflow-designer-svelte" : " ^0.19.3 "
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.19.2 " ,
4
+ "version" : " 0.19.3 " ,
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 @@ -2,6 +2,8 @@ import { Dom } from '../core/dom';
2
2
import { readMousePosition , readTouchPosition } from '../core/event-readers' ;
3
3
import { Vector } from '../core/vector' ;
4
4
5
+ const MAX_DELTA_Y = 25 ;
6
+
5
7
const listenerOptions : AddEventListenerOptions & EventListenerOptions = {
6
8
passive : false
7
9
} ;
@@ -76,9 +78,9 @@ export class ScrollBoxView {
76
78
e . stopPropagation ( ) ;
77
79
78
80
if ( this . content ) {
79
- const delta = e . deltaY > 0 ? - 25 : 25 ;
81
+ const delta = Math . sign ( e . deltaY ) * Math . min ( Math . abs ( e . deltaY ) , MAX_DELTA_Y ) ;
80
82
const scrollTop = this . getScrollTop ( ) ;
81
- this . setScrollTop ( scrollTop + delta ) ;
83
+ this . setScrollTop ( scrollTop - delta ) ;
82
84
}
83
85
}
84
86
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.19.2 ' ;
22
+ : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.3 ' ;
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.19.2 " ,
4
+ "version" : " 0.19.3 " ,
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.19.2 "
50
+ "sequential-workflow-designer" : " ^0.19.3 "
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.19.2 " ,
66
+ "sequential-workflow-designer" : " ^0.19.3 " ,
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.19.2 " ,
4
+ "version" : " 0.19.3 " ,
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.19.2 "
31
+ "sequential-workflow-designer" : " ^0.19.3 "
32
32
},
33
33
"devDependencies" : {
34
- "sequential-workflow-designer" : " ^0.19.2 " ,
34
+ "sequential-workflow-designer" : " ^0.19.3 " ,
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