diff --git a/package.json b/package.json index 14be843..3c265be 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,9 @@ "@commitlint/config-conventional": "^17.3.0", "@nativescript-community/text": "^1.5.9", "@nativescript-community/ui-canvas": "^4.4.5", - "@nativescript/core": "8.4.1", - "@nativescript/types-android": "8.4.0", - "@nativescript/types-ios": "8.4.0", + "@nativescript/core": "~8.4.7", + "@nativescript/types-android": "~8.4.0", + "@nativescript/types-ios": "~8.4.0", "@nativescript/webpack": "5.0.12", "@types/node": "^18.11.10", "@typescript-eslint/eslint-plugin": "5.45.0", diff --git a/src/index.common.ts b/src/index.common.ts index ccf6bcf..d92843e 100644 --- a/src/index.common.ts +++ b/src/index.common.ts @@ -1,7 +1,7 @@ import { init } from '@nativescript-community/text'; import { Canvas, CanvasView, PorterDuffMode } from '@nativescript-community/ui-canvas'; import Shape, { lengthProperty, percentLengthProperty } from '@nativescript-community/ui-canvas/shapes/shape'; -import { CSSType, CoreTypes, ImageAsset, Property, View, zeroLength } from '@nativescript/core'; +import { CSSType, CoreTypes, ImageAsset, Property, View } from '@nativescript/core'; // init text to ensure font overrides are called init(); @@ -43,8 +43,8 @@ export abstract class SVG extends Shape { _parent: WeakRef; @percentLengthProperty width: CoreTypes.PercentLengthType; @percentLengthProperty height: CoreTypes.PercentLengthType; - @lengthProperty left: CoreTypes.LengthType = zeroLength; - @lengthProperty top: CoreTypes.LengthType = zeroLength; + @lengthProperty left: CoreTypes.LengthType = CoreTypes.zeroLength; + @lengthProperty top: CoreTypes.LengthType = CoreTypes.zeroLength; blendingMode: PorterDuffMode; cache: boolean = true; drawOnCanvas(canvas: Canvas, parent: CanvasView) {}