Split API functions into separate objects #460
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Renamed API functions
The following are all the previously-existing API functions that had their name changed for 5.0.0. Any functions not listed here remained the same (or were introduced for or after version 5.0.0).
Original description
MainWindow
'sgraphicsView_Map
, now they're actually part of that class. They've all been moved under a newoverlay
object in the API, and any functions withOverlay
in the name have dropped it (e.g.map.setOverlayX
becomesoverlay.setX
).map.clearOverlay(layer)
andmap.clearOverlays()
becomeoverlay.clear(layer)
andoverlay.clear()
.ScriptUtility
, and moved to their own objectutility
in the API. This new class is now fully responsible for the registered action listconstants
object in the API that has properties with each of these values.The behavior of the API functions is otherwise unchanged. I'd like the overlay to be provided separately to each script so they don't need to worry about stomping on each others changes, but that's proving more annoying to do than I thought.
If this looks good I'll update the manual (and changelog) accordingly, and update this description with a full table of all the name changes.