-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing Webviz Layout Framework (WLF) (#219)
* Implemented view selector and view selection menu, store * Implemented settings, plugins and view elements * Changed background color of body * Implemented full screen * Adjusted to be usable with Dash backend * Adjusted button style and fixed app demo * Added screenshot function, added active plugin reference to store * Add click actions for Plugin and ViewElements * Added layout (row/column) implementations * Added backdrop component * Implemented new tour * Adjustments to `Overlay` and `ScrollArea` * Added `uuid` types declaration package * Added `Node` and `npm` version output to GitHub workflow. * Adjustments to `package-lock.json` * Pinned `dash` version to `2.4.x` in GitHub workflow * Adjusted package versions for compatibility (React related) * Added Python wrapper around `WebvizPluginPlaceholder` for deprecation Co-authored-by: Jørgen Herje <[email protected]>
- Loading branch information
1 parent
d7aba09
commit 221181b
Showing
74 changed files
with
5,919 additions
and
1,501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
<!doctype> | ||
<!DOCTYPE > | ||
<html> | ||
<head> | ||
<title>my-dash-component</title> | ||
<title>Webviz-Core-Components Demo</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<svg width="400px" height="400px" style="margin-top: 50px;"> | ||
<rect width="100px" height="100px" style="fill:green" id="green-rect" /> | ||
<rect width="100px" height="100px" x="200px" style="fill:blue" id="blue-rect" /> | ||
</svg> | ||
<script src="/output.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
|
||
import "./backdrop.css"; | ||
|
||
export type BackdropProps = { | ||
opacity: number; | ||
}; | ||
|
||
export const Backdrop: React.FC<BackdropProps> = (props: BackdropProps) => { | ||
return ( | ||
<div | ||
className="Webviz__Backdrop" | ||
style={{ | ||
opacity: props.opacity, | ||
display: props.opacity === 0 ? "none" : "block", | ||
}} | ||
></div> | ||
); | ||
}; | ||
|
||
Backdrop.propTypes = { | ||
opacity: PropTypes.number.isRequired, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.Webviz__Backdrop { | ||
position: fixed; | ||
background-color: white; | ||
z-index: 1198; | ||
width: 100vw; | ||
height: 100vh; | ||
top: 0; | ||
left: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Backdrop } from "./Backdrop"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
display: flex; | ||
align-items: center; | ||
padding: 16px; | ||
z-index: 100; | ||
} | ||
|
||
.Menu__MenuBar > * { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
.Overlay { | ||
.WebvizOverlay { | ||
width: 100vw; | ||
height: 100vh; | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
background-color: black; | ||
z-index: 999; | ||
z-index: 1010; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.