Commit graph

29 commits

Author SHA1 Message Date
Eric Nguyen
c256a76e01 Merged PR 212: Optimize FindChildrenById from O(n) to O(1)
Optimize FindChildrenById from O(n) to O(1):
- Deprecate FindContainerByIdDFS
- Container: Replace Children to string[]
- Add HashMap to IHistoryState that contains all containers

To access a container by id now cost O(1) without any additional cost

+ Implement CICD for SVGLibs
2022-10-12 09:39:54 +00:00
Eric NGUYEN
32684a725b Fix regression messages not being sent from the beginning 2022-10-03 20:35:25 +02:00
Eric NGUYEN
fa3246b725 Fix mobile view left single sidebar + Fix Bar wrong icon toggled 2022-10-03 14:24:26 +02:00
Eric Nguyen
0d05f0959c Merged PR 203: Improve responsive design and refactor layout 2022-10-03 12:05:16 +00:00
Eric Nguyen
7836d27d5f Merged PR 198: Change MarkPosition for multiple orientation
Implement EnumCheckboxGroupInput
2022-09-29 14:07:30 +00:00
Eric NGUYEN
fbc5d0ec27 Fix wrong icons in floating button 2022-09-29 09:53:56 +02:00
Eric Nguyen
18cbacaca1 Merged PR 196: Implement Vertical orientation + Upgrade Heroicons to 2.0
Implémenter l'orientation verticale

Modifier l'effet de append

Implementer RigidBody

Implementer Flex et simplex

Implémenter Push

Implémenter Swap

Implement MinMaxHeight without behaviors

Fix Margin for Height

Implement PositionReference

Fix dimension vertical position inside children

Add orientation change in form

Implement sortChildren

Implement Anchor

Fix warning message on overlapping

Fix minimap when root container is vertical

#7287
#7288
#7289
#7290
#7291
#7292
#7294
#7295
#7296
#7297
#7298
#7299
#7300
#7301
#7302
2022-09-28 16:07:56 +00:00
Eric Nguyen
4b874dfff4 Merged PR 186: Implement filterlists 2022-09-19 08:46:41 +00:00
Eric NGUYEN
0476a294d6 Implement Category list 2022-09-16 16:23:17 +02:00
Eric Nguyen
e94671d1d8 Merged PR 185: Implement Messages 2022-09-16 10:03:41 +00:00
Eric Nguyen
353f461f4b Merged PR 175: Implement drag drop
- [x] Implement drag drop to create an element at a specific index
- Add Swap behavrior
- Implement max contraints with simplex
~~- [ ] Implement drag drop to swap two container that flex~~

- Fixes tries number for simplex it can now go up to 2 * number of containers
- Fixes flex calling another flex behavior when not needed (remember that flex behavior is the only behavior that needs to communicate with siblings)
- Fix max width being ignored in input group
2022-09-05 07:56:45 +00:00
Eric NGUYEN
08f98bd40f Fix Floating button not shifting when symbols is open 2022-08-31 10:44:40 +02:00
79c6874240 Fix regression 2022-08-29 17:06:23 +02:00
Eric Nguyen
ad126c6c28 Merged PR 170: Add new eslint rules
- naming-convention
- prefer-arrow-callback
- func-style
- import/no-default-export
2022-08-26 16:13:21 +00:00
Eric Nguyen
444b96736a Merged PR 168: Add SmartComponent source code + Restrict Events by giving a root at the first render + Added Render function to a namespace
- Add smartcomponent source code to public/
- Restrict Events by giving a root at the first render + Added Render function to a namespace
- Add attribute type="button" to all buttons
2022-08-26 09:13:51 +00:00
Eric Nguyen
7f3f6a489a Merged PR 167: Add Flex and fix bugs (read desc)
Note: The branch name does not fit the new features.

- Implement Flex with simplex
- Enable rigid body by default (removed IsRigidBody property) <=== possibly a bad idea
- Sort children in add and update properties
- Implement MaxWidth
- Add more docs

Fixes :
- .env.production url
- Symbols: not blocking the linked container when the parent is moving
2022-08-25 13:28:32 +00:00
Eric Nguyen
66ea3b1b64 Merged PR 163: Remove the static form + rename some components for clarity
All checks were successful
continuous-integration/drone/push Build is passing
The static form is hard to maintain so I am removing it + rename some components for clarity + moved some utils files
2022-08-22 14:37:25 +00:00
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
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
1fc11adbaa Implement drag and drop (#21)
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/21
2022-08-09 06:08:04 -04:00
49a558589c Implement deletion + context menu
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-08-08 14:29:45 +02: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
3fa3316157 Fix Floating button hidden behind editor
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-07 16:06:20 +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