Skip to content

Commit cdf02aa

Browse files
authored
Merge pull request #180 from TobeTek/master
fix: correct spelling of 'highlight' in props and documentation
2 parents fbdaf44 + 9ef1312 commit cdf02aa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/guide/props.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ Default: `null`
116116
Highlight on the page the searched text or the searched array of text.
117117

118118
```vue
119-
<VuePDF :pdf="pdf" text-layer hightlight-text="javascript" />
119+
<VuePDF :pdf="pdf" text-layer highlight-text="javascript" />
120120
121-
<VuePDF :pdf="pdf" text-layer :hightlight-text="['javascript', 'trace-based']" />
121+
<VuePDF :pdf="pdf" text-layer :highlight-text="['javascript', 'trace-based']" />
122122
```
123123

124124
## highlight-options <badge type="tip" text="v1.9" vertical="middle" />
@@ -136,7 +136,7 @@ Default:
136136
Settings for how to find the [highlight-text](#highlight-text) on page's text.
137137

138138
```vue
139-
<VuePDF :pdf="pdf" text-layer hightlight-text="javascript" :highlight-options="{
139+
<VuePDF :pdf="pdf" text-layer highlight-text="javascript" :highlight-options="{
140140
completeWords: true,
141141
ignoreCase: false
142142
}"

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ features:
2929
details: Set a scale, width, height or fit the PDF page with parent width
3030
- icon: 🔆
3131
title: Highlight Text
32-
details: Search and hightlight text
32+
details: Search and highlight text
3333
- icon: ©️
3434
title: Watermark
3535
details: Watermark your pages to protect your content

packages/vue-pdf/src/components/layers/TextLayer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const props = defineProps<{
1515
viewport?: PageViewport;
1616
highlightText?: string | string[];
1717
highlightOptions?: HighlightOptions;
18-
hightlightPages?: number[];
18+
highlightPages?: number[];
1919
}>();
2020
2121
const emit = defineEmits<{
@@ -48,7 +48,7 @@ async function findAndHighlight(reset = false) {
4848
4949
if (
5050
props.highlightText &&
51-
(!props.hightlightPages || props.hightlightPages.includes(page!.pageNumber))
51+
(!props.highlightPages || props.highlightPages.includes(page!.pageNumber))
5252
) {
5353
const queries =
5454
typeof props.highlightText === "string"

0 commit comments

Comments
 (0)