From 14515f8344f66d1eb2a58fc1175ff59451128326 Mon Sep 17 00:00:00 2001 From: MokujinMap Date: Mon, 15 Jul 2024 18:15:42 +0300 Subject: [PATCH] fix vue type and add size variables --- src/markers/MMapDefaultMarker/index.ts | 15 +++++++++++---- src/markers/MMapDefaultMarker/vue/index.ts | 9 +++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/markers/MMapDefaultMarker/index.ts b/src/markers/MMapDefaultMarker/index.ts index 78a4c27..698a9fd 100644 --- a/src/markers/MMapDefaultMarker/index.ts +++ b/src/markers/MMapDefaultMarker/index.ts @@ -32,6 +32,13 @@ const HINT_SUBTITLE_CLASS = 'mappable--hint-subtitle'; const HINT_STABLE = 'mappable--hint__stable'; const HINT_HOVERED = 'mappable--hint__hovered'; +const NORMAL_SIZE_MARKER_HEIGHT = 59; +const NORMAL_SIZE_MARKER_WIDTH = 44; + +const SMALL_SIZE_MARKER_WIDTH = 24; + +const MICRO_SIZE_MARKER_WIDTH = 14; + const DISTANCE_BETWEEN_POPUP_AND_MARKER = 8; export type ThemesColor = {day: string; night: string}; @@ -302,19 +309,19 @@ export class MMapDefaultMarker extends mappable.MMapComplexEntity = { +type VuefyMarkerPopup = Omit; + +export const MMapDefaultMarkerVuefyOptions: CustomVuefyOptions< + MMapDefaultMarker, + Omit & {popup: VuefyMarkerPopup} +> = { props: { coordinates: {type: Object, required: true}, source: String, @@ -29,7 +34,7 @@ export const MMapDefaultMarkerVuefyOptions: CustomVuefyOptions} + popup: {type: Object as TVue.PropType} } };