From 8069b14eeeab43ed4c147c0513c0e82c3af97075 Mon Sep 17 00:00:00 2001 From: Holtz Yan Date: Fri, 8 Nov 2024 12:58:32 +0100 Subject: [PATCH] j --- component/ChartOrSandbox.tsx | 4 +- .../animation/react-spring-for-dataviz.tsx | 88 ++++++++++++------- viz/ReactSpringText/index.js | 8 +- .../Circle.tsx | 25 ++++++ .../Graph.tsx | 25 ++++++ .../index.js | 6 ++ .../package.json | 31 +++++++ .../AnimationSimpleDivSolution/Circle.tsx | 24 +++++ .../AnimationSimpleDivSolution/Graph.tsx | 33 +++++++ .../AnimationSimpleDivSolution/index.js | 6 ++ .../AnimationSimpleDivSolution/package.json | 31 +++++++ 11 files changed, 243 insertions(+), 38 deletions(-) create mode 100644 viz/exercise/AnimationSimpleCircleOpacitySolution/Circle.tsx create mode 100644 viz/exercise/AnimationSimpleCircleOpacitySolution/Graph.tsx create mode 100644 viz/exercise/AnimationSimpleCircleOpacitySolution/index.js create mode 100644 viz/exercise/AnimationSimpleCircleOpacitySolution/package.json create mode 100644 viz/exercise/AnimationSimpleDivSolution/Circle.tsx create mode 100644 viz/exercise/AnimationSimpleDivSolution/Graph.tsx create mode 100644 viz/exercise/AnimationSimpleDivSolution/index.js create mode 100644 viz/exercise/AnimationSimpleDivSolution/package.json diff --git a/component/ChartOrSandbox.tsx b/component/ChartOrSandbox.tsx index f27e70977..8c5c8429b 100644 --- a/component/ChartOrSandbox.tsx +++ b/component/ChartOrSandbox.tsx @@ -13,6 +13,7 @@ type ChartOrSandboxProps = { height?: number; maxWidth?: number; caption?: string | ReactNode; + fileToOpen?: string; }; export const ChartOrSandbox = ({ @@ -21,6 +22,7 @@ export const ChartOrSandbox = ({ height = 400, maxWidth = 800, caption, + fileToOpen, }: ChartOrSandboxProps) => { const [showSandbox, setShowSandbox] = useState(false); @@ -38,7 +40,7 @@ export const ChartOrSandbox = ({ {showSandbox ? (
- +