File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export class SVG extends SVGBase {
96
96
return paintedWidth ;
97
97
}
98
98
99
- return 0 ;
99
+ return svg . getDocumentWidth ( ) ;
100
100
}
101
101
getHeight ( availableWidth : number , availableHeight : number ) {
102
102
if ( this . height ) {
@@ -136,7 +136,7 @@ export class SVG extends SVGBase {
136
136
return paintedHeight ;
137
137
}
138
138
139
- return 0 ;
139
+ return svg . getDocumentHeight ( ) ;
140
140
}
141
141
drawOnCanvas ( canvas : Canvas , parent : CanvasView ) {
142
142
const svg = this . _svg ;
@@ -148,9 +148,9 @@ export class SVG extends SVGBase {
148
148
let options = this . renderOptions ;
149
149
const width = this . getWidth ( availableWidth , availableHeight ) ;
150
150
const height = this . getHeight ( availableWidth , availableHeight ) ;
151
- const box = svg . getDocumentViewBox ( ) ;
152
- const nativeWidth = box ? box . width ( ) : width ;
153
- const nativeHeight = box ? box . height ( ) : height ;
151
+ // const box = svg.getDocumentViewBox();
152
+ // const nativeWidth = box ? box.width() : width;
153
+ // const nativeHeight = box ? box.height() : height;
154
154
155
155
// const nativeAspectRatio = nativeWidth / nativeHeight;
156
156
// const boundedAspectRatio = width / height;
You can’t perform that action at this time.
0 commit comments