Skip to content

Commit 5a806b1

Browse files
authored
0.38.1. (#222)
1 parent 08ccd51 commit 5a806b1

12 files changed

Lines changed: 34 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.38.1
2+
3+
This version fixes a bug in the `Dom` class that caused an unhandled error during rendering.
4+
15
# 0.38.0
26

37
This version introduces a new configuration property: `textWidthMeasurer`. You can now set a custom function to measure the width of text in the designer. Measuring text width is necessary to calculate the layout of the designer components. By default, the designer uses the `getBBox()` method to measure text width. This method is universal and always works, but unfortunately, it is not the fastest option. You can now provide your own implementation, for example, by using the `CanvasRenderingContext2D.measureText()` method.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ Add the below code to your head section in HTML document.
107107
```html
108108
<head>
109109
...
110-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.0/css/designer.css" rel="stylesheet" />
111-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.0/css/designer-light.css" rel="stylesheet" />
112-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.0/css/designer-dark.css" rel="stylesheet" />
113-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.0/dist/index.umd.js"></script>
110+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.1/css/designer.css" rel="stylesheet" />
111+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.1/css/designer-light.css" rel="stylesheet" />
112+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.1/css/designer-dark.css" rel="stylesheet" />
113+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.1/dist/index.umd.js"></script>
114114
</head>
115115
```
116116

angular/designer/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sequential-workflow-designer-angular",
33
"description": "Angular wrapper for Sequential Workflow Designer component.",
4-
"version": "0.38.0",
4+
"version": "0.38.1",
55
"author": {
66
"name": "NoCode JS",
77
"url": "https://nocode-js.com/"
@@ -15,7 +15,7 @@
1515
"peerDependencies": {
1616
"@angular/common": "12 - 22",
1717
"@angular/core": "12 - 22",
18-
"sequential-workflow-designer": "^0.38.0"
18+
"sequential-workflow-designer": "^0.38.1"
1919
},
2020
"dependencies": {
2121
"tslib": "^2.3.0"
@@ -31,4 +31,4 @@
3131
"angular",
3232
"angularjs"
3333
]
34-
}
34+
}

demos/angular-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@angular/platform-browser-dynamic": "^17.3.9",
2727
"@angular/router": "^17.3.9",
2828
"rxjs": "~7.8.0",
29-
"sequential-workflow-designer": "^0.38.0",
30-
"sequential-workflow-designer-angular": "^0.38.0",
29+
"sequential-workflow-designer": "^0.38.1",
30+
"sequential-workflow-designer-angular": "^0.38.1",
3131
"tslib": "^2.3.0",
3232
"zone.js": "~0.14.6"
3333
},

demos/angular-app/yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6744,17 +6744,17 @@ send@0.18.0:
67446744
range-parser "~1.2.1"
67456745
statuses "2.0.1"
67466746

6747-
sequential-workflow-designer-angular@^0.38.0:
6748-
version "0.38.0"
6749-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.38.0.tgz#0adc1e6082068ac53e18e6386851244b6501bc12"
6750-
integrity sha512-TPD8sJyDvt12WXFTMcqvHfV8xoto6ydLtd0wIMcF/eJ04CcV7VUXZurfMoz9Pc0TLxaD+5GfYTXJ74MSJEBGaQ==
6747+
sequential-workflow-designer-angular@^0.38.1:
6748+
version "0.38.1"
6749+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.38.1.tgz#8e8cad4b2854d198144fdc41be526ec888229fd6"
6750+
integrity sha512-bfXcIqMzlsBWv35zkXQwwU9dwOUWMfqaiqdhivU0cJtV//Oxz664alr0uYAEMigjDTOIkcVjROptB/kfDNjDVA==
67516751
dependencies:
67526752
tslib "^2.3.0"
67536753

6754-
sequential-workflow-designer@^0.38.0:
6755-
version "0.38.0"
6756-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.38.0.tgz#3977bfe43e9780b0a69963116397b0dd8902a478"
6757-
integrity sha512-dqzhyVU5vihzjcUQ5uoIBAMKMI4r5zHvAPSHFZa6C4KWFtdLJIc3+rIdPrxxpMajAsjJpTFVW645C7jd+Rz5jA==
6754+
sequential-workflow-designer@^0.38.1:
6755+
version "0.38.1"
6756+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.38.1.tgz#d19c5c9b725d258abcc960cf29d299b97763ed85"
6757+
integrity sha512-Q1YnIdbc40Fe5D86uZU34gs5ydnVNk/L1kM+j7ida+WT05b+cCEsCt2jAsztlqsdvWFrO1slM0LtQRotkpJFxQ==
67586758
dependencies:
67596759
sequential-workflow-model "^0.2.0"
67606760

demos/react-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dependencies": {
77
"react": "^18.2.0",
88
"react-dom": "^18.2.0",
9-
"sequential-workflow-designer": "^0.38.0",
10-
"sequential-workflow-designer-react": "^0.38.0"
9+
"sequential-workflow-designer": "^0.38.1",
10+
"sequential-workflow-designer-react": "^0.38.1"
1111
},
1212
"devDependencies": {
1313
"@types/jest": "^29.2.5",

demos/svelte-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"eslint": "eslint ./src --ext .ts"
1717
},
1818
"dependencies": {
19-
"sequential-workflow-designer": "^0.38.0",
20-
"sequential-workflow-designer-svelte": "^0.38.0"
19+
"sequential-workflow-designer": "^0.38.1",
20+
"sequential-workflow-designer-svelte": "^0.38.1"
2121
},
2222
"devDependencies": {
2323
"@sveltejs/adapter-static": "^2.0.3",

designer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sequential-workflow-designer",
33
"description": "Customizable no-code component for building flow-based programming applications.",
4-
"version": "0.38.0",
4+
"version": "0.38.1",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",

designer/src/core/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class Dom {
1717

1818
public static attrs(element: Element, attributes: Attributes) {
1919
const names = Object.keys(attributes);
20-
for (const name in names) {
20+
for (const name of names) {
2121
const value = attributes[name];
2222
element.setAttribute(name, typeof value === 'string' ? value : value.toString());
2323
}

examples/assets/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function embedStylesheet(url) {
1313
document.write(`<link href="${url}" rel="stylesheet">`);
1414
}
1515

16-
const baseUrl = isTestEnv() ? '../designer' : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.0';
16+
const baseUrl = isTestEnv() ? '../designer' : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.38.1';
1717

1818
embedScript(`${baseUrl}/dist/index.umd.js`);
1919
embedStylesheet(`${baseUrl}/css/designer.css`);

0 commit comments

Comments
 (0)