From e0a6d9740cb3139d725e86aaae15402877da70ca Mon Sep 17 00:00:00 2001 From: syuilo <syuilotan@yahoo.co.jp> Date: Sat, 9 Jun 2018 06:21:13 +0900 Subject: [PATCH] :v: --- src/client/app/common/views/widgets/posts-monitor.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/widgets/posts-monitor.vue b/src/client/app/common/views/widgets/posts-monitor.vue index ee1d6f91fe..3f60f1da63 100644 --- a/src/client/app/common/views/widgets/posts-monitor.vue +++ b/src/client/app/common/views/widgets/posts-monitor.vue @@ -12,6 +12,10 @@ <stop offset="100%" stop-color="hsl(90, 80%, 70%)"></stop> </linearGradient> <mask :id="fediMaskId" x="0" y="0" :width="viewBoxX" :height="viewBoxY"> + <polygon + :points="fediPolygonPoints" + fill="#fff" + fill-opacity="0.5"/> <polyline :points="fediPolylinePoints" fill="none" @@ -32,6 +36,10 @@ <stop offset="100%" stop-color="hsl(90, 80%, 70%)"></stop> </linearGradient> <mask :id="localMaskId" x="0" y="0" :width="viewBoxX" :height="viewBoxY"> + <polygon + :points="localPolygonPoints" + fill="#fff" + fill-opacity="0.5"/> <polyline :points="localPolylinePoints" fill="none" @@ -121,7 +129,7 @@ export default define({ this.save(); }, 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 localPeak = Math.max.apply(null, stats.map(x => x.local)) || 1;