-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support partial site occupancies by rendering atoms as multiple spher…
…e slices (#46) * add hint how to change element color in StructureLegend.svelte * add structure Bi2Zr2O7-Fm3m.json with partial site occupancy * StructureScene support rendering partial site occupancies as differently-colored sphere slices * add prop gizmo: boolean | ComponentProps<Gizmo> to StructureScene, will render threlte/extras Gizmo if truthy * bump pre-commit hooks * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Structure.svelte bundle all pass-through child props for StructureScene as scene_props and for Lattice as lattice_props * StructureScene type and tweak gizmo_defaults fix vite import.meta.glob 'as' deprecation * bump deps, migrate to eslint flat config, fix pkg.json import for node 22 * default node version to 22 in pre-commit config * CI install-cmd: npm install --force * skip: [eslint] in prec-commit CI * fix polar coordinate calculation of disordered site labels * add /disordered demo page default missing atomic_radius values to 1 in lib/structure/index.ts --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
85a044c
commit e27443c
Showing
17 changed files
with
383 additions
and
232 deletions.
There are no files selected for viewing
This file was deleted.
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,32 @@ | ||
import svelte from 'eslint-plugin-svelte' | ||
import tslint from 'typescript-eslint' | ||
|
||
/** @type { import("eslint").Linter.FlatConfig[] } */ | ||
export default [ | ||
...tslint.configs.recommended, | ||
...svelte.configs[`flat/recommended`], | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': [ | ||
`error`, | ||
{ argsIgnorePattern: `^_`, varsIgnorePattern: `^_` }, | ||
], | ||
'@typescript-eslint/quotes': [`error`, `backtick`, { avoidEscape: true }], | ||
'svelte/no-at-html-tags': `off`, | ||
}, | ||
}, | ||
{ | ||
languageOptions: { ecmaVersion: 2020 }, | ||
}, | ||
{ | ||
files: [`**/*.svelte`], | ||
languageOptions: { | ||
parserOptions: { | ||
parser: tslint.parser, | ||
}, | ||
}, | ||
}, | ||
{ | ||
ignores: [`build/`], | ||
}, | ||
] |
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.