I'm interested in transforming SVG elements into the main SVG element. For example, let's say the black square represents the main SVG element. I want to change elements 1, 2, and 3 to different SVG elements using JavaScript code. However, I am unsure how to prepare the SVG image for this action. Simply changing the path of an element in the SVG tag does not position the changed element correctly on the main SVG image.
What do I need to know about SVG and changing SVG element paths in order to achieve the desired outcome? Copying the path from a new SVG image and pasting it onto the main SVG image as an element does not seem to work effectively.
Perhaps the easiest way to understand this concept is through the analogy of customizing a shoe. In the main SVG image, there is a shoe with separate elements for the tongue and heel. There are five different options for both the tongue and heel. When clicking on the shoe's tongue, I should be able to choose from one of the five options (same goes for the heel). Upon selecting a new tongue for the shoe, the main SVG image should update to display the chosen tongue (similarly for the heel).
I believe that altering the element's path is necessary to change the image, though I am uncertain if this method is correct.
Thank you in advance,
Best regards.