@quenty/blend 12.22.0 → 12.22.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [12.22.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@12.22.0...@quenty/blend@12.22.1) (2025-11-12)
7
+
8
+ **Note:** Version bump only for package @quenty/blend
9
+
10
+
11
+
12
+
13
+
6
14
  # [12.22.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@12.21.0...@quenty/blend@12.22.0) (2025-10-08)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/blend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/blend",
3
- "version": "12.22.0",
3
+ "version": "12.22.1",
4
4
  "description": "Declarative UI system.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -30,21 +30,21 @@
30
30
  "@quenty/acceltween": "^2.5.3",
31
31
  "@quenty/brio": "^14.20.0",
32
32
  "@quenty/ducktype": "^5.9.0",
33
- "@quenty/instanceutils": "^13.20.0",
33
+ "@quenty/instanceutils": "^13.20.1",
34
34
  "@quenty/loader": "^10.9.0",
35
35
  "@quenty/maid": "^3.5.0",
36
36
  "@quenty/promise": "^10.12.0",
37
37
  "@quenty/rx": "^13.20.0",
38
38
  "@quenty/signal": "^7.11.1",
39
- "@quenty/spring": "^10.9.0",
39
+ "@quenty/spring": "^10.9.1",
40
40
  "@quenty/steputils": "^3.6.0",
41
41
  "@quenty/string": "^3.3.3",
42
- "@quenty/valuebaseutils": "^13.20.0",
43
- "@quenty/valueobject": "^13.21.0"
42
+ "@quenty/valuebaseutils": "^13.20.1",
43
+ "@quenty/valueobject": "^13.21.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@quenty/contentproviderutils": "^12.21.0",
46
+ "@quenty/contentproviderutils": "^12.21.1",
47
47
  "@quenty/playerthumbnailutils": "^10.12.0"
48
48
  },
49
- "gitHead": "d396d6f77d25ba25f1f45bbc252216131f88eeed"
49
+ "gitHead": "f14f6bf0f8ca2b041c70ed27b68ad385a76e6164"
50
50
  }
@@ -37,7 +37,7 @@ export type BlendProps = { [any]: any }
37
37
  Parent = game.Players.LocalPlayer.PlayerGui;
38
38
 
39
39
  Blend.New "Frame" {
40
- Size = UDim2.new(1, 0, 1, 0);
40
+ Size = UDim2.fromScale(1, 1);
41
41
  BackgroundTransparency = 0.5;
42
42
  };
43
43
  };
@@ -529,7 +529,7 @@ end
529
529
  Parent = game.Players.LocalPlayer.PlayerGui;
530
530
  [Blend.Children] = {
531
531
  Blend.New "Frame" {
532
- Size = UDim2.new(1, 0, 1, 0);
532
+ Size = UDim2.fromScale(1, 1);
533
533
  BackgroundTransparency = 0.5;
534
534
  };
535
535
  };
@@ -544,7 +544,7 @@ end
544
544
  Parent = game.Players.LocalPlayer.PlayerGui;
545
545
 
546
546
  Blend.New "Frame" {
547
- Size = UDim2.new(1, 0, 1, 0);
547
+ Size = UDim2.fromScale(1, 1);
548
548
  BackgroundTransparency = 0.5;
549
549
  };
550
550
  };
@@ -660,7 +660,7 @@ end
660
660
 
661
661
  ```lua
662
662
  maid:GiveTask(Blend.mount(frame, {
663
- Size = UDim2.new(0.5, 0, 0.5, 0);
663
+ Size = UDim2.fromScale(0.5, 0.5);
664
664
 
665
665
  Blend.Find "UIScale" {
666
666
  Scale = 2;
@@ -828,7 +828,7 @@ end
828
828
  -- every frame.
829
829
 
830
830
  Blend.New "Frame" {
831
- Size = UDim2.new(1, 0, 1, 0);
831
+ Size = UDim2.fromScale(1, 1);
832
832
  BackgroundTransparency = 0.5;
833
833
  };
834
834
  end)
@@ -41,11 +41,11 @@ return function(target)
41
41
  Parent = target,
42
42
  Font = Enum.Font.FredokaOne,
43
43
  Size = Blend.Computed(percentVisible, function(visible)
44
- return UDim2.new(0, visible * 100 + 50, 0, 50)
44
+ return UDim2.fromOffset(visible * 100 + 50, 50)
45
45
  end),
46
46
  TextTransparency = transparency,
47
47
  BackgroundTransparency = transparency,
48
- Position = UDim2.new(0.5, 0, 0.5, 0),
48
+ Position = UDim2.fromScale(0.5, 0.5),
49
49
  AnchorPoint = Vector2.new(0.5, 0.5),
50
50
  Text = state,
51
51
  TextSize = 15,
@@ -76,7 +76,7 @@ return function(target)
76
76
  return nil
77
77
  else
78
78
  return Blend.New "Frame" {
79
- Size = UDim2.new(0, 150, 0, 30),
79
+ Size = UDim2.fromOffset(150, 30),
80
80
  AnchorPoint = Vector2.new(0.5, 0),
81
81
  Position = UDim2.new(0.5, 0, 1, 10),
82
82
  BackgroundTransparency = transparency,
@@ -98,8 +98,8 @@ return function(target)
98
98
  table.insert(
99
99
  results,
100
100
  Blend.New "Frame" {
101
- Size = UDim2.new(0, 8, 0, 8),
102
- Position = UDim2.new(x / 100, 0, 0.9, 0),
101
+ Size = UDim2.fromOffset(8, 8),
102
+ Position = UDim2.fromScale(x / 100, 0.9),
103
103
  AnchorPoint = Vector2.new(0.5, 0.5),
104
104
  BorderSizePixel = 0,
105
105
  BackgroundColor3 = Color3.new(x / 100, 0.5, 0.5),
@@ -21,7 +21,7 @@ return function(target)
21
21
  Blend.New "TextButton" {
22
22
  Text = "Add",
23
23
  AutoButtonColor = true,
24
- Size = UDim2.new(0, 100, 0, 20),
24
+ Size = UDim2.fromOffset(100, 20),
25
25
  [Blend.OnEvent "Activated"] = function()
26
26
  local newState = {}
27
27
  for _, item in state.Value do
@@ -35,7 +35,7 @@ return function(target)
35
35
  print("Compute", value)
36
36
  return Blend.New "TextLabel" {
37
37
  Text = tostring(value),
38
- Size = UDim2.new(0, 20, 0, 20),
38
+ Size = UDim2.fromOffset(20, 20),
39
39
  }
40
40
  end),
41
41
 
@@ -28,20 +28,20 @@ return function(target)
28
28
  end)
29
29
 
30
30
  local frame = Instance.new("Frame")
31
- frame.Size = UDim2.new(0.5, 0, 0.5, 0)
31
+ frame.Size = UDim2.fromScale(0.5, 0.5)
32
32
  frame.BackgroundColor3 = Color3.new(0.9, 0.9, 0.9)
33
33
  frame.AnchorPoint = Vector2.new(0.5, 0.5)
34
- frame.Position = UDim2.new(0.5, 0, 0.5, 0)
34
+ frame.Position = UDim2.fromScale(0.5, 0.5)
35
35
  frame.BackgroundTransparency = transparency
36
36
  frame.Parent = target
37
37
  maid:GiveTask(frame)
38
38
 
39
39
  local subFrame = Instance.new("Frame")
40
40
  subFrame.Name = "CenterFrame"
41
- subFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
41
+ subFrame.Size = UDim2.fromScale(0.5, 0.5)
42
42
  subFrame.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
43
43
  subFrame.AnchorPoint = Vector2.new(0.5, 0.5)
44
- subFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
44
+ subFrame.Position = UDim2.fromScale(0.5, 0.5)
45
45
  subFrame.BackgroundTransparency = transparency
46
46
  subFrame.Parent = frame
47
47
 
@@ -50,7 +50,7 @@ return function(target)
50
50
  uiScale.Parent = subFrame
51
51
 
52
52
  maid:GiveTask(Blend.mount(frame, {
53
- Size = UDim2.new(0.5, 0, 0.5, 0),
53
+ Size = UDim2.fromScale(0.5, 0.5),
54
54
 
55
55
  Blend.New "UICorner" {
56
56
  CornerRadius = UDim.new(0.05, 0),
@@ -43,7 +43,7 @@ return function(target)
43
43
  Name = "ProfileImage",
44
44
  LayoutOrder = 15,
45
45
  BackgroundTransparency = 1,
46
- Size = UDim2.new(0, 100, 0, 130),
46
+ Size = UDim2.fromOffset(100, 130),
47
47
  Position = UDim2.fromScale(0.5, 0.5),
48
48
  AnchorPoint = Vector2.new(0.5, 0.5),
49
49
  [Blend.Children] = {
@@ -55,7 +55,7 @@ return function(target)
55
55
 
56
56
  Blend.New "TextLabel" {
57
57
  Size = UDim2.new(1, 0, 0, 30),
58
- Position = UDim2.new(0.5, 0, 1, 0),
58
+ Position = UDim2.fromScale(0.5, 1),
59
59
  AnchorPoint = Vector2.new(0.5, 1),
60
60
  BackgroundTransparency = 1,
61
61
  TextTransparency = transparency,
@@ -66,9 +66,9 @@ return function(target)
66
66
  },
67
67
 
68
68
  Blend.New "Frame" {
69
- Position = UDim2.new(0.5, 0, 0, 0),
69
+ Position = UDim2.fromScale(0.5, 0),
70
70
  AnchorPoint = Vector2.new(0.5, 0),
71
- Size = UDim2.new(1, 0, 1, 0),
71
+ Size = UDim2.fromScale(1, 1),
72
72
  BackgroundColor3 = Color3.new(0.2, 0.25, 0.2),
73
73
  BackgroundTransparency = transparency,
74
74
  [Blend.Children] = {
@@ -86,7 +86,7 @@ return function(target)
86
86
  },
87
87
 
88
88
  Blend.New "ImageLabel" {
89
- Size = UDim2.new(1, 0, 1, 0),
89
+ Size = UDim2.fromScale(1, 1),
90
90
  Image = userImage,
91
91
  BackgroundTransparency = transparency,
92
92
  ImageTransparency = transparency,
@@ -18,7 +18,7 @@ return function(target)
18
18
  return Blend.New "TextLabel" {
19
19
  Parent = target,
20
20
  Text = text,
21
- Size = UDim2.new(1, 0, 1, 0),
21
+ Size = UDim2.fromScale(1, 1),
22
22
  BackgroundTransparency = 0.5,
23
23
  [function()
24
24
  return Observable.new(function()
@@ -28,10 +28,10 @@ return function(target)
28
28
  end)
29
29
 
30
30
  maid:GiveTask((Blend.New "Frame" {
31
- Size = UDim2.new(0.5, 0, 0.5, 0),
31
+ Size = UDim2.fromScale(0.5, 0.5),
32
32
  BackgroundColor3 = Color3.new(0.9, 0.9, 0.9),
33
33
  AnchorPoint = Vector2.new(0.5, 0.5),
34
- Position = UDim2.new(0.5, 0, 0.5, 0),
34
+ Position = UDim2.fromScale(0.5, 0.5),
35
35
  BackgroundTransparency = transparency,
36
36
  Parent = target,
37
37
 
@@ -14,13 +14,13 @@ return function(target)
14
14
  local state = Blend.State("hi")
15
15
 
16
16
  maid:GiveTask((Blend.New "Frame" {
17
- Size = UDim2.new(1, 0, 1, 0),
17
+ Size = UDim2.fromScale(1, 1),
18
18
  BackgroundTransparency = 1,
19
19
  Parent = target,
20
20
 
21
21
  [Blend.Children] = {
22
22
  Blend.New "TextBox" {
23
- Size = UDim2.new(0, 200, 0, 50),
23
+ Size = UDim2.fromOffset(200, 50),
24
24
  Text = state,
25
25
  [Blend.OnChange "Text"] = state,
26
26
  [Blend.OnEvent "Focused"] = function()
@@ -42,7 +42,7 @@ return function(target)
42
42
  },
43
43
 
44
44
  Blend.New "TextBox" {
45
- Size = UDim2.new(0, 200, 0, 50),
45
+ Size = UDim2.fromOffset(200, 50),
46
46
  [Blend.OnChange "Text"] = state, -- read state
47
47
  Text = state, -- write state
48
48
  },
@@ -13,8 +13,8 @@ Blend.New "ScreenGui" {
13
13
  Parent = PlayerGuiUtils.getPlayerGui(),
14
14
  [Blend.Children] = {
15
15
  Blend.New "TextLabel" {
16
- Size = UDim2.new(0, 100, 0, 50),
17
- Position = UDim2.new(0.5, 0, 0.5, 0),
16
+ Size = UDim2.fromOffset(100, 50),
17
+ Position = UDim2.fromScale(0.5, 0.5),
18
18
  AnchorPoint = Vector2.new(0.5, 0.5),
19
19
  Text = state,
20
20
  },