Commit graph

444 commits

Author SHA1 Message Date
Eric Nguyen
063467fb58 Merged PR 182: Implement Scale for text, Selector and Dimension 2022-09-09 16:00:13 +00:00
Guillaume Tauzin
b8d3e9f1e9 Merge branch 'dev' of https://techformsa.visualstudio.com/SmartConfigurator/_git/SVGLayoutDesignerReact into dev 2022-09-09 10:38:19 +02:00
Guillaume Tauzin
91fe5a0008 Delete vs folder 2022-09-09 10:36:46 +02: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
Eric Nguyen
6441cd11e8 Merged PR 181: Add warning to elements sidebar + remove swals from behaviors
- Add warning to elements sidebar
- Remove obnoxious swals from behaviors
2022-09-08 14:32:55 +00:00
6a3ddea763 Allow AddContainers to extends the default config 2022-09-08 14:25:00 +02:00
569d21ee9b Fix syntax and add more info to readme 2022-09-08 13:49:30 +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
36526dcb27 Merge branch 'dev' 2022-09-08 12:30:07 +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
bf1c4e543b Merge branch 'dev' 2022-08-30 18:07:42 +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
ee7c418b24 Update http.js for better visibility of dilatation 2022-08-30 17:40:32 +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
4d20745e03 Merge branch 'dev' 2022-08-26 18:13:44 +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
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
a718268972 Remove deprecated function to SmartComponent 2022-08-26 11:14:31 +02: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
7e3ccdee99 Merge branch 'dev' of https://techformsa.visualstudio.com/DefaultCollection/SmartConfigurator/_git/SVGLayoutDesignerReact into dev
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-22 16:02:14 +02: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
022ad38163 Add option to apply behaviors to children
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-19 14:08:38 +02:00
ff5c3d00da default: Change minwidth to 1 2022-08-19 14:01:47 +02:00
b19180d126 Added behaviors documentation 2022-08-19 13:36:47 +02: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
3221d97eff Merge branch 'dev'
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-18 16:40:33 +02:00