Commit graph

32 commits

Author SHA1 Message Date
Eric Nguyen
338a2c157c Merged PR 330: Add DimensionStyle + Refactor dimensionLayer + Add width and dashArray to style
Add DimensionStyle + Refactor dimensionLayer + Add width and dashArray to style

Related work items: #7977
2023-02-13 14:54:50 +00:00
Carl Fuchs
8a99ef4cfd Merged PR 315: ErgonomieTreeView
Affichage fonctionnelle sous forme de toolbar vertical, comme dans les IDE

Related work items: #7976
2023-02-07 14:25:53 +00:00
Carl Fuchs
a7feebdcd1 Merged PR 308: #8224/#7571 Margins cotation and Colors
Related work items: #8224
2023-01-30 14:59:55 +00:00
Eric NGUYEN
3d6d979389 Move dimension options in Dimensions class 2022-11-09 16:00:24 +01:00
Eric NGUYEN
a8723ffd27 Remove usage of ContainerModel rather than IContainerModel 2022-11-08 10:26:34 +01:00
Eric Nguyen
4ff2e0b7fb Merged PR 226: Implement associated container and default X, Y position for Symbol
Implement associated container and default X, Y position for Symbol

Related work items: #7537, #7540
2022-11-07 08:59:25 +00:00
Eric NGUYEN
60ff7f412a Fix SortChildren in SetContainer 2022-10-19 14:08:28 +02:00
Eric NGUYEN
7790ff6dfa Fix setting margins causing invalid values 2022-10-18 15:21:41 +02:00
Eric Nguyen
b4eba6bb9b Merged PR 216: Deprecate parent from IContainerModel for FindContainerById 2022-10-17 16:01:06 +00:00
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
cf3c966170 Fix selection after deletion when last container is selected 2022-10-04 16:52:36 +02:00
Eric NGUYEN
d580890b9d Add shortcut description to right click + add Suppr shortcut + Fix next selection after deletion 2022-10-04 16:51:24 +02: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
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
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
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
4588aa9443 Rename DefaultX, DefaultY to X and Y + add docs 2022-08-31 15:34:25 +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
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
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
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
Renamed from src/Components/Editor/ContainerOperations.ts (Browse further)