Loading package.json +1 −1 Original line number Diff line number Diff line { "name": "@fawmi/vue-google-maps", "description": "Google Map components for Vue.js 3", "version": "0.7.14", "version": "0.8.4", "private": false, "main": "src/main.js", "keywords": [ Loading src/components/autocomplete.vue 0 → 100644 +0 −0 Empty file added. src/components/marker.vue +6 −4 Original line number Diff line number Diff line Loading @@ -112,13 +112,15 @@ export default buildComponent({ }, afterCreate(inst) { events.forEach((event)=> { inst.addListener(event, ()=> { this.$emit(event) }); }) if (this.$clusterPromise) { this.$clusterPromise.then((co) => { co.addMarker(inst) inst.addListener('click', ()=> { this.$emit('click') }); this.$clusterObject = co co.addMarker(inst) }) } }, Loading src/main.js +3 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import Rectangle from './components/rectangle' import Marker from './components/marker.vue' import GMapCluster from './components/cluster.vue' import InfoWindow from './components/infoWindow.vue' import GMapAutocomplete from './components/autocomplete.vue' import Map from './components/map.vue' import MapElementMixin from './components/mapElementMixin' Loading @@ -25,6 +26,7 @@ export { GMapCluster, Rectangle, InfoWindow, GMapAutocomplete, Map, MapElementMixin, buildComponent, Loading Loading @@ -69,6 +71,7 @@ export default function install(Vue, options) { Vue.component('GMapPolygon', Polygon) Vue.component('GMapCircle', Circle) Vue.component('GMapRectangle', Rectangle) Vue.component('GMapAutocomplete ', GMapAutocomplete ) } } Loading types/index.d.ts 0 → 100644 +15 −0 Original line number Diff line number Diff line /** * Sums up two numbers. * * @param {number} a The first number to add. * @param {number} b The second number to add. * @returns {number} The resulting sum of the two numbers. */ export declare function add(a: number, b: number): number /** * Sums up a list of numbers. * * @param {number[]} numbers An array of numbers to add. * @returns {number} The resulting sum of all the numbers. */ export declare function add(numbers: number[]): number Loading
package.json +1 −1 Original line number Diff line number Diff line { "name": "@fawmi/vue-google-maps", "description": "Google Map components for Vue.js 3", "version": "0.7.14", "version": "0.8.4", "private": false, "main": "src/main.js", "keywords": [ Loading
src/components/marker.vue +6 −4 Original line number Diff line number Diff line Loading @@ -112,13 +112,15 @@ export default buildComponent({ }, afterCreate(inst) { events.forEach((event)=> { inst.addListener(event, ()=> { this.$emit(event) }); }) if (this.$clusterPromise) { this.$clusterPromise.then((co) => { co.addMarker(inst) inst.addListener('click', ()=> { this.$emit('click') }); this.$clusterObject = co co.addMarker(inst) }) } }, Loading
src/main.js +3 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import Rectangle from './components/rectangle' import Marker from './components/marker.vue' import GMapCluster from './components/cluster.vue' import InfoWindow from './components/infoWindow.vue' import GMapAutocomplete from './components/autocomplete.vue' import Map from './components/map.vue' import MapElementMixin from './components/mapElementMixin' Loading @@ -25,6 +26,7 @@ export { GMapCluster, Rectangle, InfoWindow, GMapAutocomplete, Map, MapElementMixin, buildComponent, Loading Loading @@ -69,6 +71,7 @@ export default function install(Vue, options) { Vue.component('GMapPolygon', Polygon) Vue.component('GMapCircle', Circle) Vue.component('GMapRectangle', Rectangle) Vue.component('GMapAutocomplete ', GMapAutocomplete ) } } Loading
types/index.d.ts 0 → 100644 +15 −0 Original line number Diff line number Diff line /** * Sums up two numbers. * * @param {number} a The first number to add. * @param {number} b The second number to add. * @returns {number} The resulting sum of the two numbers. */ export declare function add(a: number, b: number): number /** * Sums up a list of numbers. * * @param {number[]} numbers An array of numbers to add. * @returns {number} The resulting sum of all the numbers. */ export declare function add(numbers: number[]): number