@meistrari/tela-build 1.23.0 → 1.24.0

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.
@@ -22,6 +22,8 @@ const props = withDefaults(
22
22
  highlightPage?: number | null
23
23
  /** When true, uses exact matching instead of fuzzy word-based matching for highlights. */
24
24
  highlightExact?: boolean
25
+ /** Override the initial zoom scale. Defaults to 1 for minimal, 0.75 for default. */
26
+ initialScale?: number
25
27
  }>(),
26
28
  {
27
29
  variant: 'default',
@@ -29,6 +31,7 @@ const props = withDefaults(
29
31
  highlightText: undefined,
30
32
  highlightPage: undefined,
31
33
  highlightExact: false,
34
+ initialScale: undefined,
32
35
  },
33
36
  )
34
37
 
@@ -79,7 +82,7 @@ const currentDocumentPage = ref(1)
79
82
  const isPageInputFocused = ref(false)
80
83
  const isProgrammaticScroll = ref(false)
81
84
 
82
- const scale = ref(props.variant === 'minimal' ? 1 : 0.75)
85
+ const scale = ref(props.initialScale ?? (props.variant === 'minimal' ? 1 : 0.75))
83
86
  const scrollContainerRef = ref<HTMLElement | null>(null)
84
87
  const isDragging = ref(false)
85
88
  const dragEnabled = ref(false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-build",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "app.config.ts",