-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#241: Pixelated metamaterial viz updates
- Switch to using apollo graphql for data - Temporarily remove color coding until datasets have label or title - Temporarily limit to 10x10 OR 50x50, not both - Add loading spinner, fix async behavior
- Loading branch information
Showing
4 changed files
with
137 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import gql from 'graphql-tag' | ||
|
||
export const METAMATERIAL_QUERY = gql` | ||
query PixelData($input: pixelDataQueryInput!) { | ||
pixelData(input: $input) { | ||
totalItems | ||
data { | ||
symmetry | ||
unit_cell_x_pixels | ||
C11 | ||
C12 | ||
C22 | ||
C16 | ||
C26 | ||
C66 | ||
CM0 | ||
CM0_C11 | ||
CM0_C12 | ||
CM0_C22 | ||
CM0_C16 | ||
CM0_C26 | ||
CM0_C66 | ||
CM1 | ||
CM1_C11 | ||
CM1_C12 | ||
CM1_C22 | ||
CM1_C16 | ||
CM1_C26 | ||
CM1_C66 | ||
geometry_full | ||
} | ||
} | ||
}` |
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