UNPKG
@cantoo/pdf-lib
Version:
latest (2.5.3)
next (2.2.3-0)
2.5.3
2.5.2
2.5.1
2.5.0
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.2
2.3.1
2.3.0
2.2.4
2.2.3
2.2.3-0
2.2.2
2.2.1
2.2.0
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.21.1
1.21.0
1.20.4
1.20.3
1.20.2
1.20.1
1.20.0
1.19.19
1.19.18
1.19.17
1.19.16
1.19.15
1.19.14
1.19.13
1.19.13-0
1.19.12
1.19.11
1.19.10
1.19.9
1.19.8
1.19.7
1.19.6
1.19.5
1.19.4
1.19.3
1.19.2
1.19.1
1.19.0
1.18.0
1.17.24
1.17.23
1.17.22
1.17.21
1.17.20
1.17.19
1.17.18
1.17.17
1.17.16
1.17.15
1.17.14
1.17.13
1.17.12
1.17.11
1.17.10
1.17.9
1.17.8
1.17.7
1.17.6
1.17.5
1.17.4
1.17.3
1.17.2
1.17.1
1.17.0
1.16.25
1.16.24
1.16.23
1.16.22
1.16.21
1.16.20
1.16.18
1.16.17
1.16.15
1.16.14
1.16.13
1.16.12
1.16.11
1.16.10
1.16.9
1.16.8
1.16.7
1.16.6
1.16.5
1.16.1
Create and modify PDF files with JavaScript
pdf-lib.js.org
cantoo-scribe/pdf-lib
@cantoo/pdf-lib
/
cjs
/
utils
/
elements
/
GraphElement.js
11 lines
•
320 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
const
maths_1 =
require
(
"../maths"
);
class
GraphElement
{
distance
(
P
) {
const
H =
this
.
orthoProjection
(P);
return
(
0
, maths_1.
distance
)(H, P); } }
exports
.
default
=
GraphElement
;
//# sourceMappingURL=GraphElement.js.map