mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): unify chart motion and preserve pending TTFT reel roll
- Extract shared chartMotion and stepChartMath modules to bring GPU 2D pointer-following tooltips, cached tooltip geometry, cubic curve/band morphing, and quantized hover hit-testing to Summary step/fit charts and AccountQuotaTrendCard - Hide chart peak pills whenever all plotted values are zero and keep them hidden across hover and mouseleave transitions - Hold the active conversation's last valid TTFT and mounted odometer digit reels while a new step's TTFT is still pending, and add @starting-style reel entry transitions
This commit is contained in:
@@ -3200,6 +3200,7 @@ html[data-standalone="true"] .app-shell {
|
||||
height: 184px;
|
||||
display: block;
|
||||
overflow: visible;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.trend-grid line {
|
||||
@@ -3258,20 +3259,24 @@ html[data-standalone="true"] .app-shell {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.cons-view-stage .progress-seg {
|
||||
.cons-view-stage .progress-seg,
|
||||
.models-analytics-pane .progress-seg {
|
||||
flex: 0 0 auto;
|
||||
transition:
|
||||
background-color 80ms ease,
|
||||
width 240ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.cons-view-stage .progress-fill {
|
||||
.cons-view-stage .progress-fill,
|
||||
.account-cards-stack .progress-fill {
|
||||
transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
@starting-style {
|
||||
.cons-view-stage.is-ready .progress-seg,
|
||||
.cons-view-stage.is-ready .progress-fill {
|
||||
.cons-view-stage.is-ready .progress-fill,
|
||||
.models-analytics-pane .progress-seg,
|
||||
.account-cards-stack .progress-fill {
|
||||
width: 0%;
|
||||
}
|
||||
}
|
||||
@@ -3297,8 +3302,13 @@ html[data-standalone="true"] .app-shell {
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.cons-view-stage .progress-seg,
|
||||
.cons-view-stage .progress-fill,
|
||||
.models-analytics-pane .progress-seg,
|
||||
.account-cards-stack .progress-fill,
|
||||
.trend-peak-pill.is-ready,
|
||||
.trend-hm-cell {
|
||||
.trend-hm-cell,
|
||||
.trend-tooltip.is-tracking,
|
||||
.trend-hover-dot.is-tracking,
|
||||
.sstep-hover-raw-dot.is-tracking {
|
||||
transition: none !important;
|
||||
}
|
||||
.cons-item-list.is-bars-revealing .progress-track {
|
||||
@@ -3989,6 +3999,28 @@ html[data-standalone="true"] .app-shell {
|
||||
contain: layout style;
|
||||
}
|
||||
|
||||
.trend-tooltip.is-floating-tip {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
transform: translate3d(var(--tip-x, 0px), var(--tip-y, 0px), 0)
|
||||
translateX(var(--tip-shift, 0px));
|
||||
will-change: transform;
|
||||
contain: layout style;
|
||||
}
|
||||
|
||||
.trend-tooltip.is-floating-tip.is-tracking,
|
||||
.trend-tooltip.is-rich-breakdown.is-tracking {
|
||||
transition: transform 150ms var(--ease-modern, cubic-bezier(0.16, 1, 0.3, 1));
|
||||
}
|
||||
|
||||
.trend-hover-dot.is-tracking,
|
||||
.sstep-hover-raw-dot.is-tracking {
|
||||
transition:
|
||||
cx 150ms var(--ease-modern, cubic-bezier(0.16, 1, 0.3, 1)),
|
||||
cy 150ms var(--ease-modern, cubic-bezier(0.16, 1, 0.3, 1));
|
||||
}
|
||||
|
||||
.trend-tooltip.is-rich-breakdown,
|
||||
.cons-breakdown-popover.is-rich-breakdown {
|
||||
min-width: 212px;
|
||||
@@ -5058,6 +5090,7 @@ html[data-standalone="true"] .app-shell {
|
||||
height: 106px;
|
||||
display: block;
|
||||
overflow: visible;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sstep-fit-svg {
|
||||
@@ -9109,7 +9142,7 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
border: none;
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .trend-tooltip:not(.is-hm-top):not(.is-hm-bottom):not(.is-rich-breakdown) {
|
||||
[data-modern-ui="true"] .trend-tooltip:not(.is-hm-top):not(.is-hm-bottom):not(.is-rich-breakdown):not(.is-floating-tip) {
|
||||
top: 2px;
|
||||
bottom: auto;
|
||||
transform: translate3d(var(--tip-shift, -50%), var(--tip-y, 0px), 0);
|
||||
@@ -9123,6 +9156,14 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
translateX(var(--tip-shift, 0px));
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .trend-tooltip.is-floating-tip {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
transform: translate3d(var(--tip-x, 0px), var(--tip-y, 0px), 0)
|
||||
translateX(var(--tip-shift, 0px));
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .trend-tooltip.is-tracking {
|
||||
transition:
|
||||
left 150ms var(--ease-modern),
|
||||
@@ -9135,7 +9176,12 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
transition: transform 150ms var(--ease-modern);
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .trend-hover-dot.is-tracking {
|
||||
[data-modern-ui="true"] .trend-tooltip.is-floating-tip.is-tracking {
|
||||
transition: transform 150ms var(--ease-modern);
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .trend-hover-dot.is-tracking,
|
||||
[data-modern-ui="true"] .sstep-hover-raw-dot.is-tracking {
|
||||
transition:
|
||||
cx 150ms var(--ease-modern),
|
||||
cy 150ms var(--ease-modern);
|
||||
@@ -9263,6 +9309,13 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
@starting-style {
|
||||
:host([data-modern-ui="true"]) .wm-od-track,
|
||||
[data-modern-ui="true"] .wm-od-track {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
:host([data-modern-ui="true"]) .wm-od-cell,
|
||||
[data-modern-ui="true"] .wm-od-cell {
|
||||
display: block;
|
||||
|
||||
Reference in New Issue
Block a user