Commit graph

44 commits

Author SHA1 Message Date
Eric Nguyen
460669987d Merged PR 392: Events: Fix needing to use setTimeout for callbacks 2023-03-01 09:53:06 +00:00
Eric NGUYEN
a9744a8860 Update dts 2023-02-27 13:50:34 +01:00
Eric NGUYEN
4fcf600c88 Remove deprecated EditorEvents 2023-02-24 14:46:24 +01:00
Guillaume Tauzin
6ee4eb2986 Fix Load Editor 2022-11-07 14:42:37 +01:00
Guillaume Tauzin
db7cca06aa Update svgld.d.ts 2022-11-04 14:26:37 +01:00
Eric NGUYEN
0ac42b3500 Merge branch 'dev' into dev.loading 2022-11-04 12:05:37 +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
eaf03824fb Move MainMenu Loading to App + Change is/setLoaded to appState/setAppState 2022-10-18 16:51:44 +02:00
Eric Nguyen
b4eba6bb9b Merged PR 216: Deprecate parent from IContainerModel for FindContainerById 2022-10-17 16:01:06 +00:00
Eric NGUYEN
621dc9b53f Deprecate GetCircularReplacer and make GetCircularReplacer dotnet by default. Format of the save is now incompatible with old versions. 2022-10-17 16:13:34 +02:00
Eric NGUYEN
49e051059e Add LoadEditor to smart component 2022-10-14 13:46:42 +02:00
Eric NGUYEN
b3a3be0ba2 Fix svg-layout-designer.ts after history update + Update SVGLD.dts + add command to package.json 2022-10-13 17:40:43 +02:00
Eric NGUYEN
7a81bbaec6 Add historyCurrentStep to setHistory event 2022-10-13 16:18:16 +02:00
Eric NGUYEN
749609f9a0 Add GetDefaultEditorState to App CustomEvents 2022-10-13 15:01:38 +02:00
Eric NGUYEN
fb6bc1289d Move ReviveEditor and ReviveHistory to App 2022-10-13 11:56:41 +02:00
Eric NGUYEN
d368641200 Revert "Move settings to public/svgld-settings.js"
This reverts commit 2cf56632155f5378c8819991b1b42ab135cbe384.
2022-10-12 18:08:35 +02:00
Eric NGUYEN
fff0645045 Fix serialization AGAIN in web workers 2022-10-12 17:16:08 +02:00
Eric NGUYEN
846f41829b Final fix for Dictionnary serialization 2022-10-12 16:50:20 +02:00
Eric NGUYEN
147c02bdfd Fix serialization to dictionaries 2022-10-12 16:35:56 +02:00
Eric NGUYEN
ea2a2ab64c Revert "Fix applicationStateModel serialization"
This reverts commit aa15425dbc.
2022-10-12 16:17:43 +02:00
Eric NGUYEN
aa15425dbc Fix applicationStateModel serialization 2022-10-12 16:03:18 +02:00
Guillaume Tauzin
d1881ae8fa Add DataContract on Models in SVGLDLibs 2022-10-12 15:56:00 +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
ec7ee7891e Merged PR 208: Fix scaling and position of symbols 2022-10-04 09:25:03 +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
8ba19cc96b Refactor svg-layout-designer component into controllers + Add setLoaded 2022-09-23 15:22:07 +02:00
Eric NGUYEN
2ea43890f0 Implement setEditor + Add some macros 2022-09-23 14:55:57 +02:00
Eric NGUYEN
6de2c23989 Implement AddEditorListenerHook + Fix some bugs with types 2022-09-23 13:49:22 +02:00
Eric NGUYEN
6aa5acd4c0 Comment svg-layout-designer.ts 2022-09-23 11:22:14 +02:00
Eric NGUYEN
da3bd0a323 Implement save/load events 2022-09-23 11:01:31 +02:00
Eric NGUYEN
99b3a4c7ab moved svgld.d.ts to public folder 2022-09-21 17:02:45 +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
3d91b1fb27 Message sidebar will now only show the last packet of message 2022-09-19 12:27:55 +02:00
Eric Nguyen
e94671d1d8 Merged PR 185: Implement Messages 2022-09-16 10:03:41 +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
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
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
Eric NGUYEN
c7bc77b08f Fix build version of the project because of web workers 2022-08-17 17:47:16 +02: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
Hydroxycarbamide
8e41fdad46 App.scss: Move public style to public css file
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-11 23:41:18 +02:00
Hydroxycarbamide
281cd92194 Initialise project with Vite, React, SCSS, Tailwind, ESLint 2022-07-30 11:38:17 +02:00