-
Notifications
You must be signed in to change notification settings - Fork 212
Added clone and remove entity to the Edit menu #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| this.addObject(event.target.object3D); | ||
| }.bind(this)); | ||
|
|
||
| document.addEventListener('componentchanged', function(event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
event => { ... } will give you the binding
|
Is the Edit Menu the best place? There's a lot of distance between the Entity in the SceneGraph to the Edit Menu, so the mapping is not immediate. Can we move these actions to the SceneGraph (right-click contextual menu or action icons) |
|
@ngokevin regardless the position on the UI I think it's good idea to keep all the options in the menu too, so people could access them even if some of the panels are collapsed for example. |
|
We don't have collapsible panels at the moment, so right now it's not ideal to address that case. I think even then, we'd just prescribe to open up the Scene Graph to do entity-level management. |
|
What about a contextual menu (with clone, delete) as well on the viewport when right-click on an entity? |
|
If we add the delete, clone on both the viewport and the scene graph we might be able to get rid of the edit menu. Edit menu feels indirect while a contextual menu / icon feels more like direct manipulation which reinforces the mapping between action and target of that action. |
|
Yep, I was more on the way to keep all the actions on the menus as most of the apps does, like firefox you've context menu to copy, paste, whatever but you have also shortcuts and at the end you can always go to the menu. |
|
Btw from the discussion in #203 |
|
How do you create a child of a given entity? If you select one and click on the |
|
What about copy and paste for entities instead of clone? You copy an entity and can click on another one to paste it as a child. That would allow for easy creation of hierarchies. |
|
Copy/paste should be on the contextmenu instead of icons right? |
|
Copy / paste could be accessed on:
We can also add a |
|
Ok, so I'll split all this things into different issues and PR and we could keep discussing them there, as there many little things going here |
|
What do we do with this PR? Just merge the way it works right now with the |
|
Are you going to include html elment + id in the scenegraph in this PR? |
|
We can add clone and remove in this PR too I think. |
No, I'll leave that for another PR |
Ok, so I'll add clone and remove buttons next in the scenegraph in this PR and leave the rest for other PRs/issues |
|
Btw how do you feel about select the newly created element after clone, or keeping selected the element to be clone? |
|
I think |
|
Do we keep the Edit Menu? Don't know if we want more than one way to do something. |
src/actions/entity.js
Outdated
| } | ||
| } | ||
|
|
||
| function findClosestEntity(entity) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👼
|
r+wc |
|
@ngokevin re leaving the options in the |
|
The same thing still applies to copy/paste though, you want to keep the direct mapping between the entity and its actions. |
|
Yep, but what if we have like 10 actions for the entity, we should leave some of them in the context menu and just the two/three more common on the icons next to the entity data on the scenegraph right? |
|
Maybe, maybe not. But that's assuming we have 10 actions, which we don't at the moment. |
Added clone and remove entity to the Edit menu


cloneandremoveentity to theEditmenuMenu=>ExportMenu,CreateMenuandEditMenu