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