@quenty/hide 1.5.1-canary.238.2c4d310.0 → 1.5.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 CHANGED
@@ -3,7 +3,15 @@
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
- ## [1.5.1-canary.238.2c4d310.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@1.5.0...@quenty/hide@1.5.1-canary.238.2c4d310.0) (2021-12-29)
6
+ ## [1.5.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@1.5.1...@quenty/hide@1.5.2) (2021-12-30)
7
+
8
+ **Note:** Version bump only for package @quenty/hide
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.5.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@1.5.0...@quenty/hide@1.5.1) (2021-12-30)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/hide
9
17
 
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ## Hide
2
2
  <div align="center">
3
3
  <a href="http://quenty.github.io/NevermoreEngine/">
4
- <img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" />
4
+ <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" />
5
5
  </a>
6
6
  <a href="https://discord.gg/mhtGUS8">
7
7
  <img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
@@ -13,6 +13,8 @@
13
13
 
14
14
  Utility system that leverages the binder system to hide authored objects. Centralized here for cross-system communication.
15
15
 
16
+ <div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/Hide">View docs →</a></div>
17
+
16
18
  ## Installation
17
19
  ```
18
20
  npm install @quenty/hide --save
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/hide",
3
- "version": "1.5.1-canary.238.2c4d310.0",
3
+ "version": "1.5.2",
4
4
  "description": "Utility system that leverages the binder system to hide authored objects. Centralized here for cross-system communication.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,12 +26,12 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/binder": "4.5.1-canary.238.2c4d310.0",
30
- "@quenty/loader": "3.1.2-canary.238.2c4d310.0",
31
- "@quenty/servicebag": "3.2.2-canary.238.2c4d310.0"
29
+ "@quenty/binder": "^4.5.2",
30
+ "@quenty/loader": "^3.1.2",
31
+ "@quenty/servicebag": "^3.2.3"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "2c4d310b84afd0570d89667dc5d4aa69a0ef304a"
36
+ "gitHead": "4afdd64f4ff6bc3b4b4c0ca7a31e839196f2411e"
37
37
  }
@@ -1,6 +1,19 @@
1
1
  --[=[
2
- Holds binders
3
- @class HideBinders
2
+ Initializes the hiding system on the client. See [HideBindersServer].
3
+
4
+ ```lua
5
+ local HideBindersClient = require("HideBindersClient")
6
+ local ServiceBag = require("ServiceBag")
7
+
8
+ local serviceBag = ServiceBag.new()
9
+ serviceBag:GetService(HideBindersClient)
10
+
11
+ serviceBag:Init()
12
+ serviceBag:Start()
13
+ ```
14
+
15
+ @client
16
+ @class HideBindersClient
4
17
  ]=]
5
18
 
6
19
  local require = require(script.Parent.loader).load(script)
@@ -9,5 +22,9 @@ local BinderProvider = require("BinderProvider")
9
22
  local Binder = require("Binder")
10
23
 
11
24
  return BinderProvider.new(function(self, serviceBag)
25
+ --[=[
26
+ @prop Hide Binder<HideClient>
27
+ @within HideBindersClient
28
+ ]=]
12
29
  self:Add(Binder.new("Hide", require("HideClient"), serviceBag))
13
30
  end)
@@ -1,4 +1,6 @@
1
1
  --[=[
2
+ See [HideBindersClient] for usage.
3
+ @client
2
4
  @class HideClient
3
5
  ]=]
4
6
 
@@ -6,12 +8,20 @@ local HideClient = {}
6
8
  HideClient.ClassName = "HideClient"
7
9
  HideClient.__index = HideClient
8
10
 
11
+ --[=[
12
+ Cleans up the instance
13
+ @param _adornee Instance
14
+ @return HideClient
15
+ ]=]
9
16
  function HideClient.new(_adornee)
10
17
  return setmetatable({}, HideClient)
11
18
  end
12
19
 
20
+ --[=[
21
+ Cleans up the instance
22
+ ]=]
13
23
  function HideClient:Destroy()
14
-
24
+ setmetatable(self, nil)
15
25
  end
16
26
 
17
27
  return HideClient
@@ -1,4 +1,10 @@
1
1
  --[=[
2
+ Primarily used for authoring, this hides the tagged instance from render. Great for
3
+ making bounding boxes in studio that are then hidden upon runtime.
4
+
5
+ See [HideBindersServer] for usage.
6
+
7
+ @server
2
8
  @class Hide
3
9
  ]=]
4
10
 
@@ -6,6 +12,11 @@ local Hide = {}
6
12
  Hide.ClassName = "Hide"
7
13
  Hide.__index = Hide
8
14
 
15
+ --[=[
16
+ Hides the given instances
17
+ @param adornee Instance
18
+ @return Hide
19
+ ]=]
9
20
  function Hide.new(adornee)
10
21
  local self = setmetatable({}, Hide)
11
22
 
@@ -31,7 +42,11 @@ function Hide:_setupPart(part)
31
42
  part.Transparency = 1
32
43
  end
33
44
 
45
+ --[=[
46
+ Cleans up the instance
47
+ ]=]
34
48
  function Hide:Destroy()
49
+ setmetatable(self, nil)
35
50
  end
36
51
 
37
52
  return Hide
@@ -1,5 +1,19 @@
1
1
  --[=[
2
- Holds binders
2
+ Initializes the hiding system on the server. You can do this on the client
3
+ if you need to query for raycasting. See [HideBindersClient].
4
+
5
+ ```lua
6
+ local HideBindersServer = require("HideBindersServer")
7
+ local ServiceBag = require("ServiceBag")
8
+
9
+ local serviceBag = ServiceBag.new()
10
+ serviceBag:GetService(HideBindersServer)
11
+
12
+ serviceBag:Init()
13
+ serviceBag:Start()
14
+ ```
15
+
16
+ @server
3
17
  @class HideBindersServer
4
18
  ]=]
5
19
 
@@ -9,5 +23,9 @@ local BinderProvider = require("BinderProvider")
9
23
  local Binder = require("Binder")
10
24
 
11
25
  return BinderProvider.new(function(self, serviceBag)
26
+ --[=[
27
+ @prop Hide Binder<Hide>
28
+ @within HideBindersServer
29
+ ]=]
12
30
  self:Add(Binder.new("Hide", require("Hide"), serviceBag))
13
31
  end)