Closed rostyslavvnahornyi closed 2 months ago
I added new parameter mixinGroups to options array. For specifying one or few mixin group names to show if option is selected:
const options = [
{
value: 'Layers: Streets & Intersections',
label: 'Layers: Streets & Intersections',
onClick: () => console.log('Layers: Streets & Intersections')
},
{
value: 'Models: Personal Vehicles',
label: 'Models: Personal Vehicles',
mixinGroups: ['vehicles', 'vehicles-rigged']
},
{
value: 'Models: Transit Vehicles',
label: 'Models: Transit Vehicles',
mixinGroups: ['vehicles-transit']
},
I sugest to store cardsData with objects data (mixin id, img, name, description) in separate json file. And options object with mixin group and Layers data in separate json file too for convenient. Where is better to store these files? One question about options array. Now there are many more categories of mixins than group names in options. I have done it now so that all mixins are displayed, without dividing them into subgroups in selectedOption. I see few variants to do here:
I added the ability to load layers by clicking on cards. And also svg-extruder element. All this is for testing. For now, all this is in one place - 'Layers: Streets & Intersections', it could be distributed among other groups later. All this works, but for example, when deleting a mapbox element from the scene, an error occurs in 3dstreet-editor, and also when deleting a new street, for some reason dummy elements are added to the structure of the existing street, after opening/closing the editor everything is fine. I will create isseus in Editor for it
remaining before this can be merged:
Now adding and previewing objects correspond to the elevation level of the segment for which they are added. And also in this PR, I made that objects are always added as direct descendants of the parent segment of the currently selected entity in the scene. In another branch, objects are always added to a special entity with class .custom-group
Checklist to complete v1:
LATER:
see #421
✅ Deploy Preview for 3dstreet-editor-builds ready!
Toggle QR Code...
Use your smartphone camera to open QR code link.
To edit notification comments on pull requests, go to your Netlify site configuration.