@operato/scene-polypath 1.2.46
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 +11 -0
- package/README.md +15 -0
- package/assets/favicon.ico +0 -0
- package/assets/images/spinner.png +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/polypath.d.ts +29 -0
- package/dist/polypath.js +116 -0
- package/dist/polypath.js.map +1 -0
- package/icons/polypath.png +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +15 -0
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +15 -0
- package/logs/application-2023-06-10-07.log +7 -0
- package/logs/connections-2023-06-10-07.log +41 -0
- package/package.json +61 -0
- package/schema.gql +2773 -0
- package/src/index.ts +1 -0
- package/src/polypath.ts +142 -0
- package/test/basic-test.html +67 -0
- package/test/index.html +22 -0
- package/things-scene.config.js +34 -0
- package/tsconfig.json +22 -0
- package/tsconfig.tsbuildinfo +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.2.46](https://github.com/things-scene/operato-scene/compare/v1.2.45...v1.2.46) (2023-06-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :bug: Bug Fix
|
|
10
|
+
|
|
11
|
+
* add polypath ([9d97250](https://github.com/things-scene/operato-scene/commit/9d97250b299cdb07f1d3629df85ad9a0a2445df5))
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# things-scene-polypath
|
|
2
|
+
|
|
3
|
+
## build
|
|
4
|
+
|
|
5
|
+
`$ yarn build`
|
|
6
|
+
|
|
7
|
+
| type | filename | for | tested |
|
|
8
|
+
| ---- | --------------------------- | -------------- | ------ |
|
|
9
|
+
| UMD | things-scene-polypath.js | modern browser | O |
|
|
10
|
+
| UMD | things-scene-polypath-ie.js | ie 11 | O |
|
|
11
|
+
| ESM | things-scene-polypath.mjs | modern browser | O |
|
|
12
|
+
|
|
13
|
+
## publish
|
|
14
|
+
|
|
15
|
+
`$ yarn publish`
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PolyPath } from './polypath';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA","sourcesContent":["export { default as PolyPath } from './polypath'\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component, Shape } from '@hatiolab/things-scene';
|
|
2
|
+
export default class PolyPath extends Shape {
|
|
3
|
+
get pathExtendable(): boolean;
|
|
4
|
+
get path(): any;
|
|
5
|
+
set path(path: any);
|
|
6
|
+
contains(x: number, y: number): boolean;
|
|
7
|
+
get controls(): {
|
|
8
|
+
x: any;
|
|
9
|
+
y: any;
|
|
10
|
+
handler: {
|
|
11
|
+
ondragstart: (point: import("@hatiolab/things-scene").POINT, index: number, component: Component) => void;
|
|
12
|
+
ondragmove: (point: import("@hatiolab/things-scene").POINT, index: number, component: Component) => void;
|
|
13
|
+
ondragend: (point: import("@hatiolab/things-scene").POINT, index: number, component: Component) => void;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
render(ctx: CanvasRenderingContext2D): void;
|
|
17
|
+
is3dish(): boolean;
|
|
18
|
+
get nature(): {
|
|
19
|
+
mutable: boolean;
|
|
20
|
+
resizable: boolean;
|
|
21
|
+
rotatable: boolean;
|
|
22
|
+
properties: {
|
|
23
|
+
type: string;
|
|
24
|
+
label: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}[];
|
|
27
|
+
help: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
package/dist/polypath.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Shape } from '@hatiolab/things-scene';
|
|
5
|
+
var controlHandler = {
|
|
6
|
+
ondragstart: function (point, index, component) {
|
|
7
|
+
component.mutatePath(null, function (path) {
|
|
8
|
+
path.splice(index, 0, point); // array.insert(index, point) 의 의미임.
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
ondragmove: function (point, index, component) {
|
|
12
|
+
component.mutatePath(null, function (path) {
|
|
13
|
+
path[index] = point;
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
ondragend: function (point, index, component) { }
|
|
17
|
+
};
|
|
18
|
+
const NATURE = {
|
|
19
|
+
mutable: true,
|
|
20
|
+
resizable: false,
|
|
21
|
+
rotatable: false,
|
|
22
|
+
properties: [
|
|
23
|
+
{
|
|
24
|
+
type: 'number',
|
|
25
|
+
label: 'w',
|
|
26
|
+
name: 'w'
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
help: 'scene/component/polypath'
|
|
30
|
+
};
|
|
31
|
+
export default class PolyPath extends Shape {
|
|
32
|
+
get pathExtendable() {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
get path() {
|
|
36
|
+
return this.getState('path');
|
|
37
|
+
}
|
|
38
|
+
set path(path) {
|
|
39
|
+
this.setState('path', path);
|
|
40
|
+
}
|
|
41
|
+
contains(x, y) {
|
|
42
|
+
var path = this.state.path;
|
|
43
|
+
var result = false;
|
|
44
|
+
path.forEach((p, idx) => {
|
|
45
|
+
let j = (idx + path.length + 1) % path.length;
|
|
46
|
+
let x1 = p.x;
|
|
47
|
+
let y1 = p.y;
|
|
48
|
+
let x2 = path[j].x;
|
|
49
|
+
let y2 = path[j].y;
|
|
50
|
+
if (y1 > y != y2 > y && x < ((x2 - x1) * (y - y1)) / (y2 - y1) + x1)
|
|
51
|
+
result = !result;
|
|
52
|
+
});
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
get controls() {
|
|
56
|
+
// 폴리라인에서의 control은 새로운 path를 추가하는 포인트이다.
|
|
57
|
+
var path = this.path;
|
|
58
|
+
var controls = [];
|
|
59
|
+
for (let i = 0; i < path.length - 1; i++) {
|
|
60
|
+
let p1 = path[i];
|
|
61
|
+
let p2 = path[i + 1];
|
|
62
|
+
if (i == 0) {
|
|
63
|
+
controls.push({
|
|
64
|
+
x: p1.x,
|
|
65
|
+
y: p1.y,
|
|
66
|
+
handler: controlHandler
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
controls.push({
|
|
70
|
+
x: (p1.x + p2.x) / 2,
|
|
71
|
+
y: (p1.y + p2.y) / 2,
|
|
72
|
+
handler: controlHandler
|
|
73
|
+
});
|
|
74
|
+
if (i == path.length - 2) {
|
|
75
|
+
controls.push({
|
|
76
|
+
x: p2.x,
|
|
77
|
+
y: p2.y,
|
|
78
|
+
handler: controlHandler
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return controls;
|
|
83
|
+
}
|
|
84
|
+
render(ctx) {
|
|
85
|
+
var { path, w = 50 } = this.state;
|
|
86
|
+
ctx.beginPath();
|
|
87
|
+
ctx.moveTo(path[0].x, path[0].y);
|
|
88
|
+
// 폭 적용하여 폐곡선 그리기
|
|
89
|
+
for (let i = 1; i < path.length; i++) {
|
|
90
|
+
const { x: prevX, y: prevY } = path[i - 1];
|
|
91
|
+
const { x: currX, y: currY } = path[i];
|
|
92
|
+
const angle = Math.atan2(currY - prevY, currX - prevX);
|
|
93
|
+
const offsetX = w * Math.sin(angle);
|
|
94
|
+
const offsetY = w * Math.cos(angle);
|
|
95
|
+
ctx.lineTo(currX + offsetX, currY - offsetY);
|
|
96
|
+
}
|
|
97
|
+
// for (let i = path.length - 1; i >= 0; i--) {
|
|
98
|
+
// const { x: prevX, y: prevY } = path[i + 1] || path[path.length - 1]
|
|
99
|
+
// const { x: currX, y: currY } = path[i]
|
|
100
|
+
// const angle = Math.atan2(currY - prevY, currX - prevX)
|
|
101
|
+
// const offsetX = w * Math.sin(angle)
|
|
102
|
+
// const offsetY = w * Math.cos(angle)
|
|
103
|
+
// ctx.lineTo(currX - offsetX, currY + offsetY)
|
|
104
|
+
// }
|
|
105
|
+
ctx.closePath();
|
|
106
|
+
}
|
|
107
|
+
is3dish() {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
get nature() {
|
|
111
|
+
return NATURE;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
Component.memoize(PolyPath.prototype, 'controls', false);
|
|
115
|
+
Component.register('polypath', PolyPath);
|
|
116
|
+
//# sourceMappingURL=polypath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polypath.js","sourceRoot":"","sources":["../src/polypath.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAY,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAEnE,IAAI,cAAc,GAAG;IACnB,WAAW,EAAE,UAAU,KAAe,EAAE,KAAa,EAAE,SAAoB;QACzE,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,IAAI;YACvC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA,CAAC,oCAAoC;QACnE,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,UAAU,EAAE,UAAU,KAAe,EAAE,KAAa,EAAE,SAAoB;QACxE,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,IAAI;YACvC,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,SAAS,EAAE,UAAU,KAAe,EAAE,KAAa,EAAE,S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,KAAK,CAAC,CAAA;AAExD,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { Component, POSITION, Shape } from '@hatiolab/things-scene'\n\nvar controlHandler = {\n ondragstart: function (point: POSITION, index: number, component: Component) {\n component.mutatePath(null, function (path) {\n path.splice(index, 0, point) // array.insert(index, point) 의 의미임.\n })\n },\n\n ondragmove: function (point: POSITION, index: number, component: Component) {\n component.mutatePath(null, function (path) {\n path[index] = point\n })\n },\n\n ondragend: function (point: POSITION, index: number, component: Component) {}\n}\n\nconst NATURE = {\n mutable: true,\n resizable: false,\n rotatable: false,\n properties: [\n {\n type: 'number',\n label: 'w',\n name: 'w'\n }\n ],\n help: 'scene/component/polypath'\n}\n\nexport default class PolyPath extends Shape {\n get pathExtendable() {\n return true\n }\n\n get path() {\n return this.getState('path')\n }\n\n set path(path) {\n this.setState('path', path)\n }\n\n contains(x: number, y: number) {\n var path = this.state.path\n var result = false\n\n path.forEach((p: { x: number; y: number }, idx: number) => {\n let j = (idx + path.length + 1) % path.length\n\n let x1 = p.x\n let y1 = p.y\n let x2 = path[j].x\n let y2 = path[j].y\n\n if (y1 > y != y2 > y && x < ((x2 - x1) * (y - y1)) / (y2 - y1) + x1) result = !result\n })\n\n return result\n }\n\n get controls() {\n // 폴리라인에서의 control은 새로운 path를 추가하는 포인트이다.\n var path = this.path\n var controls = []\n\n for (let i = 0; i < path.length - 1; i++) {\n let p1 = path[i]\n let p2 = path[i + 1]\n\n if (i == 0) {\n controls.push({\n x: p1.x,\n y: p1.y,\n handler: controlHandler\n })\n }\n\n controls.push({\n x: (p1.x + p2.x) / 2,\n y: (p1.y + p2.y) / 2,\n handler: controlHandler\n })\n\n if (i == path.length - 2) {\n controls.push({\n x: p2.x,\n y: p2.y,\n handler: controlHandler\n })\n }\n }\n\n return controls\n }\n\n render(ctx: CanvasRenderingContext2D) {\n var { path, w = 50 } = this.state\n\n ctx.beginPath()\n ctx.moveTo(path[0].x, path[0].y)\n\n // 폭 적용하여 폐곡선 그리기\n for (let i = 1; i < path.length; i++) {\n const { x: prevX, y: prevY } = path[i - 1]\n const { x: currX, y: currY } = path[i]\n const angle = Math.atan2(currY - prevY, currX - prevX)\n const offsetX = w * Math.sin(angle)\n const offsetY = w * Math.cos(angle)\n ctx.lineTo(currX + offsetX, currY - offsetY)\n }\n\n // for (let i = path.length - 1; i >= 0; i--) {\n // const { x: prevX, y: prevY } = path[i + 1] || path[path.length - 1]\n // const { x: currX, y: currY } = path[i]\n // const angle = Math.atan2(currY - prevY, currX - prevX)\n // const offsetX = w * Math.sin(angle)\n // const offsetY = w * Math.cos(angle)\n // ctx.lineTo(currX - offsetX, currY + offsetY)\n // }\n\n ctx.closePath()\n }\n\n is3dish() {\n return false\n }\n\n get nature() {\n return NATURE\n }\n}\n\nComponent.memoize(PolyPath.prototype, 'controls', false)\n\nComponent.register('polypath', PolyPath)\n"]}
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"keep": {
|
|
3
|
+
"days": true,
|
|
4
|
+
"amount": 2
|
|
5
|
+
},
|
|
6
|
+
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
|
7
|
+
"files": [
|
|
8
|
+
{
|
|
9
|
+
"date": 1686348181239,
|
|
10
|
+
"name": "logs/application-2023-06-10-07.log",
|
|
11
|
+
"hash": "fc0c195fb8de8119ccbcdff99c2f36c9080b942a0712a2db24fffc5efdd8fd4c"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"hashType": "sha256"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"keep": {
|
|
3
|
+
"days": true,
|
|
4
|
+
"amount": 14
|
|
5
|
+
},
|
|
6
|
+
"auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
|
|
7
|
+
"files": [
|
|
8
|
+
{
|
|
9
|
+
"date": 1686348182525,
|
|
10
|
+
"name": "logs/connections-2023-06-10-07.log",
|
|
11
|
+
"hash": "7d0fb0fde4aeed23a9518860c52aa07c36c0321a7b15d1f549d95d1a5cf81f31"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"hashType": "sha256"
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
2023-06-10T07:03:01+09:00 info: File Storage is Ready.
|
|
2
|
+
2023-06-10T07:03:02+09:00 error: oracledb module loading failed
|
|
3
|
+
2023-06-10T07:03:27+09:00 info: File Storage is Ready.
|
|
4
|
+
2023-06-10T07:03:28+09:00 error: oracledb module loading failed
|
|
5
|
+
2023-06-10T07:03:28+09:00 info: Default DataSource established
|
|
6
|
+
2023-06-10T07:03:29+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
7
|
+
2023-06-10T07:03:29+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
2023-06-10T07:03:29+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2023-06-10T07:03:29+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2023-06-10T07:03:29+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2023-06-10T07:03:29+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2023-06-10T07:03:29+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2023-06-10T07:03:29+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2023-06-10T07:03:29+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2023-06-10T07:03:29+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2023-06-10T07:03:29+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2023-06-10T07:03:29+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2023-06-10T07:03:29+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2023-06-10T07:03:29+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2023-06-10T07:03:29+09:00 info: Connector 'msgraph-connector' started to ready
|
|
14
|
+
2023-06-10T07:03:29+09:00 info: Connector 'openai-connector' started to ready
|
|
15
|
+
2023-06-10T07:03:29+09:00 info: echo-back-servers are ready
|
|
16
|
+
2023-06-10T07:03:29+09:00 info: echo-back connections are ready
|
|
17
|
+
2023-06-10T07:03:29+09:00 info: http-connector connections are ready
|
|
18
|
+
2023-06-10T07:03:29+09:00 info: graphql-connector connections are ready
|
|
19
|
+
2023-06-10T07:03:29+09:00 info: sqlite-connector connections are ready
|
|
20
|
+
2023-06-10T07:03:29+09:00 info: postgresql-connector connections are ready
|
|
21
|
+
2023-06-10T07:03:29+09:00 info: mqtt-connector connections are ready
|
|
22
|
+
2023-06-10T07:03:29+09:00 info: mssql-connector connections are ready
|
|
23
|
+
2023-06-10T07:03:29+09:00 info: oracle-connector connections are ready
|
|
24
|
+
2023-06-10T07:03:29+09:00 info: mysql-connector connections are ready
|
|
25
|
+
2023-06-10T07:03:29+09:00 info: socket servers are ready
|
|
26
|
+
2023-06-10T07:03:29+09:00 info: msgraph-connector connections are ready
|
|
27
|
+
2023-06-10T07:03:29+09:00 info: openai-connector connections are ready
|
|
28
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'echo-back-server' ready
|
|
29
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'echo-back' ready
|
|
30
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'http-connector' ready
|
|
31
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'graphql-connector' ready
|
|
32
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'sqlite-connector' ready
|
|
33
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'postgresql-connector' ready
|
|
34
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'mqtt-connector' ready
|
|
35
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'mssql-connector' ready
|
|
36
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'oracle-connector' ready
|
|
37
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'mysql-connector' ready
|
|
38
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'socket-server' ready
|
|
39
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'msgraph-connector' ready
|
|
40
|
+
2023-06-10T07:03:29+09:00 info: All connector for 'openai-connector' ready
|
|
41
|
+
2023-06-10T07:03:29+09:00 info: ConnectionManager initialization done:
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@operato/scene-polypath",
|
|
3
|
+
"version": "1.2.46",
|
|
4
|
+
"description": "Poly path component for things-scene",
|
|
5
|
+
"author": "heartyoh",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"things-scene": true,
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public",
|
|
12
|
+
"@operato:registry": "https://registry.npmjs.org"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/things-scene/operato-scene.git",
|
|
17
|
+
"directory": "packages/polypath"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"serve": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"things-factory-dev\"",
|
|
21
|
+
"serve:dev": "npm run serve",
|
|
22
|
+
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
|
|
23
|
+
"build": "tsc",
|
|
24
|
+
"prepublish": "tsc",
|
|
25
|
+
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
26
|
+
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
27
|
+
"migration": "things-factory-migration"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@hatiolab/things-scene": "^3.2.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@hatiolab/prettier-config": "^1.0.0",
|
|
34
|
+
"@things-factory/builder": "^6.0.0",
|
|
35
|
+
"@things-factory/operato-board": "^6.0.0",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
37
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
38
|
+
"@web/dev-server": "^0.1.28",
|
|
39
|
+
"concurrently": "^8.0.1",
|
|
40
|
+
"eslint": "^8.39.0",
|
|
41
|
+
"eslint-config-prettier": "^8.3.0",
|
|
42
|
+
"husky": "^8.0.3",
|
|
43
|
+
"lint-staged": "^13.2.2",
|
|
44
|
+
"prettier": "^2.4.1",
|
|
45
|
+
"tslib": "^2.3.1",
|
|
46
|
+
"typescript": "^5.0.4"
|
|
47
|
+
},
|
|
48
|
+
"prettier": "@hatiolab/prettier-config",
|
|
49
|
+
"husky": {
|
|
50
|
+
"hooks": {
|
|
51
|
+
"pre-commit": "lint-staged"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"lint-staged": {
|
|
55
|
+
"*.ts": [
|
|
56
|
+
"eslint --fix",
|
|
57
|
+
"prettier --write"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"gitHead": "1642231c4a8e50b20f520fad3ac3e00ebf7fe8d8"
|
|
61
|
+
}
|