@rbxts/uiblox 0.1.37 → 0.1.38

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.
@@ -8,6 +8,7 @@ export interface DividerProps {
8
8
  color?: Color3;
9
9
  transparency?: number;
10
10
  weight?: number;
11
+ anchorPoint?: Vector2;
11
12
  }
12
13
  declare function Divider<T extends DefaultDividerComponent>(props: CustomizedProps<T, DividerProps>): JSX.Element;
13
14
  export default Divider;
@@ -27,12 +27,17 @@ local useDividerStyles = makeStyles(function(theme, props)
27
27
  if weight == nil then
28
28
  weight = theme.options.constants.borders.default
29
29
  end
30
+ local anchorPoint = _binding.anchorPoint
31
+ if anchorPoint == nil then
32
+ anchorPoint = Vector2.new(0, 0)
33
+ end
30
34
  return createStyles({
31
35
  root = {
32
36
  Position = position or UDim2.new(0, 0, 0, 0),
33
37
  Size = UDim2.new(if orientation == Orientations.Horizontal then 1 else 0, if orientation == Orientations.Horizontal then -padding * 2 else weight, if orientation == Orientations.Vertical then 1 else 0, if orientation == Orientations.Vertical then -padding * 2 else weight),
34
38
  BackgroundColor3 = color or Color3.fromRGB(255, 255, 255),
35
39
  BackgroundTransparency = transparency,
40
+ AnchorPoint = anchorPoint,
36
41
  },
37
42
  })
38
43
  end)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/uiblox",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "UI Library and theming for roblox-ts projects",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {