Rename function to improve readability
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { bindProps, getPropsValues } from '../utils/bindProps.js'
|
import { bindProps, getPropsValues } from '../utils/bindProps.js'
|
||||||
import downArrowSimulator from '../utils/simulateArrowDown.js'
|
import downArrowSimulator from '../utils/simulateArrowDown.js'
|
||||||
import { mappedPropsToVueProps } from './mapElementFactory'
|
import { mappedPropsToVueProps } from './build-component'
|
||||||
|
|
||||||
const mappedProps = {
|
const mappedProps = {
|
||||||
bounds: {
|
bounds: {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { bindProps, getPropsValues } from '../utils/bindProps.js'
|
import { bindProps, getPropsValues } from '../utils/bindProps.js'
|
||||||
import downArrowSimulator from '../utils/simulateArrowDown.js'
|
import downArrowSimulator from '../utils/simulateArrowDown.js'
|
||||||
import { mappedPropsToVueProps } from './mapElementFactory'
|
import { mappedPropsToVueProps } from './build-component'
|
||||||
|
|
||||||
const mappedProps = {
|
const mappedProps = {
|
||||||
bounds: {
|
bounds: {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import mapElementFactory from './mapElementFactory'
|
import buildComponent from './build-component'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
center: {
|
center: {
|
||||||
@@ -38,7 +38,7 @@ const events = [
|
|||||||
'rightclick',
|
'rightclick',
|
||||||
]
|
]
|
||||||
|
|
||||||
export default mapElementFactory({
|
export default buildComponent({
|
||||||
mappedProps: props,
|
mappedProps: props,
|
||||||
name: 'circle',
|
name: 'circle',
|
||||||
ctr: () => google.maps.Circle,
|
ctr: () => google.maps.Circle,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import MarkerClusterer from 'marker-clusterer-plus'
|
import MarkerClusterer from 'marker-clusterer-plus'
|
||||||
import mapElementFactory from './mapElementFactory.js'
|
import buildComponent from './build-component.js'
|
||||||
const props = {
|
const props = {
|
||||||
maxZoom: {
|
maxZoom: {
|
||||||
type: Number,
|
type: Number,
|
||||||
@@ -68,7 +68,7 @@ const events = [
|
|||||||
'mouseout',
|
'mouseout',
|
||||||
]
|
]
|
||||||
|
|
||||||
export default mapElementFactory({
|
export default buildComponent({
|
||||||
mappedProps: props,
|
mappedProps: props,
|
||||||
events,
|
events,
|
||||||
name: 'cluster',
|
name: 'cluster',
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import mapElementFactory from './mapElementFactory.js'
|
import buildComponent from './build-component.js'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
options: {
|
options: {
|
||||||
@@ -29,7 +29,7 @@ const props = {
|
|||||||
|
|
||||||
const events = ['domready', 'closeclick', 'content_changed']
|
const events = ['domready', 'closeclick', 'content_changed']
|
||||||
|
|
||||||
export default mapElementFactory({
|
export default buildComponent({
|
||||||
mappedProps: props,
|
mappedProps: props,
|
||||||
events,
|
events,
|
||||||
name: 'infoWindow',
|
name: 'infoWindow',
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import mountableMixin from '../utils/mountableMixin.js'
|
|||||||
|
|
||||||
import TwoWayBindingWrapper from '../utils/TwoWayBindingWrapper.js'
|
import TwoWayBindingWrapper from '../utils/TwoWayBindingWrapper.js'
|
||||||
import WatchPrimitiveProperties from '../utils/WatchPrimitiveProperties.js'
|
import WatchPrimitiveProperties from '../utils/WatchPrimitiveProperties.js'
|
||||||
import { mappedPropsToVueProps } from './mapElementFactory.js'
|
import { mappedPropsToVueProps } from './build-component.js'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
center: {
|
center: {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import mountableMixin from '../utils/mountableMixin.js'
|
|||||||
|
|
||||||
import TwoWayBindingWrapper from '../utils/TwoWayBindingWrapper.js'
|
import TwoWayBindingWrapper from '../utils/TwoWayBindingWrapper.js'
|
||||||
import WatchPrimitiveProperties from '../utils/WatchPrimitiveProperties.js'
|
import WatchPrimitiveProperties from '../utils/WatchPrimitiveProperties.js'
|
||||||
import { mappedPropsToVueProps } from './mapElementFactory.js'
|
import { mappedPropsToVueProps } from './build-component.js'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
center: {
|
center: {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import mapElementFactory from './mapElementFactory.js'
|
import buildComponent from './build-component.js'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
animation: {
|
animation: {
|
||||||
@@ -83,7 +83,7 @@ const events = [
|
|||||||
* reasons. Otherwise we should use a cluster-marker mixin or
|
* reasons. Otherwise we should use a cluster-marker mixin or
|
||||||
* subclass.
|
* subclass.
|
||||||
*/
|
*/
|
||||||
export default mapElementFactory({
|
export default buildComponent({
|
||||||
mappedProps: props,
|
mappedProps: props,
|
||||||
events,
|
events,
|
||||||
name: 'marker',
|
name: 'marker',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import mapElementFactory from './mapElementFactory.js'
|
import buildComponent from './build-component.js'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
draggable: {
|
draggable: {
|
||||||
@@ -36,7 +36,7 @@ const events = [
|
|||||||
'rightclick',
|
'rightclick',
|
||||||
]
|
]
|
||||||
|
|
||||||
export default mapElementFactory({
|
export default buildComponent({
|
||||||
props: {
|
props: {
|
||||||
deepWatch: {
|
deepWatch: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import mapElementFactory from './mapElementFactory.js'
|
import buildComponent from './build-component.js'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
draggable: {
|
draggable: {
|
||||||
@@ -31,7 +31,7 @@ const events = [
|
|||||||
'rightclick',
|
'rightclick',
|
||||||
]
|
]
|
||||||
|
|
||||||
export default mapElementFactory({
|
export default buildComponent({
|
||||||
mappedProps: props,
|
mappedProps: props,
|
||||||
props: {
|
props: {
|
||||||
deepWatch: {
|
deepWatch: {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import mapElementFactory from './mapElementFactory.js'
|
import buildComponent from './build-component.js'
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
bounds: {
|
bounds: {
|
||||||
@@ -33,7 +33,7 @@ const events = [
|
|||||||
'rightclick',
|
'rightclick',
|
||||||
]
|
]
|
||||||
|
|
||||||
export default mapElementFactory({
|
export default buildComponent({
|
||||||
mappedProps: props,
|
mappedProps: props,
|
||||||
name: 'rectangle',
|
name: 'rectangle',
|
||||||
ctr: () => google.maps.Rectangle,
|
ctr: () => google.maps.Rectangle,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import Map from './components/map.vue'
|
|||||||
import Autocomplete from './components/autocomplete.vue'
|
import Autocomplete from './components/autocomplete.vue'
|
||||||
|
|
||||||
import MapElementMixin from './components/mapElementMixin'
|
import MapElementMixin from './components/mapElementMixin'
|
||||||
import MapElementFactory from './components/mapElementFactory'
|
import buildComponent from './components/build-component'
|
||||||
import MountableMixin from './utils/mountableMixin'
|
import MountableMixin from './utils/mountableMixin'
|
||||||
import {Env} from "./utils/env";
|
import {Env} from "./utils/env";
|
||||||
let GmapApi = null
|
let GmapApi = null
|
||||||
@@ -28,7 +28,7 @@ export {
|
|||||||
InfoWindow,
|
InfoWindow,
|
||||||
Map,
|
Map,
|
||||||
MapElementMixin,
|
MapElementMixin,
|
||||||
MapElementFactory,
|
buildComponent,
|
||||||
Autocomplete,
|
Autocomplete,
|
||||||
MountableMixin,
|
MountableMixin,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user