@operato/scene-mpi 10.0.0-beta.2 → 10.0.0-beta.22
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/README.md +14 -22
- package/dist/templates/auto-clicker.js +1 -1
- package/dist/templates/auto-clicker.js.map +1 -1
- package/dist/templates/boot-button.js +1 -1
- package/dist/templates/boot-button.js.map +1 -1
- package/dist/templates/gateway.js +1 -1
- package/dist/templates/gateway.js.map +1 -1
- package/dist/templates/indicator.js +1 -1
- package/dist/templates/indicator.js.map +1 -1
- package/dist/templates/reply-button.js +1 -1
- package/dist/templates/reply-button.js.map +1 -1
- package/dist/templates/seven-segment.js +1 -1
- package/dist/templates/seven-segment.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
# @operato/scene-mpi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Multi-purpose indicator integration component for things-scene
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!-- AUTOGEN_BEGIN: do not edit between markers (run scripts/regenerate-readmes.mjs to update) -->
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
`$ yarn serve:dev`
|
|
7
|
+
## Install
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @operato/scene-mpi
|
|
11
|
+
```
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
`$ yarn serve -p 3001`
|
|
13
|
+
## Build
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
```bash
|
|
16
|
+
yarn build
|
|
17
|
+
```
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
Output: ESM module at `dist/index.js` (single bundle, no UMD/IE legacy).
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
_Version: 10.0.0-beta.2_
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
| type | filename | for | tested |
|
|
24
|
-
| ---- | ---------------------- | -------------- | ------ |
|
|
25
|
-
| UMD | things-scene-mpi.js | modern browser | O |
|
|
26
|
-
| UMD | things-scene-mpi-ie.js | ie 11 | O |
|
|
27
|
-
| ESM | things-scene-mpi.mjs | modern browser | O |
|
|
28
|
-
|
|
29
|
-
## publish
|
|
30
|
-
|
|
31
|
-
`$ yarn publish`
|
|
23
|
+
<!-- AUTOGEN_END -->
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'auto-clicker',
|
|
4
4
|
description: 'auto clicking target',
|
|
5
5
|
group: 'IoT',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'auto-clicker',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-clicker.js","sourceRoot":"","sources":["../../src/templates/auto-clicker.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,0BAA0B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEtE,eAAe;IACb,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,sBAAsB;IACnC,KAAK,EAAE,KAAK;IACZ,
|
|
1
|
+
{"version":3,"file":"auto-clicker.js","sourceRoot":"","sources":["../../src/templates/auto-clicker.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,0BAA0B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEtE,eAAe;IACb,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,sBAAsB;IACnC,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,OAAO;QAClB,WAAW,EAAE,OAAO;QACpB,MAAM,EAAE,OAAO;KAChB;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/no-image.png', import.meta.url).href\n\nexport default {\n type: 'auto-clicker',\n description: 'auto clicking target',\n group: 'IoT',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'auto-clicker',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: 'white',\n strokeStyle: 'black',\n switch: 'false'\n }\n}\n"]}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'boot-button',
|
|
4
4
|
description: 'all gateway boot',
|
|
5
5
|
group: 'IoT',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'boot-button',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-button.js","sourceRoot":"","sources":["../../src/templates/boot-button.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,kCAAkC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE9E,eAAe;IACb,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE,KAAK;IACZ,
|
|
1
|
+
{"version":3,"file":"boot-button.js","sourceRoot":"","sources":["../../src/templates/boot-button.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,kCAAkC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE9E,eAAe;IACb,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,aAAa;QACxB,WAAW,EAAE,aAAa;KAC3B;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-boot-button.png', import.meta.url).href\n\nexport default {\n type: 'boot-button',\n description: 'all gateway boot',\n group: 'IoT',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'boot-button',\n left: 100,\n top: 100,\n width: 500,\n height: 500,\n fillStyle: 'transparent',\n strokeStyle: 'transparent'\n }\n}\n"]}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'gateway',
|
|
4
4
|
description: 'multi-purpose indicator gateway',
|
|
5
5
|
group: 'IoT',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'gateway',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../../src/templates/gateway.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,8BAA8B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE1E,eAAe;IACb,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE,KAAK;IACZ,
|
|
1
|
+
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../../src/templates/gateway.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,8BAA8B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE1E,eAAe;IACb,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,MAAM;QACjB,WAAW,EAAE,UAAU;KACxB;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-gateway.png', import.meta.url).href\n\nexport default {\n type: 'gateway',\n description: 'multi-purpose indicator gateway',\n group: 'IoT',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'gateway',\n left: 10,\n top: 10,\n width: 800,\n height: 600,\n fillStyle: 'cyan',\n strokeStyle: 'darkgray'\n }\n}\n"]}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'indicator',
|
|
4
4
|
description: 'multi-purpose indicator',
|
|
5
5
|
group: 'IoT',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'indicator',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indicator.js","sourceRoot":"","sources":["../../src/templates/indicator.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE5E,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE,KAAK;IACZ,
|
|
1
|
+
{"version":3,"file":"indicator.js","sourceRoot":"","sources":["../../src/templates/indicator.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE5E,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,EAAE;QACV,SAAS,EAAE,OAAO;QAClB,WAAW,EAAE,UAAU;KACxB;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-indicator.png', import.meta.url).href\n\nexport default {\n type: 'indicator',\n description: 'multi-purpose indicator',\n group: 'IoT',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'indicator',\n left: 10,\n top: 10,\n width: 449,\n height: 53,\n fillStyle: 'black',\n strokeStyle: 'darkgray'\n }\n}\n"]}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'reply-button',
|
|
4
4
|
description: 'all mpi response',
|
|
5
5
|
group: 'IoT',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'reply-button',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reply-button.js","sourceRoot":"","sources":["../../src/templates/reply-button.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,mCAAmC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE/E,eAAe;IACb,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE,KAAK;IACZ,
|
|
1
|
+
{"version":3,"file":"reply-button.js","sourceRoot":"","sources":["../../src/templates/reply-button.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,mCAAmC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE/E,eAAe;IACb,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,aAAa;QACxB,WAAW,EAAE,aAAa;KAC3B;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-reply-button.png', import.meta.url).href\n\nexport default {\n type: 'reply-button',\n description: 'all mpi response',\n group: 'IoT',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'reply-button',\n left: 100,\n top: 100,\n width: 500,\n height: 500,\n fillStyle: 'transparent',\n strokeStyle: 'transparent'\n }\n}\n"]}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'seven-segment',
|
|
4
4
|
description: 'electric seven segment emulator',
|
|
5
5
|
group: 'IoT',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'seven-segment',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seven-segment.js","sourceRoot":"","sources":["../../src/templates/seven-segment.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEhF,eAAe;IACb,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE,KAAK;IACZ,
|
|
1
|
+
{"version":3,"file":"seven-segment.js","sourceRoot":"","sources":["../../src/templates/seven-segment.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEhF,eAAe;IACb,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,OAAO;QAClB,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE,UAAU;QACnB,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,EAAE;QACf,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,GAAG;QAClB,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,GAAG;QACjB,eAAe,EAAE,GAAG;QACpB,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;QACb,OAAO,EAAE,kBAAkB;QAC3B,QAAQ,EAAE,gBAAgB;KAC3B;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-seven-segment.png', import.meta.url).href\n\nexport default {\n type: 'seven-segment',\n description: 'electric seven segment emulator',\n group: 'IoT',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'seven-segment',\n left: 10,\n top: 10,\n width: 200,\n height: 300,\n fillStyle: 'black',\n strokeStyle: 'darkgray',\n pattern: '##:##:##',\n value: '12:34:56',\n digitHeight: 20,\n digitWidth: 10,\n digitDistance: 2.5,\n displayAngle: 12,\n segmentWidth: 2.5,\n segmentDistance: 0.2,\n segmentCount: 7,\n cornerType: 0,\n colorOn: 'rgb(233, 93, 15)',\n colorOff: 'rgb(75, 30, 5)'\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/scene-mpi",
|
|
3
3
|
"description": "Multi-purpose indicator integration component for things-scene",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "10.0.0-beta.
|
|
5
|
+
"version": "10.0.0-beta.22",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"prettier --write"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "f48e52f4f5fdc30ec06af9da7cf253f6e29cfb0e"
|
|
62
62
|
}
|