mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
SDA-2533 Add clear, erase and done functionality. Further optimizations of logic.
This commit is contained in:
parent
ab8e6ae053
commit
94eb41719b
@ -63,19 +63,19 @@ exports[`Snipping Tool should render correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<AnnotateArea
|
<AnnotateArea
|
||||||
chosenTool="PEN"
|
chosenTool="PEN"
|
||||||
data-testid="annotate-component"highlightColor="rgba(0, 142, 255, 0.64)"
|
data-testid="annotate-component"
|
||||||
imageDimensions={
|
highlightColor="rgba(0, 142, 255, 0.64)"
|
||||||
Object {
|
imageDimensions={
|
||||||
"height": 600,
|
Object {
|
||||||
"width": 800,
|
"height": 600,
|
||||||
}
|
"width": 800,
|
||||||
}
|
}
|
||||||
onChange={[Function]}
|
}
|
||||||
paths={Array []}
|
onChange={[Function]}
|
||||||
penColor="rgba(0, 142, 255, 1)"
|
paths={Array []}
|
||||||
screenSnippetPath="Screen-Snippet"
|
penColor="rgba(0, 142, 255, 1)"
|
||||||
/>
|
screenSnippetPath="Screen-Snippet"
|
||||||
</div>
|
/></div>
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<button
|
<button
|
||||||
|
@ -961,7 +961,6 @@ export class WindowHandler {
|
|||||||
const parentWindow = BrowserWindow.getFocusedWindow();
|
const parentWindow = BrowserWindow.getFocusedWindow();
|
||||||
const MIN_HEIGHT = 312;
|
const MIN_HEIGHT = 312;
|
||||||
const MIN_WIDTH = 320;
|
const MIN_WIDTH = 320;
|
||||||
const OS_PADDING = 25;
|
|
||||||
const CONTAINER_HEIGHT = 175;
|
const CONTAINER_HEIGHT = 175;
|
||||||
const OS_PADDING = 25;
|
const OS_PADDING = 25;
|
||||||
let height: number = dimensions?.height || 0;
|
let height: number = dimensions?.height || 0;
|
||||||
|
@ -304,8 +304,9 @@ const SnippingTool: React.FunctionComponent<ISnippingToolProps> = ({ existingPat
|
|||||||
<main>
|
<main>
|
||||||
<div className='imageContainer'>
|
<div className='imageContainer'>
|
||||||
<AnnotateArea
|
<AnnotateArea
|
||||||
data-testid='annotate-component'paths={paths}
|
data-testid='annotate-component'
|
||||||
highlightColor={highlightColor.rgbaColor}
|
paths={paths}
|
||||||
|
highlightColor={highlightColor.rgbaColor}
|
||||||
penColor={penColor.rgbaColor}
|
penColor={penColor.rgbaColor}
|
||||||
onChange={setPaths}
|
onChange={setPaths}
|
||||||
imageDimensions={imageDimensions}
|
imageDimensions={imageDimensions}
|
||||||
|
Loading…
Reference in New Issue
Block a user