@hatiolab/things-scene 3.4.34 → 3.4.36

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.36",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
package/things-scene.d.ts CHANGED
@@ -389,6 +389,12 @@ declare module '@hatiolab/things-scene' {
389
389
  get dimension(): DIMENSION
390
390
  set dimension(dimension: DIMENSION)
391
391
 
392
+ get strokeStyle(): string
393
+ set strokeStyle(strokeStyle: string)
394
+
395
+ get fillStyle(): string
396
+ set fillStyle(fillStyle: string)
397
+
392
398
  get anchors(): Array<Anchor>
393
399
  get controls(): Array<Control> | undefined
394
400
  get hasTextProperty(): boolean
@@ -417,6 +423,18 @@ declare module '@hatiolab/things-scene' {
417
423
  reposition(): void
418
424
  clearCache(): void
419
425
 
426
+ /*
427
+ * selector에 해당하는 모든 컴포넌트들을 찾는다.
428
+ * @params selector {string}
429
+ */
430
+ findAll(selector: string, component?: Component): Array<Component>
431
+
432
+ /*
433
+ * selector에 해당하는 첫번째 컴포넌트를 찾는다.
434
+ * @params selector {string}
435
+ */
436
+ findFirst(selector: string, ...others: any[]): Component
437
+
420
438
  prepareIf(condition: boolean): void
421
439
  mutatePath(
422
440
  beforeLogic: ((path: Array<POINT>) => void) | null,