Skip to content

Commit 3339a18

Browse files
authored
Merge pull request #40 from MetacityTools/dev
Releasing 0.5.2
2 parents 9d5afa6 + 7ceeb7f commit 3339a18

File tree

191 files changed

+3568
-2978
lines changed

Some content is hidden

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

191 files changed

+3568
-2978
lines changed

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"^@editor/(.*)$",
1313
"^@elements/(.*)$",
1414
"^@shared/(.*)$",
15+
"^@data/(.*)$",
16+
"^@context/(.*)$",
17+
"^@hooks/(.*)$",
1518
"^@assets/(.*)$",
1619
"^[./]"
1720
],

README.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,38 @@ Currently:
2828

2929
These features are planned for the future, and scheduled for a specific release.
3030

31-
### v0.5.1 - Work in progress
31+
### v0.5.2 - Work in progress
32+
33+
- [x] Export screenshot action
34+
- [x] Refactored Global context and processing status - https://github.com/MetacityTools/Studio/issues/33
35+
- [x] Projecting models onto models (2D onto 3D) - https://github.com/MetacityTools/geometry.ts
36+
- [x] Replace json style editor with something more user friendly
37+
- [x] Add a way to add custom styles
38+
- [ ] Switching colormaps for scalars
39+
- [x] Editable input for colors
40+
- [ ] Switching shaders for individual models
41+
- [ ] Randomize colors - default colormap
42+
- [x] Feedback - show notifications on the bottom of the screen
43+
- [x] Tables - add notification on data assignment
44+
- [ ] Loading points and lines from SHP
45+
- [ ] Lock camera position (two buttons - pan and rotation) + locking height during panning as in map
46+
47+
### v0.5.1 - ✅ Released
3248

3349
GLTF loader now assumes Y+ as up axis (as in Blender) and converts the models to Z+ up axis. This is not a breaking change, but it is necessary to make the models compatible with the rest of the world.
3450

3551
- [x] Dark mode
3652
- [x] Update import menu to allow importing multiple files at once, only separate models, tables, or reference planes
3753
- [x] FIX: glTF glitch composing transforms with parents insice scene graph
3854
- [x] FIX: coloring models when style changes - display live changes on save
39-
- [ ] Color in table view according to metadata amount
55+
- [x] Color in table view according to metadata amount
4056
- [x] Colorize model
41-
- [ ] Adjustable limit of metadata for coloring.git
42-
- [x] Heatmap legend
57+
- [x] Heatmap legendg
4358
- [x] Updated file extension (replacing .metacity with .mcmodel and .json.metactiy with .mcstyle), still supports the old extensions tho
4459
- [x] Tooltip on hover over model and labels in 3D
4560
- [x] FIX: Firefox handling mouse events for hover
4661
- [x] Refactor processing status - https://github.com/MetacityTools/Studio/issues/33
4762
- [x] Loading models based on param - base for https://github.com/MetacityTools/Studio/issues/22
48-
- [ ] Feedback - show notifications on the bottom of the screen
49-
- [ ] Projecting models onto models (2D onto 3D) - ✨WIP https://github.com/vojtatom/geometry
50-
- [ ] Loading points and lines from SHP
51-
- [ ] Export screenshot action
52-
- [ ] Lock camera position (two buttons - pan and rotation)
5363

5464
### v0.5.0 - ✅ Released
5565

package-lock.json

Lines changed: 355 additions & 11 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "metacity-studio",
33
"private": true,
4-
"version": "0.5.1",
4+
"version": "0.5.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -12,8 +12,10 @@
1212
"@headlessui/react": "^1.7.14",
1313
"@loaders.gl/core": "^3.3.3",
1414
"@loaders.gl/gltf": "^3.3.3",
15+
"@metacity/geometry": "^1.0.0",
1516
"@monaco-editor/react": "^4.5.1",
16-
"@vojtatom/csvts": "^0.1.0",
17+
"@uiw/color-convert": "^1.3.3",
18+
"@uiw/react-color": "^1.3.3",
1719
"allotment": "^1.18.1",
1820
"clsx": "^1.2.1",
1921
"colormap": "^2.3.2",
@@ -26,6 +28,7 @@
2628
"react-router-dom": "^6.9.0",
2729
"react18-json-view": "^0.0.8",
2830
"shpts": "^1.0.4",
31+
"tablests": "^1.0.1",
2932
"uuid": "^9.0.0",
3033
"web-ifc": "0.0.39",
3134
"web-ifc-three": "0.0.123"
@@ -35,6 +38,7 @@
3538
"@types/colormap": "^2.3.1",
3639
"@types/node": "^18.16.14",
3740
"@types/react": "^18.0.28",
41+
"@types/react-color": "^3.0.6",
3842
"@types/react-dom": "^18.0.11",
3943
"@types/three": "^0.150.0",
4044
"@types/uuid": "^9.0.1",

studio/src/assets/ikea.png

1.24 MB
Loading

studio/src/assets/ikea2.png

1.02 MB
Loading

studio/src/assets/ikea3.png

2.87 MB
Loading

studio/src/assets/ikea4.png

334 KB
Loading

studio/src/assets/index.css

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,19 @@ body,
7070
/* add chevron to select */
7171

7272
select {
73+
-webkit-appearance: none;
74+
-moz-appearance: none;
75+
appearance: none;
76+
margin: 0;
7377
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="20" fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 9l4 4 4-4"/></svg>');
7478
background-repeat: no-repeat;
7579
background-position: right 0.5rem center;
7680
background-size: 1rem 1rem;
7781
padding-right: 1.5rem;
82+
border-top-left-radius: 0;
83+
border-bottom-left-radius: 0;
84+
border-top-right-radius: 0;
85+
border-bottom-right-radius: 0;
7886
}
7987
}
8088

@@ -89,7 +97,7 @@ body,
8997

9098
@layer components {
9199
.active-border {
92-
@apply border-amber-300 hover:border-amber-400 dark:border-amber-500 hover:dark:border-amber-400;
100+
@apply border-amber-300 hover:border-amber-400 dark:border-amber-700 hover:dark:border-amber-600;
93101
}
94102

95103
.active-text {
@@ -113,7 +121,7 @@ body,
113121
}
114122

115123
.base-border-hover {
116-
@apply hover:border-amber-400 dark:hover:border-amber-400;
124+
@apply hover:border-amber-400 dark:hover:border-amber-600;
117125
}
118126

119127
.base-text {
@@ -183,4 +191,16 @@ body,
183191
.table-td-action-color {
184192
@apply bg-neutral-100 text-neutral-400 dark:bg-neutral-800 dark:text-neutral-400;
185193
}
194+
195+
.button-list-readonly {
196+
@apply bg-neutral-200 dark:bg-neutral-700;
197+
}
198+
199+
.button-list {
200+
@apply button-list-readonly hover:bg-neutral-300 dark:hover:bg-neutral-600;
201+
}
202+
203+
.button-list-no-highlite {
204+
@apply hover:bg-neutral-100 dark:hover:bg-neutral-700;
205+
}
186206
}

studio/src/bananagl/camera/camera.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ export class Camera {
378378

379379
//Calculate the displacement and adjust the camera's position
380380
const displacement = vec3.sub(this.displacement, newTarPos, tarPos);
381-
console.log(displacement);
382381
vec3.sub(this.position, this.position, displacement);
383382
vec3.sub(this.target, this.target, displacement);
384383
this.updateProjectionViewMatrix();

0 commit comments

Comments
 (0)