Select to view content in your preferred language

Is ScreenUtils public util

680
3
09-29-2023 03:01 PM
YangJin
Emerging Contributor

Hi,

 

I wonder in esri 4, can we use 'esri/views/support/screenUtils' in my own code? I dont fidn it in the esri 4 js api docs.

 

Thanks,

 

Yang

0 Kudos
3 Replies
KenBuja
MVP Esteemed Contributor

According to the functionality matrix, there are no plans to add screenUtils. You can use the toMap and toScreen methods in both MapView and SceneView.

0 Kudos
YangJin
Emerging Contributor

Hi, i have another post mention the issue I got https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bd-p/arcgis-api-for-javascript-qu....

 

Basically, the toMap api doesnt support dom native mouse event,  and I can use screenUtils to convert the dom mouse event to screenpoint. Do you have any ideas?

 

Thanks,

0 Kudos
JoelBennett
MVP Regular Contributor

Yes, you can use it.  However, since it's not in the documentation, that means this module can be changed or removed in a future release without any notice.

0 Kudos