jit-viewer 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -51,6 +51,10 @@ declare type __VLS_Prettify_4<T> = {
51
51
  [K in keyof T]: T[K];
52
52
  } & {};
53
53
 
54
+ declare type __VLS_Prettify_5<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
57
+
54
58
  declare function __VLS_template(): {
55
59
  "top-left"?(_: {}): any;
56
60
  "top-center"?(_: {}): any;
@@ -174,6 +178,12 @@ declare type __VLS_WithDefaults_4<P, D> = {
174
178
  }> : P[K];
175
179
  };
176
180
 
181
+ declare type __VLS_WithDefaults_5<P, D> = {
182
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
183
+ default: D[K];
184
+ }> : P[K];
185
+ };
186
+
177
187
  declare type __VLS_WithTemplateSlots<T, S> = T & {
178
188
  new (): {
179
189
  $slots: S;
@@ -564,12 +574,12 @@ declare function gotoPage(page: number): {
564
574
  total: number;
565
575
  };
566
576
 
567
- export declare const HtmlRender: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_10<Props_10>, {
577
+ export declare const HtmlRender: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_10<Props_10>, {
568
578
  zoom: number;
569
579
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
570
580
  error: (error: Error) => void;
571
581
  load: () => void;
572
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_10<Props_10>, {
582
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_10<Props_10>, {
573
583
  zoom: number;
574
584
  }>>> & Readonly<{
575
585
  onError?: ((error: Error) => any) | undefined;
@@ -618,7 +628,7 @@ declare interface OfdPageInfo {
618
628
  total: number;
619
629
  }
620
630
 
621
- export declare const OfdRender: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_9<Props_9>, {
631
+ export declare const OfdRender: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_9<Props_9>, {
622
632
  zoom: number;
623
633
  }>>, {
624
634
  getPageInfo: typeof getPageInfo;
@@ -630,7 +640,7 @@ reload: typeof loadFile;
630
640
  error: (error: Error) => void;
631
641
  load: () => void;
632
642
  pageChange: (pageInfo: OfdPageInfo) => void;
633
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_9<Props_9>, {
643
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_9<Props_9>, {
634
644
  zoom: number;
635
645
  }>>> & Readonly<{
636
646
  onError?: ((error: Error) => any) | undefined;
@@ -652,13 +662,22 @@ declare type PageInfo = {
652
662
  total: number;
653
663
  };
654
664
 
655
- export declare const PdfRender: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<Props_5>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
665
+ export declare const PdfRender: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_5<Props_5>, {
666
+ zoom: number;
667
+ pdfRender: string;
668
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
656
669
  error: (error: Error) => void;
657
670
  load: () => void;
658
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<Props_5>>> & Readonly<{
671
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_5<Props_5>, {
672
+ zoom: number;
673
+ pdfRender: string;
674
+ }>>> & Readonly<{
659
675
  onError?: ((error: Error) => any) | undefined;
660
676
  onLoad?: (() => any) | undefined;
661
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
677
+ }>, {
678
+ zoom: number;
679
+ pdfRender: "native" | "inset";
680
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
662
681
 
663
682
  declare interface Plugin_2 {
664
683
  name: string;
@@ -725,6 +744,7 @@ declare interface Props_5 {
725
744
  zoom?: number;
726
745
  proxyUrl?: string;
727
746
  requestAdapter?: RequestAdapter;
747
+ pdfRender?: 'native' | 'inset';
728
748
  }
729
749
 
730
750
  declare interface Props_6 {
@@ -1278,6 +1298,7 @@ export declare interface ViewerOptions {
1278
1298
  height?: string | number;
1279
1299
  className?: string;
1280
1300
  style?: Record<string, string>;
1301
+ pdfRender?: 'native' | 'inset';
1281
1302
  proxyUrl?: string;
1282
1303
  requestAdapter?: RequestAdapter;
1283
1304
  onReady?: () => void;