Skip to content

Commit d82c11b

Browse files
committed
fix(ui-svg): zeroLength import fix
1 parent 6d665dd commit d82c11b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ui-svg/index.common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { init } from '@nativescript-community/text';
22
import { Canvas, CanvasView, PorterDuffMode } from '@nativescript-community/ui-canvas';
33
import Shape, { lengthProperty, percentLengthProperty } from '@nativescript-community/ui-canvas/shapes/shape';
4-
import { CSSType, CoreTypes, ImageAsset, Property, View, zeroLength } from '@nativescript/core';
4+
import { CSSType, CoreTypes, ImageAsset, Property, View } from '@nativescript/core';
55

66
// init text to ensure font overrides are called
77
init();
@@ -43,8 +43,8 @@ export abstract class SVG extends Shape {
4343
_parent: WeakRef<any>;
4444
@percentLengthProperty width: CoreTypes.PercentLengthType;
4545
@percentLengthProperty height: CoreTypes.PercentLengthType;
46-
@lengthProperty left: CoreTypes.LengthType = zeroLength;
47-
@lengthProperty top: CoreTypes.LengthType = zeroLength;
46+
@lengthProperty left: CoreTypes.LengthType = CoreTypes.zeroLength;
47+
@lengthProperty top: CoreTypes.LengthType = CoreTypes.zeroLength;
4848
blendingMode: PorterDuffMode;
4949
cache: boolean = true;
5050
drawOnCanvas(canvas: Canvas, parent: CanvasView) {}

0 commit comments

Comments
 (0)