-
Notifications
You must be signed in to change notification settings - Fork 2
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
28 changed files
with
404 additions
and
166 deletions.
There are no files selected for viewing
Binary file not shown.
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,15 @@ | ||
import { Box, BoxProps } from 'preshape'; | ||
import { useProjectPageContext } from '..'; | ||
import ProjectPageHeader from './ProjectPageHeader'; | ||
|
||
type ProjectPageWIPProps = BoxProps; | ||
|
||
export default function ProjectPageWIP(props: ProjectPageWIPProps) { | ||
const {} = useProjectPageContext(); | ||
|
||
return ( | ||
<Box {...props} flex="vertical" grow maxWidth="800px"> | ||
<ProjectPageHeader /> | ||
</Box> | ||
); | ||
} |
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,22 @@ | ||
{ | ||
"name": "@hogg/gap-validation", | ||
"version": "0.0.0", | ||
"author": "Harry Hogg <[email protected]>", | ||
"private": true, | ||
"type": "module", | ||
"main": "./src/index.ts", | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./types": "./src/types.ts" | ||
}, | ||
"dependencies": { | ||
"@hogg/common": "workspace:^", | ||
"lucide-react": "0.445.0", | ||
"preshape": "^19.1.5", | ||
"react": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.0.28", | ||
"typescript": "^5.0.4" | ||
} | ||
} |
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,61 @@ | ||
import { | ||
ArticleFig, | ||
ArticleFigCodeBlock, | ||
ArticleFigLink, | ||
ArticleFigs, | ||
ArticlePage, | ||
ProjectPageLink, | ||
} from '@hogg/common'; | ||
import { ColorMode, TilingRenderer, meta as tilingsMeta } from '@hogg/tilings'; | ||
import { | ||
ArticleHeading, | ||
ArticleParagraph, | ||
ArticleSection, | ||
Code, | ||
Link, | ||
Text, | ||
sizeX12Px, | ||
} from 'preshape'; | ||
|
||
const Article = () => { | ||
return ( | ||
<ArticlePage> | ||
<ArticleSection> | ||
<ArticleHeading>Introduction</ArticleHeading> | ||
|
||
{/* <ArticleParagraph> | ||
While working on my <ProjectPageLink project={tilingsMeta} /> project, | ||
I was needing to build up a list of distinct shape arrangements ( | ||
<ArticleFigLink fig="dodecagon-shape-arrangement" /> | ||
). This needed a way to check an arrangement against a list of | ||
previously seen arrangements. | ||
</ArticleParagraph> | ||
<ArticleParagraph> | ||
The complexity and interesting part of this problem came because the | ||
shapes could be arranged cyclicly, and there was no defined start or | ||
end point. This meant that the same arrangement could be represented | ||
in multiple ways. I was also dealing with an infinite amount of these | ||
arrangements, and 100,000s of them every second. | ||
</ArticleParagraph> | ||
<ArticleFigs> | ||
<ArticleFig | ||
id="dodecagon-shape-arrangement" | ||
description="Shape arrangement of a dodecagon at the center, with alternating triangles, squares and hexagons on it's edges." | ||
> | ||
<TilingRenderer | ||
height="200px" | ||
notation="12-3,4,6,4,3,4,6,4,3,4,6,4" | ||
options={{ | ||
colorMode: ColorMode.None, | ||
}} | ||
/> | ||
</ArticleFig> | ||
</ArticleFigs> */} | ||
</ArticleSection> | ||
</ArticlePage> | ||
); | ||
}; | ||
|
||
export default Article; |
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,6 @@ | ||
import { ProjectPage, ProjectPageProps } from '@hogg/common'; | ||
import Article from './Article'; | ||
|
||
export default function Project(props: ProjectPageProps) { | ||
return <ProjectPage {...props} article={<Article />} />; | ||
} |
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,15 @@ | ||
import { type Project, ProjectKey } from '@hogg/common'; | ||
|
||
export { default as Project } from './Project'; | ||
|
||
export const meta: Project = { | ||
id: ProjectKey.gap_validation, | ||
name: 'Validating a tiled plane for gaps', | ||
description: | ||
'An approach for checking a tiled plane for gaps by ensure there is a single continuous perimeter.', | ||
tags: ['algorithms', 'data structures', 'sequences', 'rust'], | ||
deploy: false, | ||
wip: true, | ||
created: '2024-03-17', | ||
updated: '2024-04-10', | ||
}; |
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
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.