@hatiolab/things-scene 2.7.22 → 3.0.0-beta.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/db.sqlite +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +3 -8
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +28 -3
- package/logs/application-2021-11-18-10.log +4 -0
- package/logs/connections-2021-11-08-12.log +0 -0
- package/logs/connections-2021-11-08-14.log +32 -0
- package/logs/connections-2021-11-11-16.log +64 -0
- package/logs/connections-2021-11-15-16.log +32 -0
- package/logs/connections-2021-11-16-09.log +32 -0
- package/logs/connections-2021-11-18-10.log +32 -0
- package/package.json +1 -1
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.d.ts +24 -3
- package/things-scene.mjs +1 -1
- package/logs/application-2021-11-30-22.log +0 -4
- package/logs/application-2021-11-30-23.log +0 -1
- package/logs/connections-2021-11-30-22.log +0 -32
package/things-scene.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare module '@hatiolab/things-scene' {
|
|
2
2
|
type Constructor<T = {}> = new (...args: any[]) => T
|
|
3
3
|
type Class = { new (...args: any[]): any }
|
|
4
|
+
type Properties = { [key: string]: any }
|
|
4
5
|
|
|
5
6
|
const MODE_VIEW = 0
|
|
6
7
|
const MODE_EDIT = 1
|
|
@@ -17,7 +18,21 @@ declare module '@hatiolab/things-scene' {
|
|
|
17
18
|
type TRANSLATE = DIMENSION
|
|
18
19
|
type POSITION = DIMENSION
|
|
19
20
|
|
|
20
|
-
type
|
|
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
|
|
21
36
|
|
|
22
37
|
type AnimationConfig = {
|
|
23
38
|
duration?: number
|
|
@@ -76,7 +91,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
76
91
|
}
|
|
77
92
|
|
|
78
93
|
class Model {
|
|
79
|
-
static compile(model: Model, context
|
|
94
|
+
static compile(model: Model, context?: any): Component
|
|
80
95
|
|
|
81
96
|
type: string;
|
|
82
97
|
[key: string]: any
|
|
@@ -157,7 +172,8 @@ declare module '@hatiolab/things-scene' {
|
|
|
157
172
|
hierarchy: Model
|
|
158
173
|
path: Array<DIMENSION>
|
|
159
174
|
anchors: Array<Anchor>
|
|
160
|
-
data: any
|
|
175
|
+
get data(): any
|
|
176
|
+
set data(data: any)
|
|
161
177
|
|
|
162
178
|
get controls(): Array<Control> | undefined
|
|
163
179
|
get hasTextProperty(): boolean
|
|
@@ -200,6 +216,11 @@ declare module '@hatiolab/things-scene' {
|
|
|
200
216
|
indexOf(component: Component): number
|
|
201
217
|
insertComponentAt(target: Component, idx: number): void
|
|
202
218
|
findById(id: string): Component
|
|
219
|
+
|
|
220
|
+
add(components: Component[] | Component): Container
|
|
221
|
+
remove(components: Component[] | Component): Container
|
|
222
|
+
|
|
223
|
+
components: Component[]
|
|
203
224
|
}
|
|
204
225
|
class RootContainer extends Container {}
|
|
205
226
|
|