Skip to content

Commit 01ca3b0

Browse files
chore: wip
1 parent ba57a22 commit 01ca3b0

File tree

24 files changed

+846
-56
lines changed

24 files changed

+846
-56
lines changed

packages/nuxt/src/runtime/components/VectorMap.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
import type { MapData, MapOptions } from 'ts-maps'
33
import type { ComputedRef, PropType, Ref } from 'vue'
44
import { VectorMap as TsVectorMap } from 'ts-maps'
5+
import brasilMap from 'ts-maps/brasil'
56
import canadaMap from 'ts-maps/canada'
67
import italyMap from 'ts-maps/italy'
8+
import russiaMap from 'ts-maps/russia'
79
import spainMap from 'ts-maps/spain'
810
import usaAeaMap from 'ts-maps/us-aea-en'
911
import usaLccMap from 'ts-maps/us-lcc-en'
1012
import usaMercMap from 'ts-maps/us-merc-en'
1113
import usaMillMap from 'ts-maps/us-mill-en'
12-
import brasilMap from 'ts-maps/brasil'
13-
import russiaMap from 'ts-maps/russia'
1414
import worldMap from 'ts-maps/world'
1515
import worldMercMap from 'ts-maps/world-merc'
1616
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
1717
1818
// Map name type
1919
type MapName = 'world'
20-
| 'world-merc'
21-
| 'us-merc'
22-
| 'us-mill'
23-
| 'us-lcc'
24-
| 'us-aea'
25-
| 'spain'
26-
| 'italy'
27-
| 'canada'
28-
| 'brasil'
20+
| 'world-merc'
21+
| 'us-merc'
22+
| 'us-mill'
23+
| 'us-lcc'
24+
| 'us-aea'
25+
| 'spain'
26+
| 'italy'
27+
| 'canada'
28+
| 'brasil'
2929
| 'russia'
3030
3131
const props = defineProps({

packages/nuxt/src/runtime/components/VectorMaps/Spain.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import type { MapOptions } from 'ts-maps'
3-
import { computed, watch } from 'vue'
3+
import { computed } from 'vue'
44
import VectorMap from '../VectorMap.vue'
55
66
// Props interface

packages/react/src/components/Brasil.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import brasilMap from 'ts-maps/maps/brasil'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function Brasil({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

packages/react/src/components/Canada.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import canadaMap from 'ts-maps/maps/canada'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function Canada({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

packages/react/src/components/Iraq.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import iraqMap from 'ts-maps/maps/iraq'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function Iraq({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

packages/react/src/components/Italy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import italyMap from 'ts-maps/maps/italy'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function Italy({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

packages/react/src/components/Russia.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import russiaMap from 'ts-maps/maps/russia'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function Russia({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

packages/react/src/components/Spain.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import spainMap from 'ts-maps/maps/spain'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function Spain({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

packages/react/src/components/UnitedStates.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import usMap from 'ts-maps/maps/us-aea-en'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function UnitedStates({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

packages/react/src/components/WorldMap.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MapOptions } from 'ts-maps'
2-
import { useEffect, useRef, useMemo } from 'react'
2+
import { useEffect, useMemo, useRef } from 'react'
33
import { VectorMap as TSVectorMap } from 'ts-maps'
44
import worldMap from 'ts-maps/maps/world'
55
import './map-components.css'
@@ -124,7 +124,7 @@ export function WorldMap({
124124
if (onMarkerTooltipShow) {
125125
mapRef.current.off('markerTooltipShow', onMarkerTooltipShow)
126126
}
127-
127+
128128
mapRef.current = null
129129
}
130130
}

0 commit comments

Comments
 (0)