Skip to content

Commit 45a0aa4

Browse files
committed
Exporting convertToScreenPoint() and adding an optional viewport argument to function.
1 parent 55e7401 commit 45a0aa4

File tree

6 files changed

+78
-105
lines changed

6 files changed

+78
-105
lines changed

dist/pdf-annotate.js

Lines changed: 62 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pdf-annotate.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pdf-annotate.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pdf-annotate.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/PDFJSAnnotate.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ import render from './render';
44
import UI from './UI';
55
import config from './config';
66
import uuid from './utils/uuid';
7-
import { findAnnotationAtPoint, findSVGContainer } from './UI/utils';
7+
import {
8+
findAnnotationAtPoint,
9+
findSVGContainer,
10+
convertToScreenPoint
11+
} from './UI/utils';
812

913
export default {
1014
findAnnotationAtPoint,
1115
findSVGContainer,
16+
convertToScreenPoint,
1217

1318
/**
1419
* Abstract class that needs to be defined so PDFJSAnnotate

0 commit comments

Comments
 (0)