Skip to content

Commit

Permalink
Re-order config and proptypes to minimize diff
Browse files Browse the repository at this point in the history
  • Loading branch information
abraha2d committed Apr 15, 2019
1 parent 1fd14e5 commit f1e1200
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 106 deletions.
106 changes: 53 additions & 53 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,41 +244,41 @@
var mapConfig = Object.assign({}, {
mapTypeId: this.props.mapTypeId || mapTypeIds[mapTypeFromProps],
center: center,
backgroundColor: this.props.backgroundColor,
zoom: this.props.zoom,
maxZoom: this.props.maxZoom,
minZoom: this.props.minZoom,
clickableIcons: !!this.props.clickableIcons,
disableDefaultUI: this.props.disableDefaultUI,
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
draggable: this.props.draggable,
draggableCursor: this.props.draggableCursor,
draggingCursor: this.props.draggingCursor,
fullscreenControl: this.props.fullscreenControl,
fullscreenControlOptions: this.props.fullscreenControlOptions,
gestureHandling: this.props.gestureHandling,
heading: this.props.heading,
keyboardShortcuts: this.props.keyboardShortcuts,
zoomControl: this.props.zoomControl,
zoomControlOptions: this.props.zoomControlOptions,
mapTypeControl: this.props.mapTypeControl,
mapTypeControlOptions: this.props.mapTypeControlOptions,
maxZoom: this.props.maxZoom,
minZoom: this.props.minZoom,
noClear: this.props.noClear,
overviewMapControl: this.props.overviewMapControl,
overviewMapControlOptions: this.props.overviewMapControlOptions,
panControl: this.props.panControl,
panControlOptions: this.props.panControlOptions,
rotateControl: this.props.rotateControl,
rotateControlOptions: this.props.rotateControlOptions,
scaleControl: this.props.scaleControl,
scaleControlOptions: this.props.scaleControlOptions,
scrollwheel: this.props.scrollwheel,
signInControl: this.props.signInControl,
streetView: this.props.streetView,
streetViewControl: this.props.streetViewControl,
streetViewControlOptions: this.props.streetViewControlOptions,
panControl: this.props.panControl,
panControlOptions: this.props.panControlOptions,
rotateControl: this.props.rotateControl,
rotateControlOptions: this.props.rotateControlOptions,
fullscreenControl: this.props.fullscreenControl,
fullscreenControlOptions: this.props.fullscreenControlOptions,
scrollwheel: this.props.scrollwheel,
draggable: this.props.draggable,
draggableCursor: this.props.draggableCursor,
draggingCursor: this.props.draggingCursor,
keyboardShortcuts: this.props.keyboardShortcuts,
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
noClear: this.props.noClear,
styles: this.props.styles,
tilt: this.props.tilt,
zoom: this.props.zoom,
zoomControl: this.props.zoomControl,
zoomControlOptions: this.props.zoomControlOptions
gestureHandling: this.props.gestureHandling,
backgroundColor: this.props.backgroundColor,
heading: this.props.heading,
overviewMapControl: this.props.overviewMapControl,
overviewMapControlOptions: this.props.overviewMapControlOptions,
signInControl: this.props.signInControl,
tilt: this.props.tilt
});

Object.keys(mapConfig).forEach(function (key) {
Expand Down Expand Up @@ -393,51 +393,51 @@

Map.propTypes = {
google: _propTypes2.default.object,
zoom: _propTypes2.default.number,
centerAroundCurrentLocation: _propTypes2.default.bool,
center: _propTypes2.default.object,
initialCenter: _propTypes2.default.object,
className: _propTypes2.default.string,
style: _propTypes2.default.object,
containerStyle: _propTypes2.default.object,
visible: _propTypes2.default.bool,
mapType: _propTypes2.default.string,
bounds: _propTypes2.default.object,
backgroundColor: _propTypes2.default.string,
center: _propTypes2.default.object,
mapTypeId: _propTypes2.default.string,
maxZoom: _propTypes2.default.number,
minZoom: _propTypes2.default.number,
clickableIcons: _propTypes2.default.bool,
disableDefaultUI: _propTypes2.default.bool,
disableDoubleClickZoom: _propTypes2.default.bool,
draggable: _propTypes2.default.bool,
draggableCursor: _propTypes2.default.string,
draggingCursor: _propTypes2.default.string,
fullscreenControl: _propTypes2.default.bool,
fullscreenControlOptions: _propTypes2.default.object,
gestureHandling: _propTypes2.default.string,
heading: _propTypes2.default.number,
keyboardShortcuts: _propTypes2.default.bool,
zoomControl: _propTypes2.default.bool,
zoomControlOptions: _propTypes2.default.object,
mapTypeControl: _propTypes2.default.bool,
mapTypeControlOptions: _propTypes2.default.object,
mapTypeId: _propTypes2.default.string,
maxZoom: _propTypes2.default.number,
minZoom: _propTypes2.default.number,
noClear: _propTypes2.default.bool,
overviewMapControl: _propTypes2.default.bool,
overviewMapControlOptions: _propTypes2.default.object,
panControl: _propTypes2.default.bool,
panControlOptions: _propTypes2.default.object,
rotateControl: _propTypes2.default.bool,
rotateControlOptions: _propTypes2.default.object,
scaleControl: _propTypes2.default.bool,
scaleControlOptions: _propTypes2.default.object,
scrollwheel: _propTypes2.default.bool,
signInControl: _propTypes2.default.bool,
streetView: _propTypes2.default.object,
streetViewControl: _propTypes2.default.bool,
streetViewControlOptions: _propTypes2.default.object,
panControl: _propTypes2.default.bool,
panControlOptions: _propTypes2.default.object,
rotateControl: _propTypes2.default.bool,
rotateControlOptions: _propTypes2.default.object,
fullscreenControl: _propTypes2.default.bool,
fullscreenControlOptions: _propTypes2.default.object,
scrollwheel: _propTypes2.default.bool,
draggable: _propTypes2.default.bool,
draggableCursor: _propTypes2.default.string,
draggingCursor: _propTypes2.default.string,
keyboardShortcuts: _propTypes2.default.bool,
disableDoubleClickZoom: _propTypes2.default.bool,
noClear: _propTypes2.default.bool,
styles: _propTypes2.default.array,
tilt: _propTypes2.default.number,
zoom: _propTypes2.default.number,
zoomControl: _propTypes2.default.bool,
zoomControlOptions: _propTypes2.default.object
gestureHandling: _propTypes2.default.string,
bounds: _propTypes2.default.object,
backgroundColor: _propTypes2.default.string,
heading: _propTypes2.default.number,
overviewMapControl: _propTypes2.default.bool,
overviewMapControlOptions: _propTypes2.default.object,
signInControl: _propTypes2.default.bool,
tilt: _propTypes2.default.number
};

evtNames.forEach(function (e) {
Expand Down
106 changes: 53 additions & 53 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,41 +143,41 @@ export class Map extends React.Component {
{
mapTypeId: this.props.mapTypeId || mapTypeIds[mapTypeFromProps],
center: center,
backgroundColor: this.props.backgroundColor,
zoom: this.props.zoom,
maxZoom: this.props.maxZoom,
minZoom: this.props.minZoom,
clickableIcons: !!this.props.clickableIcons,
disableDefaultUI: this.props.disableDefaultUI,
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
draggable: this.props.draggable,
draggableCursor: this.props.draggableCursor,
draggingCursor: this.props.draggingCursor,
fullscreenControl: this.props.fullscreenControl,
fullscreenControlOptions: this.props.fullscreenControlOptions,
gestureHandling: this.props.gestureHandling,
heading: this.props.heading,
keyboardShortcuts: this.props.keyboardShortcuts,
zoomControl: this.props.zoomControl,
zoomControlOptions: this.props.zoomControlOptions,
mapTypeControl: this.props.mapTypeControl,
mapTypeControlOptions: this.props.mapTypeControlOptions,
maxZoom: this.props.maxZoom,
minZoom: this.props.minZoom,
noClear: this.props.noClear,
overviewMapControl: this.props.overviewMapControl,
overviewMapControlOptions: this.props.overviewMapControlOptions,
panControl: this.props.panControl,
panControlOptions: this.props.panControlOptions,
rotateControl: this.props.rotateControl,
rotateControlOptions: this.props.rotateControlOptions,
scaleControl: this.props.scaleControl,
scaleControlOptions: this.props.scaleControlOptions,
scrollwheel: this.props.scrollwheel,
signInControl: this.props.signInControl,
streetView: this.props.streetView,
streetViewControl: this.props.streetViewControl,
streetViewControlOptions: this.props.streetViewControlOptions,
panControl: this.props.panControl,
panControlOptions: this.props.panControlOptions,
rotateControl: this.props.rotateControl,
rotateControlOptions: this.props.rotateControlOptions,
fullscreenControl: this.props.fullscreenControl,
fullscreenControlOptions: this.props.fullscreenControlOptions,
scrollwheel: this.props.scrollwheel,
draggable: this.props.draggable,
draggableCursor: this.props.draggableCursor,
draggingCursor: this.props.draggingCursor,
keyboardShortcuts: this.props.keyboardShortcuts,
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
noClear: this.props.noClear,
styles: this.props.styles,
tilt: this.props.tilt,
zoom: this.props.zoom,
zoomControl: this.props.zoomControl,
zoomControlOptions: this.props.zoomControlOptions
gestureHandling: this.props.gestureHandling,
backgroundColor: this.props.backgroundColor,
heading: this.props.heading,
overviewMapControl: this.props.overviewMapControl,
overviewMapControlOptions: this.props.overviewMapControlOptions,
signInControl: this.props.signInControl,
tilt: this.props.tilt
}
);

Expand Down Expand Up @@ -280,51 +280,51 @@ export class Map extends React.Component {

Map.propTypes = {
google: PropTypes.object,
zoom: PropTypes.number,
centerAroundCurrentLocation: PropTypes.bool,
center: PropTypes.object,
initialCenter: PropTypes.object,
className: PropTypes.string,
style: PropTypes.object,
containerStyle: PropTypes.object,
visible: PropTypes.bool,
mapType: PropTypes.string,
bounds: PropTypes.object,
backgroundColor: PropTypes.string,
center: PropTypes.object,
mapTypeId: PropTypes.string,
maxZoom: PropTypes.number,
minZoom: PropTypes.number,
clickableIcons: PropTypes.bool,
disableDefaultUI: PropTypes.bool,
disableDoubleClickZoom: PropTypes.bool,
draggable: PropTypes.bool,
draggableCursor: PropTypes.string,
draggingCursor: PropTypes.string,
fullscreenControl: PropTypes.bool,
fullscreenControlOptions: PropTypes.object,
gestureHandling: PropTypes.string,
heading: PropTypes.number,
keyboardShortcuts: PropTypes.bool,
zoomControl: PropTypes.bool,
zoomControlOptions: PropTypes.object,
mapTypeControl: PropTypes.bool,
mapTypeControlOptions: PropTypes.object,
mapTypeId: PropTypes.string,
maxZoom: PropTypes.number,
minZoom: PropTypes.number,
noClear: PropTypes.bool,
overviewMapControl: PropTypes.bool,
overviewMapControlOptions: PropTypes.object,
panControl: PropTypes.bool,
panControlOptions: PropTypes.object,
rotateControl: PropTypes.bool,
rotateControlOptions: PropTypes.object,
scaleControl: PropTypes.bool,
scaleControlOptions: PropTypes.object,
scrollwheel: PropTypes.bool,
signInControl: PropTypes.bool,
streetView: PropTypes.object,
streetViewControl: PropTypes.bool,
streetViewControlOptions: PropTypes.object,
panControl: PropTypes.bool,
panControlOptions: PropTypes.object,
rotateControl: PropTypes.bool,
rotateControlOptions: PropTypes.object,
fullscreenControl: PropTypes.bool,
fullscreenControlOptions: PropTypes.object,
scrollwheel: PropTypes.bool,
draggable: PropTypes.bool,
draggableCursor: PropTypes.string,
draggingCursor: PropTypes.string,
keyboardShortcuts: PropTypes.bool,
disableDoubleClickZoom: PropTypes.bool,
noClear: PropTypes.bool,
styles: PropTypes.array,
tilt: PropTypes.number,
zoom: PropTypes.number,
zoomControl: PropTypes.bool,
zoomControlOptions: PropTypes.object
gestureHandling: PropTypes.string,
bounds: PropTypes.object,
backgroundColor: PropTypes.string,
heading: PropTypes.number,
overviewMapControl: PropTypes.bool,
overviewMapControlOptions: PropTypes.object,
signInControl: PropTypes.bool,
tilt: PropTypes.number
};

evtNames.forEach(e => (Map.propTypes[camelize(e)] = PropTypes.func));
Expand Down

0 comments on commit f1e1200

Please sign in to comment.