Commit 3ae547f
committed
Refactor DraggableInstance to use symbols for internal properties
- Introduced a new `symbols.ts` file to define unique symbols for various properties of the DraggableInstance.
- Updated the DraggableInstance interface to replace direct property access with symbol-based access.
- Modified the DraggableFactory class to accommodate the new symbol-based structure, ensuring all references to instance properties are updated accordingly.
- Enhanced encapsulation and maintainability by using symbols to prevent potential naming conflicts and improve clarity of the code.1 parent 69fff49 commit 3ae547f
File tree
4 files changed
+281
-195
lines changed- docs
- scripts
- src
- packages/core/src
4 files changed
+281
-195
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
Large diffs are not rendered by default.
0 commit comments