Commit graph

86 commits

Author SHA1 Message Date
Eric NGUYEN
3b99d0a020 Revert dimensionStyle 2023-02-14 10:15:12 +01:00
Eric NGUYEN
7ad866fc94 Refactor selector 2023-02-13 16:38:00 +01:00
Eric NGUYEN
6958513dd3 Merge branch 'master' into master.7373.symbolHighlight 2023-02-13 16:22:06 +01:00
Eric Nguyen
a123407b3a Merged PR 331: Remove DepthDimensionLayer + Add fixes from !330 2023-02-13 15:18:53 +00:00
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
Eric NGUYEN
2b7ff3a202 Fix selectorSymbol not horizontally centered on the symbol 2023-02-10 17:20:02 +01:00
Eric NGUYEN
9797ada55a Replace isComponentsOpen, isSymbolsOpen by SelectorMode in SVG.tsx 2023-02-10 17:07:26 +01:00
Carl Fuchs
579422653b Implement Highlight on symbols 2023-02-09 15:30:31 +01:00
Carl Fuchs
acb5ba2d82 Merged PR 311: #7975 Cotations sur les ancrages
![image.png](e30b9bba-4b18-4276-b4ef-74d97b7daef3/pullRequests/311/attachments/image.png)

Related work items: #7975
2023-02-07 10:16:19 +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
58a881c813 Merge branch 'dev' 2022-11-21 13:56:05 +01:00
Eric NGUYEN
8b11c71384 Fix lot of eslint problems 2022-11-21 13:47:04 +01:00
Eric NGUYEN
3d6d979389 Move dimension options in Dimensions class 2022-11-09 16:00:24 +01:00
Eric Nguyen
96c3fbdf4e Merged PR 228: Implement left cotation and fix borrower cotation when length = 0
Implement left cotation and fix borrower cotation when length = 0

Related work items: #7575
2022-11-08 15:51:42 +00:00
Eric NGUYEN
a8723ffd27 Remove usage of ContainerModel rather than IContainerModel 2022-11-08 10:26:34 +01:00
Eric NGUYEN
3684a34d3b Fix depth dimension bottom position 2022-11-02 12:23:45 +01: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
84f968a872 TRULY Fix symbol position on scale 2022-10-04 16:00:27 +02:00
Eric NGUYEN
7121f0aae5 Fix symbol's translate making the symbol overlap with the containers 2022-10-04 15:40:59 +02:00
Eric Nguyen
ec7ee7891e Merged PR 208: Fix scaling and position of symbols 2022-10-04 09:25:03 +00:00
Eric Nguyen
0d05f0959c Merged PR 203: Improve responsive design and refactor layout 2022-10-03 12:05:16 +00:00
Eric NGUYEN
af1b32c8d6 Refactor UseSVGAutoResizer 2022-10-02 16:37:31 +02:00
Eric NGUYEN
57353a9bf0 Fix regression with children dimension and having less than two 2022-10-02 13:29:28 +02:00
Eric NGUYEN
badf6ebaf5 Fix duplicate key in dimension 2022-10-02 13:28:54 +02:00
Eric NGUYEN
b463c3050c Fix 0 dimension showing in children dimension 2022-09-30 11:32:49 +02:00
Eric Nguyen
b88539e34d Merged PR 199: Add more Position for the dimensions + rename isDimensionBorrower and MarkPosition... + Refactor components in ContainerForm with Checkboxes and Selector + Add more docs
Add more Position for the dimensions

Rename isDimensionBorrower and MarkPosition...

Refactor components in ContainerForm with Checkboxes and Selector

Add more docs
2022-09-30 09:28:08 +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
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
Guillaume Tauzin
320d68e27f Text cotation css modified + no decimal display on text 2022-09-16 10:07:01 +02:00
Eric NGUYEN
9f58203c86 Set dimensions text above the dimension 2022-09-14 11:53: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
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
5aaf1f4745 Set dimension to fixed 2 2022-08-30 17:45:00 +02:00
Eric NGUYEN
5fa9db931f Implement borrower dimension 2022-08-30 17:36:48 +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
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
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
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
Eric Nguyen
e96e4f123b Merged PR 18: Add support for custom SVG
Some checks failed
continuous-integration/drone/push Build is failing
Add support for custom SVG
Add userData back into IProperties
Added library interweave
Update example
2022-08-17 13:43:24 +00:00
Eric NGUYEN
1622816035 Final fix for XPositionReference : We are now lying to the user in the form. The transformation is applied to the value that is shown but the transformation is restored for the computing afterward 2022-08-16 16:34:32 +02: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
3c164581ce Remove Number() calls
Some checks failed
continuous-integration/drone/push Build is failing
2022-08-15 22:57:08 +02:00
4fbc67835c XPositionReference: Fix Selector and Append
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-15 22:26:59 +02:00