Replace #pragma - mark with comments (#736)
Co-authored-by: Ovidiu Voda <ovi.voda@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ Transform::Transform(MapObserver& observer_,
|
||||
: observer(observer_), state(constrainMode, viewportMode) {
|
||||
}
|
||||
|
||||
#pragma mark - Map View
|
||||
// MARK: - Map View
|
||||
|
||||
void Transform::resize(const Size size) {
|
||||
if (size.isEmpty()) {
|
||||
@@ -65,7 +65,7 @@ void Transform::resize(const Size size) {
|
||||
observer.onCameraDidChange(MapObserver::CameraChangeMode::Immediate);
|
||||
}
|
||||
|
||||
#pragma mark - Camera
|
||||
// MARK: - Camera
|
||||
|
||||
CameraOptions Transform::getCameraOptions(const optional<EdgeInsets>& padding) const {
|
||||
return state.getCameraOptions(padding);
|
||||
@@ -341,7 +341,7 @@ void Transform::flyTo(const CameraOptions& camera, const AnimationOptions& anima
|
||||
duration);
|
||||
}
|
||||
|
||||
#pragma mark - Position
|
||||
// MARK: - Position
|
||||
|
||||
void Transform::moveBy(const ScreenCoordinate& offset, const AnimationOptions& animation) {
|
||||
ScreenCoordinate centerOffset = {offset.x, offset.y};
|
||||
@@ -355,13 +355,13 @@ LatLng Transform::getLatLng(LatLng::WrapMode wrap) const {
|
||||
return state.getLatLng(wrap);
|
||||
}
|
||||
|
||||
#pragma mark - Zoom
|
||||
// MARK: - Zoom
|
||||
|
||||
double Transform::getZoom() const {
|
||||
return state.getZoom();
|
||||
}
|
||||
|
||||
#pragma mark - Bounds
|
||||
// MARK: - Bounds
|
||||
|
||||
void Transform::setLatLngBounds(LatLngBounds bounds) {
|
||||
if (!bounds.valid()) {
|
||||
@@ -400,7 +400,7 @@ void Transform::setMaxPitch(const double maxPitch) {
|
||||
state.setMaxPitch(maxPitch * util::DEG2RAD_D);
|
||||
}
|
||||
|
||||
#pragma mark - Bearing
|
||||
// MARK: - Bearing
|
||||
|
||||
void Transform::rotateBy(const ScreenCoordinate& first,
|
||||
const ScreenCoordinate& second,
|
||||
@@ -426,13 +426,13 @@ double Transform::getBearing() const {
|
||||
return state.getBearing();
|
||||
}
|
||||
|
||||
#pragma mark - Pitch
|
||||
// MARK: - Pitch
|
||||
|
||||
double Transform::getPitch() const {
|
||||
return state.getPitch();
|
||||
}
|
||||
|
||||
#pragma mark - North Orientation
|
||||
// MARK: - North Orientation
|
||||
|
||||
void Transform::setNorthOrientation(NorthOrientation orientation) {
|
||||
state.setNorthOrientation(orientation);
|
||||
@@ -447,7 +447,7 @@ NorthOrientation Transform::getNorthOrientation() const {
|
||||
return state.getNorthOrientation();
|
||||
}
|
||||
|
||||
#pragma mark - Constrain mode
|
||||
// MARK: - Constrain mode
|
||||
|
||||
void Transform::setConstrainMode(mbgl::ConstrainMode mode) {
|
||||
state.setConstrainMode(mode);
|
||||
@@ -462,7 +462,7 @@ ConstrainMode Transform::getConstrainMode() const {
|
||||
return state.getConstrainMode();
|
||||
}
|
||||
|
||||
#pragma mark - Viewport mode
|
||||
// MARK: - Viewport mode
|
||||
|
||||
void Transform::setViewportMode(mbgl::ViewportMode mode) {
|
||||
state.setViewportMode(mode);
|
||||
@@ -472,7 +472,7 @@ ViewportMode Transform::getViewportMode() const {
|
||||
return state.getViewportMode();
|
||||
}
|
||||
|
||||
#pragma mark - Projection mode
|
||||
// MARK: - Projection mode
|
||||
|
||||
void Transform::setProjectionMode(const ProjectionMode& options) {
|
||||
state.setProperties(TransformStateProperties()
|
||||
@@ -488,7 +488,7 @@ ProjectionMode Transform::getProjectionMode() const {
|
||||
.withYSkew(state.getYSkew());
|
||||
}
|
||||
|
||||
#pragma mark - Transition
|
||||
// MARK: - Transition
|
||||
|
||||
void Transform::startTransition(const CameraOptions& camera,
|
||||
const AnimationOptions& animation,
|
||||
@@ -620,7 +620,7 @@ void Transform::setGestureInProgress(bool inProgress) {
|
||||
state.setGestureInProgress(inProgress);
|
||||
}
|
||||
|
||||
#pragma mark Conversion and projection
|
||||
// MARK: Conversion and projection
|
||||
|
||||
ScreenCoordinate Transform::latLngToScreenCoordinate(const LatLng& latLng) const {
|
||||
ScreenCoordinate point = state.latLngToScreenCoordinate(latLng);
|
||||
|
||||
Reference in New Issue
Block a user