Yelp~ it's the case, and see also:
// 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()
BTW, to obtain dbId within the markup boundary, you can do this:
- Get markup's BoundingRect in browser's pixel space
- Convert coordinates of the rect's vertices into viewer's 3d space via
Viewer3D#clientToWorld
- Do bounding box collision to find out intersected mesh for the dbId, see here for the example:
https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-simpler-extension