Working with individual SVG paths and in need of a mitre effect when there is a path join, which is a new concept for me.
The SVG shape resembles a polygon, with each side as its own individual path.
Although the sample SVG code provided does not display the original Polygon, please refer to the image for the output:
<svg viewBox="0 0 330 330">
<g id="v-3" class="joint-viewport">
<g model-id="db69ee92-054d-4ce5-9300-ae09f385d9f2" id="j_1" class="joint-cell joint-type-custom joint-type-custom-line joint-element joint-theme-default" data-type="custom.Line" transform="translate(90,90)">
<g class="rotatable" id="v-12">
<g class="scalable" transform="scale(2.5,3.75)">
<path class="path0" id="v-13" d="M 0 0 L 30 0" stroke="#806476" stroke-width="15" cursor="pointer" event="element:path-click" stroke-linecap="square"></path>
<path class="path1" id="v-14" d="M 30 0 L 30 20" stroke="#181972" stroke-width="15" cursor="pointer" event="element:path-click" stroke-linecap="square"></path>
<path class="path2" id="v-15" d="M 30 20 L 60 20" stroke="#91a19b" stroke-width="15" cursor="pointer" event="element:path-click" stroke-linecap="square"></path>
<path class="path3" id="v-16" d="M 60 20 L 60 40" stroke="#f24167" stroke-width="15" cursor="pointer" event="element:path-click" stroke-linecap="square"></path>
<path class="path4" id="v-17" d="M 60 40 L 0 40" stroke="#21e578" stroke-width="15" cursor="pointer" event="element:path-click" stroke-linecap="square"></path>
<path class="path5" id="v-18" d="M 0 40 L 0 0" stroke="#cf2fe0" stroke-width="15" cursor="pointer" event="element:path-click" stroke-linecap="square"></path>
</g>
</g>
</g>
</g>
</svg>
The link below shows the SVG polygon shape. When clicking on individual paths, the order of layers should change such that the path above overlaps the one beneath, creating the desired mitre effect. I have achieved this for two layers but still working on the mitre effect.
SVG Shape The second link demonstrates the transition for each mouse click. My goal is to achieve the miter/diagonal effect seen in the final figure.
Image 3 If it's a single SVG, then the mitre effect can be accomplished with line-join. How can I incorporate the desired mitre effect into this specific SVG structure?