From 3e01fa737daa1890af6c68b306070183f0d5efcf Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Wed, 4 Dec 2024 09:59:23 +0100 Subject: [PATCH] feat: Disable more interactive elements from screenshots --- app/charts/shared/brush/index.tsx | 2 ++ app/charts/shared/containers.tsx | 2 ++ app/configurator/interactive-filters/time-slider.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/charts/shared/brush/index.tsx b/app/charts/shared/brush/index.tsx index 17560a1f0..a3447fb20 100644 --- a/app/charts/shared/brush/index.tsx +++ b/app/charts/shared/brush/index.tsx @@ -32,6 +32,7 @@ import { } from "@/stores/interactive-filters"; import { useTransitionStore } from "@/stores/transition"; import { getTextWidth } from "@/utils/get-text-width"; +import { DISABLE_SCREENSHOT_ATTR } from "@/utils/use-screenshot"; // Brush constants const HANDLE_HEIGHT = 14; @@ -371,6 +372,7 @@ export const BrushTime = () => { return fullData.length ? ( (() => ({ chartContainer: { @@ -70,6 +71,7 @@ export const ChartSvg = ({ children }: { children: ReactNode }) => { > {interactiveFiltersConfig?.calculation.active && ( (undefined); @@ -159,6 +160,7 @@ const Root = ({ showPlayButton }: { showPlayButton: boolean }) => { return (