onejs-core 2.0.11 → 2.0.12

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.
@@ -1,76 +1,76 @@
1
- type Texture = CS.UnityEngine.Texture;
2
- type Sprite = CS.UnityEngine.Sprite;
3
- type Rect = CS.UnityEngine.Rect;
4
- type Vector2 = CS.UnityEngine.Vector2;
5
- type Vector2Int = CS.UnityEngine.Vector2Int;
6
- type Vector3 = CS.UnityEngine.Vector3;
7
- type Vector3Int = CS.UnityEngine.Vector3Int;
8
- type Vector4 = CS.UnityEngine.Vector4;
9
- type RectInt = CS.UnityEngine.RectInt;
10
- type Bounds = CS.UnityEngine.Bounds;
11
- type BoundsInt = CS.UnityEngine.BoundsInt;
12
- type Texture2D = CS.UnityEngine.Texture2D;
13
-
14
- type TouchScreenKeyboardType = CS.UnityEngine.TouchScreenKeyboardType;
15
-
16
- type AttachToPanelEvent = CS.UnityEngine.UIElements.AttachToPanelEvent;
17
- type BlurEvent = CS.UnityEngine.UIElements.BlurEvent;
18
- type ChangeEvent<T> = CS.UnityEngine.UIElements.ChangeEvent<T>;
19
- type ClickEvent = CS.UnityEngine.UIElements.ClickEvent;
20
- type DetachFromPanelEvent = CS.UnityEngine.UIElements.DetachFromPanelEvent;
21
- type DragEnterEvent = CS.UnityEngine.UIElements.DragEnterEvent;
22
- type DragExitedEvent = CS.UnityEngine.UIElements.DragExitedEvent;
23
- type DragLeaveEvent = CS.UnityEngine.UIElements.DragLeaveEvent;
24
- type DragPerformEvent = CS.UnityEngine.UIElements.DragPerformEvent;
25
- type DragUpdatedEvent = CS.UnityEngine.UIElements.DragUpdatedEvent;
26
- type ExecuteCommandEvent = CS.UnityEngine.UIElements.ExecuteCommandEvent;
27
- type FocusEvent = CS.UnityEngine.UIElements.FocusEvent;
28
- type FocusInEvent = CS.UnityEngine.UIElements.FocusInEvent;
29
- type FocusOutEvent = CS.UnityEngine.UIElements.FocusOutEvent;
30
- type GeometryChangedEvent = CS.UnityEngine.UIElements.GeometryChangedEvent;
31
- type InputEvent = CS.UnityEngine.UIElements.InputEvent;
32
- type KeyDownEvent = CS.UnityEngine.UIElements.KeyDownEvent;
33
- type KeyUpEvent = CS.UnityEngine.UIElements.KeyUpEvent;
34
- type MouseCaptureEvent = CS.UnityEngine.UIElements.MouseCaptureEvent;
35
- type MouseCaptureOutEvent = CS.UnityEngine.UIElements.MouseCaptureOutEvent;
36
- type MouseDownEvent = CS.UnityEngine.UIElements.MouseDownEvent;
37
- type MouseEnterEvent = CS.UnityEngine.UIElements.MouseEnterEvent;
38
- type MouseEnterWindowEvent = CS.UnityEngine.UIElements.MouseEnterWindowEvent;
39
- type MouseLeaveEvent = CS.UnityEngine.UIElements.MouseLeaveEvent;
40
- type MouseLeaveWindowEvent = CS.UnityEngine.UIElements.MouseLeaveWindowEvent;
41
- type MouseMoveEvent = CS.UnityEngine.UIElements.MouseMoveEvent;
42
- type MouseOutEvent = CS.UnityEngine.UIElements.MouseOutEvent;
43
- type MouseOverEvent = CS.UnityEngine.UIElements.MouseOverEvent;
44
- type MouseUpEvent = CS.UnityEngine.UIElements.MouseUpEvent;
45
- type NavigationCancelEvent = CS.UnityEngine.UIElements.NavigationCancelEvent;
46
- type NavigationMoveEvent = CS.UnityEngine.UIElements.NavigationMoveEvent;
47
- type NavigationSubmitEvent = CS.UnityEngine.UIElements.NavigationSubmitEvent;
48
- type PickingMode = CS.UnityEngine.UIElements.PickingMode;
49
- type PointerCancelEvent = CS.UnityEngine.UIElements.PointerCancelEvent;
50
- type PointerCaptureEvent = CS.UnityEngine.UIElements.PointerCaptureEvent;
51
- type PointerCaptureOutEvent = CS.UnityEngine.UIElements.PointerCaptureOutEvent;
52
- type PointerDownEvent = CS.UnityEngine.UIElements.PointerDownEvent;
53
- type PointerEnterEvent = CS.UnityEngine.UIElements.PointerEnterEvent;
54
- type PointerLeaveEvent = CS.UnityEngine.UIElements.PointerLeaveEvent;
55
- type PointerMoveEvent = CS.UnityEngine.UIElements.PointerMoveEvent;
56
- type PointerOutEvent = CS.UnityEngine.UIElements.PointerOutEvent;
57
- type PointerOverEvent = CS.UnityEngine.UIElements.PointerOverEvent;
58
- type PointerStationaryEvent = CS.UnityEngine.UIElements.PointerStationaryEvent;
59
- type PointerUpEvent = CS.UnityEngine.UIElements.PointerUpEvent;
60
- type ScrollViewMode = CS.UnityEngine.UIElements.ScrollViewMode;
61
- type ScrollerVisibility = CS.UnityEngine.UIElements.ScrollerVisibility;
62
- type TouchScrollBehavior = CS.UnityEngine.UIElements.ScrollView.TouchScrollBehavior;
63
- type TooltipEvent = CS.UnityEngine.UIElements.TooltipEvent;
64
- type TransitionCancelEvent = CS.UnityEngine.UIElements.TransitionCancelEvent;
65
- type TransitionEndEvent = CS.UnityEngine.UIElements.TransitionEndEvent;
66
- type TransitionRunEvent = CS.UnityEngine.UIElements.TransitionRunEvent;
67
- type TransitionStartEvent = CS.UnityEngine.UIElements.TransitionStartEvent;
68
- type ValidateCommandEvent = CS.UnityEngine.UIElements.ValidateCommandEvent;
69
- type VectorImage = CS.UnityEngine.UIElements.VectorImage;
70
- type WheelEvent = CS.UnityEngine.UIElements.WheelEvent;
71
- type ContextualMenuPopulateEvent = CS.UnityEngine.UIElements.ContextualMenuPopulateEvent;
72
-
73
- type TwoPaneSplitViewOrientation = CS.UnityEngine.UIElements.TwoPaneSplitViewOrientation;
1
+ type Texture = CS.UnityEngine.Texture
2
+ type Sprite = CS.UnityEngine.Sprite
3
+ type Rect = CS.UnityEngine.Rect
4
+ type Vector2 = CS.UnityEngine.Vector2
5
+ type Vector2Int = CS.UnityEngine.Vector2Int
6
+ type Vector3 = CS.UnityEngine.Vector3
7
+ type Vector3Int = CS.UnityEngine.Vector3Int
8
+ type Vector4 = CS.UnityEngine.Vector4
9
+ type RectInt = CS.UnityEngine.RectInt
10
+ type Bounds = CS.UnityEngine.Bounds
11
+ type BoundsInt = CS.UnityEngine.BoundsInt
12
+ type Texture2D = CS.UnityEngine.Texture2D
13
+
14
+ type TouchScreenKeyboardType = CS.UnityEngine.TouchScreenKeyboardType
15
+
16
+ type AttachToPanelEvent = CS.UnityEngine.UIElements.AttachToPanelEvent
17
+ type BlurEvent = CS.UnityEngine.UIElements.BlurEvent
18
+ type ChangeEvent<T> = CS.UnityEngine.UIElements.ChangeEvent<T>
19
+ type ClickEvent = CS.UnityEngine.UIElements.ClickEvent
20
+ type DetachFromPanelEvent = CS.UnityEngine.UIElements.DetachFromPanelEvent
21
+ type DragEnterEvent = CS.UnityEngine.UIElements.DragEnterEvent
22
+ type DragExitedEvent = CS.UnityEngine.UIElements.DragExitedEvent
23
+ type DragLeaveEvent = CS.UnityEngine.UIElements.DragLeaveEvent
24
+ type DragPerformEvent = CS.UnityEngine.UIElements.DragPerformEvent
25
+ type DragUpdatedEvent = CS.UnityEngine.UIElements.DragUpdatedEvent
26
+ type ExecuteCommandEvent = CS.UnityEngine.UIElements.ExecuteCommandEvent
27
+ type FocusEvent = CS.UnityEngine.UIElements.FocusEvent
28
+ type FocusInEvent = CS.UnityEngine.UIElements.FocusInEvent
29
+ type FocusOutEvent = CS.UnityEngine.UIElements.FocusOutEvent
30
+ type GeometryChangedEvent = CS.UnityEngine.UIElements.GeometryChangedEvent
31
+ type InputEvent = CS.UnityEngine.UIElements.InputEvent
32
+ type KeyDownEvent = CS.UnityEngine.UIElements.KeyDownEvent
33
+ type KeyUpEvent = CS.UnityEngine.UIElements.KeyUpEvent
34
+ type MouseCaptureEvent = CS.UnityEngine.UIElements.MouseCaptureEvent
35
+ type MouseCaptureOutEvent = CS.UnityEngine.UIElements.MouseCaptureOutEvent
36
+ type MouseDownEvent = CS.UnityEngine.UIElements.MouseDownEvent
37
+ type MouseEnterEvent = CS.UnityEngine.UIElements.MouseEnterEvent
38
+ type MouseEnterWindowEvent = CS.UnityEngine.UIElements.MouseEnterWindowEvent
39
+ type MouseLeaveEvent = CS.UnityEngine.UIElements.MouseLeaveEvent
40
+ type MouseLeaveWindowEvent = CS.UnityEngine.UIElements.MouseLeaveWindowEvent
41
+ type MouseMoveEvent = CS.UnityEngine.UIElements.MouseMoveEvent
42
+ type MouseOutEvent = CS.UnityEngine.UIElements.MouseOutEvent
43
+ type MouseOverEvent = CS.UnityEngine.UIElements.MouseOverEvent
44
+ type MouseUpEvent = CS.UnityEngine.UIElements.MouseUpEvent
45
+ type NavigationCancelEvent = CS.UnityEngine.UIElements.NavigationCancelEvent
46
+ type NavigationMoveEvent = CS.UnityEngine.UIElements.NavigationMoveEvent
47
+ type NavigationSubmitEvent = CS.UnityEngine.UIElements.NavigationSubmitEvent
48
+ type PickingMode = CS.UnityEngine.UIElements.PickingMode
49
+ type PointerCancelEvent = CS.UnityEngine.UIElements.PointerCancelEvent
50
+ type PointerCaptureEvent = CS.UnityEngine.UIElements.PointerCaptureEvent
51
+ type PointerCaptureOutEvent = CS.UnityEngine.UIElements.PointerCaptureOutEvent
52
+ type PointerDownEvent = CS.UnityEngine.UIElements.PointerDownEvent
53
+ type PointerEnterEvent = CS.UnityEngine.UIElements.PointerEnterEvent
54
+ type PointerLeaveEvent = CS.UnityEngine.UIElements.PointerLeaveEvent
55
+ type PointerMoveEvent = CS.UnityEngine.UIElements.PointerMoveEvent
56
+ type PointerOutEvent = CS.UnityEngine.UIElements.PointerOutEvent
57
+ type PointerOverEvent = CS.UnityEngine.UIElements.PointerOverEvent
58
+ type PointerStationaryEvent = CS.UnityEngine.UIElements.PointerStationaryEvent
59
+ type PointerUpEvent = CS.UnityEngine.UIElements.PointerUpEvent
60
+ type ScrollViewMode = CS.UnityEngine.UIElements.ScrollViewMode
61
+ type ScrollerVisibility = CS.UnityEngine.UIElements.ScrollerVisibility
62
+ type TouchScrollBehavior = CS.UnityEngine.UIElements.ScrollView.TouchScrollBehavior
63
+ type TooltipEvent = CS.UnityEngine.UIElements.TooltipEvent
64
+ type TransitionCancelEvent = CS.UnityEngine.UIElements.TransitionCancelEvent
65
+ type TransitionEndEvent = CS.UnityEngine.UIElements.TransitionEndEvent
66
+ type TransitionRunEvent = CS.UnityEngine.UIElements.TransitionRunEvent
67
+ type TransitionStartEvent = CS.UnityEngine.UIElements.TransitionStartEvent
68
+ type ValidateCommandEvent = CS.UnityEngine.UIElements.ValidateCommandEvent
69
+ type VectorImage = CS.UnityEngine.UIElements.VectorImage
70
+ type WheelEvent = CS.UnityEngine.UIElements.WheelEvent
71
+ type ContextualMenuPopulateEvent = CS.UnityEngine.UIElements.ContextualMenuPopulateEvent
72
+
73
+ type TwoPaneSplitViewOrientation = CS.UnityEngine.UIElements.TwoPaneSplitViewOrientation
74
74
 
75
75
  declare global {
76
76
  export namespace JSX {
@@ -162,11 +162,11 @@ declare global {
162
162
 
163
163
  type AppendCapture<T> = {
164
164
  [K in keyof T as `${Extract<K, string>}Capture`]: T[K]
165
- };
165
+ }
166
166
 
167
- type RefObject<T> = { current: T | null };
168
- type RefCallback<T> = (instance: T | null) => void;
169
- type Ref<T> = RefObject<T> | RefCallback<T>;
167
+ type RefObject<T> = { current: T | null }
168
+ type RefCallback<T> = (instance: T | null) => void
169
+ type Ref<T> = RefObject<T> | RefCallback<T>
170
170
 
171
171
  interface VisualElement extends CommonEvents, AppendCapture<CommonEvents> {
172
172
  id?: string
@@ -177,7 +177,7 @@ declare global {
177
177
  children?: RecursiveElement
178
178
 
179
179
  dangerouslySetInnerHTML?: {
180
- __html: string;
180
+ __html: string
181
181
  }
182
182
 
183
183
  name?: string
@@ -186,7 +186,7 @@ declare global {
186
186
  tooltip?: string
187
187
  focusable?: boolean
188
188
  tabindex?: number
189
- usageHints?: CS.UnityEngine.UIElements.UsageHints
189
+ "usage-hints"?: CS.UnityEngine.UIElements.UsageHints
190
190
  "picking-mode"?: PickingMode
191
191
  "view-data-key"?: string
192
192
 
@@ -213,7 +213,7 @@ declare global {
213
213
 
214
214
  interface TextElement extends VisualElement {
215
215
  text?: string
216
- enableRichText?: boolean
216
+ "enable-rich-text"?: boolean
217
217
  }
218
218
 
219
219
  interface Label extends TextElement {
@@ -223,11 +223,11 @@ declare global {
223
223
  interface Image extends VisualElementNoChildren {
224
224
  image?: Texture
225
225
  sprite?: Sprite
226
- vectorImage?: VectorImage
227
- sourceRect?: Rect
226
+ "vector-image"?: VectorImage
227
+ "source-rect"?: Rect
228
228
  uv?: Rect
229
- scaleMode?: ScaleMode
230
- tintColor?: Color
229
+ "scale-mode"?: ScaleMode
230
+ "tint-color"?: Color
231
231
  }
232
232
 
233
233
  interface IMGUIContainer extends VisualElementNoChildren {
@@ -283,7 +283,7 @@ declare global {
283
283
 
284
284
  interface RepeatButton extends TextElement {
285
285
  delay?: number
286
- interva?: number
286
+ interval?: number
287
287
  }
288
288
 
289
289
  interface Toggle extends BaseBoolField {
@@ -365,7 +365,7 @@ declare global {
365
365
  }
366
366
 
367
367
  interface TextValueField<T> extends TextInputBaseField<T> {
368
- formatString?: string
368
+ "format-string"?: string
369
369
  }
370
370
 
371
371
  interface IntegerField extends TextValueField<number> {
@@ -482,8 +482,8 @@ declare global {
482
482
  }
483
483
 
484
484
  interface TwoPaneSplitView extends VisualElement {
485
- fixedPaneIndex?: number
486
- fixedPaneInitialDimension?: number
485
+ "fixed-pane-index"?: number
486
+ "fixed-pane-initial-dimension"?: number
487
487
  orientation?: TwoPaneSplitViewOrientation
488
488
  }
489
489
 
@@ -563,8 +563,8 @@ declare global {
563
563
  }
564
564
  }
565
565
 
566
- export type IntrinsicElements = JSX.IntrinsicElements;
567
- export type CommonEvents = JSX.CommonEvents;
568
- export type VisualElement = JSX.VisualElement;
566
+ export type IntrinsicElements = JSX.IntrinsicElements
567
+ export type CommonEvents = JSX.CommonEvents
568
+ export type VisualElement = JSX.VisualElement
569
569
 
570
- export { };
570
+ export { }
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.11",
4
+ "version": "2.0.12",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./typings.d.ts",
7
7
  "bin": {