mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-12 21:58:11 +09:00
✌️
This commit is contained in:
parent
23bb47da8d
commit
137a92b9ac
@ -12,6 +12,10 @@
|
|||||||
<stop offset="100%" stop-color="hsl(90, 80%, 70%)"></stop>
|
<stop offset="100%" stop-color="hsl(90, 80%, 70%)"></stop>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
<mask :id="fediMaskId" x="0" y="0" :width="viewBoxX" :height="viewBoxY">
|
<mask :id="fediMaskId" x="0" y="0" :width="viewBoxX" :height="viewBoxY">
|
||||||
|
<polygon
|
||||||
|
:points="fediPolygonPoints"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity="0.5"/>
|
||||||
<polyline
|
<polyline
|
||||||
:points="fediPolylinePoints"
|
:points="fediPolylinePoints"
|
||||||
fill="none"
|
fill="none"
|
||||||
@ -32,6 +36,10 @@
|
|||||||
<stop offset="100%" stop-color="hsl(90, 80%, 70%)"></stop>
|
<stop offset="100%" stop-color="hsl(90, 80%, 70%)"></stop>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
<mask :id="localMaskId" x="0" y="0" :width="viewBoxX" :height="viewBoxY">
|
<mask :id="localMaskId" x="0" y="0" :width="viewBoxX" :height="viewBoxY">
|
||||||
|
<polygon
|
||||||
|
:points="localPolygonPoints"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity="0.5"/>
|
||||||
<polyline
|
<polyline
|
||||||
:points="localPolylinePoints"
|
:points="localPolylinePoints"
|
||||||
fill="none"
|
fill="none"
|
||||||
@ -121,7 +129,7 @@ export default define({
|
|||||||
this.save();
|
this.save();
|
||||||
},
|
},
|
||||||
draw() {
|
draw() {
|
||||||
const stats = this.props.view == 0 ? this.stats.slice(50, 100) : this.stats;
|
const stats = this.props.view == 0 ? this.stats.slice(-50) : this.stats;
|
||||||
const fediPeak = Math.max.apply(null, stats.map(x => x.all)) || 1;
|
const fediPeak = Math.max.apply(null, stats.map(x => x.all)) || 1;
|
||||||
const localPeak = Math.max.apply(null, stats.map(x => x.local)) || 1;
|
const localPeak = Math.max.apply(null, stats.map(x => x.local)) || 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user