-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
349 additions
and
91 deletions.
There are no files selected for viewing
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
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,46 @@ | ||
use crate::components::Heading; | ||
use crate::SharedPtr; | ||
use dioxus::prelude::*; | ||
use vortex::alp::{ALPArray, Exponents}; | ||
|
||
#[component] | ||
pub fn ALPInfo(array: SharedPtr<ALPArray>) -> Element { | ||
let Exponents { e, f } = array.exponents(); | ||
|
||
rsx! { | ||
Heading { text: "ALP Encoding Parameters" } | ||
|
||
div { class: "relative flex flex-col max-w-7/12 bg-clip-border", | ||
table { class: "table-auto w-full min-w-max text-left border-collapse", | ||
tbody { class: "border-b border-1 border-zinc-50/10", | ||
tr { class: "font-normal hover:bg-neutral-800/75 border-b border-1 border-zinc-50/10", | ||
td { class: "p-1", | ||
p { class: "block font-sans font-bold text-sm antialiased leading-normal", | ||
"Exponent (e)" | ||
} | ||
} | ||
td { class: "p-1", | ||
p { class: "block font-mono text-sm antialiased leading-normal", | ||
"{e}" | ||
} | ||
} | ||
} | ||
tr { class: "font-normal hover:bg-neutral-800/75 border-b border-1 border-zinc-50/10", | ||
td { class: "p-1", | ||
p { class: "block font-sans font-bold text-sm antialiased leading-normal", | ||
"Factor (f)" | ||
} | ||
} | ||
td { class: "p-1", | ||
p { class: "block font-mono text-sm antialiased leading-normal", | ||
"{f}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// TODO(aduffy): ALP-RD |
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
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.