Skip to content

Commit 44e331d

Browse files
authored
Merge pull request #12 from MetacityTools/dev
Release v0.2.0
2 parents cc57bb1 + 6465d46 commit 44e331d

File tree

177 files changed

+2619
-980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+2619
-980
lines changed

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"importOrder": [
99
"^@utils/(.*)$",
1010
"^@bananagl/(.*)$",
11-
"^@components/(.*)$",
11+
"^@editor/(.*)$",
1212
"^@elements/(.*)$",
1313
"^@assets/(.*)$",
1414
"^[./]"

README.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🏡 [Metacity Studio](https://studio.metacity.cc)
22

3-
![Screenshot](src/assets/splash/screen.png)
3+
![Screenshot](./studio.png)
44

55
Metacity Studio is an online tool for integrating and visualizing spatial and tabular data.
66

@@ -25,18 +25,40 @@ Currently:
2525

2626
The project is in active development. The roadmap is as follows:
2727

28-
### v0.1.2
28+
### v0.3.0
2929

30-
- [ ] Connect tabular data
31-
- [ ] Project export
32-
- [ ] Project import
33-
34-
### v0.1.1
30+
- [ ] Viewer - Details TBA
31+
- [ ] Optional interactivity - build BVH only if user opts-in to make the loaded models clickable
32+
- [ ] Integrate Google Sheets imports
3533

36-
- [ ] Baking/Transforming models to Table-like format
37-
- [ ] Allow labeling geometry
34+
### v0.2.1
3835

39-
### v0.1.0 - 👨‍💻 In progress
36+
- [ ] Project export
37+
- [ ] Resize guard update graphics (The "Oops" message is pretty lame)
38+
- [ ] Transforming original metadata to a table
39+
- [ ] Extract Utils to separate SDK form metacity editors
40+
41+
### v0.2.0 - 👨‍💻 In progress
42+
43+
- [x] Infrastructure for the built-in viewer (vite setup, etc.)
44+
- [x] Building a hierarchy of models (floors, buildings, blocks, etc.) - ✨WIP
45+
- [x] Deselect all - button and shortcut
46+
- [x] Group models
47+
- [x] Group groups
48+
- [x] Delete groups
49+
- [x] Move groups (and models)
50+
- [x] View settings in the annotate settings - move it to the canvas
51+
- [x] Loading tabular data (CSV) and linking it to the hierarchy.
52+
- [x] Loading CSV
53+
- [x] CSV editor
54+
- [x] Multiple CSVs
55+
- [x] Linking CSV rows to the hierarchy
56+
- [x] Unlinking CSV rows from the hierarchy
57+
- [x] Resolve table editing issues - maybe leave out table editing all togheter?
58+
- [x] Privacy Policy docs
59+
- [x] Add text to the Convert dialog
60+
61+
### v0.1.0 - ✅ Released
4062

4163
- [x] Rectangular select
4264
- [x] Merge submodels

package-lock.json

Lines changed: 45 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "metacity-studio",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -12,26 +12,28 @@
1212
"@headlessui/react": "^1.7.14",
1313
"@loaders.gl/core": "^3.3.3",
1414
"@loaders.gl/gltf": "^3.3.3",
15-
"@types/three": "^0.150.0",
15+
"@vojtatom/csvts": "^0.1.0",
1616
"allotment": "^1.18.1",
1717
"clsx": "^1.2.1",
1818
"fast-deep-equal": "^3.1.3",
1919
"gl-matrix": "^3.4.3",
20-
"package.json": "^0.0.0",
2120
"react": "^18.2.0",
2221
"react-dom": "^18.2.0",
2322
"react-icons": "^4.8.0",
2423
"react-router-dom": "^6.9.0",
2524
"react18-json-view": "^0.0.8",
2625
"shpts": "^1.0.4",
26+
"uuid": "^9.0.0",
2727
"web-ifc": "0.0.39",
2828
"web-ifc-three": "0.0.123"
2929
},
3030
"devDependencies": {
3131
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
32-
"@types/node": "^18.15.5",
32+
"@types/node": "^18.16.14",
3333
"@types/react": "^18.0.28",
3434
"@types/react-dom": "^18.0.11",
35+
"@types/three": "^0.150.0",
36+
"@types/uuid": "^9.0.1",
3537
"@vitejs/plugin-react": "^3.1.0",
3638
"autoprefixer": "^10.4.14",
3739
"postcss": "^8.4.21",

plugins/trailing.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { ViteDevServer } from 'vite';
2+
3+
export default (routes: string[]) => ({
4+
name: 'trailing',
5+
configureServer(server: ViteDevServer) {
6+
server.middlewares.use((req, res, next) => {
7+
const assets = ['ts', 'css', 'js'];
8+
9+
const requestURLwithoutLeadingSlash = req?.url?.substring(1);
10+
const referrerWithoutTrailingSlash = req.headers.referer?.split('/').pop();
11+
const fileExtension = req.url?.split('.').pop();
12+
13+
if (routes.includes(requestURLwithoutLeadingSlash || '')) {
14+
req.url = `${req.url}/`;
15+
}
16+
17+
if (
18+
routes.includes(referrerWithoutTrailingSlash || '') &&
19+
assets.includes(fileExtension || '')
20+
) {
21+
req.url = `/${referrerWithoutTrailingSlash}${req.url}`;
22+
}
23+
next();
24+
});
25+
},
26+
});

src/Components/App.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)