我正在使用标记扩展名在查看器上进行绘制,在绘制之后,在选择标记事件时,能否获得其当前选择的中心坐标或其中的任何坐标?如果没有,至少我可以使dbId落后于当前选择吗?
提前致谢
是的〜是这种情况,另请参见:
// Get the markup's position in browser pixel space. the (0,0) is top left
Markup#getClientPosition()
// Get the markup's bounding rect in browser pixel space.
Markup#getClientSize()
// get the markup's bounding rect in browser pixel space, including the stroke width
Markup#getBoundingRect()
顺便说一句,要获得标记边界内的dbId,可以执行以下操作:
酷,谢谢。