onejs-core 0.3.16 → 0.3.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.
@@ -14,6 +14,8 @@
14
14
  // Don't do any import here, just declare the types
15
15
 
16
16
  type VisualElement = CS.UnityEngine.UIElements.VisualElement;
17
+ type Vector2 = CS.UnityEngine.Vector2;
18
+ type Vector3 = CS.UnityEngine.Vector3;
17
19
  type float2 = CS.Unity.Mathematics.float2;
18
20
  type float3 = CS.Unity.Mathematics.float3;
19
21
  type float4 = CS.Unity.Mathematics.float4;
@@ -140,7 +142,7 @@ declare namespace CS.OneJS.Dom {
140
142
  transitionDuration: StyleList<TimeValue> | TimeValue | string | null | string[] | number | number[];
141
143
  transitionProperty: StyleList<StylePropertyName> | StylePropertyName | string | null | string[];
142
144
  transitionTimingFunction: StyleList<EasingFunction> | EasingFunction | string | null | string[];
143
- translate: StyleTranslate | Translate | string | null | number[];
145
+ translate: StyleTranslate | Translate | string | null | Vector2 | Vector3 | number[];
144
146
  unityBackgroundImageTintColor: StyleColor | Color | string | null | number[] | float4;
145
147
  unityBackgroundScaleMode: StyleEnum<ScaleMode> | ScaleMode | string | null | number;
146
148
  unityFont: StyleFont | UnityEngine.Font | string | null;
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.16",
4
+ "version": "0.3.18",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./typings.d.ts",
7
7
  "dependencies": {
@@ -149,25 +149,21 @@ exports.plugins = [
149
149
  }),
150
150
  ]
151
151
 
152
- exports.corePlugins = {
153
- // USS cannot support dynamic custom properties within rgb()
154
- // which is what is used by Tailwind for opacity scales
155
- transitionProperty: false,
156
- transitionDuration: false,
157
- backdropOpacity: false,
158
- backgroundOpacity: false,
159
- borderOpacity: false,
160
- divideOpacity: false,
161
- ringOpacity: false,
162
- textOpacity: false,
163
- transform: false,
164
- translate: false,
165
- rotate: false,
166
- scale: false,
167
- filter: false,
168
- fontWeight: false,
169
- lineHeight: false,
170
- }
152
+ // USS cannot support dynamic custom properties within rgb()
153
+ // which is what is used by Tailwind for opacity scales
154
+ exports.corePlugins = [
155
+ "alignContent", "alignItems", "alignSelf",
156
+ "justifyContent",
157
+ "backgroundColor", "backgroundImage", "backgroundPosition", "backgroundRepeat", "backgroundSize",
158
+ "borderColor", "borderRadius", "borderWidth",
159
+ "colors", "textColor", "cursor",
160
+ "flex", "flexBasis", "flexDirection", "flexGrow", "flexShrink",
161
+ "fontFamily", "fontSize", "fontStyle",
162
+ "width", "height", "maxWidth", "maxHeight", "minWidth", "minHeight",
163
+ "margin", "padding",
164
+ "opacity", "overflow",
165
+ "position", "inset"
166
+ ]
171
167
 
172
168
  /**
173
169
  * Utilities