@marianmeres/stuic 1.125.0 → 1.126.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.
@@ -9,15 +9,15 @@ export let direction = "cw";
9
9
  $:
10
10
  _count = Math.max(3, Math.min(12, count));
11
11
  let _id = 0;
12
- const _calcSegs = (_c, _d) => {
12
+ const _calcSegs = (c, d) => {
13
13
  const id = _id++;
14
14
  let out = [];
15
- for (let i = 0; i < _c; i++) {
15
+ for (let i = 0; i < c; i++) {
16
16
  out.push({
17
17
  id: `${id}_${i}`,
18
- rotate: 360 / _c * i,
19
- delay: (direction === "ccw" ? 1 : -1) * (_d - _d / _c * (i + 1)),
20
- duration: _d
18
+ rotate: 360 / c * i,
19
+ delay: (direction === "ccw" ? 1 : -1) * (d - d / c * (i + 1)),
20
+ duration: d
21
21
  });
22
22
  }
23
23
  return out;
@@ -30,7 +30,7 @@ $:
30
30
  _height = "height-" + (["normal", "tall", "short"].includes(height) ? height : "normal");
31
31
  </script>
32
32
 
33
- <div class="spinner {_thickness} {_height} {twMerge2('inline-block w-5', _class)}">
33
+ <div class="spinner {_thickness} {_height} {twMerge2('inline-block w-4', _class)}">
34
34
  {#each _segments as s (s.id)}
35
35
  <div
36
36
  style={[
@@ -81,16 +81,16 @@ $:
81
81
  }
82
82
  /* thickness */
83
83
  .spinner.thickness-thin div:after {
84
- left: 47.5%;
85
- width: 5%;
84
+ left: 48%;
85
+ width: 4%;
86
86
  }
87
87
  .spinner.thickness-normal div:after {
88
88
  left: 46%;
89
89
  width: 8%;
90
90
  }
91
91
  .spinner.thickness-thick div:after {
92
- left: 44.5%;
93
- width: 11%;
92
+ left: 43%;
93
+ width: 14%;
94
94
  }
95
95
 
96
96
  /* height */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.125.0",
3
+ "version": "1.126.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",