@vectojs/core 1.9.1 → 1.9.2

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/dist/index.js CHANGED
@@ -3407,7 +3407,7 @@ var DOMPortalEntity = (_class7 = class extends _chunkGKLTTGBRjs.Entity {
3407
3407
  if (!local) return false;
3408
3408
  return local.x >= 0 && local.x <= w && local.y >= 0 && local.y <= h;
3409
3409
  }
3410
- add(_child) {
3410
+ add(..._children) {
3411
3411
  console.warn(`DOMPortalEntity (${this.id}) is a leaf node. Child entities are not supported.`);
3412
3412
  return this;
3413
3413
  }
package/dist/index.mjs CHANGED
@@ -3407,7 +3407,7 @@ var DOMPortalEntity = class extends Entity {
3407
3407
  if (!local) return false;
3408
3408
  return local.x >= 0 && local.x <= w && local.y >= 0 && local.y <= h;
3409
3409
  }
3410
- add(_child) {
3410
+ add(..._children) {
3411
3411
  console.warn(`DOMPortalEntity (${this.id}) is a leaf node. Child entities are not supported.`);
3412
3412
  return this;
3413
3413
  }
@@ -13,7 +13,7 @@ export declare class DOMPortalEntity extends Entity {
13
13
  lastOpacity: string;
14
14
  constructor(domElement: HTMLElement, width?: number, height?: number, id?: string);
15
15
  isPointInside(globalX: number, globalY: number): boolean;
16
- add(_child: Entity): this;
16
+ add(..._children: Entity[]): this;
17
17
  render(): void;
18
18
  destroy(): void;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectojs/core",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },