From e18b431c988485cc9dc3d2e47f96b15a0fbc3095 Mon Sep 17 00:00:00 2001 From: psjostrom Date: Thu, 26 Nov 2020 10:27:18 +0100 Subject: [PATCH] feat: SDA-2705 Add possibility for panning --- spec/__snapshots__/annotateArea.spec.tsx.snap | 63 ++++++++----- spec/__snapshots__/snippingTool.spec.tsx.snap | 29 +++--- spec/annotateArea.spec.tsx | 37 +++++--- spec/snippingTool.spec.tsx | 4 +- src/app/window-handler.ts | 28 +++--- src/renderer/components/annotate-area.tsx | 93 ++++++++++++------- src/renderer/components/snipping-tool.tsx | 41 ++++---- src/renderer/styles/snipping-tool.less | 4 - 8 files changed, 184 insertions(+), 115 deletions(-) diff --git a/spec/__snapshots__/annotateArea.spec.tsx.snap b/spec/__snapshots__/annotateArea.spec.tsx.snap index 814daee2..3efc46ec 100644 --- a/spec/__snapshots__/annotateArea.spec.tsx.snap +++ b/spec/__snapshots__/annotateArea.spec.tsx.snap @@ -1,29 +1,50 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` should render correctly 1`] = ` - - - +
+ +
+
`; diff --git a/spec/__snapshots__/snippingTool.spec.tsx.snap b/spec/__snapshots__/snippingTool.spec.tsx.snap index 44cd1ea5..6658bcbe 100644 --- a/spec/__snapshots__/snippingTool.spec.tsx.snap +++ b/spec/__snapshots__/snippingTool.spec.tsx.snap @@ -62,20 +62,27 @@ exports[`Snipping Tool should render correctly 1`] = ` className="imageContainer" > + onChange={[Function]} + paths={Array []} + penColor="rgba(0, 142, 255, 1)" + /> +