cleanyourtv-app
Clean Your TV를 위한 커뮤니티 제작 모바일 앱
저장소 정보는 아직 수집하지 않았습니다.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗A minimal crystal structure viewer for the web. Try the demo.
npm install bravais three
Add a container with a height:
<div id="viewer" style="height: 480px"></div>
Then read a CIF and visualize it:
import { buildScene, createViewer, expandStructure, readCif } from "bravais";
const response = await fetch("https://unpkg.com/bravais/examples/CoO.cif");
const scene = buildScene(expandStructure(await readCif(await response.text())));
createViewer(document.getElementById("viewer")).setLayers([{ scene }]);
A structure read elsewhere, such as by a CIF reader in another language, can be given as plain data instead, with its symmetry operations, its space group, or neither when the sites list every atom of the cell:
import { readStructure } from "bravais";
const structure = await readStructure({
lattice: { a: 4.26, b: 4.26, c: 4.26, alpha: 90, beta: 90, gamma: 90 },
sites: [
{ label: "Co", fractional: [0, 0, 0], species: [{ element: "Co" }] },
{ label: "O", fractional: [0.5, 0.5, 0.5], species: [{ element: "O" }] },
],
spaceGroup: { symbol: "F m -3 m" },
});
readStructure checks the data and throws StructureDataError for anything
missing or malformed; the result works everywhere a structure from readCif
does.
Thanks to Feitong Song's Pretty Lattice, whose look, controls and softened element colours this viewer follows.
The code was written by Claude Code, under the author's direction and review.