@hatiolab/things-scene 2.7.34 → 2.8.0
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/assets/images/spinner.png +0 -0
- package/db.sqlite +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +15 -4
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +17 -21
- package/logs/application-2022-04-09-23.log +7 -0
- package/logs/application-2022-04-10-00.log +16 -0
- package/logs/application-2022-04-10-09.log +4 -0
- package/logs/connections-2022-04-07-21.log +35 -0
- package/logs/connections-2022-04-07-22.log +140 -0
- package/logs/connections-2022-04-09-23.log +35 -0
- package/logs/connections-2022-04-10-00.log +140 -0
- package/logs/connections-2022-04-10-09.log +35 -0
- package/logs/system/.c10a3bd7d0dfee88aa5b10e24258cfbf17025885-audit.json +15 -0
- package/logs/system/.dc10c8966d98b261adf39f74ea3f0647108ad3b6-audit.json +20 -0
- package/logs/system/scenario-abc tag-2022-04-10-00.log +12091 -0
- package/logs/system/scenario-abc tag-2022-04-10-09.log +4204 -0
- package/package.json +25 -17
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.d.ts +24 -5
- 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/things-scene.d.ts
CHANGED
|
@@ -49,6 +49,17 @@ declare module '@hatiolab/things-scene' {
|
|
|
49
49
|
help?: string
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
type ReferenceProvider = {
|
|
53
|
+
get ids(): string[]
|
|
54
|
+
add(id: string, target?: any): Promise<{ release: () => void }>
|
|
55
|
+
get(id: string, createIf?: boolean): Promise<{ release: () => void }>
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type DataSubscriptionProvider = {
|
|
59
|
+
subscribe(tag: string, component: Component): Promise<{ unsubscribe: () => void }>
|
|
60
|
+
dispose(): void
|
|
61
|
+
}
|
|
62
|
+
|
|
52
63
|
interface LAYOUT {
|
|
53
64
|
reflow: (container: Container) => void
|
|
54
65
|
capturables?: (container: Container) => Component[]
|
|
@@ -102,6 +113,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
102
113
|
handlers,
|
|
103
114
|
mode,
|
|
104
115
|
refProvider,
|
|
116
|
+
dataSubscriptionProvider,
|
|
105
117
|
baseUrl,
|
|
106
118
|
fitMode
|
|
107
119
|
}: {
|
|
@@ -111,7 +123,8 @@ declare module '@hatiolab/things-scene' {
|
|
|
111
123
|
layers?: Array<any>
|
|
112
124
|
handlers?: Array<any>
|
|
113
125
|
mode?: SCENE_MODE
|
|
114
|
-
refProvider?:
|
|
126
|
+
refProvider?: ReferenceProvider
|
|
127
|
+
dataSubscriptionProvider?: DataSubscriptionProvider
|
|
115
128
|
baseUrl?: string | undefined
|
|
116
129
|
fitMode?: FITMODE
|
|
117
130
|
}): Scene
|
|
@@ -138,7 +151,8 @@ declare module '@hatiolab/things-scene' {
|
|
|
138
151
|
}
|
|
139
152
|
|
|
140
153
|
class ApplicationContext {
|
|
141
|
-
readonly refProvider:
|
|
154
|
+
readonly refProvider: ReferenceProvider
|
|
155
|
+
readonly dataSubscriptionProvider: DataSubscriptionProvider
|
|
142
156
|
readonly isViewMode: boolean
|
|
143
157
|
readonly isEditMode: boolean
|
|
144
158
|
|
|
@@ -209,6 +223,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
209
223
|
component: Component,
|
|
210
224
|
customObjToVal?: (obj: any) => any
|
|
211
225
|
): () => string | undefined
|
|
226
|
+
static reposition(component: Component): void
|
|
212
227
|
|
|
213
228
|
state: Properties
|
|
214
229
|
bounds: BOUNDS
|
|
@@ -216,7 +231,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
216
231
|
root: RootContainer
|
|
217
232
|
rootModel: ModelLayer
|
|
218
233
|
parent: Container
|
|
219
|
-
app: ApplicationContext
|
|
234
|
+
app: ApplicationContext
|
|
220
235
|
model: Model
|
|
221
236
|
hierarchy: Model
|
|
222
237
|
path: Array<DIMENSION>
|
|
@@ -225,6 +240,8 @@ declare module '@hatiolab/things-scene' {
|
|
|
225
240
|
|
|
226
241
|
get nature(): ComponentNature
|
|
227
242
|
|
|
243
|
+
get font(): string
|
|
244
|
+
|
|
228
245
|
get data(): any
|
|
229
246
|
set data(data: any)
|
|
230
247
|
|
|
@@ -236,12 +253,14 @@ declare module '@hatiolab/things-scene' {
|
|
|
236
253
|
|
|
237
254
|
get controls(): Array<Control> | undefined
|
|
238
255
|
get hasTextProperty(): boolean
|
|
256
|
+
get textSubstitutor(): () => string
|
|
239
257
|
|
|
240
258
|
isRootModel(): boolean
|
|
241
259
|
isContainer(): boolean
|
|
242
260
|
isLine(): boolean
|
|
243
261
|
isLayer(): boolean
|
|
244
262
|
is3dish(): boolean
|
|
263
|
+
isHTMLElement(): boolean
|
|
245
264
|
|
|
246
265
|
ready(): void
|
|
247
266
|
dispose(): void
|
|
@@ -263,8 +282,8 @@ declare module '@hatiolab/things-scene' {
|
|
|
263
282
|
executeMappings(force?: boolean): void
|
|
264
283
|
invalidate(): void
|
|
265
284
|
animate(config: AnimationConfig): {
|
|
266
|
-
start: Function
|
|
267
|
-
stop: Function
|
|
285
|
+
start: Function
|
|
286
|
+
stop: Function
|
|
268
287
|
}
|
|
269
288
|
|
|
270
289
|
access(expression: string): any
|