@hatiolab/things-scene 2.7.21 → 2.7.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/db.sqlite +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +8 -3
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +3 -28
- package/logs/application-2021-11-30-22.log +4 -0
- package/logs/application-2021-11-30-23.log +1 -0
- package/logs/connections-2021-11-30-22.log +32 -0
- package/package.json +1 -1
- package/things-scene.d.ts +19 -17
- package/things-scene.mjs +1 -1
- package/logs/application-2021-11-18-10.log +0 -4
- package/logs/connections-2021-11-08-12.log +0 -0
- package/logs/connections-2021-11-08-14.log +0 -32
- package/logs/connections-2021-11-11-16.log +0 -64
- package/logs/connections-2021-11-15-16.log +0 -32
- package/logs/connections-2021-11-16-09.log +0 -32
- package/logs/connections-2021-11-18-10.log +0 -32
package/db.sqlite
CHANGED
|
Binary file
|
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "logs/application-2021-11-
|
|
11
|
-
"hash": "
|
|
9
|
+
"date": 1638280200073,
|
|
10
|
+
"name": "logs/application-2021-11-30-22.log",
|
|
11
|
+
"hash": "3c29ae287aaf6901a583512921751840"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"date": 1638283970309,
|
|
15
|
+
"name": "logs/application-2021-11-30-23.log",
|
|
16
|
+
"hash": "4200b6422ab19fab4a1beeb4b07f4ee5"
|
|
12
17
|
}
|
|
13
18
|
]
|
|
14
19
|
}
|
|
@@ -6,34 +6,9 @@
|
|
|
6
6
|
"auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "logs/connections-2021-11-
|
|
11
|
-
"hash": "
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"date": 1636348304968,
|
|
15
|
-
"name": "logs/connections-2021-11-08-14.log",
|
|
16
|
-
"hash": "03ab9a540ab7d416160ed179aebe0e72"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"date": 1636615561437,
|
|
20
|
-
"name": "logs/connections-2021-11-11-16.log",
|
|
21
|
-
"hash": "19771f048f317bdc9ddff8128e18481e"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"date": 1636961376684,
|
|
25
|
-
"name": "logs/connections-2021-11-15-16.log",
|
|
26
|
-
"hash": "c0c988aae56a80590b503ac9970fe9f1"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"date": 1637023559682,
|
|
30
|
-
"name": "logs/connections-2021-11-16-09.log",
|
|
31
|
-
"hash": "030ff8d626fd14aa6e9091c93d3f1d2c"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"date": 1637197755271,
|
|
35
|
-
"name": "logs/connections-2021-11-18-10.log",
|
|
36
|
-
"hash": "391c98c8e2fd2fb2ed59a1302f4a7903"
|
|
9
|
+
"date": 1638280204215,
|
|
10
|
+
"name": "logs/connections-2021-11-30-22.log",
|
|
11
|
+
"hash": "597f95ca19f31dd91f9c85dbbced90e7"
|
|
37
12
|
}
|
|
38
13
|
]
|
|
39
14
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
2021-11-30T13:50:03.380Z info: File Storage is Ready.
|
|
2
|
+
2021-11-30T13:50:07.609Z info: Database connection established
|
|
3
|
+
2021-11-30T13:50:08.819Z info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
+
2021-11-30T13:50:08.821Z info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2021-11-30T14:52:50.278Z error: Cannot read property 'model' of undefined
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
2021-11-30T13:50:08.942Z info: Initializing ConnectionManager...
|
|
2
|
+
2021-11-30T13:50:08.958Z info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2021-11-30T13:50:08.958Z info: Connector 'echo-back' started to ready
|
|
4
|
+
2021-11-30T13:50:08.958Z info: Connector 'http-connector' started to ready
|
|
5
|
+
2021-11-30T13:50:08.958Z info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2021-11-30T13:50:08.959Z info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2021-11-30T13:50:08.959Z info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2021-11-30T13:50:08.959Z info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2021-11-30T13:50:08.959Z info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2021-11-30T13:50:08.960Z info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2021-11-30T13:50:08.960Z info: Connector 'socket-server' started to ready
|
|
12
|
+
2021-11-30T13:50:08.960Z info: echo-back-servers are ready
|
|
13
|
+
2021-11-30T13:50:08.960Z info: echo-back connections are ready
|
|
14
|
+
2021-11-30T13:50:08.960Z info: http-connector connections are ready
|
|
15
|
+
2021-11-30T13:50:08.961Z info: graphql-connector connections are ready
|
|
16
|
+
2021-11-30T13:50:08.961Z info: sqlite-connector connections are ready
|
|
17
|
+
2021-11-30T13:50:08.961Z info: postgresql-connector connections are ready
|
|
18
|
+
2021-11-30T13:50:08.961Z info: mqtt-connector connections are ready
|
|
19
|
+
2021-11-30T13:50:08.961Z info: mssql-connector connections are ready
|
|
20
|
+
2021-11-30T13:50:08.961Z info: oracle-connector connections are ready
|
|
21
|
+
2021-11-30T13:50:08.961Z info: socket servers are ready
|
|
22
|
+
2021-11-30T13:50:08.961Z info: All connector for 'echo-back-server' ready
|
|
23
|
+
2021-11-30T13:50:08.961Z info: All connector for 'echo-back' ready
|
|
24
|
+
2021-11-30T13:50:08.962Z info: All connector for 'http-connector' ready
|
|
25
|
+
2021-11-30T13:50:08.962Z info: All connector for 'graphql-connector' ready
|
|
26
|
+
2021-11-30T13:50:08.962Z info: All connector for 'sqlite-connector' ready
|
|
27
|
+
2021-11-30T13:50:08.962Z info: All connector for 'postgresql-connector' ready
|
|
28
|
+
2021-11-30T13:50:08.962Z info: All connector for 'mqtt-connector' ready
|
|
29
|
+
2021-11-30T13:50:08.962Z info: All connector for 'mssql-connector' ready
|
|
30
|
+
2021-11-30T13:50:08.962Z info: All connector for 'oracle-connector' ready
|
|
31
|
+
2021-11-30T13:50:08.962Z info: All connector for 'socket-server' ready
|
|
32
|
+
2021-11-30T13:50:08.962Z info: ConnectionManager initialization done:
|
package/package.json
CHANGED
package/things-scene.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare module '@hatiolab/things-scene' {
|
|
2
2
|
type Constructor<T = {}> = new (...args: any[]) => T
|
|
3
|
+
type Class = { new (...args: any[]): any }
|
|
3
4
|
|
|
4
5
|
const MODE_VIEW = 0
|
|
5
6
|
const MODE_EDIT = 1
|
|
@@ -18,6 +19,16 @@ declare module '@hatiolab/things-scene' {
|
|
|
18
19
|
|
|
19
20
|
type Properties = { [key: string]: any }
|
|
20
21
|
|
|
22
|
+
type AnimationConfig = {
|
|
23
|
+
duration?: number
|
|
24
|
+
delay?: number
|
|
25
|
+
step: Function
|
|
26
|
+
delta: 'linear' | 'quad' | 'circ' | 'back' | 'bounce' | 'elastic' | Function
|
|
27
|
+
ease: 'out' | 'inout'
|
|
28
|
+
options?: object
|
|
29
|
+
repeat?: boolean
|
|
30
|
+
}
|
|
31
|
+
|
|
21
32
|
type ControlHandler = {
|
|
22
33
|
ondragstart?(point: POSITION, index: number, component: Component): void
|
|
23
34
|
ondragmove?(point: POSITION, index: number, component: Component): void
|
|
@@ -134,6 +145,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
134
145
|
|
|
135
146
|
class Component extends MixinEvent(Object) {
|
|
136
147
|
static register(type: string, Clazz: typeof Component): void
|
|
148
|
+
static memoize(base: any, property: string, needClone: boolean): void
|
|
137
149
|
|
|
138
150
|
state: Properties
|
|
139
151
|
bounds: { top: number; left: number; width: number; height: number }
|
|
@@ -161,6 +173,10 @@ declare module '@hatiolab/things-scene' {
|
|
|
161
173
|
render(context: CanvasRenderingContext2D): void
|
|
162
174
|
executeMappings(force?: boolean): void
|
|
163
175
|
invalidate(): void
|
|
176
|
+
animate(config: AnimationConfig): {
|
|
177
|
+
start: Function /* start function */
|
|
178
|
+
stop: Function /* stop function */
|
|
179
|
+
}
|
|
164
180
|
|
|
165
181
|
onchange(after: Properties, before: Properties): void
|
|
166
182
|
|
|
@@ -201,6 +217,8 @@ declare module '@hatiolab/things-scene' {
|
|
|
201
217
|
class Text extends RectPath(Component) {}
|
|
202
218
|
class Shape extends Component {}
|
|
203
219
|
class Ellipse extends Shape {}
|
|
220
|
+
class Polygon extends Shape {}
|
|
221
|
+
class Donut extends Ellipse {}
|
|
204
222
|
class Rect extends RectPath(Shape) {}
|
|
205
223
|
class HTMLOverlayElement extends MixinHTMLElement(RectPath(Component)) {}
|
|
206
224
|
|
|
@@ -235,23 +253,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
235
253
|
*/
|
|
236
254
|
remove(): void
|
|
237
255
|
|
|
238
|
-
animate({
|
|
239
|
-
duration /* unit: milli-second, 1000 milli-seconds by default */,
|
|
240
|
-
delay /* default 30 */,
|
|
241
|
-
step /* step function */,
|
|
242
|
-
delta /* delta function */,
|
|
243
|
-
ease /* ease function */,
|
|
244
|
-
options,
|
|
245
|
-
repeat /* default false */
|
|
246
|
-
}: {
|
|
247
|
-
duration: number
|
|
248
|
-
delay: number
|
|
249
|
-
step: Function
|
|
250
|
-
delta: 'linear' | 'quad' | 'circ' | 'back' | 'bounce' | 'elastic' | Function
|
|
251
|
-
ease: 'out' | 'inout'
|
|
252
|
-
options?: object
|
|
253
|
-
repeat: boolean
|
|
254
|
-
}): {
|
|
256
|
+
animate(config: AnimationConfig): {
|
|
255
257
|
start: Function /* start function */
|
|
256
258
|
stop: Function /* stop function */
|
|
257
259
|
}
|