Commit 7ad86404 authored by Fawad Mirzad's avatar Fawad Mirzad
Browse files

Rename function to improve readability

parent af128934
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 −1
Original line number Diff line number Diff line
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: {
+2 −2
Original line number Diff line number Diff line
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,
+2 −2
Original line number Diff line number Diff line
@@ -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',
Loading