@hatiolab/things-scene 2.7.20 → 2.7.24

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 CHANGED
Binary file
@@ -6,14 +6,9 @@
6
6
  "auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
7
7
  "files": [
8
8
  {
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"
9
+ "date": 1637197753807,
10
+ "name": "logs/application-2021-11-18-10.log",
11
+ "hash": "60308471926516db51320e0503ed6753"
17
12
  }
18
13
  ]
19
14
  }
@@ -6,9 +6,34 @@
6
6
  "auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
7
7
  "files": [
8
8
  {
9
- "date": 1638280204215,
10
- "name": "logs/connections-2021-11-30-22.log",
11
- "hash": "597f95ca19f31dd91f9c85dbbced90e7"
9
+ "date": 1636343555220,
10
+ "name": "logs/connections-2021-11-08-12.log",
11
+ "hash": "23417059ecf69baeda8739fd2328eb34"
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"
12
37
  }
13
38
  ]
14
39
  }
@@ -0,0 +1,4 @@
1
+ 2021-11-18T01:09:14.940Z info: File Storage is Ready.
2
+ 2021-11-18T01:09:16.739Z info: Database connection established
3
+ 2021-11-18T01:09:17.507Z info: 🚀 Server ready at http://0.0.0.0:3000/graphql
4
+ 2021-11-18T01:09:17.507Z info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
File without changes
@@ -0,0 +1,32 @@
1
+ 2021-11-08T05:11:47.084Z info: Initializing ConnectionManager...
2
+ 2021-11-08T05:11:47.084Z info: Connector 'echo-back-server' started to ready
3
+ 2021-11-08T05:11:47.084Z info: Connector 'echo-back' started to ready
4
+ 2021-11-08T05:11:47.085Z info: Connector 'http-connector' started to ready
5
+ 2021-11-08T05:11:47.085Z info: Connector 'graphql-connector' started to ready
6
+ 2021-11-08T05:11:47.085Z info: Connector 'sqlite-connector' started to ready
7
+ 2021-11-08T05:11:47.085Z info: Connector 'postgresql-connector' started to ready
8
+ 2021-11-08T05:11:47.085Z info: Connector 'mqtt-connector' started to ready
9
+ 2021-11-08T05:11:47.085Z info: Connector 'mssql-connector' started to ready
10
+ 2021-11-08T05:11:47.085Z info: Connector 'oracle-connector' started to ready
11
+ 2021-11-08T05:11:47.085Z info: Connector 'socket-server' started to ready
12
+ 2021-11-08T05:11:47.085Z info: echo-back-servers are ready
13
+ 2021-11-08T05:11:47.085Z info: echo-back connections are ready
14
+ 2021-11-08T05:11:47.085Z info: http-connector connections are ready
15
+ 2021-11-08T05:11:47.085Z info: graphql-connector connections are ready
16
+ 2021-11-08T05:11:47.085Z info: sqlite-connector connections are ready
17
+ 2021-11-08T05:11:47.085Z info: postgresql-connector connections are ready
18
+ 2021-11-08T05:11:47.085Z info: mqtt-connector connections are ready
19
+ 2021-11-08T05:11:47.085Z info: mssql-connector connections are ready
20
+ 2021-11-08T05:11:47.085Z info: oracle-connector connections are ready
21
+ 2021-11-08T05:11:47.086Z info: socket servers are ready
22
+ 2021-11-08T05:11:47.086Z info: All connector for 'echo-back-server' ready
23
+ 2021-11-08T05:11:47.086Z info: All connector for 'echo-back' ready
24
+ 2021-11-08T05:11:47.086Z info: All connector for 'http-connector' ready
25
+ 2021-11-08T05:11:47.086Z info: All connector for 'graphql-connector' ready
26
+ 2021-11-08T05:11:47.086Z info: All connector for 'sqlite-connector' ready
27
+ 2021-11-08T05:11:47.086Z info: All connector for 'postgresql-connector' ready
28
+ 2021-11-08T05:11:47.086Z info: All connector for 'mqtt-connector' ready
29
+ 2021-11-08T05:11:47.086Z info: All connector for 'mssql-connector' ready
30
+ 2021-11-08T05:11:47.086Z info: All connector for 'oracle-connector' ready
31
+ 2021-11-08T05:11:47.086Z info: All connector for 'socket-server' ready
32
+ 2021-11-08T05:11:47.086Z info: ConnectionManager initialization done:
@@ -0,0 +1,64 @@
1
+ 2021-11-11T07:26:04.436Z info: Initializing ConnectionManager...
2
+ 2021-11-11T07:26:04.437Z info: Connector 'echo-back-server' started to ready
3
+ 2021-11-11T07:26:04.437Z info: Connector 'echo-back' started to ready
4
+ 2021-11-11T07:26:04.437Z info: Connector 'http-connector' started to ready
5
+ 2021-11-11T07:26:04.437Z info: Connector 'graphql-connector' started to ready
6
+ 2021-11-11T07:26:04.437Z info: Connector 'sqlite-connector' started to ready
7
+ 2021-11-11T07:26:04.437Z info: Connector 'postgresql-connector' started to ready
8
+ 2021-11-11T07:26:04.437Z info: Connector 'mqtt-connector' started to ready
9
+ 2021-11-11T07:26:04.437Z info: Connector 'mssql-connector' started to ready
10
+ 2021-11-11T07:26:04.437Z info: Connector 'oracle-connector' started to ready
11
+ 2021-11-11T07:26:04.437Z info: Connector 'socket-server' started to ready
12
+ 2021-11-11T07:26:04.438Z info: echo-back-servers are ready
13
+ 2021-11-11T07:26:04.438Z info: echo-back connections are ready
14
+ 2021-11-11T07:26:04.438Z info: http-connector connections are ready
15
+ 2021-11-11T07:26:04.438Z info: graphql-connector connections are ready
16
+ 2021-11-11T07:26:04.438Z info: sqlite-connector connections are ready
17
+ 2021-11-11T07:26:04.438Z info: postgresql-connector connections are ready
18
+ 2021-11-11T07:26:04.438Z info: mqtt-connector connections are ready
19
+ 2021-11-11T07:26:04.438Z info: mssql-connector connections are ready
20
+ 2021-11-11T07:26:04.438Z info: oracle-connector connections are ready
21
+ 2021-11-11T07:26:04.438Z info: socket servers are ready
22
+ 2021-11-11T07:26:04.438Z info: All connector for 'echo-back-server' ready
23
+ 2021-11-11T07:26:04.438Z info: All connector for 'echo-back' ready
24
+ 2021-11-11T07:26:04.438Z info: All connector for 'http-connector' ready
25
+ 2021-11-11T07:26:04.438Z info: All connector for 'graphql-connector' ready
26
+ 2021-11-11T07:26:04.438Z info: All connector for 'sqlite-connector' ready
27
+ 2021-11-11T07:26:04.438Z info: All connector for 'postgresql-connector' ready
28
+ 2021-11-11T07:26:04.438Z info: All connector for 'mqtt-connector' ready
29
+ 2021-11-11T07:26:04.438Z info: All connector for 'mssql-connector' ready
30
+ 2021-11-11T07:26:04.438Z info: All connector for 'oracle-connector' ready
31
+ 2021-11-11T07:26:04.438Z info: All connector for 'socket-server' ready
32
+ 2021-11-11T07:26:04.438Z info: ConnectionManager initialization done:
33
+ 2021-11-11T07:31:09.084Z info: Initializing ConnectionManager...
34
+ 2021-11-11T07:31:09.084Z info: Connector 'echo-back-server' started to ready
35
+ 2021-11-11T07:31:09.084Z info: Connector 'echo-back' started to ready
36
+ 2021-11-11T07:31:09.084Z info: Connector 'http-connector' started to ready
37
+ 2021-11-11T07:31:09.085Z info: Connector 'graphql-connector' started to ready
38
+ 2021-11-11T07:31:09.085Z info: Connector 'sqlite-connector' started to ready
39
+ 2021-11-11T07:31:09.085Z info: Connector 'postgresql-connector' started to ready
40
+ 2021-11-11T07:31:09.085Z info: Connector 'mqtt-connector' started to ready
41
+ 2021-11-11T07:31:09.085Z info: Connector 'mssql-connector' started to ready
42
+ 2021-11-11T07:31:09.086Z info: Connector 'oracle-connector' started to ready
43
+ 2021-11-11T07:31:09.086Z info: Connector 'socket-server' started to ready
44
+ 2021-11-11T07:31:09.086Z info: echo-back-servers are ready
45
+ 2021-11-11T07:31:09.086Z info: echo-back connections are ready
46
+ 2021-11-11T07:31:09.086Z info: http-connector connections are ready
47
+ 2021-11-11T07:31:09.086Z info: graphql-connector connections are ready
48
+ 2021-11-11T07:31:09.086Z info: sqlite-connector connections are ready
49
+ 2021-11-11T07:31:09.086Z info: postgresql-connector connections are ready
50
+ 2021-11-11T07:31:09.086Z info: mqtt-connector connections are ready
51
+ 2021-11-11T07:31:09.086Z info: mssql-connector connections are ready
52
+ 2021-11-11T07:31:09.086Z info: oracle-connector connections are ready
53
+ 2021-11-11T07:31:09.086Z info: socket servers are ready
54
+ 2021-11-11T07:31:09.087Z info: All connector for 'echo-back-server' ready
55
+ 2021-11-11T07:31:09.087Z info: All connector for 'echo-back' ready
56
+ 2021-11-11T07:31:09.087Z info: All connector for 'http-connector' ready
57
+ 2021-11-11T07:31:09.087Z info: All connector for 'graphql-connector' ready
58
+ 2021-11-11T07:31:09.087Z info: All connector for 'sqlite-connector' ready
59
+ 2021-11-11T07:31:09.087Z info: All connector for 'postgresql-connector' ready
60
+ 2021-11-11T07:31:09.087Z info: All connector for 'mqtt-connector' ready
61
+ 2021-11-11T07:31:09.087Z info: All connector for 'mssql-connector' ready
62
+ 2021-11-11T07:31:09.087Z info: All connector for 'oracle-connector' ready
63
+ 2021-11-11T07:31:09.087Z info: All connector for 'socket-server' ready
64
+ 2021-11-11T07:31:09.087Z info: ConnectionManager initialization done:
@@ -0,0 +1,32 @@
1
+ 2021-11-15T07:29:39.137Z info: Initializing ConnectionManager...
2
+ 2021-11-15T07:29:39.138Z info: Connector 'echo-back-server' started to ready
3
+ 2021-11-15T07:29:39.138Z info: Connector 'echo-back' started to ready
4
+ 2021-11-15T07:29:39.138Z info: Connector 'http-connector' started to ready
5
+ 2021-11-15T07:29:39.138Z info: Connector 'graphql-connector' started to ready
6
+ 2021-11-15T07:29:39.139Z info: Connector 'sqlite-connector' started to ready
7
+ 2021-11-15T07:29:39.139Z info: Connector 'postgresql-connector' started to ready
8
+ 2021-11-15T07:29:39.139Z info: Connector 'mqtt-connector' started to ready
9
+ 2021-11-15T07:29:39.139Z info: Connector 'mssql-connector' started to ready
10
+ 2021-11-15T07:29:39.139Z info: Connector 'oracle-connector' started to ready
11
+ 2021-11-15T07:29:39.139Z info: Connector 'socket-server' started to ready
12
+ 2021-11-15T07:29:39.139Z info: echo-back-servers are ready
13
+ 2021-11-15T07:29:39.139Z info: echo-back connections are ready
14
+ 2021-11-15T07:29:39.139Z info: http-connector connections are ready
15
+ 2021-11-15T07:29:39.139Z info: graphql-connector connections are ready
16
+ 2021-11-15T07:29:39.139Z info: sqlite-connector connections are ready
17
+ 2021-11-15T07:29:39.139Z info: postgresql-connector connections are ready
18
+ 2021-11-15T07:29:39.140Z info: mqtt-connector connections are ready
19
+ 2021-11-15T07:29:39.140Z info: mssql-connector connections are ready
20
+ 2021-11-15T07:29:39.140Z info: oracle-connector connections are ready
21
+ 2021-11-15T07:29:39.140Z info: socket servers are ready
22
+ 2021-11-15T07:29:39.140Z info: All connector for 'echo-back-server' ready
23
+ 2021-11-15T07:29:39.140Z info: All connector for 'echo-back' ready
24
+ 2021-11-15T07:29:39.140Z info: All connector for 'http-connector' ready
25
+ 2021-11-15T07:29:39.140Z info: All connector for 'graphql-connector' ready
26
+ 2021-11-15T07:29:39.140Z info: All connector for 'sqlite-connector' ready
27
+ 2021-11-15T07:29:39.140Z info: All connector for 'postgresql-connector' ready
28
+ 2021-11-15T07:29:39.140Z info: All connector for 'mqtt-connector' ready
29
+ 2021-11-15T07:29:39.140Z info: All connector for 'mssql-connector' ready
30
+ 2021-11-15T07:29:39.140Z info: All connector for 'oracle-connector' ready
31
+ 2021-11-15T07:29:39.140Z info: All connector for 'socket-server' ready
32
+ 2021-11-15T07:29:39.140Z info: ConnectionManager initialization done:
@@ -0,0 +1,32 @@
1
+ 2021-11-16T00:46:02.964Z info: Initializing ConnectionManager...
2
+ 2021-11-16T00:46:02.964Z info: Connector 'echo-back-server' started to ready
3
+ 2021-11-16T00:46:02.964Z info: Connector 'echo-back' started to ready
4
+ 2021-11-16T00:46:02.965Z info: Connector 'http-connector' started to ready
5
+ 2021-11-16T00:46:02.965Z info: Connector 'graphql-connector' started to ready
6
+ 2021-11-16T00:46:02.965Z info: Connector 'sqlite-connector' started to ready
7
+ 2021-11-16T00:46:02.965Z info: Connector 'postgresql-connector' started to ready
8
+ 2021-11-16T00:46:02.965Z info: Connector 'mqtt-connector' started to ready
9
+ 2021-11-16T00:46:02.965Z info: Connector 'mssql-connector' started to ready
10
+ 2021-11-16T00:46:02.965Z info: Connector 'oracle-connector' started to ready
11
+ 2021-11-16T00:46:02.965Z info: Connector 'socket-server' started to ready
12
+ 2021-11-16T00:46:02.965Z info: echo-back-servers are ready
13
+ 2021-11-16T00:46:02.965Z info: echo-back connections are ready
14
+ 2021-11-16T00:46:02.965Z info: http-connector connections are ready
15
+ 2021-11-16T00:46:02.965Z info: graphql-connector connections are ready
16
+ 2021-11-16T00:46:02.965Z info: sqlite-connector connections are ready
17
+ 2021-11-16T00:46:02.965Z info: postgresql-connector connections are ready
18
+ 2021-11-16T00:46:02.965Z info: mqtt-connector connections are ready
19
+ 2021-11-16T00:46:02.966Z info: mssql-connector connections are ready
20
+ 2021-11-16T00:46:02.966Z info: oracle-connector connections are ready
21
+ 2021-11-16T00:46:02.966Z info: socket servers are ready
22
+ 2021-11-16T00:46:02.966Z info: All connector for 'echo-back-server' ready
23
+ 2021-11-16T00:46:02.966Z info: All connector for 'echo-back' ready
24
+ 2021-11-16T00:46:02.966Z info: All connector for 'http-connector' ready
25
+ 2021-11-16T00:46:02.966Z info: All connector for 'graphql-connector' ready
26
+ 2021-11-16T00:46:02.966Z info: All connector for 'sqlite-connector' ready
27
+ 2021-11-16T00:46:02.966Z info: All connector for 'postgresql-connector' ready
28
+ 2021-11-16T00:46:02.966Z info: All connector for 'mqtt-connector' ready
29
+ 2021-11-16T00:46:02.966Z info: All connector for 'mssql-connector' ready
30
+ 2021-11-16T00:46:02.966Z info: All connector for 'oracle-connector' ready
31
+ 2021-11-16T00:46:02.966Z info: All connector for 'socket-server' ready
32
+ 2021-11-16T00:46:02.966Z info: ConnectionManager initialization done:
@@ -0,0 +1,32 @@
1
+ 2021-11-18T01:09:17.566Z info: Initializing ConnectionManager...
2
+ 2021-11-18T01:09:17.566Z info: Connector 'echo-back-server' started to ready
3
+ 2021-11-18T01:09:17.566Z info: Connector 'echo-back' started to ready
4
+ 2021-11-18T01:09:17.566Z info: Connector 'http-connector' started to ready
5
+ 2021-11-18T01:09:17.566Z info: Connector 'graphql-connector' started to ready
6
+ 2021-11-18T01:09:17.567Z info: Connector 'sqlite-connector' started to ready
7
+ 2021-11-18T01:09:17.567Z info: Connector 'postgresql-connector' started to ready
8
+ 2021-11-18T01:09:17.567Z info: Connector 'mqtt-connector' started to ready
9
+ 2021-11-18T01:09:17.567Z info: Connector 'mssql-connector' started to ready
10
+ 2021-11-18T01:09:17.567Z info: Connector 'oracle-connector' started to ready
11
+ 2021-11-18T01:09:17.567Z info: Connector 'socket-server' started to ready
12
+ 2021-11-18T01:09:17.567Z info: echo-back-servers are ready
13
+ 2021-11-18T01:09:17.567Z info: echo-back connections are ready
14
+ 2021-11-18T01:09:17.567Z info: http-connector connections are ready
15
+ 2021-11-18T01:09:17.567Z info: graphql-connector connections are ready
16
+ 2021-11-18T01:09:17.567Z info: sqlite-connector connections are ready
17
+ 2021-11-18T01:09:17.567Z info: postgresql-connector connections are ready
18
+ 2021-11-18T01:09:17.567Z info: mqtt-connector connections are ready
19
+ 2021-11-18T01:09:17.567Z info: mssql-connector connections are ready
20
+ 2021-11-18T01:09:17.567Z info: oracle-connector connections are ready
21
+ 2021-11-18T01:09:17.567Z info: socket servers are ready
22
+ 2021-11-18T01:09:17.567Z info: All connector for 'echo-back-server' ready
23
+ 2021-11-18T01:09:17.567Z info: All connector for 'echo-back' ready
24
+ 2021-11-18T01:09:17.567Z info: All connector for 'http-connector' ready
25
+ 2021-11-18T01:09:17.567Z info: All connector for 'graphql-connector' ready
26
+ 2021-11-18T01:09:17.567Z info: All connector for 'sqlite-connector' ready
27
+ 2021-11-18T01:09:17.568Z info: All connector for 'postgresql-connector' ready
28
+ 2021-11-18T01:09:17.568Z info: All connector for 'mqtt-connector' ready
29
+ 2021-11-18T01:09:17.568Z info: All connector for 'mssql-connector' ready
30
+ 2021-11-18T01:09:17.568Z info: All connector for 'oracle-connector' ready
31
+ 2021-11-18T01:09:17.568Z info: All connector for 'socket-server' ready
32
+ 2021-11-18T01:09:17.568Z info: ConnectionManager initialization done:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatiolab/things-scene",
3
- "version": "2.7.20",
3
+ "version": "2.7.24",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
@@ -46,8 +46,8 @@
46
46
  "@babel/register": "^7.8.3",
47
47
  "@rollup/plugin-commonjs": "^17.0.0",
48
48
  "@rollup/plugin-node-resolve": "^11.0.1",
49
- "@things-factory/builder": "^4.0.6",
50
- "@things-factory/operato-board": "^4.0.6",
49
+ "@things-factory/builder": "^4.0.10",
50
+ "@things-factory/operato-board": "^4.0.10",
51
51
  "atob": "^2.1.2",
52
52
  "babel-eslint": "^10.1.0",
53
53
  "babel-jest": "^26.6.3",
package/things-scene.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  declare module '@hatiolab/things-scene' {
2
2
  type Constructor<T = {}> = new (...args: any[]) => T
3
+ type Class = { new (...args: any[]): any }
4
+ type Properties = { [key: string]: any }
3
5
 
4
6
  const MODE_VIEW = 0
5
7
  const MODE_EDIT = 1
@@ -16,7 +18,31 @@ declare module '@hatiolab/things-scene' {
16
18
  type TRANSLATE = DIMENSION
17
19
  type POSITION = DIMENSION
18
20
 
19
- type Properties = { [key: string]: any }
21
+ type LAYOUT = {
22
+ reflow: (container: Container) => void
23
+ capturables?: (container: Container) => boolean
24
+ drawables?: (container: Container) => boolean
25
+ isStuck?: (component: Container) => boolean
26
+ keyNavigate?: (container: Container, component: Component, e: KeyboardEvent) => Component
27
+ joinType?: boolean
28
+ }
29
+
30
+ const AbsoluteLayout: LAYOUT & { ABSOLUTE: boolean }
31
+ const TableLayout: LAYOUT
32
+ const CardLayout: LAYOUT
33
+ const HTMLAbsoluteLayout: LAYOUT
34
+ const LinearHorizontal: LAYOUT
35
+ const LinearVertical: LAYOUT
36
+
37
+ type AnimationConfig = {
38
+ duration?: number
39
+ delay?: number
40
+ step: Function
41
+ delta: 'linear' | 'quad' | 'circ' | 'back' | 'bounce' | 'elastic' | Function
42
+ ease: 'out' | 'inout'
43
+ options?: object
44
+ repeat?: boolean
45
+ }
20
46
 
21
47
  type ControlHandler = {
22
48
  ondragstart?(point: POSITION, index: number, component: Component): void
@@ -65,7 +91,7 @@ declare module '@hatiolab/things-scene' {
65
91
  }
66
92
 
67
93
  class Model {
68
- static compile(model: Model, context: any): Component
94
+ static compile(model: Model, context?: any): Component
69
95
 
70
96
  type: string;
71
97
  [key: string]: any
@@ -134,6 +160,7 @@ declare module '@hatiolab/things-scene' {
134
160
 
135
161
  class Component extends MixinEvent(Object) {
136
162
  static register(type: string, Clazz: typeof Component): void
163
+ static memoize(base: any, property: string, needClone: boolean): void
137
164
 
138
165
  state: Properties
139
166
  bounds: { top: number; left: number; width: number; height: number }
@@ -145,7 +172,8 @@ declare module '@hatiolab/things-scene' {
145
172
  hierarchy: Model
146
173
  path: Array<DIMENSION>
147
174
  anchors: Array<Anchor>
148
- data: any
175
+ get data(): any
176
+ set data(data: any)
149
177
 
150
178
  get controls(): Array<Control> | undefined
151
179
  get hasTextProperty(): boolean
@@ -160,6 +188,11 @@ declare module '@hatiolab/things-scene' {
160
188
  transcoordP2S(x: number, y: number): POSITION
161
189
  render(context: CanvasRenderingContext2D): void
162
190
  executeMappings(force?: boolean): void
191
+ invalidate(): void
192
+ animate(config: AnimationConfig): {
193
+ start: Function /* start function */
194
+ stop: Function /* stop function */
195
+ }
163
196
 
164
197
  onchange(after: Properties, before: Properties): void
165
198
 
@@ -183,6 +216,11 @@ declare module '@hatiolab/things-scene' {
183
216
  indexOf(component: Component): number
184
217
  insertComponentAt(target: Component, idx: number): void
185
218
  findById(id: string): Component
219
+
220
+ add(components: Component[] | Component): Container
221
+ remove(components: Component[] | Component): Container
222
+
223
+ components: Component[]
186
224
  }
187
225
  class RootContainer extends Container {}
188
226
 
@@ -191,15 +229,17 @@ declare module '@hatiolab/things-scene' {
191
229
  canvas: HTMLCanvasElement
192
230
 
193
231
  getContext(): CanvasRenderingContext2D
194
- invalidate(): void
195
232
  }
196
233
 
197
234
  class ModelLayer extends Layer {
198
235
  overlay: HTMLDivElement
199
236
  }
200
237
 
238
+ class Text extends RectPath(Component) {}
201
239
  class Shape extends Component {}
202
240
  class Ellipse extends Shape {}
241
+ class Polygon extends Shape {}
242
+ class Donut extends Ellipse {}
203
243
  class Rect extends RectPath(Shape) {}
204
244
  class HTMLOverlayElement extends MixinHTMLElement(RectPath(Component)) {}
205
245
 
@@ -234,23 +274,7 @@ declare module '@hatiolab/things-scene' {
234
274
  */
235
275
  remove(): void
236
276
 
237
- animate({
238
- duration /* unit: milli-second, 1000 milli-seconds by default */,
239
- delay /* default 30 */,
240
- step /* step function */,
241
- delta /* delta function */,
242
- ease /* ease function */,
243
- options,
244
- repeat /* default false */
245
- }: {
246
- duration: number
247
- delay: number
248
- step: Function
249
- delta: 'linear' | 'quad' | 'circ' | 'back' | 'bounce' | 'elastic' | Function
250
- ease: 'out' | 'inout'
251
- options?: object
252
- repeat: boolean
253
- }): {
277
+ animate(config: AnimationConfig): {
254
278
  start: Function /* start function */
255
279
  stop: Function /* stop function */
256
280
  }