From d73b28eb062367a25477b1fa724965cb4fe1670c Mon Sep 17 00:00:00 2001 From: Tainan Felipe Date: Thu, 23 Jan 2020 14:52:16 -0300 Subject: [PATCH 1/2] Workaround to CTM request in svg of the screen --- .../ui/components/whiteboard/whiteboard-overlay/component.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx b/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx index 7469bfdc64..bde57ed78c 100755 --- a/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx @@ -9,7 +9,10 @@ export default class WhiteboardOverlay extends Component { // a function to transform a screen point to svg point // accepts and returns a point of type SvgPoint and an svg object static coordinateTransform(screenPoint, someSvgObject) { + console.log('screenPoint', screenPoint, 'someSvgObject', someSvgObject); const CTM = someSvgObject.getScreenCTM(); + console.log('CTM', CTM); + if (!CTM) return {}; return screenPoint.matrixTransform(CTM.inverse()); } From 4503e700513d2cf65a91cc99df42507c3567d358 Mon Sep 17 00:00:00 2001 From: Tainan Felipe Date: Fri, 24 Jan 2020 16:44:47 -0300 Subject: [PATCH 2/2] Remove consoles --- .../ui/components/whiteboard/whiteboard-overlay/component.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx b/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx index bde57ed78c..09cce8e832 100755 --- a/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-overlay/component.jsx @@ -9,9 +9,7 @@ export default class WhiteboardOverlay extends Component { // a function to transform a screen point to svg point // accepts and returns a point of type SvgPoint and an svg object static coordinateTransform(screenPoint, someSvgObject) { - console.log('screenPoint', screenPoint, 'someSvgObject', someSvgObject); const CTM = someSvgObject.getScreenCTM(); - console.log('CTM', CTM); if (!CTM) return {}; return screenPoint.matrixTransform(CTM.inverse()); }