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.
- package/definitions/onejs.d.ts +3 -1
- package/package.json +1 -1
- package/scripts/onejs-tw-config.cjs +15 -19
package/definitions/onejs.d.ts
CHANGED
|
@@ -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
|
@@ -149,25 +149,21 @@ exports.plugins = [
|
|
|
149
149
|
}),
|
|
150
150
|
]
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|