@hatiolab/things-scene 10.0.0-beta.139 → 10.0.0-beta.140

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +56 -53
  3. package/dist-types/components/audio.d.ts +9 -9
  4. package/dist-types/components/component.d.ts +77 -13
  5. package/dist-types/components/component.d.ts.map +1 -1
  6. package/dist-types/components/container-abstract.d.ts +18 -18
  7. package/dist-types/components/container.d.ts +9 -9
  8. package/dist-types/components/ellipse.d.ts +9 -9
  9. package/dist-types/components/generic-placeholders.d.ts +9 -9
  10. package/dist-types/components/html-overlay-container.d.ts +9 -9
  11. package/dist-types/components/html-overlay-element.d.ts +18 -18
  12. package/dist-types/components/image-view.d.ts +9 -9
  13. package/dist-types/components/info-window.d.ts +9 -9
  14. package/dist-types/components/local-ref.d.ts +9 -9
  15. package/dist-types/components/mixins/connectable.d.ts +9 -9
  16. package/dist-types/components/mixins/data-source.d.ts +9 -9
  17. package/dist-types/components/mixins/gltf-component.d.ts +9 -9
  18. package/dist-types/components/mixins/html-element.d.ts +9 -9
  19. package/dist-types/components/mixins/move-handle.d.ts +9 -9
  20. package/dist-types/components/mixins/rect-path.d.ts +9 -9
  21. package/dist-types/components/mixins/three-d-only.d.ts +9 -9
  22. package/dist-types/components/mixins/value-holder.d.ts +9 -9
  23. package/dist-types/components/node.d.ts +9 -9
  24. package/dist-types/components/popup.d.ts +9 -9
  25. package/dist-types/components/rect.d.ts +18 -18
  26. package/dist-types/components/ruler.d.ts +9 -9
  27. package/dist-types/components/service-component.d.ts +9 -9
  28. package/dist-types/components/text.d.ts +9 -9
  29. package/dist-types/items/capacity-mixin.d.ts +9 -9
  30. package/dist-types/things-scene/api/clipboard.d.ts +1 -1
  31. package/dist-types/things-scene/api/clipboard.d.ts.map +1 -1
  32. package/dist-types/things-scene/api/listener.d.ts +1 -1
  33. package/dist-types/things-scene/api/listener.d.ts.map +1 -1
  34. package/dist-types/things-scene/api/to-data-url.d.ts +1 -1
  35. package/dist-types/things-scene/api/to-data-url.d.ts.map +1 -1
  36. package/dist-types/things-scene/api/zorder.d.ts +1 -1
  37. package/dist-types/things-scene/api/zorder.d.ts.map +1 -1
  38. package/dist-types/things-scene/create.d.ts +24 -0
  39. package/dist-types/things-scene/create.d.ts.map +1 -1
  40. package/dist-types/things-scene/scene.d.ts +70 -19
  41. package/dist-types/things-scene/scene.d.ts.map +1 -1
  42. package/dist-types/threed/factories/backdrop.d.ts +18 -18
  43. package/dist-types/threed/factories/banner.d.ts +9 -9
  44. package/dist-types/threed/factories/camera.d.ts +9 -9
  45. package/dist-types/threed/factories/cube.d.ts +9 -9
  46. package/dist-types/threed/factories/decal.d.ts +18 -18
  47. package/dist-types/threed/factories/gltf-object.d.ts +18 -18
  48. package/dist-types/threed/factories/sprite.d.ts +9 -9
  49. package/dist-types/threed/factories/wall.d.ts +9 -9
  50. package/dist-types/transfer/transferable-mixin.d.ts +9 -9
  51. package/package.json +1 -1
  52. package/things-scene-min.js +1 -1
  53. package/things-scene-min.js.map +1 -1
  54. package/things-scene.mjs +1 -1
  55. package/things-scene.mjs.map +1 -1
@@ -31,14 +31,14 @@ export default function ValueHolder<T extends Constructor<Component>>(superclass
31
31
  fontSize: any;
32
32
  __cache__: any;
33
33
  created(): void;
34
- added(parent: any): void;
35
- removed(parent: any): void;
34
+ added(parent: import("../../types/component.js").Container): void;
35
+ removed(parent: import("../../types/component.js").Container): void;
36
36
  ready(): Promise<void>;
37
37
  _readyInvoked: boolean;
38
38
  invokeReady(): void | Promise<void>;
39
39
  touch(): void;
40
- clearCache(...attrs: any[]): void;
41
- removeSelf(completely: any): void;
40
+ clearCache(...attrs: string[]): void;
41
+ removeSelf(completely?: boolean): void;
42
42
  resetAnimation(): void;
43
43
  get nature(): import("../../index.js").ComponentNature;
44
44
  get disposed(): boolean;
@@ -56,17 +56,17 @@ export default function ValueHolder<T extends Constructor<Component>>(superclass
56
56
  isConnectable(): boolean;
57
57
  isIdentifiable(): boolean;
58
58
  isPositionable(): boolean;
59
- replaceRefids(replaceMap: any): void;
60
- get(property: any): any;
59
+ replaceRefids(replaceMap: Record<string, string>): void;
60
+ get(property: string): any;
61
61
  set(props: any, propval?: any): any;
62
- getState(property: any): any;
62
+ getState(property: string): any;
63
63
  setState(props: Partial<import("../../index.js").State> | string, propval?: any): any;
64
64
  get model(): any;
65
65
  get state(): import("../../index.js").State;
66
66
  get refid(): any;
67
67
  get hierarchy(): any;
68
- get volatile(): never[];
69
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
68
+ get volatile(): string[];
69
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("../component.js").ApplyPropsOptions): /*elided*/ any;
70
70
  contains(x: number, y: number): boolean;
71
71
  move(offset: {
72
72
  x: number;
@@ -29,14 +29,14 @@ declare const Node_base: {
29
29
  fontSize: any;
30
30
  __cache__: any;
31
31
  created(): void;
32
- added(parent: any): void;
33
- removed(parent: any): void;
32
+ added(parent: import("../types/component.js").Container): void;
33
+ removed(parent: import("../types/component.js").Container): void;
34
34
  ready(): Promise<void>;
35
35
  _readyInvoked: boolean;
36
36
  invokeReady(): void | Promise<void>;
37
37
  touch(): void;
38
- clearCache(...attrs: any[]): void;
39
- removeSelf(completely: any): void;
38
+ clearCache(...attrs: string[]): void;
39
+ removeSelf(completely?: boolean): void;
40
40
  resetAnimation(): void;
41
41
  dispose(): void;
42
42
  get nature(): import("../index.js").ComponentNature;
@@ -54,17 +54,17 @@ declare const Node_base: {
54
54
  isHTMLElement(): boolean;
55
55
  isIdentifiable(): boolean;
56
56
  isPositionable(): boolean;
57
- replaceRefids(replaceMap: any): void;
58
- get(property: any): any;
57
+ replaceRefids(replaceMap: Record<string, string>): void;
58
+ get(property: string): any;
59
59
  set(props: any, propval?: any): any;
60
- getState(property: any): any;
60
+ getState(property: string): any;
61
61
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
62
62
  get model(): any;
63
63
  get state(): import("../index.js").State;
64
64
  get refid(): any;
65
65
  get hierarchy(): any;
66
- get volatile(): never[];
67
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
66
+ get volatile(): string[];
67
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("./component.js").ApplyPropsOptions): /*elided*/ any;
68
68
  move(offset: {
69
69
  x: number;
70
70
  y: number;
@@ -39,14 +39,14 @@ declare const Popup_base: {
39
39
  fontSize: any;
40
40
  __cache__: any;
41
41
  created(): void;
42
- added(parent: any): void;
43
- removed(parent: any): void;
42
+ added(parent: import("../types/component.js").Container): void;
43
+ removed(parent: import("../types/component.js").Container): void;
44
44
  ready(): Promise<void>;
45
45
  _readyInvoked: boolean;
46
46
  invokeReady(): void | Promise<void>;
47
47
  touch(): void;
48
- clearCache(...attrs: any[]): void;
49
- removeSelf(completely: any): void;
48
+ clearCache(...attrs: string[]): void;
49
+ removeSelf(completely?: boolean): void;
50
50
  resetAnimation(): void;
51
51
  dispose(): void;
52
52
  get nature(): import("../index.js").ComponentNature;
@@ -65,17 +65,17 @@ declare const Popup_base: {
65
65
  isConnectable(): boolean;
66
66
  isIdentifiable(): boolean;
67
67
  isPositionable(): boolean;
68
- replaceRefids(replaceMap: any): void;
69
- get(property: any): any;
68
+ replaceRefids(replaceMap: Record<string, string>): void;
69
+ get(property: string): any;
70
70
  set(props: any, propval?: any): any;
71
- getState(property: any): any;
71
+ getState(property: string): any;
72
72
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
73
73
  get model(): any;
74
74
  get state(): import("../index.js").State;
75
75
  get refid(): any;
76
76
  get hierarchy(): any;
77
- get volatile(): never[];
78
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
77
+ get volatile(): string[];
78
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("./component.js").ApplyPropsOptions): /*elided*/ any;
79
79
  move(offset: {
80
80
  x: number;
81
81
  y: number;
@@ -29,14 +29,14 @@ declare const Rect_base: {
29
29
  fontSize: any;
30
30
  __cache__: any;
31
31
  created(): void;
32
- added(parent: any): void;
33
- removed(parent: any): void;
32
+ added(parent: import("../types/component.js").Container): void;
33
+ removed(parent: import("../types/component.js").Container): void;
34
34
  ready(): Promise<void>;
35
35
  _readyInvoked: boolean;
36
36
  invokeReady(): void | Promise<void>;
37
37
  touch(): void;
38
- clearCache(...attrs: any[]): void;
39
- removeSelf(completely: any): void;
38
+ clearCache(...attrs: string[]): void;
39
+ removeSelf(completely?: boolean): void;
40
40
  resetAnimation(): void;
41
41
  dispose(): void;
42
42
  get nature(): import("../index.js").ComponentNature;
@@ -54,17 +54,17 @@ declare const Rect_base: {
54
54
  isHTMLElement(): boolean;
55
55
  isIdentifiable(): boolean;
56
56
  isPositionable(): boolean;
57
- replaceRefids(replaceMap: any): void;
58
- get(property: any): any;
57
+ replaceRefids(replaceMap: Record<string, string>): void;
58
+ get(property: string): any;
59
59
  set(props: any, propval?: any): any;
60
- getState(property: any): any;
60
+ getState(property: string): any;
61
61
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
62
62
  get model(): any;
63
63
  get state(): import("../index.js").State;
64
64
  get refid(): any;
65
65
  get hierarchy(): any;
66
- get volatile(): never[];
67
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
66
+ get volatile(): string[];
67
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("./component.js").ApplyPropsOptions): /*elided*/ any;
68
68
  move(offset: {
69
69
  x: number;
70
70
  y: number;
@@ -278,14 +278,14 @@ declare const Rect_base: {
278
278
  fontSize: any;
279
279
  __cache__: any;
280
280
  created(): void;
281
- added(parent: any): void;
282
- removed(parent: any): void;
281
+ added(parent: import("../types/component.js").Container): void;
282
+ removed(parent: import("../types/component.js").Container): void;
283
283
  ready(): Promise<void>;
284
284
  _readyInvoked: boolean;
285
285
  invokeReady(): void | Promise<void>;
286
286
  touch(): void;
287
- clearCache(...attrs: any[]): void;
288
- removeSelf(completely: any): void;
287
+ clearCache(...attrs: string[]): void;
288
+ removeSelf(completely?: boolean): void;
289
289
  resetAnimation(): void;
290
290
  dispose(): void;
291
291
  get nature(): import("../index.js").ComponentNature;
@@ -304,17 +304,17 @@ declare const Rect_base: {
304
304
  isConnectable(): boolean;
305
305
  isIdentifiable(): boolean;
306
306
  isPositionable(): boolean;
307
- replaceRefids(replaceMap: any): void;
308
- get(property: any): any;
307
+ replaceRefids(replaceMap: Record<string, string>): void;
308
+ get(property: string): any;
309
309
  set(props: any, propval?: any): any;
310
- getState(property: any): any;
310
+ getState(property: string): any;
311
311
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
312
312
  get model(): any;
313
313
  get state(): import("../index.js").State;
314
314
  get refid(): any;
315
315
  get hierarchy(): any;
316
- get volatile(): never[];
317
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
316
+ get volatile(): string[];
317
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("./component.js").ApplyPropsOptions): /*elided*/ any;
318
318
  move(offset: {
319
319
  x: number;
320
320
  y: number;
@@ -39,14 +39,14 @@ declare const Ruler_base: {
39
39
  fontSize: any;
40
40
  __cache__: any;
41
41
  created(): void;
42
- added(parent: any): void;
43
- removed(parent: any): void;
42
+ added(parent: import("../types/component.js").Container): void;
43
+ removed(parent: import("../types/component.js").Container): void;
44
44
  ready(): Promise<void>;
45
45
  _readyInvoked: boolean;
46
46
  invokeReady(): void | Promise<void>;
47
47
  touch(): void;
48
- clearCache(...attrs: any[]): void;
49
- removeSelf(completely: any): void;
48
+ clearCache(...attrs: string[]): void;
49
+ removeSelf(completely?: boolean): void;
50
50
  resetAnimation(): void;
51
51
  dispose(): void;
52
52
  get nature(): import("../index.js").ComponentNature;
@@ -65,17 +65,17 @@ declare const Ruler_base: {
65
65
  isConnectable(): boolean;
66
66
  isIdentifiable(): boolean;
67
67
  isPositionable(): boolean;
68
- replaceRefids(replaceMap: any): void;
69
- get(property: any): any;
68
+ replaceRefids(replaceMap: Record<string, string>): void;
69
+ get(property: string): any;
70
70
  set(props: any, propval?: any): any;
71
- getState(property: any): any;
71
+ getState(property: string): any;
72
72
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
73
73
  get model(): any;
74
74
  get state(): import("../index.js").State;
75
75
  get refid(): any;
76
76
  get hierarchy(): any;
77
- get volatile(): never[];
78
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
77
+ get volatile(): string[];
78
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("./component.js").ApplyPropsOptions): /*elided*/ any;
79
79
  move(offset: {
80
80
  x: number;
81
81
  y: number;
@@ -40,14 +40,14 @@ declare const ServiceComponent_base: {
40
40
  fontSize: any;
41
41
  __cache__: any;
42
42
  created(): void;
43
- added(parent: any): void;
44
- removed(parent: any): void;
43
+ added(parent: import("../types/component.js").Container): void;
44
+ removed(parent: import("../types/component.js").Container): void;
45
45
  ready(): Promise<void>;
46
46
  _readyInvoked: boolean;
47
47
  invokeReady(): void | Promise<void>;
48
48
  touch(): void;
49
- clearCache(...attrs: any[]): void;
50
- removeSelf(completely: any): void;
49
+ clearCache(...attrs: string[]): void;
50
+ removeSelf(completely?: boolean): void;
51
51
  resetAnimation(): void;
52
52
  dispose(): void;
53
53
  get nature(): import("../index.js").ComponentNature;
@@ -66,17 +66,17 @@ declare const ServiceComponent_base: {
66
66
  isConnectable(): boolean;
67
67
  isIdentifiable(): boolean;
68
68
  isPositionable(): boolean;
69
- replaceRefids(replaceMap: any): void;
70
- get(property: any): any;
69
+ replaceRefids(replaceMap: Record<string, string>): void;
70
+ get(property: string): any;
71
71
  set(props: any, propval?: any): any;
72
- getState(property: any): any;
72
+ getState(property: string): any;
73
73
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
74
74
  get model(): any;
75
75
  get state(): import("../index.js").State;
76
76
  get refid(): any;
77
77
  get hierarchy(): any;
78
- get volatile(): never[];
79
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
78
+ get volatile(): string[];
79
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("./component.js").ApplyPropsOptions): /*elided*/ any;
80
80
  move(offset: {
81
81
  x: number;
82
82
  y: number;
@@ -38,14 +38,14 @@ declare const Text_base: {
38
38
  fontSize: any;
39
39
  __cache__: any;
40
40
  created(): void;
41
- added(parent: any): void;
42
- removed(parent: any): void;
41
+ added(parent: import("../types/component.js").Container): void;
42
+ removed(parent: import("../types/component.js").Container): void;
43
43
  ready(): Promise<void>;
44
44
  _readyInvoked: boolean;
45
45
  invokeReady(): void | Promise<void>;
46
46
  touch(): void;
47
- clearCache(...attrs: any[]): void;
48
- removeSelf(completely: any): void;
47
+ clearCache(...attrs: string[]): void;
48
+ removeSelf(completely?: boolean): void;
49
49
  resetAnimation(): void;
50
50
  dispose(): void;
51
51
  get nature(): import("../index.js").ComponentNature;
@@ -64,17 +64,17 @@ declare const Text_base: {
64
64
  isConnectable(): boolean;
65
65
  isIdentifiable(): boolean;
66
66
  isPositionable(): boolean;
67
- replaceRefids(replaceMap: any): void;
68
- get(property: any): any;
67
+ replaceRefids(replaceMap: Record<string, string>): void;
68
+ get(property: string): any;
69
69
  set(props: any, propval?: any): any;
70
- getState(property: any): any;
70
+ getState(property: string): any;
71
71
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
72
72
  get model(): any;
73
73
  get state(): import("../index.js").State;
74
74
  get refid(): any;
75
75
  get hierarchy(): any;
76
- get volatile(): never[];
77
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
76
+ get volatile(): string[];
77
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("./component.js").ApplyPropsOptions): /*elided*/ any;
78
78
  move(offset: {
79
79
  x: number;
80
80
  y: number;
@@ -84,14 +84,14 @@ export declare function Capacity<TBase extends Constructor<Component>>(Base: TBa
84
84
  fontSize: any;
85
85
  __cache__: any;
86
86
  created(): void;
87
- added(parent: any): void;
88
- removed(parent: any): void;
87
+ added(parent: import("../types/component.js").Container): void;
88
+ removed(parent: import("../types/component.js").Container): void;
89
89
  ready(): Promise<void>;
90
90
  _readyInvoked: boolean;
91
91
  invokeReady(): void | Promise<void>;
92
92
  touch(): void;
93
- clearCache(...attrs: any[]): void;
94
- removeSelf(completely: any): void;
93
+ clearCache(...attrs: string[]): void;
94
+ removeSelf(completely?: boolean): void;
95
95
  resetAnimation(): void;
96
96
  dispose(): void;
97
97
  get nature(): import("../index.js").ComponentNature;
@@ -110,17 +110,17 @@ export declare function Capacity<TBase extends Constructor<Component>>(Base: TBa
110
110
  isConnectable(): boolean;
111
111
  isIdentifiable(): boolean;
112
112
  isPositionable(): boolean;
113
- replaceRefids(replaceMap: any): void;
114
- get(property: any): any;
113
+ replaceRefids(replaceMap: Record<string, string>): void;
114
+ get(property: string): any;
115
115
  set(props: any, propval?: any): any;
116
- getState(property: any): any;
116
+ getState(property: string): any;
117
117
  setState(props: Partial<import("../index.js").State> | string, propval?: any): any;
118
118
  get model(): any;
119
119
  get state(): import("../index.js").State;
120
120
  get refid(): any;
121
121
  get hierarchy(): any;
122
- get volatile(): never[];
123
- _applyProps(target: any, props: any, options: any): /*elided*/ any;
122
+ get volatile(): string[];
123
+ _applyProps(target: Record<string, any>, props: Record<string, any>, options: import("../components/component.js").ApplyPropsOptions): /*elided*/ any;
124
124
  contains(x: number, y: number): boolean;
125
125
  move(offset: {
126
126
  x: number;
@@ -1,4 +1,4 @@
1
1
  export declare function copy(this: any): string | undefined;
2
2
  export declare function cut(this: any): string | undefined;
3
- export declare function paste(this: any, copied: string): void;
3
+ export declare function paste(this: any, copied?: string): void;
4
4
  //# sourceMappingURL=clipboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/clipboard.ts"],"names":[],"mappings":"AAWA,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,sBAU7B;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,sBAO5B;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,QAS9C"}
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/clipboard.ts"],"names":[],"mappings":"AAWA,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,sBAU7B;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,sBAO5B;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,MAAM,QAS/C"}
@@ -1,4 +1,4 @@
1
1
  export declare function on(this: any, event: string, listener: any, context?: any): void;
2
2
  export declare function once(this: any, event: string, listener: any, context?: any): void;
3
- export declare function off(this: any, event: string, listener: any, context?: any): void;
3
+ export declare function off(this: any, event?: string, listener?: any, context?: any): void;
4
4
  //# sourceMappingURL=listener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listener.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/listener.ts"],"names":[],"mappings":"AAmBA,wBAAgB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,QAExE;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,QAE1E;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,QAEzE"}
1
+ {"version":3,"file":"listener.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/listener.ts"],"names":[],"mappings":"AAmBA,wBAAgB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,QAExE;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,QAE1E;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,QAE3E"}
@@ -1,2 +1,2 @@
1
- export declare function toDataURL(this: any, type: string, encoderOptions: any, width: number, height: number): Promise<unknown>;
1
+ export declare function toDataURL(this: any, type?: string, encoderOptions?: any, width?: number, height?: number): Promise<unknown>;
2
2
  //# sourceMappingURL=to-data-url.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"to-data-url.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/to-data-url.ts"],"names":[],"mappings":"AASA,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBA8EpG"}
1
+ {"version":3,"file":"to-data-url.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/to-data-url.ts"],"names":[],"mappings":"AASA,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,oBA8ExG"}
@@ -1,3 +1,3 @@
1
- export declare function move(this: any, component: any, to_container: any, to_index: number): void;
1
+ export declare function move(this: any, component?: any, to_container?: any, to_index?: number): void;
2
2
  export declare function zorder(this: any, type: string): void;
3
3
  //# sourceMappingURL=zorder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zorder.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/zorder.ts"],"names":[],"mappings":"AAQA,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,QAYlF;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,QAsD7C"}
1
+ {"version":3,"file":"zorder.d.ts","sourceRoot":"","sources":["../../../src/things-scene/api/zorder.ts"],"names":[],"mappings":"AAQA,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,QAYrF;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,QAsD7C"}
@@ -56,5 +56,29 @@ export interface SceneCreateOptions {
56
56
  /** Loading monitor options */
57
57
  loading?: LoadingOptions;
58
58
  }
59
+ /**
60
+ * Create and mount a {@link Scene} — the primary entry point of the library.
61
+ *
62
+ * Instantiates the root container, application context, and (when a `target` is given)
63
+ * renders the board into that DOM element. The returned scene manages the full lifecycle;
64
+ * call {@link Scene.dispose} when done to release resources.
65
+ *
66
+ * @param options - See {@link SceneCreateOptions}. `target` may be omitted for headless
67
+ * (off-screen / SSR) rendering.
68
+ * @returns A mounted {@link Scene} instance.
69
+ * @throws If `target` is a string that resolves to no element, or to a non-empty element.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * import { create, SCENE_MODE } from '@hatiolab/things-scene'
74
+ *
75
+ * const scene = create({
76
+ * target: document.getElementById('board'),
77
+ * model: JSON.parse(boardJson),
78
+ * mode: SCENE_MODE.VIEW,
79
+ * })
80
+ * scene.data = { sensor1: { value: 42 } } // live data binding
81
+ * ```
82
+ */
59
83
  export default function create({ target, model, style, layers, handlers, mode, refProvider, dataSubscriptionProvider, dataStorage, baseUrl, fitMode, postprocessing, logarithmicDepth, loading: loadingOptions }: SceneCreateOptions): Scene;
60
84
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources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C3E,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,uEAAuE;IACvE,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;IACnD,6DAA6D;IAC7D,WAAW,CAAC,EAAE,qBAAqB,CAAA;IACnC,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+EAA+E;IAC/E,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,cAAc,CAAA;CACzB;AAUD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAW,EACX,QAAa,EACb,IAAsB,EACtB,WAAW,EACX,wBAAwB,EACxB,WAAkC,EAClC,OAAO,EACP,OAAO,EACP,cAAqB,EACrB,gBAAgB,EAChB,OAAO,EAAE,cAAc,EACxB,EAAE,kBAAkB,SAkDpB"}
@@ -59,11 +59,19 @@ declare class Scene {
59
59
  * @param {RootContainer} container - Root container
60
60
  */
61
61
  constructor(container: any);
62
+ /**
63
+ * Add one or more component models to the scene (undoable).
64
+ * @param models - A model or array of models to add.
65
+ * @param boundsOrOffset - Optional target bounds, or an `{x, y}` offset.
66
+ * @param onto - Optional target container to add into.
67
+ */
62
68
  add(models: any, boundsOrOffset?: any, onto?: any): void;
69
+ /** Duplicate the current selection (undoable). */
63
70
  duplicate(): void;
71
+ /** Remove the current selection (undoable). */
64
72
  remove(): void;
65
73
  animate(config: Parameters<typeof animate>[0]): import("./index.js").AnimationController;
66
- fullscreen(fit?: any): void;
74
+ fullscreen(fit?: string): void;
67
75
  get target(): any;
68
76
  set target(target: any);
69
77
  get scale(): any;
@@ -79,11 +87,23 @@ declare class Scene {
79
87
  get screen(): any;
80
88
  set screen(size: any);
81
89
  resize(): void;
90
+ /** Alias for {@link dispose}. */
82
91
  release(): void;
92
+ /**
93
+ * Tear down the scene and release all resources — container, commander, overlays,
94
+ * tracker, 3D GLTF caches, and the global transfer log. Call this on board switch or
95
+ * unmount to avoid leaks. The scene must not be used after disposal.
96
+ */
83
97
  dispose(): void;
98
+ /** The currently selected components, as a snapshot array (safe to iterate/mutate). */
84
99
  get selected(): any;
85
100
  set selected(selected: any);
86
- select(selector: any, ...others: any[]): any;
101
+ /**
102
+ * Select all components matching a selector, replacing the current selection.
103
+ * @param selector - A CSS-like selector (by type, id, class, etc.).
104
+ * @returns The resulting selection.
105
+ */
106
+ select(selector: string, ...others: any[]): any;
87
107
  get commander(): any;
88
108
  undo(): void;
89
109
  undoable(): any;
@@ -93,35 +113,47 @@ declare class Scene {
93
113
  hasUnpreservedChanges(): any;
94
114
  cut(): string | undefined;
95
115
  copy(): string | undefined;
96
- paste(copied?: any): void;
116
+ paste(copied?: string): void;
97
117
  undoableChange(changeFunc?: any): void;
98
- change(selector: any, value?: any, self?: any): any;
118
+ change(selector: string, value?: any, self?: any): any;
119
+ /**
120
+ * The scene's model as a plain, serializable component tree (volatile props stripped,
121
+ * numbers rounded). Assigning a new model rebuilds the entire scene content.
122
+ */
99
123
  get model(): any;
100
124
  set model(model: any);
101
125
  get rootContainer(): any;
102
126
  get root(): any;
103
- findAll(selector: any, ...others: any[]): any;
104
- findFirst(selector: any, ...others: any[]): any;
105
- findById(id: any): any;
106
- findAllById(id: any): any;
127
+ /** Find all components matching a CSS-like selector. */
128
+ findAll(selector: string, ...others: any[]): any;
129
+ /** Find the first component matching a CSS-like selector, or `undefined`. */
130
+ findFirst(selector: string, ...others: any[]): any;
131
+ /** Find the first component with the given `id`. */
132
+ findById(id: string): any;
133
+ /** Find all components sharing the given `id`. */
134
+ findAllById(id: string): any;
107
135
  serialize(): any;
108
- align(type: any): void;
109
- place(type: any): void;
110
- distribute(type: any): void;
111
- move(component?: any, to_container?: any, to_index?: any): void;
112
- zorder(type: any): void;
136
+ align(type: string): void;
137
+ place(type: string): void;
138
+ distribute(type: string): void;
139
+ move(component?: any, to_container?: any, to_index?: number): void;
140
+ zorder(type: string): void;
113
141
  symmetryX(): void;
114
142
  symmetryY(): void;
115
- on(event: any, listener: any, context?: any): void;
116
- once(event: any, listener: any, context?: any): void;
117
- off(event?: any, listener?: any, context?: any): any;
118
- centerTo(component: any, animated?: any): any;
143
+ on(event: string, listener: any, context?: any): void;
144
+ once(event: string, listener: any, context?: any): void;
145
+ off(event?: string, listener?: any, context?: any): any;
146
+ centerTo(component: any, animated?: boolean): any;
119
147
  /**
120
148
  * 영구 추적 모듈. 단일 추적 — 한 번에 하나의 id 만 추적. 트리에서 매칭 컴포넌트가
121
149
  * dispose/재등장 사이클을 타도 자동 재부착. 2D 는 deco-border, 3D 는 outline 으로
122
150
  * 같은 색깔 시각화. 자세한 사용법은 Tracker 클래스 참고.
123
151
  */
124
152
  get tracker(): Tracker;
153
+ /**
154
+ * Scene mode: `MODE_VIEW` (0) for monitoring / runtime, `MODE_EDIT` (1) for the modeller.
155
+ * Switching mode changes interaction (selection, gizmos) and rendering behavior.
156
+ */
125
157
  get mode(): any;
126
158
  set mode(mode: any);
127
159
  /**
@@ -143,21 +175,40 @@ declare class Scene {
143
175
  * 밖이라 별도로 훑어 재적용한다. 재빌드 없이 opacity 스케일만 — 해당 채널을 가진 컴포넌트에만.
144
176
  */
145
177
  private _reapplyModelingFaint;
146
- toDataURL(type?: any, encoderOptions?: any, width?: any, height?: any): Promise<unknown>;
178
+ toDataURL(type?: string, encoderOptions?: any, width?: number, height?: number): Promise<unknown>;
147
179
  group(): void;
148
180
  ungroup(): void;
149
- fit(type?: any): void;
181
+ fit(type?: string): void;
150
182
  get fitMode(): any;
183
+ /** All component `id`s in the scene, as a snapshot array. */
151
184
  get ids(): {
152
185
  key: any;
153
186
  value: any;
154
187
  }[];
188
+ /**
189
+ * Live data binding — the core mechanism for driving a scene from real-time data.
190
+ *
191
+ * Assigning a map propagates values into components by their `id`; each component's
192
+ * data mappings then update its visual state (color, text, animation, etc.). This is
193
+ * the primary way a monitoring dashboard reflects sensor / device data.
194
+ *
195
+ * @example
196
+ * ```ts
197
+ * scene.data = { conveyor1: { running: true }, gauge2: { value: 73 } }
198
+ * ```
199
+ */
155
200
  get data(): any;
156
201
  set data(data: any);
202
+ /** Like {@link data}, but keyed by component `refid` instead of `id`. */
157
203
  get dataByRefid(): any;
158
204
  set dataByRefid(data: any);
205
+ /**
206
+ * Per-component scalar values keyed by `id` — the simple form of data binding
207
+ * (a single value per component, vs. the structured map used by {@link data}).
208
+ */
159
209
  get values(): any;
160
210
  set values(values: any);
211
+ /** Like {@link values}, but keyed by component `refid` instead of `id`. */
161
212
  get valuesByRefid(): any;
162
213
  set valuesByRefid(values: any);
163
214
  get baseUrl(): any;