-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add canMove and getChildren to Sorter * Make the canvas use Components.canMove function * Fix StyleManager issue * Make Sorter dependent on an abstract datastructure * Remove unneeded properties * Add drag direction enum * extract method * Add default values for the sorter * reverse avoidSelectOnEnd * Group related options for the Sorter * Fix types, and fix canvas sorter * Add method to clear source element freeze * Add DropLocationDeterminer class * Refactor some methods in the sorter * Refactor endMove method * Refactor rollback method * Add DropLocationDeterminer, refactor methods in Sorter class * Break the sorter into multiple classes * Fix placeholder class jsdocs * Fix bug while dropping items near the border * Refactor DropLocationDeterminer * Add helping methods to the ComponentSorter * Remove unwanted fields in DropLocationDeterminer * Add componentSorter Class * Refactor DropLocationDeterminer Class * Rename file * Fix style manager class * Move files into a new folder * Move types to a new file * Add back the tree class paramater instead of abstract classes * Fix dropping on the same collection issue * refactor isInFlow * Change methods to be accessor methods * Make component sorter dependant on an abstract node * Fix bug with dropping into an element with no children * Fix component layers drag and drop * Remove the ensure placeholder logic from the StyleManagerSorter * Refactor event handler types * export interface SorterEventHandlers * change to ensurePlaceholderElement method * Make images droppable * Add support for dragging and dropping textable components * Remove container argument from startSort * Trigger events on starting and ending the dragging * Add triggering old events and callback functions * Fix drop issue with the style manager * Add cancelling the dragging * Hide placeholder if no target * Refactor droplocationdeteminer and improve performance * Fix some bugs * Fix some callbacks * trigger 'sorter:drag:validation' * Disable editable text after dropping * Remove unused functions * Fix placeholder direction * Refactor restnode state * Run formatter * Remove unused code and redundent comments * Fix stack test * Avoid triggering the drop event twice * Fix styles being removed when dragging components * change 'sorter:drag:start' event triggering * Fix legacyOnMove not being triggered * Some refactor * Fix selection after cancelling * Fix triggering update event without moving any component * fix the sort of dragged components * make style manager droppable even if the mouse is outside the continer * Fix selecting blocks after being dropped * Fix placeholder for empty containers * Fix blocks drag cancel issue * Fix style manager cancel * Fix autoscroll not stopping issue * Fix comment components drag * Fix issue with hidden elements * Fix selection after dropping * Format * Fix position on scroll * remove console.log * Change target calculation with scroll * Fix blocks not activating issue * Fix block drop in wrapper issue * Fix dropping multiple components in the same position * Preserve target canvas spot * Avoid updating non-text related component on drag/drop * skip sorter tests --------- Co-authored-by: Artur Arseniev <[email protected]>
- Loading branch information
1 parent
7300f8c
commit 2124bdc
Showing
26 changed files
with
2,278 additions
and
1,462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.