So for my mapview, I'm doing runtime calculation of extent and setting it to view.extent property.
Our requirement calls for the home button to restore the default view which is equal to the derived extent.
Our map also needs to be responsive, so once a browser dimension changes, the home button needs to re-calculate the extent that is applicable to the current browser viewport dimension.
Looking at the 4.6 Doc, it appears we can define a Viewpoint that augments how the home behaves. However it's not obvious how viewpoint relates to extent.
I've custom logic that calculates the new extent upon a widthBreakpoint and heightBreakpoint change. However, I don't see how that new extent can be used to derive a new viewpoint, which the home button requires. Thanks
Home | API Reference | ArcGIS API for JavaScript 4.6