onejs-core 2.0.16 → 2.0.18

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.
@@ -33,15 +33,21 @@ declare global {
33
33
  const requestAnimationFrame: (callback: (time: number) => void) => number
34
34
  const cancelAnimationFrame: (id: number) => void
35
35
 
36
+ interface Performance {
37
+ now(): number
38
+ }
39
+
40
+ const performance: Performance
41
+
36
42
  const console: {
37
- log: (...args: any[]) => void;
38
- info: (...args: any[]) => void;
39
- warn: (...args: any[]) => void;
40
- error: (...args: any[]) => void;
41
- trace: (...args: any[]) => void;
42
- assert: (condition: boolean, ...args: any[]) => void;
43
- time: (label: string) => void;
44
- timeEnd: (label: string) => void;
43
+ log: (...args: any[]) => void
44
+ info: (...args: any[]) => void
45
+ warn: (...args: any[]) => void
46
+ error: (...args: any[]) => void
47
+ trace: (...args: any[]) => void
48
+ assert: (condition: boolean, ...args: any[]) => void
49
+ time: (label: string) => void
50
+ timeEnd: (label: string) => void
45
51
  }
46
52
 
47
53
  interface Event {
package/dist/dom/dom.js CHANGED
@@ -178,7 +178,7 @@ function parseSelector(selector) {
178
178
  }
179
179
  function elementMatchesSelector(element, selectorInfo) {
180
180
  // Check tag name
181
- if (selectorInfo.tag && element.ve.name.toLowerCase() !== selectorInfo.tag) {
181
+ if (selectorInfo.tag && element.ve.GetType().Name.toLowerCase() !== selectorInfo.tag) {
182
182
  return false;
183
183
  }
184
184
  // Check ID
package/dom/dom.ts CHANGED
@@ -213,7 +213,7 @@ function parseSelector(selector: string): SelectorInfo {
213
213
 
214
214
  function elementMatchesSelector(element: DomWrapper, selectorInfo: SelectorInfo): boolean {
215
215
  // Check tag name
216
- if (selectorInfo.tag && element.ve.name.toLowerCase() !== selectorInfo.tag) {
216
+ if (selectorInfo.tag && element.ve.GetType().Name.toLowerCase() !== selectorInfo.tag) {
217
217
  return false;
218
218
  }
219
219
 
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": "2.0.16",
4
+ "version": "2.0.18",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/Singtaa/onejs-core"