Luccid-ai / react-planner

:pencil2: A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
https://cvdlab.github.io/react-planner
MIT License
15 stars 16 forks source link

[Feature] Action on right-click #14

Open MeTaNoV opened 1 year ago

MeTaNoV commented 1 year ago

Right clicking at the moment open the default browser action, but it might interesting to add actions on right-click.

For example, copy/paste of elements, or custom actions.

tboyer-idnum commented 10 months ago

hi, we want to help you to add this functionnality, is it ok with you ?

MeTaNoV commented 10 months ago

Hi Thomas, sorry for the delay, and yes, for sure you can! :) Having a similar design pattern as the toolbar would be the best option with some default actions that could be defined (copy/paste for example), and some custom specific actions that could be added per use-case.

PS: Merci pour la proposition dans tous les cas! ;)

tboyer-idnum commented 10 months ago

Hello Pascal, we are working on this feature with my colleag Christelle-Couchoux. At first, we'll embark copy, paste and delete functionalities on one or more items (multiple selection) We'll try to add a design pattern in source code to give the ability to easily add more custom specific actions for developers.

A PR will be proposed as soon as possible, maybe during the 3rd or 4th week of 2024

À bientôt :)

tboyer-idnum commented 9 months ago

Hi :) We are ready to propose a pull request for this context menu & copy / paste one or more elements (including items, walls / lines & holes) We're going to send this pull request tomorrow.

Bonne soirée :grin:

Christelle-Couchoux commented 9 months ago

Hi, The pull request for the custom context menu is opened.

MeTaNoV commented 9 months ago

Thanks, merci à vous, je vais y regarder! :)