From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 21B311FF0B4 for ; Fri, 27 Nov 2026 17:13:00 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id D906321790; Fri, 27 Nov 2026 17:12:46 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH yew-widget-toolkit-assets 08/38] charts: map: add classes for the shares and the ping of a location Date: Fri, 27 Nov 2026 17:12:05 +0100 Message-ID: <20261127161241.3713494-9-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261127161241.3713494-1-d.csapak@proxmox.com> References: <20261127161241.3713494-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.256 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: LMIMLDWTCP755Z562MNAXFZ7Z3NWALI2 X-Message-ID-Hash: LMIMLDWTCP755Z562MNAXFZ7Z3NWALI2 X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The shares are a ring between the dot and the halo of a location. Each share is a circle that is only stroked for its part of the ring, they are rotated so that the first one starts at the top. The ping is a thin ring that spreads from the halo and fades out. It then stays invisible for a while, so that several of them don't make the map look hectic. Users that prefer reduced motion don't get it. Signed-off-by: Dominik Csapak --- scss/_charts.scss | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/scss/_charts.scss b/scss/_charts.scss index 6c429e2..d734c57 100644 --- a/scss/_charts.scss +++ b/scss/_charts.scss @@ -177,6 +177,20 @@ $map-location-halo-factor: 1.25; r: calc(var(--pwt-map-location-radius) * 0.8); } +/// Class `pwt-map-location-shares` +/// +/// Used for the ring around the dot of a location that shows how its points are divided. Each +/// share is a circle that is only stroked for its part of the ring, starting at the top. +.pwt-map-location-shares > circle { + fill: none; + stroke-width: calc(var(--pwt-map-location-radius) * 0.3); + r: var(--pwt-map-location-radius); + transform-box: fill-box; + transform-origin: center; + transform: rotate(-90deg); + pointer-events: none; +} + /// Class `pwt-map-location-count` /// /// Used for the number of points of a location with more than one point. @@ -233,6 +247,35 @@ $map-location-halo-factor: 1.25; } } +/// Class `pwt-map-location-ping` +/// +/// Used for the ring that slowly spreads from a location to draw attention to it. Like the ring of +/// a selected location it ignores the pointer. Users that prefer reduced motion don't get it. +.pwt-map-location-ping { + fill: none; + pointer-events: none; + stroke: var(--pwt-map-location-color); + stroke-width: calc(1.5 * var(--pwt-map-pixel-size)); + animation: pwt-map-location-ping 3s ease-out infinite; + + @media (prefers-reduced-motion: reduce) { + display: none; + } +} + +@keyframes pwt-map-location-ping { + from { + r: calc(var(--pwt-map-location-radius) * #{$map-location-halo-factor}); + opacity: 80%; + } + // stays invisible for the rest of the time, so that it does not look hectic + 60%, + to { + r: calc(var(--pwt-map-location-radius) * #{3 * $map-location-halo-factor}); + opacity: 0%; + } +} + /// Class `pwt-map-connection` /// /// Used for a connection between two locations on a `Map`. It has the color that the -- 2.47.3