@oscarpalmer/atoms 0.126.0 → 0.127.0
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/dist/atoms.full.js
CHANGED
|
@@ -14,7 +14,11 @@ function calculate() {
|
|
|
14
14
|
const TOTAL = 10;
|
|
15
15
|
const TRIM_PART = 2;
|
|
16
16
|
const TRIM_TOTAL = 4;
|
|
17
|
-
|
|
17
|
+
let FRAME_RATE_MS = 1e3 / 60;
|
|
18
|
+
calculate().then((value) => {
|
|
19
|
+
FRAME_RATE_MS = value;
|
|
20
|
+
});
|
|
21
|
+
var frame_rate_default = FRAME_RATE_MS;
|
|
18
22
|
function chunk(array, size) {
|
|
19
23
|
if (!Array.isArray(array)) return [];
|
|
20
24
|
if (array.length === 0) return [];
|
|
@@ -14,5 +14,9 @@ function calculate() {
|
|
|
14
14
|
var TOTAL = 10;
|
|
15
15
|
var TRIM_PART = 2;
|
|
16
16
|
var TRIM_TOTAL = 4;
|
|
17
|
-
var
|
|
17
|
+
var FRAME_RATE_MS = 1e3 / 60;
|
|
18
|
+
calculate().then((value) => {
|
|
19
|
+
FRAME_RATE_MS = value;
|
|
20
|
+
});
|
|
21
|
+
var frame_rate_default = FRAME_RATE_MS;
|
|
18
22
|
export { frame_rate_default as default };
|
package/package.json
CHANGED
|
@@ -37,13 +37,15 @@ const TRIM_PART = 2;
|
|
|
37
37
|
|
|
38
38
|
const TRIM_TOTAL = 4;
|
|
39
39
|
|
|
40
|
+
let FRAME_RATE_MS = 1000 / 60;
|
|
41
|
+
|
|
42
|
+
//
|
|
43
|
+
|
|
40
44
|
/**
|
|
41
45
|
* A calculated average of the refresh rate of the display _(in milliseconds)_
|
|
42
46
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/* calculate().then(value => {
|
|
47
|
+
calculate().then(value => {
|
|
46
48
|
FRAME_RATE_MS = value;
|
|
47
|
-
});
|
|
49
|
+
});
|
|
48
50
|
|
|
49
51
|
export default FRAME_RATE_MS;
|