@hatiolab/things-scene 3.4.34 → 3.4.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatiolab/things-scene",
3
- "version": "3.4.34",
3
+ "version": "3.4.35",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
package/things-scene.d.ts CHANGED
@@ -417,6 +417,18 @@ declare module '@hatiolab/things-scene' {
417
417
  reposition(): void
418
418
  clearCache(): void
419
419
 
420
+ /*
421
+ * selector에 해당하는 모든 컴포넌트들을 찾는다.
422
+ * @params selector {string}
423
+ */
424
+ findAll(selector: string, component?: Component): Array<Component>
425
+
426
+ /*
427
+ * selector에 해당하는 첫번째 컴포넌트를 찾는다.
428
+ * @params selector {string}
429
+ */
430
+ findFirst(selector: string, ...others: any[]): Component
431
+
420
432
  prepareIf(condition: boolean): void
421
433
  mutatePath(
422
434
  beforeLogic: ((path: Array<POINT>) => void) | null,