aboutsummaryrefslogtreecommitdiffstats
path: root/src/Point.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Point.js')
-rw-r--r--src/Point.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Point.js b/src/Point.js
index ff18473..5880168 100644
--- a/src/Point.js
+++ b/src/Point.js
@@ -1,5 +1,4 @@
import parser from './parser.js'
-import Element from './Element.js'
export default class Point {
// Initialize
@@ -44,9 +43,11 @@ export default class Point {
}
}
-extend(Element, {
- // Get point
- point: function (x, y) {
- return new Point(x, y).transform(this.screenCTM().inverse())
+Point.constructors = {
+ Element: {
+ // Get point
+ point: function (x, y) {
+ return new Point(x, y).transform(this.screenCTM().inverse())
+ }
}
-})
+}