onejs-core 0.3.25 → 0.3.26

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.
@@ -228,6 +228,7 @@ declare namespace CS {
228
228
  public removeEventListener ($name: string, $callback: UnityEngine.UIElements.EventCallback$1<UnityEngine.UIElements.EventBase>, $useCapture?: boolean) : void
229
229
  public appendChild ($node: OneJS.Dom.Dom) : void
230
230
  public removeChild ($child: OneJS.Dom.Dom) : void
231
+ public contains ($child: OneJS.Dom.Dom) : boolean
231
232
  public insertBefore ($a: OneJS.Dom.Dom, $b: OneJS.Dom.Dom) : void
232
233
  public setAttribute ($name: string, $val: any) : void
233
234
  public removeAttribute ($name: string) : void
package/dom/dom.ts CHANGED
@@ -48,6 +48,10 @@ export class DomWrapper {
48
48
  this.#dom.insertBefore(a?._dom, b?._dom)
49
49
  }
50
50
 
51
+ contains(child: DomWrapper) {
52
+ return this.#dom.contains(child._dom)
53
+ }
54
+
51
55
  clearChildren() {
52
56
  this.#dom.clearChildren()
53
57
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onejs-core",
3
3
  "description": "The JS part of OneJS, a UI framework and Scripting Engine for Unity.",
4
- "version": "0.3.25",
4
+ "version": "0.3.26",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./typings.d.ts",
7
7
  "dependencies": {