@buley/hexgrid-3d 3.0.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/HexGridEnhanced.d.ts +15 -0
  2. package/dist/HexGridEnhanced.d.ts.map +1 -0
  3. package/dist/HexGridEnhanced.js +1 -0
  4. package/dist/Snapshot.d.ts +594 -0
  5. package/dist/Snapshot.d.ts.map +1 -0
  6. package/dist/Snapshot.js +757 -0
  7. package/dist/adapters/DashAdapter.d.ts +18 -0
  8. package/dist/adapters/DashAdapter.d.ts.map +1 -0
  9. package/dist/adapters/DashAdapter.js +42 -0
  10. package/dist/adapters.d.ts +53 -0
  11. package/dist/adapters.d.ts.map +1 -0
  12. package/dist/adapters.js +14 -0
  13. package/dist/algorithms/AdvancedStatistics.d.ts +52 -0
  14. package/dist/algorithms/AdvancedStatistics.d.ts.map +1 -0
  15. package/dist/algorithms/AdvancedStatistics.js +307 -0
  16. package/dist/algorithms/BayesianStatistics.d.ts +86 -0
  17. package/dist/algorithms/BayesianStatistics.d.ts.map +1 -0
  18. package/dist/algorithms/BayesianStatistics.js +263 -0
  19. package/dist/algorithms/FlowField.d.ts +55 -0
  20. package/dist/algorithms/FlowField.d.ts.map +1 -0
  21. package/dist/algorithms/FlowField.js +80 -0
  22. package/dist/algorithms/FlowField3D.d.ts +166 -0
  23. package/dist/algorithms/FlowField3D.d.ts.map +1 -0
  24. package/dist/algorithms/FlowField3D.js +327 -0
  25. package/dist/algorithms/FluidEngineFactory.d.ts +15 -0
  26. package/dist/algorithms/FluidEngineFactory.d.ts.map +1 -0
  27. package/dist/algorithms/FluidEngineFactory.js +41 -0
  28. package/dist/algorithms/FluidSimulation.d.ts +41 -0
  29. package/dist/algorithms/FluidSimulation.d.ts.map +1 -0
  30. package/dist/algorithms/FluidSimulation.js +74 -0
  31. package/dist/algorithms/FluidSimulation3D.d.ts +137 -0
  32. package/dist/algorithms/FluidSimulation3D.d.ts.map +1 -0
  33. package/dist/algorithms/FluidSimulation3D.js +464 -0
  34. package/dist/algorithms/FluidSimulation3DGPU.d.ts +41 -0
  35. package/dist/algorithms/FluidSimulation3DGPU.d.ts.map +1 -0
  36. package/dist/algorithms/FluidSimulation3DGPU.js +328 -0
  37. package/dist/algorithms/FluidSimulationWebNN.d.ts +56 -0
  38. package/dist/algorithms/FluidSimulationWebNN.d.ts.map +1 -0
  39. package/dist/algorithms/FluidSimulationWebNN.js +84 -0
  40. package/dist/algorithms/GraphAlgorithms.d.ts +48 -0
  41. package/dist/algorithms/GraphAlgorithms.d.ts.map +1 -0
  42. package/dist/algorithms/GraphAlgorithms.js +122 -0
  43. package/dist/algorithms/OutlierDetection.d.ts +49 -0
  44. package/dist/algorithms/OutlierDetection.d.ts.map +1 -0
  45. package/dist/algorithms/OutlierDetection.js +284 -0
  46. package/dist/algorithms/ParticleSystem.d.ts +36 -0
  47. package/dist/algorithms/ParticleSystem.d.ts.map +1 -0
  48. package/dist/algorithms/ParticleSystem.js +59 -0
  49. package/dist/algorithms/ParticleSystem3D.d.ts +206 -0
  50. package/dist/algorithms/ParticleSystem3D.d.ts.map +1 -0
  51. package/dist/algorithms/ParticleSystem3D.js +371 -0
  52. package/dist/algorithms/index.d.ts +16 -0
  53. package/dist/algorithms/index.d.ts.map +1 -0
  54. package/{src/algorithms/index.ts → dist/algorithms/index.js} +0 -2
  55. package/dist/compat.d.ts +24 -0
  56. package/dist/compat.d.ts.map +1 -0
  57. package/dist/compat.js +88 -0
  58. package/dist/components/HexGrid.d.ts +5 -0
  59. package/dist/components/HexGrid.d.ts.map +1 -0
  60. package/dist/components/HexGrid.js +39 -0
  61. package/dist/components/NarrationOverlay.d.ts +16 -0
  62. package/dist/components/NarrationOverlay.d.ts.map +1 -0
  63. package/dist/components/NarrationOverlay.js +132 -0
  64. package/{src/components/index.ts → dist/components/index.d.ts} +1 -1
  65. package/dist/components/index.d.ts.map +1 -0
  66. package/dist/components/index.js +1 -0
  67. package/dist/features.d.ts +54 -0
  68. package/dist/features.d.ts.map +1 -0
  69. package/dist/features.js +74 -0
  70. package/dist/index.d.ts +12 -0
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/index.js +17 -0
  73. package/dist/lib/narration.d.ts +12 -0
  74. package/dist/lib/narration.d.ts.map +1 -0
  75. package/dist/lib/narration.js +8 -0
  76. package/dist/lib/stats-tracker.d.ts +7 -0
  77. package/dist/lib/stats-tracker.d.ts.map +1 -0
  78. package/dist/lib/stats-tracker.js +22 -0
  79. package/dist/lib/theme-colors.d.ts +7 -0
  80. package/dist/lib/theme-colors.d.ts.map +1 -0
  81. package/dist/lib/theme-colors.js +10 -0
  82. package/dist/math/HexCoordinates.d.ts +140 -0
  83. package/dist/math/HexCoordinates.d.ts.map +1 -0
  84. package/dist/math/HexCoordinates.js +741 -0
  85. package/dist/math/Matrix4.d.ts +9 -0
  86. package/dist/math/Matrix4.d.ts.map +1 -0
  87. package/dist/math/Matrix4.js +19 -0
  88. package/dist/math/Quaternion.d.ts +11 -0
  89. package/dist/math/Quaternion.d.ts.map +1 -0
  90. package/dist/math/Quaternion.js +23 -0
  91. package/dist/math/SpatialIndex.d.ts +34 -0
  92. package/dist/math/SpatialIndex.d.ts.map +1 -0
  93. package/dist/math/SpatialIndex.js +75 -0
  94. package/dist/math/Vector3.d.ts +110 -0
  95. package/dist/math/Vector3.d.ts.map +1 -0
  96. package/dist/math/Vector3.js +426 -0
  97. package/dist/math/index.d.ts +11 -0
  98. package/dist/math/index.d.ts.map +1 -0
  99. package/{src/math/index.ts → dist/math/index.js} +0 -1
  100. package/dist/note-adapter.d.ts +44 -0
  101. package/dist/note-adapter.d.ts.map +1 -0
  102. package/dist/note-adapter.js +86 -0
  103. package/dist/ontology-adapter.d.ts +13 -0
  104. package/dist/ontology-adapter.d.ts.map +1 -0
  105. package/dist/ontology-adapter.js +65 -0
  106. package/dist/stores/index.d.ts +2 -0
  107. package/dist/stores/index.d.ts.map +1 -0
  108. package/dist/stores/uiStore.d.ts +18 -0
  109. package/dist/stores/uiStore.d.ts.map +1 -0
  110. package/dist/stores/uiStore.js +77 -0
  111. package/dist/types/index.d.ts +4 -0
  112. package/dist/types/index.d.ts.map +1 -0
  113. package/dist/types/index.js +1 -0
  114. package/dist/types.d.ts +126 -0
  115. package/dist/types.d.ts.map +1 -0
  116. package/dist/types.js +4 -0
  117. package/dist/utils/image-utils.d.ts +13 -0
  118. package/dist/utils/image-utils.d.ts.map +1 -0
  119. package/dist/utils/image-utils.js +23 -0
  120. package/dist/wasm/HexGridWasmWrapper.d.ts +131 -0
  121. package/dist/wasm/HexGridWasmWrapper.d.ts.map +1 -0
  122. package/dist/wasm/HexGridWasmWrapper.js +610 -0
  123. package/dist/wasm/index.d.ts +7 -0
  124. package/dist/wasm/index.d.ts.map +1 -0
  125. package/{src/wasm/index.ts → dist/wasm/index.js} +0 -1
  126. package/dist/webgpu/WebGPUContext.d.ts +20 -0
  127. package/dist/webgpu/WebGPUContext.d.ts.map +1 -0
  128. package/dist/webgpu/WebGPUContext.js +60 -0
  129. package/dist/webnn/WebNNContext.d.ts +38 -0
  130. package/dist/webnn/WebNNContext.d.ts.map +1 -0
  131. package/dist/webnn/WebNNContext.js +66 -0
  132. package/dist/workers/hexgrid-math.d.ts +79 -0
  133. package/dist/workers/hexgrid-math.d.ts.map +1 -0
  134. package/dist/workers/hexgrid-math.js +136 -0
  135. package/dist/workers/hexgrid-worker.worker.d.ts +35 -0
  136. package/dist/workers/hexgrid-worker.worker.d.ts.map +1 -0
  137. package/dist/workers/hexgrid-worker.worker.js +2014 -0
  138. package/package.json +20 -7
  139. package/.eslintrc.json +0 -28
  140. package/build_log.txt +0 -500
  141. package/build_src_log.txt +0 -8
  142. package/examples/basic-usage.tsx +0 -52
  143. package/public/hexgrid-worker.js +0 -2475
  144. package/rust/Cargo.toml +0 -41
  145. package/rust/src/lib.rs +0 -740
  146. package/rust/src/math.rs +0 -574
  147. package/rust/src/spatial.rs +0 -245
  148. package/rust/src/statistics.rs +0 -496
  149. package/site/.eslintrc.json +0 -3
  150. package/site/DEPLOYMENT.md +0 -196
  151. package/site/INDEX.md +0 -127
  152. package/site/QUICK_START.md +0 -86
  153. package/site/README.md +0 -85
  154. package/site/SITE_SUMMARY.md +0 -180
  155. package/site/next.config.js +0 -12
  156. package/site/package.json +0 -26
  157. package/site/src/app/docs/page.tsx +0 -272
  158. package/site/src/app/examples/page.tsx +0 -151
  159. package/site/src/app/globals.css +0 -160
  160. package/site/src/app/layout.tsx +0 -39
  161. package/site/src/app/page.tsx +0 -235
  162. package/site/tsconfig.json +0 -29
  163. package/site/vercel.json +0 -6
  164. package/src/HexGridEnhanced.ts +0 -16
  165. package/src/Snapshot.ts +0 -1607
  166. package/src/adapters/DashAdapter.ts +0 -57
  167. package/src/adapters.ts +0 -63
  168. package/src/algorithms/AdvancedStatistics.ts +0 -362
  169. package/src/algorithms/BayesianStatistics.ts +0 -348
  170. package/src/algorithms/FlowField.ts +0 -150
  171. package/src/algorithms/FlowField3D.ts +0 -573
  172. package/src/algorithms/FluidEngineFactory.ts +0 -44
  173. package/src/algorithms/FluidSimulation.ts +0 -115
  174. package/src/algorithms/FluidSimulation3D.ts +0 -664
  175. package/src/algorithms/FluidSimulation3DGPU.ts +0 -402
  176. package/src/algorithms/FluidSimulationWebNN.ts +0 -141
  177. package/src/algorithms/GraphAlgorithms.ts +0 -191
  178. package/src/algorithms/OutlierDetection.ts +0 -425
  179. package/src/algorithms/ParticleSystem.ts +0 -95
  180. package/src/algorithms/ParticleSystem3D.ts +0 -567
  181. package/src/compat.ts +0 -96
  182. package/src/components/HexGrid.tsx +0 -61
  183. package/src/components/NarrationOverlay.tsx +0 -309
  184. package/src/features.ts +0 -125
  185. package/src/index.ts +0 -30
  186. package/src/lib/narration.ts +0 -17
  187. package/src/lib/stats-tracker.ts +0 -25
  188. package/src/lib/theme-colors.ts +0 -12
  189. package/src/math/HexCoordinates.ts +0 -863
  190. package/src/math/Matrix4.ts +0 -25
  191. package/src/math/Quaternion.ts +0 -37
  192. package/src/math/SpatialIndex.ts +0 -114
  193. package/src/math/Vector3.ts +0 -540
  194. package/src/note-adapter.ts +0 -132
  195. package/src/ontology-adapter.ts +0 -84
  196. package/src/stores/uiStore.ts +0 -85
  197. package/src/types/index.ts +0 -3
  198. package/src/types/shared-utils.d.ts +0 -10
  199. package/src/types/wgsl.d.ts +0 -4
  200. package/src/types.ts +0 -164
  201. package/src/utils/image-utils.ts +0 -28
  202. package/src/wasm/HexGridWasmWrapper.ts +0 -801
  203. package/src/webgpu/WebGPUContext.ts +0 -71
  204. package/src/webgpu/shaders/fluid_sim.wgsl +0 -140
  205. package/src/webnn/WebNNContext.ts +0 -99
  206. package/src/workers/hexgrid-math.ts +0 -182
  207. package/src/workers/hexgrid-worker.worker.ts +0 -2781
  208. package/tsconfig.json +0 -26
  209. /package/{src/stores/index.ts → dist/stores/index.js} +0 -0
package/site/INDEX.md DELETED
@@ -1,127 +0,0 @@
1
- # HexGrid 3D Promotional Site
2
-
3
- Welcome to the HexGrid 3D promotional site! This Next.js application showcases the HexGrid 3D component with documentation, examples, and deployment instructions.
4
-
5
- ## 📚 Documentation Index
6
-
7
- - **[README.md](./README.md)** - Project overview and development guide
8
- - **[QUICK_START.md](./QUICK_START.md)** - Get started in 5 minutes
9
- - **[DEPLOYMENT.md](./DEPLOYMENT.md)** - Complete Vercel deployment guide
10
- - **[SITE_SUMMARY.md](./SITE_SUMMARY.md)** - What was built and how it works
11
-
12
- ## 🚀 Quick Links
13
-
14
- ### For Developers
15
- - [Quick Start Guide](./QUICK_START.md) - Start developing locally
16
- - [Deployment Guide](./DEPLOYMENT.md) - Deploy to Vercel
17
- - [Site Summary](./SITE_SUMMARY.md) - Understand the structure
18
-
19
- ### For Users
20
- - [Homepage](./src/app/page.tsx) - Landing page
21
- - [Documentation](./src/app/docs/page.tsx) - API docs
22
- - [Examples](./src/app/examples/page.tsx) - Code examples
23
-
24
- ## 🎯 What's Included
25
-
26
- ### Pages
27
- - ✅ **Homepage** - Feature showcase and quick start
28
- - ✅ **Documentation** - Complete API reference
29
- - ✅ **Examples** - Code examples and use cases
30
-
31
- ### Configuration
32
- - ✅ **Next.js 16** - Latest framework
33
- - ✅ **TypeScript** - Full type safety
34
- - ✅ **Vercel Ready** - Pre-configured deployment
35
- - ✅ **SEO Optimized** - Metadata and Open Graph
36
-
37
- ### Documentation
38
- - ✅ **README.md** - Project documentation
39
- - ✅ **DEPLOYMENT.md** - Deployment instructions
40
- - ✅ **QUICK_START.md** - Quick start guide
41
- - ✅ **SITE_SUMMARY.md** - Technical summary
42
-
43
- ## 📦 Project Structure
44
-
45
- ```
46
- site/
47
- ├── src/app/ # Next.js App Router pages
48
- │ ├── layout.tsx # Root layout
49
- │ ├── page.tsx # Homepage
50
- │ ├── docs/ # Documentation
51
- │ └── examples/ # Examples
52
- ├── next.config.js # Next.js config
53
- ├── vercel.json # Vercel config
54
- └── package.json # Dependencies
55
- ```
56
-
57
- ## 🛠️ Development
58
-
59
- ```bash
60
- # Install dependencies
61
- npm install
62
-
63
- # Run development server
64
- npm run dev
65
-
66
- # Build for production
67
- npm run build
68
-
69
- # Start production server
70
- npm start
71
- ```
72
-
73
- ## 🚢 Deployment
74
-
75
- ### Option 1: Vercel Dashboard (Recommended)
76
- 1. Push to GitHub
77
- 2. Import in Vercel dashboard
78
- 3. Set root: `shared-ui/src/components/Chamber/hexgrid-3d/site`
79
- 4. Deploy
80
-
81
- ### Option 2: Vercel CLI
82
- ```bash
83
- npm i -g vercel
84
- cd shared-ui/src/components/Chamber/hexgrid-3d/site
85
- vercel
86
- ```
87
-
88
- See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed instructions.
89
-
90
- ## 📝 Next Steps
91
-
92
- 1. **Review the site locally**
93
- ```bash
94
- cd shared-ui/src/components/Chamber/hexgrid-3d/site
95
- npm install
96
- npm run dev
97
- ```
98
-
99
- 2. **Customize content**
100
- - Edit `src/app/page.tsx` for homepage
101
- - Update `src/app/docs/page.tsx` for docs
102
- - Modify `src/app/globals.css` for styling
103
-
104
- 3. **Deploy to Vercel**
105
- - Follow [DEPLOYMENT.md](./DEPLOYMENT.md)
106
- - Get your live URL
107
-
108
- 4. **Add features** (optional)
109
- - Interactive demo
110
- - Live code editor
111
- - More examples
112
- - Blog section
113
-
114
- ## 🔗 Related Links
115
-
116
- - **Component Repository**: [../README.md](../README.md)
117
- - **GitHub**: https://github.com/buley/hexgrid-3d
118
- - **Vercel Docs**: https://vercel.com/docs
119
- - **Next.js Docs**: https://nextjs.org/docs
120
-
121
- ## 📄 License
122
-
123
- Personal Use Only - See LICENSE file in parent directory.
124
-
125
- ---
126
-
127
- **Ready to deploy?** Start with [QUICK_START.md](./QUICK_START.md) or [DEPLOYMENT.md](./DEPLOYMENT.md)
@@ -1,86 +0,0 @@
1
- # Quick Start Guide
2
-
3
- Get the HexGrid 3D promotional site up and running in minutes.
4
-
5
- ## Local Development
6
-
7
- 1. **Navigate to site directory**
8
- ```bash
9
- cd shared-ui/src/components/Chamber/hexgrid-3d/site
10
- ```
11
-
12
- 2. **Install dependencies**
13
- ```bash
14
- npm install
15
- ```
16
-
17
- 3. **Run development server**
18
- ```bash
19
- npm run dev
20
- ```
21
-
22
- 4. **Open browser**
23
- - Visit [http://localhost:3000](http://localhost:3000)
24
-
25
- ## Build for Production
26
-
27
- ```bash
28
- npm run build
29
- npm start
30
- ```
31
-
32
- ## Deploy to Vercel
33
-
34
- ### Quick Deploy (CLI)
35
-
36
- ```bash
37
- # Install Vercel CLI (if not already installed)
38
- npm i -g vercel
39
-
40
- # Navigate to site directory
41
- cd shared-ui/src/components/Chamber/hexgrid-3d/site
42
-
43
- # Deploy
44
- vercel
45
- ```
46
-
47
- ### Deploy via Dashboard
48
-
49
- 1. Push code to GitHub
50
- 2. Go to [vercel.com/new](https://vercel.com/new)
51
- 3. Import repository
52
- 4. Set root directory: `shared-ui/src/components/Chamber/hexgrid-3d/site`
53
- 5. Click Deploy
54
-
55
- See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed instructions.
56
-
57
- ## Project Structure
58
-
59
- ```
60
- site/
61
- ├── src/
62
- │ └── app/
63
- │ ├── layout.tsx # Root layout with metadata
64
- │ ├── page.tsx # Homepage
65
- │ ├── docs/
66
- │ │ └── page.tsx # Documentation
67
- │ └── examples/
68
- │ └── page.tsx # Code examples
69
- ├── next.config.js # Next.js config
70
- ├── vercel.json # Vercel deployment config
71
- └── package.json # Dependencies
72
- ```
73
-
74
- ## Customization
75
-
76
- - **Homepage**: Edit `src/app/page.tsx`
77
- - **Documentation**: Edit `src/app/docs/page.tsx`
78
- - **Examples**: Edit `src/app/examples/page.tsx`
79
- - **Styling**: Edit `src/app/globals.css`
80
- - **Metadata**: Edit `src/app/layout.tsx`
81
-
82
- ## Next Steps
83
-
84
- - Read [README.md](./README.md) for full documentation
85
- - See [DEPLOYMENT.md](./DEPLOYMENT.md) for deployment details
86
- - Check the main [README.md](../README.md) for HexGrid 3D component docs
package/site/README.md DELETED
@@ -1,85 +0,0 @@
1
- # HexGrid 3D - Promotional Site
2
-
3
- This is a Next.js mini site to promote and document the HexGrid 3D project.
4
-
5
- ## Features
6
-
7
- - **Landing Page** - Showcase the component with features and quick start
8
- - **Documentation** - Complete API documentation and usage guide
9
- - **Examples** - Code examples and use cases
10
- - **Vercel Ready** - Configured for easy deployment to Vercel
11
-
12
- ## Development
13
-
14
- ```bash
15
- # Install dependencies
16
- npm install
17
-
18
- # Run development server
19
- npm run dev
20
-
21
- # Build for production
22
- npm run build
23
-
24
- # Start production server
25
- npm start
26
- ```
27
-
28
- ## Deployment to Vercel
29
-
30
- ### Option 1: Vercel CLI
31
-
32
- ```bash
33
- # Install Vercel CLI
34
- npm i -g vercel
35
-
36
- # Deploy
37
- vercel
38
- ```
39
-
40
- ### Option 2: GitHub Integration
41
-
42
- 1. Push this repository to GitHub
43
- 2. Import the project in Vercel dashboard
44
- 3. Set the root directory to `shared-ui/src/components/Chamber/hexgrid-3d/site`
45
- 4. Configure build settings:
46
- - Build Command: `cd ../.. && npm install && cd site && npm install && npm run build`
47
- - Output Directory: `.next`
48
- - Install Command: `cd ../.. && npm install && cd site && npm install`
49
-
50
- ### Option 3: Using vercel.json
51
-
52
- The `vercel.json` file is already configured. Simply:
53
-
54
- 1. Connect your GitHub repository to Vercel
55
- 2. Vercel will automatically detect the Next.js project
56
- 3. The build configuration in `vercel.json` will be used
57
-
58
- ## Project Structure
59
-
60
- ```
61
- site/
62
- ├── src/
63
- │ └── app/
64
- │ ├── layout.tsx # Root layout
65
- │ ├── page.tsx # Homepage
66
- │ ├── docs/
67
- │ │ └── page.tsx # Documentation page
68
- │ └── examples/
69
- │ └── page.tsx # Examples page
70
- ├── next.config.js # Next.js configuration
71
- ├── tsconfig.json # TypeScript configuration
72
- ├── vercel.json # Vercel deployment configuration
73
- └── package.json # Dependencies
74
- ```
75
-
76
- ## Customization
77
-
78
- - Update `src/app/page.tsx` to customize the homepage
79
- - Modify `src/app/docs/page.tsx` for documentation changes
80
- - Edit `src/app/globals.css` for styling changes
81
- - Update metadata in `src/app/layout.tsx` for SEO
82
-
83
- ## License
84
-
85
- Personal Use Only - See LICENSE file in parent directory for full terms.
@@ -1,180 +0,0 @@
1
- # HexGrid 3D Promotional Site - Summary
2
-
3
- ## Overview
4
-
5
- A Next.js 16 mini site built to promote and document the HexGrid 3D project. The site features a modern, dark-themed design showcasing the component's capabilities.
6
-
7
- ## What Was Built
8
-
9
- ### 1. Next.js Application Structure
10
- - **Framework**: Next.js 16 with App Router
11
- - **TypeScript**: Fully typed with strict mode
12
- - **Styling**: Custom CSS with dark theme
13
- - **SEO**: Optimized metadata and Open Graph tags
14
-
15
- ### 2. Pages Created
16
-
17
- #### Homepage (`/`)
18
- - Hero section with project title and description
19
- - Feature showcase with 6 key features
20
- - Quick start code examples
21
- - Call-to-action buttons
22
- - Footer with links
23
-
24
- #### Documentation (`/docs`)
25
- - Installation instructions
26
- - Basic usage examples
27
- - Complete props table
28
- - Camera controls guide
29
- - Performance tips
30
- - Links to GitHub repository
31
-
32
- #### Examples (`/examples`)
33
- - Basic implementation example
34
- - Advanced usage with controls
35
- - Custom theming example
36
- - Links to more examples
37
-
38
- ### 3. Configuration Files
39
-
40
- - **`next.config.js`**: Next.js configuration with standalone output
41
- - **`tsconfig.json`**: TypeScript configuration with path aliases
42
- - **`vercel.json`**: Vercel deployment configuration
43
- - **`package.json`**: Dependencies and scripts
44
- - **`.eslintrc.json`**: ESLint configuration
45
- - **`.gitignore`**: Git ignore rules
46
-
47
- ### 4. Documentation
48
-
49
- - **`README.md`**: Project overview and development guide
50
- - **`DEPLOYMENT.md`**: Comprehensive deployment guide for Vercel
51
- - **`QUICK_START.md`**: Quick start guide for developers
52
- - **`SITE_SUMMARY.md`**: This file
53
-
54
- ## Features
55
-
56
- ### Design
57
- - Dark theme with purple gradient accents
58
- - Responsive design for mobile and desktop
59
- - Modern UI with smooth transitions
60
- - Accessible color contrast
61
-
62
- ### Content
63
- - Clear feature descriptions
64
- - Code examples with syntax highlighting
65
- - Complete API documentation
66
- - Usage examples for different scenarios
67
-
68
- ### Technical
69
- - TypeScript for type safety
70
- - Next.js App Router for modern routing
71
- - Optimized for performance
72
- - SEO-friendly metadata
73
-
74
- ## File Structure
75
-
76
- ```
77
- site/
78
- ├── src/
79
- │ └── app/
80
- │ ├── layout.tsx # Root layout with metadata
81
- │ ├── page.tsx # Homepage
82
- │ ├── globals.css # Global styles
83
- │ ├── docs/
84
- │ │ └── page.tsx # Documentation page
85
- │ └── examples/
86
- │ └── page.tsx # Examples page
87
- ├── next.config.js # Next.js configuration
88
- ├── tsconfig.json # TypeScript configuration
89
- ├── vercel.json # Vercel deployment config
90
- ├── package.json # Dependencies
91
- ├── .eslintrc.json # ESLint config
92
- ├── .gitignore # Git ignore
93
- ├── README.md # Project README
94
- ├── DEPLOYMENT.md # Deployment guide
95
- ├── QUICK_START.md # Quick start guide
96
- └── SITE_SUMMARY.md # This file
97
- ```
98
-
99
- ## Deployment
100
-
101
- The site is configured for easy deployment to Vercel with three options:
102
-
103
- 1. **Vercel Dashboard** (Recommended)
104
- - Import from GitHub
105
- - Set root directory
106
- - Auto-deploy
107
-
108
- 2. **Vercel CLI**
109
- - Install CLI
110
- - Run `vercel` command
111
- - Follow prompts
112
-
113
- 3. **Monorepo Root**
114
- - Configure from root
115
- - Set root directory in Vercel
116
-
117
- See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed instructions.
118
-
119
- ## Development
120
-
121
- ### Local Development
122
- ```bash
123
- cd shared-ui/src/components/Chamber/hexgrid-3d/site
124
- npm install
125
- npm run dev
126
- ```
127
-
128
- ### Build
129
- ```bash
130
- npm run build
131
- npm start
132
- ```
133
-
134
- ### Lint
135
- ```bash
136
- npm run lint
137
- ```
138
-
139
- ## Customization
140
-
141
- All pages can be easily customized:
142
-
143
- - **Homepage**: Edit `src/app/page.tsx`
144
- - **Documentation**: Edit `src/app/docs/page.tsx`
145
- - **Examples**: Edit `src/app/examples/page.tsx`
146
- - **Styling**: Edit `src/app/globals.css`
147
- - **Metadata**: Edit `src/app/layout.tsx`
148
-
149
- ## Next Steps
150
-
151
- 1. **Deploy to Vercel**
152
- - Follow [DEPLOYMENT.md](./DEPLOYMENT.md)
153
- - Get your live URL
154
-
155
- 2. **Customize Content**
156
- - Update homepage with your branding
157
- - Add more examples
158
- - Enhance documentation
159
-
160
- 3. **Add Features**
161
- - Interactive demo component
162
- - Live code editor
163
- - More examples
164
- - Blog section
165
-
166
- 4. **Optimize**
167
- - Add analytics
168
- - Optimize images
169
- - Add performance monitoring
170
-
171
- ## Support
172
-
173
- - **Documentation**: See [README.md](./README.md)
174
- - **Deployment**: See [DEPLOYMENT.md](./DEPLOYMENT.md)
175
- - **Quick Start**: See [QUICK_START.md](./QUICK_START.md)
176
- - **Component Docs**: See [../README.md](../README.md)
177
-
178
- ## License
179
-
180
- Personal Use Only - See LICENSE file in parent directory.
@@ -1,12 +0,0 @@
1
- /** @type {import('next').NextConfig} */
2
- const nextConfig = {
3
- output: 'standalone',
4
- reactStrictMode: true,
5
- swcMinify: true,
6
- images: {
7
- domains: ['images.unsplash.com', 'via.placeholder.com'],
8
- },
9
- transpilePackages: [],
10
- };
11
-
12
- module.exports = nextConfig;
package/site/package.json DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "name": "hexgrid-3d-site",
3
- "version": "1.0.0",
4
- "private": true,
5
- "scripts": {
6
- "dev": "next dev",
7
- "build": "next build",
8
- "start": "next start",
9
- "lint": "next lint"
10
- },
11
- "dependencies": {
12
- "next": "^16.1.1",
13
- "react": "^19.0.0",
14
- "react-dom": "^19.0.0",
15
- "three": "^0.169.0",
16
- "@types/three": "^0.169.0"
17
- },
18
- "devDependencies": {
19
- "@types/node": "^20.0.0",
20
- "@types/react": "^18.3.27",
21
- "@types/react-dom": "^18.3.7",
22
- "typescript": "^5.0.0",
23
- "eslint": "^8.57.0",
24
- "eslint-config-next": "^16.1.1"
25
- }
26
- }