Skip to content

Commit bf4cbd3

Browse files
committed
chore: cleanup
1 parent c44bcdc commit bf4cbd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ui-svg/index.android.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class SVG extends SVGBase {
9696
return paintedWidth;
9797
}
9898

99-
return 0;
99+
return svg.getDocumentWidth();
100100
}
101101
getHeight(availableWidth: number, availableHeight: number) {
102102
if (this.height) {
@@ -136,7 +136,7 @@ export class SVG extends SVGBase {
136136
return paintedHeight;
137137
}
138138

139-
return 0;
139+
return svg.getDocumentHeight();
140140
}
141141
drawOnCanvas(canvas: Canvas, parent: CanvasView) {
142142
const svg = this._svg;
@@ -148,9 +148,9 @@ export class SVG extends SVGBase {
148148
let options = this.renderOptions;
149149
const width = this.getWidth(availableWidth, availableHeight);
150150
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;
154154

155155
// const nativeAspectRatio = nativeWidth / nativeHeight;
156156
// const boundedAspectRatio = width / height;

0 commit comments

Comments
 (0)