diff --git a/doric-js/index.d.ts b/doric-js/index.d.ts index b7d72cde..74f3d46f 100644 --- a/doric-js/index.d.ts +++ b/doric-js/index.d.ts @@ -1105,6 +1105,11 @@ declare module "doric" { type: "zoomOut"; minScale: number; maxScale: number; + } | { + type: "gallery"; + itemWidth: number; + minScale: number; + minAlpha: number; }; slidePosition?: number; /** diff --git a/doric-js/lib/src/widget/slider.d.ts b/doric-js/lib/src/widget/slider.d.ts index f43c8d2f..ab762d0b 100644 --- a/doric-js/lib/src/widget/slider.d.ts +++ b/doric-js/lib/src/widget/slider.d.ts @@ -32,6 +32,11 @@ export declare class Slider extends Superview { type: "zoomOut"; minScale: number; maxScale: number; + } | { + type: "gallery"; + itemWidth: number; + minScale: number; + minAlpha: number; }; slidePosition?: number; /** diff --git a/doric-js/src/widget/slider.ts b/doric-js/src/widget/slider.ts index 16e7f122..f8199508 100644 --- a/doric-js/src/widget/slider.ts +++ b/doric-js/src/widget/slider.ts @@ -69,7 +69,7 @@ export class Slider extends Superview { * ZoomOut is currently supported */ @Property - slideStyle?: "zoomOut" | { type: "zoomOut", minScale: number, maxScale: number } + slideStyle?: "zoomOut" | { type: "zoomOut", minScale: number, maxScale: number } | { type: "gallery", itemWidth: number, minScale: number, minAlpha: number } @InconsistProperty slidePosition?: number