File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1010### Changed
1111### Added
1212### Fixed
13+ * Fixed accidental depenency on ambient DOM types
1314
1415
15163.0.0
Original file line number Diff line number Diff line change @@ -395,6 +395,16 @@ export class JPEGStream extends Readable {}
395395/** This class must not be constructed directly; use `canvas.createPDFStream()`. */
396396export class PDFStream extends Readable { }
397397
398+ // TODO: this is wrong. See matrixTransform in lib/DOMMatrix.js
399+ type DOMMatrixInit = DOMMatrix | string | number [ ] ;
400+
401+ interface DOMPointInit {
402+ w ?: number ;
403+ x ?: number ;
404+ y ?: number ;
405+ z ?: number ;
406+ }
407+
398408export class DOMPoint {
399409 w : number ;
400410 x : number ;
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ class DOMPoint {
1919 }
2020
2121 matrixTransform ( init ) {
22+ // TODO: this next line is wrong. matrixTransform is supposed to only take
23+ // an object with the DOMMatrix properties called DOMMatrixInit
2224 const m = init instanceof DOMMatrix ? init : new DOMMatrix ( init )
2325 return m . transformPoint ( this )
2426 }
You can’t perform that action at this time.
0 commit comments