onejs-core 1.0.31 → 1.0.33

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.
@@ -155,8 +155,8 @@ declare namespace CS {
155
155
  class WebApi extends System.Object
156
156
  {
157
157
  protected [__keep_incompatibility]: never;
158
- public getText ($uri: string, $callback: System.Action$1<string>) : UnityEngine.Coroutine
159
- public getImage ($url: string, $callback: System.Action$1<UnityEngine.Texture2D>) : UnityEngine.Coroutine
158
+ public getText ($uri: string, $callback: System.Action$1<string>, $headersJson?: string) : UnityEngine.Coroutine
159
+ public getImage ($url: string, $callback: System.Action$1<UnityEngine.Texture2D>, $headersJson?: string, $forceRefresh?: boolean) : UnityEngine.Coroutine
160
160
  public constructor ()
161
161
  }
162
162
  class Runner extends UnityEngine.MonoBehaviour
@@ -318,6 +318,7 @@ declare global {
318
318
  "high-limit"?: number
319
319
  "min-value"?: number
320
320
  "max-value"?: number
321
+ value?: Vector2
321
322
  }
322
323
 
323
324
  interface EnumField extends BaseField<number> {
@@ -20,7 +20,7 @@ declare namespace CS.System {
20
20
  toJsArray<T>(): T[]
21
21
  at<T>(index: number): T
22
22
  forEach<T>(callbackfn: (value: T, index: number, array: CSArray) => void): void
23
- map<T, U>(callbackfn: (value: T, index: number, array: CSArray) => U): CSArray
23
+ map<T, U>(type: { new(...args: any[]): U }, callbackfn: (value: T, index: number, array: CSArray) => U): CSArray
24
24
  filter<T>(callbackfn: (value: T, index: number, array: CSArray) => boolean): CSArray
25
25
  reduce<T>(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: CSArray) => T): T
26
26
  reduceRight<T>(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: CSArray) => T): T
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": "1.0.31",
4
+ "version": "1.0.33",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./typings.d.ts",
7
7
  "dependencies": {
@@ -4,7 +4,7 @@ module.exports = () => {
4
4
  'md': 768,
5
5
  'lg': 1024,
6
6
  'xl': 1280,
7
- '2xl': 1536,
7
+ 'xxl': 1536,
8
8
  };
9
9
  return {
10
10
  postcssPlugin: 'uss-transform',