@quenty/fakeskybox 3.1.3-canary.c50dead.0 → 3.2.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,12 +3,20 @@
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
- ## [3.1.3-canary.c50dead.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/fakeskybox@3.1.2...@quenty/fakeskybox@3.1.3-canary.c50dead.0) (2021-11-20)
6
+ ## [3.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/fakeskybox@3.2.0...@quenty/fakeskybox@3.2.1) (2021-12-30)
7
+
8
+ **Note:** Version bump only for package @quenty/fakeskybox
9
+
10
+
11
+
12
+
13
+
14
+ # [3.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/fakeskybox@3.1.2...@quenty/fakeskybox@3.2.0) (2021-11-20)
7
15
 
8
16
 
9
17
  ### Bug Fixes
10
18
 
11
- * Support MacOS syncing ([c50dead](https://github.com/Quenty/NevermoreEngine/commit/c50deadbe5ebe479aded04e1619441a08ff0e9a8))
19
+ * Support MacOS syncing ([#225](https://github.com/Quenty/NevermoreEngine/issues/225)) ([03f9183](https://github.com/Quenty/NevermoreEngine/commit/03f918392c6a5bdd33f8a17c38de371d1e06c67a))
12
20
 
13
21
 
14
22
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014 Quenty
3
+ Copyright (c) 2014-2021 Quenty
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  ## FakeSkybox
2
2
  <div align="center">
3
- <a href="http://quenty.github.io/api/">
4
- <img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" />
3
+ <a href="http://quenty.github.io/NevermoreEngine/">
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
- <img src="https://img.shields.io/badge/discord-nevermore-blue.svg" alt="Discord" />
7
+ <img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
8
8
  </a>
9
9
  <a href="https://github.com/Quenty/NevermoreEngine/actions">
10
10
  <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
@@ -13,27 +13,9 @@
13
13
 
14
14
  Allow transitions between skyboxes
15
15
 
16
+ <div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/FakeSkybox">View docs →</a></div>
17
+
16
18
  ## Installation
17
19
  ```
18
20
  npm install @quenty/fakeskybox --save
19
- ```
20
-
21
- ## Usage
22
- Usage is designed to be simple.
23
-
24
- ### `FakeSkybox.new(skybox)`
25
-
26
- ### `FakeSkybox:SetPartSize(partSize)`
27
-
28
- ### `FakeSkybox:Show(doNotAnimate)`
29
-
30
- ### `FakeSkybox:Hide(doNotAnimate)`
31
-
32
- ### `FakeSkybox:SetSkybox(skybox)`
33
-
34
- ### `FakeSkybox:IsVisible()`
35
-
36
- ### `FakeSkybox:UpdateRender(baseCFrame)`
37
-
38
- ### `FakeSkybox:Destroy()`
39
-
21
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/fakeskybox",
3
- "version": "3.1.3-canary.c50dead.0",
3
+ "version": "3.2.1",
4
4
  "description": "Allow transitions between skyboxes",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,13 +25,13 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/acceltween": "2.0.0",
29
- "@quenty/loader": "3.1.1",
30
- "@quenty/maid": "2.0.1",
31
- "@quenty/signal": "2.0.0"
28
+ "@quenty/acceltween": "^2.0.1",
29
+ "@quenty/loader": "^3.1.2",
30
+ "@quenty/maid": "^2.0.2",
31
+ "@quenty/signal": "^2.0.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "c50deadbe5ebe479aded04e1619441a08ff0e9a8"
36
+ "gitHead": "d146c77d0a8e452824de0ab0b4b03ba0370bcc1b"
37
37
  }
@@ -1,5 +1,7 @@
1
- --- Allow transitions between skyboxes
2
- -- @classmod FakeSkybox
1
+ --[=[
2
+ Allow transitions between skyboxes
3
+ @class FakeSkybox
4
+ ]=]
3
5
 
4
6
  local require = require(script.Parent.loader).load(script)
5
7
 
@@ -32,6 +34,11 @@ FakeSkybox.__index = FakeSkybox
32
34
  FakeSkybox.ClassName = "FakeSkybox"
33
35
  FakeSkybox._partSize = 1024
34
36
 
37
+ --[=[
38
+ Creates a new FakeSkybox
39
+ @param skybox Skybox
40
+ @return FakeSkybox
41
+ ]=]
35
42
  function FakeSkybox.new(skybox)
36
43
  local self = setmetatable({}, FakeSkybox)
37
44
 
@@ -63,7 +70,10 @@ function FakeSkybox.new(skybox)
63
70
  return self
64
71
  end
65
72
 
66
-
73
+ --[=[
74
+ @param partSize number
75
+ @return FakeSkybox -- self
76
+ ]=]
67
77
  function FakeSkybox:SetPartSize(partSize)
68
78
  self._partSize = partSize or error("No partSize")
69
79
 
@@ -74,6 +84,9 @@ function FakeSkybox:SetPartSize(partSize)
74
84
  return self
75
85
  end
76
86
 
87
+ --[=[
88
+ @param doNotAnimate boolean
89
+ ]=]
77
90
  function FakeSkybox:Show(doNotAnimate)
78
91
  if self._visible then
79
92
  return
@@ -88,6 +101,9 @@ function FakeSkybox:Show(doNotAnimate)
88
101
  self.VisibleChanged:Fire(self._visible, doNotAnimate)
89
102
  end
90
103
 
104
+ --[=[
105
+ @param doNotAnimate boolean
106
+ ]=]
91
107
  function FakeSkybox:Hide(doNotAnimate)
92
108
  if not self._visible then
93
109
  return
@@ -102,6 +118,10 @@ function FakeSkybox:Hide(doNotAnimate)
102
118
  self.VisibleChanged:Fire(self._visible, doNotAnimate)
103
119
  end
104
120
 
121
+ --[=[
122
+ @param skybox Skybox
123
+ @return FakeSkybox -- self
124
+ ]=]
105
125
  function FakeSkybox:SetSkybox(skybox)
106
126
  self._skybox = skybox or error("No skybox")
107
127
 
@@ -113,10 +133,18 @@ function FakeSkybox:SetSkybox(skybox)
113
133
  return self
114
134
  end
115
135
 
136
+ --[=[
137
+ Returns whether the skybox is visible.
138
+ @return boolean
139
+ ]=]
116
140
  function FakeSkybox:IsVisible()
117
141
  return self._visible
118
142
  end
119
143
 
144
+ --[=[
145
+ Updates the rendering
146
+ @param baseCFrame CFrame
147
+ ]=]
120
148
  function FakeSkybox:UpdateRender(baseCFrame)
121
149
  local transparency = 1-self._percentVisible.p
122
150
 
@@ -126,6 +154,9 @@ function FakeSkybox:UpdateRender(baseCFrame)
126
154
  end
127
155
  end
128
156
 
157
+ --[=[
158
+ Cleans up the fake skybox
159
+ ]=]
129
160
  function FakeSkybox:Destroy()
130
161
  self._maid:DoCleaning()
131
162
  self._maid = nil
@@ -1,5 +1,6 @@
1
- ---
2
- -- @module FakeSkyboxSide
1
+ --[=[
2
+ @class FakeSkyboxSide
3
+ ]=]
3
4
 
4
5
  local FakeSkyboxSide = {}
5
6
  FakeSkyboxSide.__index = FakeSkyboxSide