From 410b37a47b15bc07d00b08ab39996bafdc142829 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 1 Sep 2022 21:01:56 +0200 Subject: [PATCH] Fix #743 virtual tour: invalid node markers type --- types/plugins/virtual-tour/index.d.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/types/plugins/virtual-tour/index.d.ts b/types/plugins/virtual-tour/index.d.ts index 02f96b4e1..cae2678ed 100644 --- a/types/plugins/virtual-tour/index.d.ts +++ b/types/plugins/virtual-tour/index.d.ts @@ -1,6 +1,6 @@ import { Event } from 'uevent'; import { AbstractPlugin, Position, Viewer, ViewerOptions } from '../..'; -import { Marker, MarkerProperties } from '../markers'; +import { MarkerProperties } from '../markers'; /** * @summary Definition of a single node in the tour @@ -15,7 +15,7 @@ export type VirtualTourNode = { name?: string; caption?: string; description?: string; - markers?: Marker[]; + markers?: MarkerProperties[]; }; /** @@ -25,7 +25,7 @@ export type VirtualTourNodeLink = { nodeId: string; name?: string; position?: [number, number, number?]; - markerStyle?: Omit; + markerStyle?: VirtualTourMarkerStyle; arrowStyle?: VirtualTourArrowStyle; }; @@ -43,6 +43,11 @@ export type VirtualTourArrowStyle = { scale?: [number, number]; }; +/** + * @summary Style of the marker in markers mode + */ +export type VirtualTourMarkerStyle = Omit; + /** * @summary Data associated to the "node-changed" event */ @@ -66,7 +71,7 @@ export type VirtualTourPluginPluginOptions = { preload?: boolean | ((node: VirtualTourNode, link: VirtualTourNodeLink) => boolean); rotateSpeed?: boolean | string | number; transition?: boolean | number; - markerStyle?: MarkerProperties; + markerStyle?: VirtualTourMarkerStyle; arrowStyle?: VirtualTourArrowStyle; markerLatOffset?: number; arrowPosition?: 'top' | 'bottom';