@operato/scene-grist 10.0.0-beta.22 → 10.0.0-beta.31

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.
@@ -53,7 +53,7 @@ declare const GristAction_base: (new (...args: any[]) => {
53
53
  get disposed(): boolean;
54
54
  isLayer(): boolean;
55
55
  isGroup(): boolean;
56
- isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component.js").Container;
56
+ isContainer(): this is import("@hatiolab/things-scene").Container;
57
57
  isLine(): boolean;
58
58
  isRoot(): boolean;
59
59
  isRootModel(): boolean;
@@ -69,9 +69,9 @@ declare const GristAction_base: (new (...args: any[]) => {
69
69
  get(property: any): any;
70
70
  set(props: any, propval?: any): any;
71
71
  getState(property: any): any;
72
- setState(props: any, propval?: any): any;
72
+ setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
73
73
  get model(): any;
74
- get state(): any;
74
+ get state(): import("@hatiolab/things-scene").State;
75
75
  get hierarchy(): any;
76
76
  get volatile(): never[];
77
77
  _applyProps(target: any, props: any, options: any): any;
@@ -166,7 +166,7 @@ declare const GristAction_base: (new (...args: any[]) => {
166
166
  findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
167
167
  capture(x: number, y: number, except?: (c: Component) => boolean): any;
168
168
  findAnchor(name: string): any;
169
- isDescendible(container: Component): boolean;
169
+ isDescendible(container: Component | any): boolean;
170
170
  getContext(component?: unknown): any;
171
171
  get root(): Component;
172
172
  get rootModel(): Component;
@@ -211,9 +211,13 @@ declare const GristAction_base: (new (...args: any[]) => {
211
211
  toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
212
212
  toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
213
213
  toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
214
+ on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
214
215
  on(name: string | object, callback: Function, context?: any): any;
216
+ off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
215
217
  off(name?: string | object, callback?: Function, context?: any): any;
218
+ once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
216
219
  once(name: string | object, callback: Function, context?: any): any;
220
+ trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
217
221
  trigger(name: string, ...args: any[]): any;
218
222
  delegate_on(delegator: any): any;
219
223
  delegate_off(delegator: any): any;
@@ -293,7 +297,7 @@ declare const GristAction_base: (new (...args: any[]) => {
293
297
  get disposed(): boolean;
294
298
  isLayer(): boolean;
295
299
  isGroup(): boolean;
296
- isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component.js").Container;
300
+ isContainer(): this is import("@hatiolab/things-scene").Container;
297
301
  isLine(): boolean;
298
302
  isRoot(): boolean;
299
303
  isRootModel(): boolean;
@@ -309,9 +313,9 @@ declare const GristAction_base: (new (...args: any[]) => {
309
313
  get(property: any): any;
310
314
  set(props: any, propval?: any): any;
311
315
  getState(property: any): any;
312
- setState(props: any, propval?: any): any;
316
+ setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
313
317
  get model(): any;
314
- get state(): any;
318
+ get state(): import("@hatiolab/things-scene").State;
315
319
  get hierarchy(): any;
316
320
  get volatile(): never[];
317
321
  _applyProps(target: any, props: any, options: any): any;
@@ -402,7 +406,7 @@ declare const GristAction_base: (new (...args: any[]) => {
402
406
  findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
403
407
  capture(x: number, y: number, except?: (c: Component) => boolean): any;
404
408
  findAnchor(name: string): any;
405
- isDescendible(container: Component): boolean;
409
+ isDescendible(container: Component | any): boolean;
406
410
  getContext(component?: unknown): any;
407
411
  get root(): Component;
408
412
  get rootModel(): Component;
@@ -446,9 +450,13 @@ declare const GristAction_base: (new (...args: any[]) => {
446
450
  toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
447
451
  toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
448
452
  toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
453
+ on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
449
454
  on(name: string | object, callback: Function, context?: any): any;
455
+ off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
450
456
  off(name?: string | object, callback?: Function, context?: any): any;
457
+ once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
451
458
  once(name: string | object, callback: Function, context?: any): any;
459
+ trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
452
460
  trigger(name: string, ...args: any[]): any;
453
461
  delegate_on(delegator: any): any;
454
462
  delegate_off(delegator: any): any;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/scene-grist",
3
3
  "description": "Grist UI component for things-scene",
4
4
  "author": "heartyoh",
5
- "version": "10.0.0-beta.22",
5
+ "version": "10.0.0-beta.31",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
@@ -61,5 +61,5 @@
61
61
  "prettier --write"
62
62
  ]
63
63
  },
64
- "gitHead": "f48e52f4f5fdc30ec06af9da7cf253f6e29cfb0e"
64
+ "gitHead": "fdafbd04fd083a43690be937230c7d96a3ee5da3"
65
65
  }