Skip to content

Commit fab2b59

Browse files
committed
chore: cleanup
1 parent 92f4ece commit fab2b59

File tree

10 files changed

+26
-367
lines changed

10 files changed

+26
-367
lines changed

apps/nativescript-hello-world/src/app.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { CoreTypes, TouchManager, View } from '@nativescript/core';
22
import { createApp } from 'nativescript-vue';
3-
// import '@nativescript/canvas-polyfill';
43
import Home from './components/Home.vue';
54

65
const originalTransform = Symbol('originalTransform');
-9.2 KB
Binary file not shown.
-11.6 KB
Binary file not shown.

apps/nativescript-hello-world/src/components/Canvas.vue

Lines changed: 0 additions & 335 deletions
This file was deleted.

apps/nativescript-hello-world/src/components/Home.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<script lang="ts" setup>
22
import { ref } from 'nativescript-vue';
3-
import Canvas from './Canvas.vue';
43
import Pager from './Pager.vue';
5-
import { CoreTypes, GridLayout } from '@nativescript/core';
4+
import { Color, CoreTypes, GridLayout } from '@nativescript/core';
65
76
const progress = ref(0);
87
const updateProgress = (newProgress: number) => {
@@ -18,14 +17,14 @@ const loadedPage = (args) => {
1817
const animateBgColor = () => {
1918
grid
2019
.animate({
21-
backgroundColor: '#42b883cc',
20+
backgroundColor: new Color('#42b883cc'),
2221
duration: 2000,
2322
curve: CoreTypes.AnimationCurve.easeInOut,
2423
})
2524
.then(() => {
2625
grid
2726
.animate({
28-
backgroundColor: '#35495ea9',
27+
backgroundColor: new Color('#35495ea9'),
2928
duration: 2000,
3029
curve: CoreTypes.AnimationCurve.easeInOut,
3130
})
@@ -40,7 +39,6 @@ const animateBgColor = () => {
4039
<Frame>
4140
<Page actionBarHidden="true">
4241
<GridLayout rows="*" @loaded="loadedPage">
43-
<Canvas :progress="progress" />
4442
<Pager @updateIndex="updateProgress" />
4543
</GridLayout>
4644
</Page>

0 commit comments

Comments
 (0)