File tree Expand file tree Collapse file tree 12 files changed +36
-30
lines changed Expand file tree Collapse file tree 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+
15## 0.19.2
26
37This 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.
100100``` html
101101<head >
102102...
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 >
107107```
108108
109109Call the designer by:
Original file line number Diff line number Diff line change 11{
22 "name" : " sequential-workflow-designer-angular" ,
33 "description" : " Angular wrapper for Sequential Workflow Designer component." ,
4- "version" : " 0.19.2 " ,
4+ "version" : " 0.19.3 " ,
55 "author" : {
66 "name" : " NoCode JS" ,
77 "url" : " https://nocode-js.com/"
1515 "peerDependencies" : {
1616 "@angular/common" : " 12 - 16" ,
1717 "@angular/core" : " 12 - 16" ,
18- "sequential-workflow-designer" : " ^0.19.2 "
18+ "sequential-workflow-designer" : " ^0.19.3 "
1919 },
2020 "dependencies" : {
2121 "tslib" : " ^2.3.0"
Original file line number Diff line number Diff line change 2626 "@angular/platform-browser-dynamic" : " ^15.2.9" ,
2727 "@angular/router" : " ^15.2.9" ,
2828 "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 " ,
3131 "tslib" : " ^2.3.0" ,
3232 "zone.js" : " ~0.13.0"
3333 },
Original file line number Diff line number Diff line change @@ -5956,17 +5956,17 @@ send@0.18.0:
59565956 range-parser "~1.2.1"
59575957 statuses "2.0.1"
59585958
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 ==
59635963 dependencies :
59645964 tslib "^2.3.0"
59655965
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 ==
59705970 dependencies :
59715971 sequential-workflow-model "^0.2.0"
59725972
Original file line number Diff line number Diff line change 66 "dependencies" : {
77 "react" : " ^18.2.0" ,
88 "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 "
1111 },
1212 "devDependencies" : {
1313 "@types/jest" : " ^29.2.5" ,
Original file line number Diff line number Diff line change 1616 "eslint" : " eslint ./src --ext .ts"
1717 },
1818 "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 "
2121 },
2222 "devDependencies" : {
2323 "@sveltejs/adapter-static" : " ^2.0.3" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " sequential-workflow-designer" ,
33 "description" : " Customizable no-code component for building flow-based programming applications." ,
4- "version" : " 0.19.2 " ,
4+ "version" : " 0.19.3 " ,
55 "type" : " module" ,
66 "main" : " ./lib/esm/index.js" ,
77 "types" : " ./lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { Dom } from '../core/dom';
22import { readMousePosition , readTouchPosition } from '../core/event-readers' ;
33import { Vector } from '../core/vector' ;
44
5+ const MAX_DELTA_Y = 25 ;
6+
57const listenerOptions : AddEventListenerOptions & EventListenerOptions = {
68 passive : false
79} ;
@@ -76,9 +78,9 @@ export class ScrollBoxView {
7678 e . stopPropagation ( ) ;
7779
7880 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 ) ;
8082 const scrollTop = this . getScrollTop ( ) ;
81- this . setScrollTop ( scrollTop + delta ) ;
83+ this . setScrollTop ( scrollTop - delta ) ;
8284 }
8385 }
8486
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function embedStylesheet(url) {
1919
2020const baseUrl = isTestEnv ( )
2121 ? '../designer'
22- : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.2 ' ;
22+ : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.19.3 ' ;
2323
2424embedScript ( `${ baseUrl } /dist/index.umd.js` ) ;
2525embedStylesheet ( `${ baseUrl } /css/designer.css` ) ;
You can’t perform that action at this time.
0 commit comments