Commit graph

16 commits

Author SHA1 Message Date
Eric Nguyen
8b8d88f885 Merged PR 162: Implement symbols and other stuff (see desc)
Implement symbols
- Add, Remove, Select Container
- Form
- Link with container
- Symbol behavior application to container (move to x with xpositionreference)

Important changes
- Remove SelectedContainer from HistoryState, meaning that it will be slower for each load but will be faster for each operations* (SetHistory, SelectContainer, DeleteContainer, SymbolOperations)
- ElementsSidebar now opens with isSidebarOpen meaning that both sidebar will open on toggle
- Moved camelize, transformX, restoreX to different modules (stringtools.ts, svg.ts)
2022-08-22 13:58:32 +00:00
5f8e011bc6 Unrefactor Properties form to allow more freedom on the input types and form (#32)
All checks were successful
continuous-integration/drone/push Build is passing
- The css style is now in IProperties.Style again.
- Forms are divided in DynamicForm and StaticForm
- Faster because less logic
- Add RadioGroupButton
- Add InputGroup
- Fix Children Dimensions not using x for their origin

Co-authored-by: Eric NGUYEN <enguyen@techform.fr>
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/32
2022-08-16 08:57:54 -04:00
c81a6fe44b Implement events for external use + Rename interfaces with a I prefix + add some documentation (#26)
All checks were successful
continuous-integration/drone/push Build is passing
Implement events for external use
Rename interfaces with a I prefix
Add some documentation

Co-authored-by: Eric NGUYEN <enguyen@techform.fr>
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/26
2022-08-12 06:36:14 -04:00
faa058e57d Implement new features for svg components + improve form properties (#25)
All checks were successful
continuous-integration/drone/push Build is passing
- Make Dimension an actual svg line
- Implement XPositionReference
- Select the container above after delete
- Remove DimensionLayer
- Improve form properties

Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/25
2022-08-11 11:48:31 -04:00
d11dfec22b Fix misuse of Hooks with useRef (#24)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/24
2022-08-11 09:10:06 -04:00
ac56f84196 Add option for the properties form to only update on submit (#23)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/23
2022-08-11 08:37:10 -04:00
Eric Nguyen
616fe3e9ac Merged PR 17: Implement rigid body Fix multiple bugs
Implement rigid body

Fix saveload bug: having null elements
Fix events being duplicated and not being removed
2022-08-11 08:43:10 +00:00
Eric Nguyen
d9e06537e8 Merged PR 16: Transform every single class components into functional component
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
This improve greatly the performance and the code cleaning.
It allows us to separate the inseparable class methods into modules functions
2022-08-09 15:15:56 +00:00
a42ac77d33 Implement main bar + Change colors
Some checks failed
continuous-integration/drone/push Build is failing
2022-08-08 11:23:15 +02:00
293af45144 Refactor Editor and module functions (#15)
All checks were successful
continuous-integration/drone/push Build is passing
Moved all module functions to separate utils modules

Replaced standard with standard with typescript

Extracted UI elements to separate component

Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/15
2022-08-05 15:38:44 -04:00
e3228ccffa Moved ContainerModel to Interfaces + replace all components to purecomponent (#12)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/12
2022-08-05 10:36:40 -04:00
563840080c Fix bug where when an input is emptied, its type change to 'number'
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-05 12:28:23 +02:00
cf49ad644a Implement revive of json after load + Added parentId
Some checks failed
continuous-integration/drone/push Build is failing
2022-08-04 18:02:27 +02:00
05622c3a64 Fix type check + moved width and height to rect property 2022-08-01 19:42:28 +02:00
d155e345e8 Improve sidebar style 2022-08-01 17:15:45 +02:00
d2492520b4 Big refactoring with properties + Implement Property 2022-08-01 16:16:31 +02:00