Commit graph

26 commits

Author SHA1 Message Date
Eric NGUYEN
afd303f8cb Refactor usage of EditorState + Add version to editorState + increment editorState to "v2.0.0" 2023-03-01 11:46:22 +01:00
Eric Nguyen
460669987d Merged PR 392: Events: Fix needing to use setTimeout for callbacks 2023-03-01 09:53:06 +00:00
Eric NGUYEN
4fcf600c88 Remove deprecated EditorEvents 2023-02-24 14:46:24 +01:00
Eric NGUYEN
c725b107a4 Move selectedContainerId and selectedSymbolId to Editor component 2023-02-24 14:41:36 +01:00
Eric NGUYEN
4e41fda93a Fix eslint errors 2023-02-23 13:54:38 +01:00
Eric Nguyen
9bbdac088e Revert "Run eslint src --fix" 2023-02-17 09:34:48 +00:00
Eric NGUYEN
25cb0d14f7 Run eslint src --fix 2023-02-10 16:29:10 +01:00
Eric NGUYEN
8b11c71384 Fix lot of eslint problems 2022-11-21 13:47:04 +01:00
Eric NGUYEN
14c7ed0cff Refactor EditorEvents params into an object 2022-11-04 13:52:40 +01:00
Eric Nguyen
505813d530 Merged PR 225: Implement translations
Implement translations with useContext in React
+Add events to allow changing the language in the app
+Refactor AppEvents
+Redesign vertical bars in elements
2022-11-04 10:58:06 +00:00
Eric NGUYEN
b1b30e8486 Refactor AddContainerToSelectedContainer 2022-10-17 19:32:27 +02:00
Eric NGUYEN
d05d0fb196 Refactor App and Editor events 2022-10-17 19:17:46 +02:00
Guillaume Tauzin
d40cd8cf8e Fix SetHistory in SmartComponent 2022-10-17 17:36:19 +02:00
Eric NGUYEN
7a81bbaec6 Add historyCurrentStep to setHistory event 2022-10-13 16:18:16 +02:00
Eric NGUYEN
fb6bc1289d Move ReviveEditor and ReviveHistory to App 2022-10-13 11:56:41 +02: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
710cbd0312 Add GetEditorStateAsString in events 2022-10-10 09:27:33 +00:00
Eric NGUYEN
2ea43890f0 Implement setEditor + Add some macros 2022-09-23 14:55:57 +02:00
Eric NGUYEN
3a7c60bd1c Move list of events at the top so it can be seen immediately 2022-09-23 11:23:49 +02:00
Eric NGUYEN
da3bd0a323 Implement save/load events 2022-09-23 11:01:31 +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
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
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
c81a6fe44b Implement events for external use + Rename interfaces with a I prefix + add some documentation (#26)
All checks were successful
continuous-integration/drone/push Build is passing
Implement events for external use
Rename interfaces with a I prefix
Add some documentation

Co-authored-by: Eric NGUYEN <enguyen@techform.fr>
Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/26
2022-08-12 06:36:14 -04:00