@quenty/draw 7.9.1 → 7.9.2
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 +8 -0
- package/package.json +2 -2
- package/src/Shared/Draw.lua +6 -5
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
|
+
## [7.9.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@7.9.1...@quenty/draw@7.9.2) (2025-11-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/draw
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [7.9.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@7.9.0...@quenty/draw@7.9.1) (2025-10-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/draw",
|
|
3
|
-
"version": "7.9.
|
|
3
|
+
"version": "7.9.2",
|
|
4
4
|
"description": "A utility library to debug things in 3D space for Roblox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@quenty/loader": "^10.9.0",
|
|
33
33
|
"@quenty/maid": "^3.5.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f14f6bf0f8ca2b041c70ed27b68ad385a76e6164"
|
|
36
36
|
}
|
package/src/Shared/Draw.lua
CHANGED
|
@@ -492,8 +492,8 @@ function Draw._textOnAdornee(adornee: Instance, text: string, color: Color3): Bi
|
|
|
492
492
|
|
|
493
493
|
local background = Instance.new("Frame")
|
|
494
494
|
background.Name = "Background"
|
|
495
|
-
background.Size = UDim2.
|
|
496
|
-
background.Position = UDim2.
|
|
495
|
+
background.Size = UDim2.fromScale(1, 1)
|
|
496
|
+
background.Position = UDim2.fromScale(0.5, 1)
|
|
497
497
|
background.AnchorPoint = Vector2.new(0.5, 1)
|
|
498
498
|
background.BackgroundTransparency = 0.3
|
|
499
499
|
background.BorderSizePixel = 0
|
|
@@ -507,7 +507,7 @@ function Draw._textOnAdornee(adornee: Instance, text: string, color: Color3): Bi
|
|
|
507
507
|
textLabel.BackgroundTransparency = 1
|
|
508
508
|
textLabel.BorderSizePixel = 0
|
|
509
509
|
textLabel.TextColor3 = Color3.new(1, 1, 1)
|
|
510
|
-
textLabel.Size = UDim2.
|
|
510
|
+
textLabel.Size = UDim2.fromScale(1, 1)
|
|
511
511
|
textLabel.Parent = background
|
|
512
512
|
|
|
513
513
|
if tonumber(text) then
|
|
@@ -542,7 +542,7 @@ function Draw._textOnAdornee(adornee: Instance, text: string, color: Color3): Bi
|
|
|
542
542
|
|
|
543
543
|
local height = lines * TEXT_HEIGHT_STUDS * TEXT_HEIGHT_STUDS * PADDING_PERCENT_OF_LINE_HEIGHT
|
|
544
544
|
|
|
545
|
-
billboardGui.Size = UDim2.
|
|
545
|
+
billboardGui.Size = UDim2.fromScale(height * aspectRatio, height)
|
|
546
546
|
billboardGui.Parent = adornee
|
|
547
547
|
|
|
548
548
|
return billboardGui
|
|
@@ -874,10 +874,11 @@ end
|
|
|
874
874
|
]=]
|
|
875
875
|
function Draw.screenPoint(position: Vector2, parent: Instance, color: Color3Like?, diameter: number?): Frame
|
|
876
876
|
local pointColor = Draw._toColor3(color) or Color3.new(0.658824, 0.501961, 0.501961)
|
|
877
|
+
local pointDiameter = diameter or 3
|
|
877
878
|
|
|
878
879
|
local frame = Instance.new("Frame")
|
|
879
880
|
frame.Name = "DebugScreenPoint"
|
|
880
|
-
frame.Size = UDim2.
|
|
881
|
+
frame.Size = UDim2.fromOffset(pointDiameter, pointDiameter)
|
|
881
882
|
frame.BackgroundColor3 = pointColor
|
|
882
883
|
frame.BackgroundTransparency = 0.5
|
|
883
884
|
frame.Position = UDim2.fromScale(position.X, position.Y)
|