@betorigami/games 1.10.2 → 1.10.3
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/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5662,6 +5662,7 @@ var ft=Object.create;var{getPrototypeOf:gt,defineProperty:zr,getOwnPropertyNames
|
|
|
5662
5662
|
display: block;
|
|
5663
5663
|
transform-origin: 50% 50%;
|
|
5664
5664
|
transform-box: fill-box;
|
|
5665
|
+
will-change: transform;
|
|
5665
5666
|
}
|
|
5666
5667
|
|
|
5667
5668
|
.wheel-flapper {
|
|
@@ -5735,12 +5736,13 @@ var ft=Object.create;var{getPrototypeOf:gt,defineProperty:zr,getOwnPropertyNames
|
|
|
5735
5736
|
transition: none;
|
|
5736
5737
|
}
|
|
5737
5738
|
}
|
|
5738
|
-
`;class K1 extends J{constructor(){super(...arguments);this.risk="MEDIUM_RISK";this.segments=10;this.highlightedSegments=[]}static styles=[T0];generateWheelPaths(){let a=ke(this.segments,this.risk),e={cx:285,cy:285},i=
|
|
5739
|
+
`;class K1 extends J{constructor(){super(...arguments);this.risk="MEDIUM_RISK";this.segments=10;this.highlightedSegments=[]}static styles=[T0];generateWheelPaths(){let a=ke(this.segments,this.risk),e={cx:285,cy:285},i=284.371,o=2*Math.PI/this.segments,r=[];for(let n=0;n<this.segments;n++){let t=a[n],s=Wi(t),c=this.highlightedSegments.length>0&&!this.highlightedSegments.includes(n)?0.25:1,u=n*o-Math.PI/2,k=(n+1)*o-Math.PI/2,h={x:e.cx+284.371*Math.cos(u),y:e.cy+284.371*Math.sin(u)},y={x:e.cx+284.371*Math.cos(k),y:e.cy+284.371*Math.sin(k)};r.push(ea`<path
|
|
5739
5740
|
class="segment-path"
|
|
5741
|
+
fill="${s}"
|
|
5740
5742
|
stroke="${s}"
|
|
5743
|
+
stroke-width="1"
|
|
5741
5744
|
opacity="${c}"
|
|
5742
|
-
|
|
5743
|
-
d="M${h.x.toFixed(3)} ${h.y.toFixed(3)}A${142.185} ${142.185} 0 0 1 ${y.x.toFixed(3)} ${y.y.toFixed(3)}"
|
|
5745
|
+
d="M${e.cx} ${e.cy} L${h.x.toFixed(3)} ${h.y.toFixed(3)} A${284.371} ${284.371} 0 0 1 ${y.x.toFixed(3)} ${y.y.toFixed(3)} Z"
|
|
5744
5746
|
/>`)}return r}render(){return ea`
|
|
5745
5747
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 570 570" width="100%" height="100%" fill="none" preserveAspectRatio="xMidYMid meet">
|
|
5746
5748
|
<g clip-path="url(#a)">
|