@operato/scene-progressbar 0.0.24 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,44 @@
|
|
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.1.1](https://github.com/things-scene/operato-scene/compare/v0.1.0...v0.1.1) (2022-01-03)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* [@things-factory](https://github.com/things-factory) 4.0.27 for webpack 5 ([c1b8ce2](https://github.com/things-scene/operato-scene/commit/c1b8ce2a4f069a77b75c82ef8abe2b52974fa5a2))
|
12
|
+
* @operato/board@0.3.4 ([9f7a868](https://github.com/things-scene/operato-scene/commit/9f7a86820280d24b08dabfd9c9b0f46b4c74feed))
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## [0.1.0](https://github.com/things-scene/operato-scene/compare/v0.0.26...v0.1.0) (2022-01-03)
|
17
|
+
|
18
|
+
|
19
|
+
### :rocket: New Features
|
20
|
+
|
21
|
+
* applied import.meta.url for native web support ([fe65672](https://github.com/things-scene/operato-scene/commit/fe65672550b15276bd9fa79ab7ac886a8502f8b0))
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
### [0.0.26](https://github.com/things-scene/operato-scene/compare/v0.0.25...v0.0.26) (2022-01-01)
|
26
|
+
|
27
|
+
|
28
|
+
### :bug: Bug Fix
|
29
|
+
|
30
|
+
* upgrade [@operato](https://github.com/operato) modules ([ddcb27f](https://github.com/things-scene/operato-scene/commit/ddcb27f7562243d9fc581fed3090c3be42ce1d28))
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
### [0.0.25](https://github.com/things-scene/operato-scene/compare/v0.0.24...v0.0.25) (2021-12-28)
|
35
|
+
|
36
|
+
|
37
|
+
### :bug: Bug Fix
|
38
|
+
|
39
|
+
* @hatiolab/things-scene@2.7.31 ([b0d1706](https://github.com/things-scene/operato-scene/commit/b0d17064bb42ed4a60008a15d48700a328711ab8))
|
40
|
+
* upgrade [@things-factory](https://github.com/things-factory) dependencies ([0deff8d](https://github.com/things-scene/operato-scene/commit/0deff8dcaba7a7e81061246298b889f6165091d7))
|
41
|
+
|
42
|
+
|
43
|
+
|
6
44
|
### [0.0.24](https://github.com/things-scene/operato-scene/compare/v0.0.23...v0.0.24) (2021-12-21)
|
7
45
|
|
8
46
|
|
File without changes
|
File without changes
|
File without changes
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Progressbar component for things-scene",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "heartyoh",
|
6
|
-
"version": "0.
|
6
|
+
"version": "0.1.1",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"module": "dist/index.js",
|
9
9
|
"things-scene": true,
|
@@ -26,13 +26,13 @@
|
|
26
26
|
"migration": "things-factory-migration"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@hatiolab/things-scene": "^2.7.
|
29
|
+
"@hatiolab/things-scene": "^2.7.31"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
32
|
"@hatiolab/prettier-config": "^1.0.0",
|
33
|
-
"@operato/board": "^0.
|
34
|
-
"@things-factory/builder": "^4.0.
|
35
|
-
"@things-factory/operato-board": "^4.0.
|
33
|
+
"@operato/board": "^0.3.4",
|
34
|
+
"@things-factory/builder": "^4.0.27",
|
35
|
+
"@things-factory/operato-board": "^4.0.27",
|
36
36
|
"@types/chance": "^1.1.3",
|
37
37
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
38
38
|
"@typescript-eslint/parser": "^4.33.0",
|
@@ -58,5 +58,5 @@
|
|
58
58
|
"prettier --write"
|
59
59
|
]
|
60
60
|
},
|
61
|
-
"gitHead": "
|
61
|
+
"gitHead": "3725a87f97dc196896b89044fd4191fc8ce704ff"
|
62
62
|
}
|
package/things-scene.config.js
CHANGED
@@ -1,85 +1,91 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
const vertical = new URL('./icons/progress-vertical.png', import.meta.url).href
|
2
|
+
const horizontal = new URL('./icons/progress-horizontal.png', import.meta.url).href
|
3
|
+
const circle = new URL('./icons/progress-circle.png', import.meta.url).href
|
4
4
|
|
5
|
-
var templates = [
|
5
|
+
var templates = [
|
6
|
+
{
|
6
7
|
type: 'progress-vertical',
|
7
8
|
description: 'vertical progress-bar',
|
8
|
-
group:
|
9
|
+
group:
|
10
|
+
'chartAndGauge' /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */,
|
9
11
|
icon: vertical,
|
10
12
|
model: {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
13
|
+
type: 'progress-vertical',
|
14
|
+
top: 100,
|
15
|
+
left: 100,
|
16
|
+
width: 70,
|
17
|
+
height: 200,
|
18
|
+
value: 65,
|
19
|
+
fontSize: 20,
|
20
|
+
fontColor: '#fff',
|
21
|
+
fontFamily: 'Arial',
|
22
|
+
fillStyle: '#76c045',
|
23
|
+
strokeStyle: '#585858',
|
24
|
+
text: '#{value}%',
|
25
|
+
alpha: 1,
|
26
|
+
hidden: false,
|
27
|
+
lineWidth: 1,
|
28
|
+
lineDash: 'solid',
|
29
|
+
lineCap: 'butt'
|
28
30
|
}
|
29
|
-
},
|
31
|
+
},
|
32
|
+
{
|
30
33
|
type: 'progress-horizontal',
|
31
34
|
description: 'horizontal progress-bar',
|
32
|
-
group:
|
35
|
+
group:
|
36
|
+
'chartAndGauge' /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */,
|
33
37
|
icon: horizontal,
|
34
38
|
model: {
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
39
|
+
type: 'progress-horizontal',
|
40
|
+
top: 100,
|
41
|
+
left: 100,
|
42
|
+
width: 200,
|
43
|
+
height: 70,
|
44
|
+
value: 65,
|
45
|
+
reverse: false,
|
46
|
+
fontSize: 20,
|
47
|
+
fontColor: '#fff',
|
48
|
+
fontFamily: 'Arial',
|
49
|
+
fillStyle: '#76c045',
|
50
|
+
strokeStyle: '#585858',
|
51
|
+
text: '#{value}%',
|
52
|
+
alpha: 1,
|
53
|
+
hidden: false,
|
54
|
+
lineWidth: 1,
|
55
|
+
lineDash: 'solid',
|
56
|
+
lineCap: 'butt'
|
53
57
|
}
|
54
|
-
},
|
58
|
+
},
|
59
|
+
{
|
55
60
|
type: 'progress-circle',
|
56
61
|
description: 'circle shaped progress-bar',
|
57
|
-
group:
|
62
|
+
group:
|
63
|
+
'chartAndGauge' /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */,
|
58
64
|
icon: circle,
|
59
65
|
model: {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
66
|
+
type: 'progress-circle',
|
67
|
+
cy: 150,
|
68
|
+
cx: 150,
|
69
|
+
rx: 70,
|
70
|
+
ry: 70,
|
71
|
+
value: 65,
|
72
|
+
startAngle: 0,
|
73
|
+
endAngle: 360,
|
74
|
+
fontSize: 20,
|
75
|
+
strokeStyle: '#76c045',
|
76
|
+
blankStrokeStyle: '#ccc',
|
77
|
+
fontFamily: 'Arial',
|
78
|
+
fontColor: '#585858',
|
79
|
+
text: '#{value}%',
|
80
|
+
alpha: 1,
|
81
|
+
hidden: false,
|
82
|
+
lineWidth: 20,
|
83
|
+
lineDash: 'solid',
|
84
|
+
lineCap: 'round'
|
79
85
|
}
|
80
|
-
}
|
86
|
+
}
|
87
|
+
]
|
81
88
|
|
82
89
|
export default {
|
83
|
-
|
84
|
-
}
|
85
|
-
|
90
|
+
templates
|
91
|
+
}
|