Visio Guy

Visio Discussions => Visio Online, Cloud & SharePoint Issues => Topic started by: Nikolay on July 10, 2020, 06:12:40 PM

Title: Visio Online: getPosition returns (X, X) instead of (X, Y)
Post by: Nikolay on July 10, 2020, 06:12:40 PM
Just wondering if anybody is using Visio Online JavaScript API?

Today faced an odd issue: if I call "page.view.getPosition (https://docs.microsoft.com/en-us/javascript/api/visio/visio.pageview?view=visio-js-1.1#getposition--)", it is supposed to return (X, Y) coordinates.
But it actually returns doubled X! Like (X, X). Seriously?

Guys, this is already a bit embarrassing IMHO (http://rsdn.org/Forum/Images/facepalm.gif)
Or maybe I am missing something?

Created GitHub issue:
https://github.com/OfficeDev/office-js/issues/1275
Title: Re: Visio Online: getPosition returns (X, X) instead of (X, Y)
Post by: Visisthebest on July 11, 2020, 06:35:14 AM
Following! :D
Title: Re: Visio Online: getPosition returns (X, X) instead of (X, Y)
Post by: Visisthebest on February 19, 2021, 10:14:23 AM
Is this issue still not fixed?
Title: Re: Visio Online: getPosition returns (X, X) instead of (X, Y)
Post by: Nikolay on February 19, 2021, 10:40:56 AM
I have not checked, but the GitHub issue seems to be still open. One doesn't simply walk into Mordor replace one character, one needs a multi-level review and approval process, I guess ;D
Title: Re: Visio Online: getPosition returns (X, X) instead of (X, Y)
Post by: Visisthebest on February 20, 2021, 06:03:15 AM
That is awfully slow for such a significant issue, MS needs to do better.