Kumi
4043f031ab
Replaced multiple specific functions for creating MarkerElement, ImageElement, and TeleportElement forms in the editor with a single, switch-based function titled createElementPropertiesForm. This enhancement consolidates form generation logic, reducing redundancy and improving maintainability. It dynamically generates input fields based on the element type selected, simplifying future extensions or modifications to element properties. Additionally, this refactoring ensures a more consistent user experience by uniform handling of different element types during creation and modification. The new approach allows for easier addition of new element types and their corresponding inputs, adhering to the DRY principle and promoting code readability. |
||
---|---|---|
.. | ||
css | ||
js | ||
scss |