Skip to content
Open

NS7 #19

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified publish/pack.sh
100644 → 100755
Empty file.
111 changes: 111 additions & 0 deletions publish/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/animated-circle.android.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-nocheck
import { Common } from './animated-circle.common';
import { Color } from 'tns-core-modules/color';
import { Color } from '@nativescript/core/color';

declare const at;

Expand Down
2 changes: 1 addition & 1 deletion src/animated-circle.common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ContentView } from 'tns-core-modules/ui/content-view';
import { ContentView } from '@nativescript/core/ui/content-view';

export class Common extends ContentView { }

8 changes: 4 additions & 4 deletions src/animated-circle.ios.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-nocheck
import { Common } from './animated-circle.common';
import { Color } from 'tns-core-modules/color';
import * as utils from 'tns-core-modules/utils/utils';
import { Color, Utils } from '@nativescript/core';

export class AnimatedCircle extends Common {
private _ios: any;
Expand Down Expand Up @@ -31,8 +31,8 @@ export class AnimatedCircle extends Common {

onLayout(left, top, right, bottom) {
super.onLayout(left, top, right, bottom);
const dpWidth = utils.layout.toDeviceIndependentPixels(this.effectiveWidth);
const dpHeight = utils.layout.toDeviceIndependentPixels(this.effectiveHeight);
const dpWidth = Utils.layout.toDeviceIndependentPixels(this.effectiveWidth);
const dpHeight = Utils.layout.toDeviceIndependentPixels(this.effectiveHeight);

this._label.frame = CGRectMake(0, 0, dpWidth, dpHeight);
this._ios.addSubview(this._label);
Expand Down
Loading