Commit graph

74 commits

Author SHA1 Message Date
Eric NGUYEN
4e3c5d71fd Remove useless imports in Editor 2022-10-04 16:32:46 +02:00
Eric NGUYEN
cc84e59701 Add description to context menu + Improve context menu position and size 2022-10-04 16:30:55 +02:00
Eric Nguyen
38a6919192 Merged PR 205: Add new AddingBehavior ReplaceParent + Allow AddingBehavior override by response + fix double key in context menu + Rename node-http.js to http.js 2022-10-03 14:48:45 +00:00
Eric Nguyen
0d05f0959c Merged PR 203: Improve responsive design and refactor layout 2022-10-03 12:05:16 +00:00
Eric Nguyen
04d79688cb Merged PR 200: Implement the Canvas API rather than using SVG 2022-10-02 19:20:19 +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
417829945f Move Orientation enum to enum folder 2022-09-29 11:56:23 +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
3ecff4cf01 Merged PR 194: Added option to disable any API call
Added option to disable any API call
Fix http.js and node-http.js
Fix MainContainer not using IAvailableContainer from MainContainer
Fix generate_dts.py script
More docs
Fix MainContainer default style. Extend config will now be taken into account. But Main container can still have its own type.
2022-09-23 15:59:42 +00:00
Eric NGUYEN
6de2c23989 Implement AddEditorListenerHook + Fix some bugs with types 2022-09-23 13:49:22 +02:00
Eric NGUYEN
4bb92e219d Fix behaviors not apply on sibling when deleting a container + Fix container not able to move because sort is done after 2022-09-21 16:46:42 +02:00
Eric Nguyen
23ed3ed1ad Merged PR 189: Simplify usage of SmartComponent
- Added new Events :
  - AddContainer, AddContainerToSelectedContainer, AppendContainer, AppendContainerToSelectedContainer, SelectContainer, DeleteContainer
  - AddSymbol, SelectSymbol, DeleteSymbol
- Changed the component to an iframe (you only need to copy the whole dist now)
- Added callbacks to every methods in the component
- Create event listener on demand: no need to initialize the event listener!
- Update d.ts
- Added Fastboot and enable it by default on production build
2022-09-21 09:24:14 +00:00
Eric NGUYEN
0476a294d6 Implement Category list 2022-09-16 16:23:17 +02:00
0d557624f7 Fix InitializeDefaultChild not using AddNewContainerToParent and ignoring subchildren 2022-09-15 09:33:42 +02:00
012c826461 Revert "Restore InitializeDefaultChild"
This reverts commit 4aad6b2f4c.
2022-09-15 09:31:34 +02:00
Eric NGUYEN
4aad6b2f4c Restore InitializeDefaultChild 2022-09-14 18:17:54 +02:00
Eric NGUYEN
498ca9dc75 Move all AddContainer functions to a different file and fix default.ts 2022-09-14 17:32:25 +02:00
Eric NGUYEN
f6e4238b3d Implement Pattern 2022-09-14 16:55:28 +02:00
Eric NGUYEN
e32e98cddd Fix flex again because of wrong order of container 2022-09-14 11:36:43 +02:00
Guillaume Tauzin
46f82d0eca Change css class on sidebar and symbols 2022-09-09 10:33:14 +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
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
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
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
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
70863261aa Merge pull request 'Add swals + Remove incompatible saves + add new tests' (#36) from dev.swal into dev
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/36
2022-08-18 06:14:56 -04:00
4971ec7e5d Add swals + Remove incompatible saves + add new tests
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-18 12:13:51 +02:00
0e161ffce0 Refactor behaviors into a single function (#35)
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/35
2022-08-18 06:11:40 -04:00