我在这个格式的指令角指令模板的属性值:动态操纵
<img id="imgId" src="img/sample.jpg" border="0" width="100%" usemap="#image-maps-sample" alt="" />
<map name="image-maps-sample" id="sampleMap">
<area alt="" title="" href="#/abc" shape="poly" coords="132,884,219,778,258,767,129,995,140,976" style="outline:none;" target="_self"/>
<area alt="" title="" href="#/xyz" shape="poly" coords="1147,963,1139,951,1135,920,1137,893,1173,990,1156,978" style="outline:none;" target="_self"/>
</map>
的图像设置为灵活的宽度,即100%,因此,它会在屏幕的全宽,可以从改变实际尺寸为1920×1080。
什么是根据渲染宽度动态调整2个图像贴图区域的坐标的最佳方法。我将使用缩放/向上公式来计算坐标,但我不确定如何获取属性值并在将公式应用于对之后进行更新。
我已经尝试使用该指令的链接功能,但不成功。
感谢您的答复德鲁伊,我停留在方法来获取坐标和操纵他们,我的指令模板呈现操纵值。 – Navaneeth