Merge pull request #8537 from Tainan404/issue-8439
Workaround to CTM request in svg out of the screen
This commit is contained in:
commit
b5bcedf927
@ -10,6 +10,7 @@ export default class WhiteboardOverlay extends Component {
|
||||
// accepts and returns a point of type SvgPoint and an svg object
|
||||
static coordinateTransform(screenPoint, someSvgObject) {
|
||||
const CTM = someSvgObject.getScreenCTM();
|
||||
if (!CTM) return {};
|
||||
return screenPoint.matrixTransform(CTM.inverse());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user