Commit graph

279 commits

Author SHA1 Message Date
Eric NGUYEN
b62aee978b Fix missing key for cssinput 2022-09-14 11:25:54 +02:00
Eric NGUYEN
7494383f58 Fix InputGroup not refreshing when selecting a different element 2022-09-13 18:12:20 +02:00
Eric NGUYEN
021af3e70f TextInputGroup Change border color to yellow when modified 2022-09-13 18:04:42 +02:00
Eric NGUYEN
e3f57773d7 Set input group in orange when modified but not applied 2022-09-13 17:52:36 +02:00
Eric NGUYEN
a9831b6b7f Implement pseudo dynamic input 2022-09-13 17:47:31 +02:00
Eric NGUYEN
6407510811 Fix svg scale default undefined 2022-09-13 17:43:28 +02:00
Eric NGUYEN
910aa4479b Fix dimension spacing depending on scale 2022-09-13 09:46:36 +02:00
Eric Nguyen
063467fb58 Merged PR 182: Implement Scale for text, Selector and Dimension 2022-09-09 16:00:13 +00:00
Guillaume Tauzin
46f82d0eca Change css class on sidebar and symbols 2022-09-09 10:33:14 +02:00
Guillaume Tauzin
23c7a05a00 Change css class for sidebar and symbols 2022-09-09 08:40:01 +02:00
6a3ddea763 Allow AddContainers to extends the default config 2022-09-08 14:25:00 +02:00
d512f87776 Add previous and next container to ISetContainerListRequest 2022-09-08 13:13:37 +02:00
8aae29d714 Fix ApplyAddMethod when method is null 2022-09-08 13:13:13 +02:00
Eric Nguyen
443a15e150 Merged PR 179: Fix bugs about flex and context menu (see desc) + disable hard rigid behavior + add missing properties to form + Clean up css
- Clean up some css class
- Fix wrong order when applying flex
- Fix Replace behavior not working because previous container was still existing
- Disable hard rigid behavior which disallow two container to overlap
- Add ENABLE_FLEX, ENABLE_HARD_RIGID ENABLE_SWAP
- Add missing form properties with dimensions
- Update readme
2022-09-08 10:29:44 +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
4d4ecd67d0 Reduce framerate to 60fps 2022-08-31 18:08:57 +02:00
Eric NGUYEN
cae628537c Fix UseFitOnce 2022-08-31 17:47:37 +02:00
Eric NGUYEN
f6953e42df Implement framerate limiter 2022-08-31 17:27:54 +02:00
Eric NGUYEN
8034652bdb Changed api call body's container model to available container + Fix API nullable values 2022-08-31 16:15:38 +02:00
Eric NGUYEN
4588aa9443 Rename DefaultX, DefaultY to X and Y + add docs 2022-08-31 15:34:25 +02:00
Eric NGUYEN
4cd8f76d7c Hide console.warn 2022-08-31 11:35:49 +02:00
Eric NGUYEN
35e9421ae8 Hide behaviors handled error messages 2022-08-31 11:33:45 +02:00
Eric NGUYEN
3feae9367b Fix symbol behavior not imposing its position when anchor is enabled 2022-08-31 11:32:19 +02:00
Eric NGUYEN
5fdbd771ff Add try catch to behaviors 2022-08-31 10:57:55 +02:00
Eric NGUYEN
5fdee602f1 Fix ApplyBehaviorsOnSiblings type and performance 2022-08-31 10:55:34 +02:00
Eric NGUYEN
191fa9cfa2 Fix flex not applying when moving symbols 2022-08-31 10:46:32 +02:00
Eric NGUYEN
08f98bd40f Fix Floating button not shifting when symbols is open 2022-08-31 10:44:40 +02:00
Eric NGUYEN
b6571e32d2 Update tests with new properties 2022-08-30 18:05:19 +02:00
Eric NGUYEN
5aaf1f4745 Set dimension to fixed 2 2022-08-30 17:45:00 +02:00
Eric NGUYEN
0b1f7b3f19 Add IsAnchor to IAvailableContainer 2022-08-30 17:40:16 +02:00
Eric NGUYEN
5fa9db931f Implement borrower dimension 2022-08-30 17:36:48 +02:00
Eric Nguyen
57e6c9a156 Merged PR 173: Implements API methods through right click + more (read desc)
- Implements API methods through right click
- Refactor events
- Refactor usage of setHistory and setHistoryCurrentStep into a single function
- Update ContainerOperations documentations
- Added AddContainers in order to add multiple containers + refactor AddContainer to use it
- Fix regression
- Fix AddContainer at index
2022-08-30 14:45:29 +00:00
79c6874240 Fix regression 2022-08-29 17:06:23 +02:00
Eric Nguyen
87c4ea1fe5 Merged PR 171: Refactor the multiple context menus into a single component + Fix eslint
Refactor the multiple context menus into a single component + Fix eslint
2022-08-29 15:03:47 +00: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
3f58c5ba5e Merged PR 169: Fix bugs with flex + Disable obnoxious swals + Add selector text + Sort SVG scss to different files
- Disable PushBehavior and set it in a different file
- Fix behviors when parent === undefined
- Fix flex behavrios when using anchors
- Fix siblings not applying flex to theirs children on container delete
- Fix flex behavior when using anchors
- Enable flex by default
- Disable obnoxious swals
- Add selector text
- Sort SVG scss to different files

Others: Add some todos
2022-08-26 13:59:03 +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
ec3fddec9d Merged PR 165: Move useEffects to named functions
Move useEffects to named functions
2022-08-22 15:52:40 +00:00
Eric Nguyen
29625dce28 Merged PR 164: Clear the leftover TODOs
All checks were successful
continuous-integration/drone/push Build is passing
- Remove nullable type from container.properties.parentId
- Add Swal when trying to delete main container
- Moved default editor state to default.ts
- Moved default symbol model to default.ts
2022-08-22 15:03:46 +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
58ef28fe89 Remove selector from svg export + fix svg format
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-18 17:10:46 +02:00
22ac06bf0c Add save with montant must impose
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-18 16:30:42 +02:00
7d7d627ab8 saveload: Remove reference replacer from the replacer. It must now crash every time there is a circular reference
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-18 16:26:43 +02:00
c3e2eaf8a8 Fix bug where the instance of style and userdata where referenced to the first container added. The fix apply a structured clone to these objects.
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-18 16:24:54 +02:00
4da161ff37 Remove broken test + remove cyclic defaultChildtype
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-18 16:22:25 +02:00
fa2d8e3e6e Fix RigidBody overlap on the right + Add tests 2022-08-18 16:19:55 +02:00
9f9ec8dc65 Implement DefaultChildType
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-08-18 15:51:45 +02:00
f268011315 Implement more options + Add depth dimension (revert DimensionLayer) (#37)
All checks were successful
continuous-integration/drone/push Build is passing
- Displayed text
- Enable Shortcuts
- Hide text
- Disable Dimension
- Depth dimension

Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/37
2022-08-18 08:46:50 -04:00