├── .github
├── issue_template.md
└── pull_request_template.md
├── .gitignore
├── LICENSE
├── README.md
├── demo
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-50.png
│ │ │ │ ├── icon-50@2x.png
│ │ │ │ ├── icon-57.png
│ │ │ │ ├── icon-57@2x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-72.png
│ │ │ │ ├── icon-72@2x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.launchimage
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default-667h@2x.png
│ │ │ │ ├── Default-736h@3x.png
│ │ │ │ ├── Default-Landscape.png
│ │ │ │ ├── Default-Landscape@2x.png
│ │ │ │ ├── Default-Landscape@3x.png
│ │ │ │ ├── Default-Portrait.png
│ │ │ │ ├── Default-Portrait@2x.png
│ │ │ │ ├── Default.png
│ │ │ │ └── Default@2x.png
│ │ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ │ └── LaunchScreen-AspectFill@2x.png
│ │ │ └── LaunchScreen.Center.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-Center.png
│ │ │ │ └── LaunchScreen-Center@2x.png
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── app.css
│ ├── app.js
│ ├── app.ts
│ ├── main-page.js
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.js
│ ├── main-view-model.ts
│ ├── package.json
│ └── tests
│ │ └── tests.js
├── hooks
│ ├── after-prepare
│ │ ├── nativescript-dev-webpack.js
│ │ └── nativescript-unit-test-runner.js
│ ├── after-watch
│ │ ├── nativescript-dev-typescript.js
│ │ └── nativescript-dev-webpack.js
│ ├── before-cleanApp
│ │ └── nativescript-dev-webpack.js
│ ├── before-prepare
│ │ └── nativescript-dev-typescript.js
│ ├── before-prepareJSApp
│ │ └── nativescript-dev-webpack.js
│ ├── before-shouldPrepare
│ │ └── nativescript-dev-webpack.js
│ ├── before-watch
│ │ ├── nativescript-dev-typescript.js
│ │ └── nativescript-dev-webpack.js
│ └── before-watchPatterns
│ │ ├── nativescript-dev-typescript.js
│ │ └── nativescript-dev-webpack.js
├── karma.conf.js
├── package-lock.json
├── package.json
├── references.d.ts
├── tsconfig.json
└── webpack.config.js
├── docs
└── tweenjs.gif
└── src
├── .npmignore
├── package.json
├── tweenjs.js
└── yarn.lock
/.github/issue_template.md:
--------------------------------------------------------------------------------
1 | ### Make sure to check the demo app(s) for sample usage
2 |
3 | ### Make sure to check the existing issues in this repository
4 |
5 | ### If the demo apps cannot help and there is no issue for your problem, tell us about it
6 | Please, ensure your title is less than 63 characters long and starts with a capital
7 | letter.
8 |
9 | ### Which platform(s) does your issue occur on?
10 | - iOS/Android/Both
11 | - iOS/Android versions
12 | - emulator or device. What type of device?
13 |
14 | ### Please, provide the following version numbers that your issue occurs with:
15 |
16 | - CLI: (run `tns --version` to fetch it)
17 | - Cross-platform modules: (check the 'version' attribute in the
18 | `node_modules/tns-core-modules/package.json` file in your project)
19 | - Runtime(s): (look for the `"tns-android"` and `"tns-ios"` properties in the `package.json` file of your project)
20 | - Plugin(s): (look for the version numbers in the `package.json` file of your
21 | project and paste your dependencies and devDependencies here)
22 |
23 | ### Please, tell us how to recreate the issue in as much detail as possible.
24 | Describe the steps to reproduce it.
25 |
26 | ### Is there any code involved?
27 | - provide a code example to recreate the problem
28 | - (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.
29 |
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 | ## PR Checklist
11 |
12 | - [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
13 | - [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
14 | - [ ] All existing tests are passing
15 | - [ ] Tests for the changes are included
16 |
17 | ## What is the current behavior?
18 |
19 |
20 | ## What is the new behavior?
21 |
22 |
23 | Fixes/Implements/Closes #[Issue Number].
24 |
25 |
26 |
27 |
36 |
37 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .vscode
2 | .idea
3 | .DS_Store
4 | *.esm.json
5 | *.js.map
6 | *.log
7 | src/*.d.ts
8 | !src/index.d.ts
9 | !src/references.d.ts
10 | !src/scripts/*.js
11 | !seed-tests/*.js
12 | seed-tests/seed-copy/**/*.*
13 | seed-tests/seed-copy-new-git-repo/**/*.*
14 | !demo/karma.conf.js
15 | !demo/app/tests/*.js
16 | demo/*.d.ts
17 | !demo/references.d.ts
18 | demo/lib
19 | demo/platforms
20 | node_modules
21 | publish/src
22 | publish/package
23 | demo/report/report.html
24 | demo/report/stats.json
25 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2018, Tiago Alves
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://www.npmjs.com/package/nativescript-tweenjs) [](https://www.npmjs.com/package/nativescript-tweenjs) [](https://www.npmjs.com/package/nativescript-tweenjs)
2 |
3 | # DEPRECATED: This plugin is no longer necessary!
4 |
5 | Since version 6.3.0 NativeScript has a native `requestAnimationFrame`, so this plugin is no longer needed. `tween.js` will work out of the box.
6 |
7 | # nativescript-tweenjs
8 |
9 | This plugin returns a working `TWEEN` object and creates a bunch of polyfills so you can use tweenjs in your NativeScript app.
10 |
11 | Tween.js will tween variable, which you can then attach to ANY UI attribute.
12 |
13 | > NOTE: NativeScript's [declarative and imperative animations](https://docs.nativescript.org/ui/animation) will always be more performant. Use Tween.js sparingly and only if you need to tween a paramenter not available in the current NativeScript APIs.
14 |
15 | ## Installation
16 |
17 | ### NativeScript 4.x
18 |
19 | ```bash
20 | tns plugin add nativescript-tweenjs
21 | ```
22 |
23 | ## License
24 |
25 | This is released under the MIT License, meaning you are free to include this in any type of program.
26 |
27 | ## Sample Snapshot
28 |
29 | 
30 |
31 | ## Usage
32 |
33 | To use the module you just `require()` it:
34 |
35 | ```js
36 | var TWEEN = require('nativescript-tweenjs').TWEEN;
37 | ```
38 |
39 | or `import` it:
40 |
41 | ```js
42 | import { TWEEN } from 'nativescript-tweenjs');
43 | ```
44 |
45 | ### Example (from the [demo app](demo/))
46 |
47 | In this example we will tween a label's text and its height.
48 |
49 | - `main-page.xml`
50 |
51 | ```xml
52 |
54 |
55 |
56 |
57 |
58 | ```
59 |
60 | - `main-page.ts`
61 |
62 | ```typescript
63 | import * as observable from 'tns-core-modules/data/observable';
64 | import * as pages from 'tns-core-modules/ui/page';
65 | import { HelloWorldModel } from './main-view-model';
66 | import { TWEEN } from 'nativescript-tweenjs';
67 |
68 | // Event handler for Page 'loaded' event attached in main-page.xml
69 | export function pageLoaded(args: observable.EventData) {
70 | // Get the event sender
71 | let page = args.object;
72 | page.bindingContext = new HelloWorldModel();
73 |
74 | var tween = new TWEEN.Tween({ x: 50 })
75 | .to({ x: 400 }, 5000)
76 | .easing(TWEEN.Easing.Elastic.InOut)
77 | .onUpdate(object => {
78 | page.bindingContext.set('message', Math.round(object.x));
79 | page.bindingContext.set('bungee', object.x);
80 | })
81 | .start();
82 | }
83 | ```
84 |
85 | For more information on how to use `tween.js`, see the [tween.js documentation](https://github.com/tweenjs/tween.js).
86 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | // Uncomment to add recyclerview-v7 dependency
4 | //dependencies {
5 | // compile 'com.android.support:recyclerview-v7:+'
6 | //}
7 |
8 | android {
9 | defaultConfig {
10 | generatedDensities = []
11 | applicationId = "org.nativescript.demo"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "29x29",
5 | "idiom" : "iphone",
6 | "filename" : "icon-29.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "29x29",
11 | "idiom" : "iphone",
12 | "filename" : "icon-29@2x.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon-29@3x.png",
19 | "scale" : "3x"
20 | },
21 | {
22 | "size" : "40x40",
23 | "idiom" : "iphone",
24 | "filename" : "icon-40@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "40x40",
29 | "idiom" : "iphone",
30 | "filename" : "icon-40@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "57x57",
35 | "idiom" : "iphone",
36 | "filename" : "icon-57.png",
37 | "scale" : "1x"
38 | },
39 | {
40 | "size" : "57x57",
41 | "idiom" : "iphone",
42 | "filename" : "icon-57@2x.png",
43 | "scale" : "2x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "icon-60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "icon-60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "29x29",
59 | "idiom" : "ipad",
60 | "filename" : "icon-29.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "29x29",
65 | "idiom" : "ipad",
66 | "filename" : "icon-29@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "40x40",
71 | "idiom" : "ipad",
72 | "filename" : "icon-40.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "40x40",
77 | "idiom" : "ipad",
78 | "filename" : "icon-40@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "50x50",
83 | "idiom" : "ipad",
84 | "filename" : "icon-50.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "50x50",
89 | "idiom" : "ipad",
90 | "filename" : "icon-50@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "72x72",
95 | "idiom" : "ipad",
96 | "filename" : "icon-72.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "72x72",
101 | "idiom" : "ipad",
102 | "filename" : "icon-72@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "76x76",
107 | "idiom" : "ipad",
108 | "filename" : "icon-76.png",
109 | "scale" : "1x"
110 | },
111 | {
112 | "size" : "76x76",
113 | "idiom" : "ipad",
114 | "filename" : "icon-76@2x.png",
115 | "scale" : "2x"
116 | },
117 | {
118 | "size" : "83.5x83.5",
119 | "idiom" : "ipad",
120 | "filename" : "icon-83.5@2x.png",
121 | "scale" : "2x"
122 | }
123 | ],
124 | "info" : {
125 | "version" : 1,
126 | "author" : "xcode"
127 | }
128 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "extent" : "full-screen",
5 | "idiom" : "iphone",
6 | "subtype" : "736h",
7 | "filename" : "Default-736h@3x.png",
8 | "minimum-system-version" : "8.0",
9 | "orientation" : "portrait",
10 | "scale" : "3x"
11 | },
12 | {
13 | "extent" : "full-screen",
14 | "idiom" : "iphone",
15 | "subtype" : "736h",
16 | "filename" : "Default-Landscape@3x.png",
17 | "minimum-system-version" : "8.0",
18 | "orientation" : "landscape",
19 | "scale" : "3x"
20 | },
21 | {
22 | "extent" : "full-screen",
23 | "idiom" : "iphone",
24 | "subtype" : "667h",
25 | "filename" : "Default-667h@2x.png",
26 | "minimum-system-version" : "8.0",
27 | "orientation" : "portrait",
28 | "scale" : "2x"
29 | },
30 | {
31 | "orientation" : "portrait",
32 | "idiom" : "iphone",
33 | "filename" : "Default@2x.png",
34 | "extent" : "full-screen",
35 | "minimum-system-version" : "7.0",
36 | "scale" : "2x"
37 | },
38 | {
39 | "extent" : "full-screen",
40 | "idiom" : "iphone",
41 | "subtype" : "retina4",
42 | "filename" : "Default-568h@2x.png",
43 | "minimum-system-version" : "7.0",
44 | "orientation" : "portrait",
45 | "scale" : "2x"
46 | },
47 | {
48 | "orientation" : "portrait",
49 | "idiom" : "ipad",
50 | "filename" : "Default-Portrait.png",
51 | "extent" : "full-screen",
52 | "minimum-system-version" : "7.0",
53 | "scale" : "1x"
54 | },
55 | {
56 | "orientation" : "landscape",
57 | "idiom" : "ipad",
58 | "filename" : "Default-Landscape.png",
59 | "extent" : "full-screen",
60 | "minimum-system-version" : "7.0",
61 | "scale" : "1x"
62 | },
63 | {
64 | "orientation" : "portrait",
65 | "idiom" : "ipad",
66 | "filename" : "Default-Portrait@2x.png",
67 | "extent" : "full-screen",
68 | "minimum-system-version" : "7.0",
69 | "scale" : "2x"
70 | },
71 | {
72 | "orientation" : "landscape",
73 | "idiom" : "ipad",
74 | "filename" : "Default-Landscape@2x.png",
75 | "extent" : "full-screen",
76 | "minimum-system-version" : "7.0",
77 | "scale" : "2x"
78 | },
79 | {
80 | "orientation" : "portrait",
81 | "idiom" : "iphone",
82 | "filename" : "Default.png",
83 | "extent" : "full-screen",
84 | "scale" : "1x"
85 | },
86 | {
87 | "orientation" : "portrait",
88 | "idiom" : "iphone",
89 | "filename" : "Default@2x.png",
90 | "extent" : "full-screen",
91 | "scale" : "2x"
92 | },
93 | {
94 | "orientation" : "portrait",
95 | "idiom" : "iphone",
96 | "filename" : "Default-568h@2x.png",
97 | "extent" : "full-screen",
98 | "subtype" : "retina4",
99 | "scale" : "2x"
100 | },
101 | {
102 | "orientation" : "portrait",
103 | "idiom" : "ipad",
104 | "extent" : "to-status-bar",
105 | "scale" : "1x"
106 | },
107 | {
108 | "orientation" : "portrait",
109 | "idiom" : "ipad",
110 | "filename" : "Default-Portrait.png",
111 | "extent" : "full-screen",
112 | "scale" : "1x"
113 | },
114 | {
115 | "orientation" : "landscape",
116 | "idiom" : "ipad",
117 | "extent" : "to-status-bar",
118 | "scale" : "1x"
119 | },
120 | {
121 | "orientation" : "landscape",
122 | "idiom" : "ipad",
123 | "filename" : "Default-Landscape.png",
124 | "extent" : "full-screen",
125 | "scale" : "1x"
126 | },
127 | {
128 | "orientation" : "portrait",
129 | "idiom" : "ipad",
130 | "extent" : "to-status-bar",
131 | "scale" : "2x"
132 | },
133 | {
134 | "orientation" : "portrait",
135 | "idiom" : "ipad",
136 | "filename" : "Default-Portrait@2x.png",
137 | "extent" : "full-screen",
138 | "scale" : "2x"
139 | },
140 | {
141 | "orientation" : "landscape",
142 | "idiom" : "ipad",
143 | "extent" : "to-status-bar",
144 | "scale" : "2x"
145 | },
146 | {
147 | "orientation" : "landscape",
148 | "idiom" : "ipad",
149 | "filename" : "Default-Landscape@2x.png",
150 | "extent" : "full-screen",
151 | "scale" : "2x"
152 | }
153 | ],
154 | "info" : {
155 | "version" : 1,
156 | "author" : "xcode"
157 | }
158 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
5 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
6 |
--------------------------------------------------------------------------------
/demo/app/app.css:
--------------------------------------------------------------------------------
1 | @import '~nativescript-theme-core/css/core.light.css';
2 |
--------------------------------------------------------------------------------
/demo/app/app.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var application = require("tns-core-modules/application");
4 | application.start({ moduleName: "main-page" });
5 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXBwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMERBQTREO0FBQzVELFdBQVcsQ0FBQyxLQUFLLENBQUMsRUFBRSxVQUFVLEVBQUUsV0FBVyxFQUFFLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGFwcGxpY2F0aW9uIGZyb20gJ3Rucy1jb3JlLW1vZHVsZXMvYXBwbGljYXRpb24nO1xuYXBwbGljYXRpb24uc3RhcnQoeyBtb2R1bGVOYW1lOiBcIm1haW4tcGFnZVwiIH0pO1xuIl19
--------------------------------------------------------------------------------
/demo/app/app.ts:
--------------------------------------------------------------------------------
1 | import * as application from 'tns-core-modules/application';
2 | application.start({ moduleName: "main-page" });
3 |
--------------------------------------------------------------------------------
/demo/app/main-page.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var main_view_model_1 = require("./main-view-model");
4 | var nativescript_tweenjs_1 = require("nativescript-tweenjs");
5 | function pageLoaded(args) {
6 | var page = args.object;
7 | page.bindingContext = new main_view_model_1.HelloWorldModel();
8 | var tween = new nativescript_tweenjs_1.TWEEN.Tween({ x: 50 })
9 | .to({ x: 400 }, 5000)
10 | .easing(nativescript_tweenjs_1.TWEEN.Easing.Elastic.InOut)
11 | .onUpdate(function (object) {
12 | page.bindingContext.set('message', Math.round(object.x));
13 | page.bindingContext.set('bungee', object.x);
14 | })
15 | .start();
16 | }
17 | exports.pageLoaded = pageLoaded;
18 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi1wYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibWFpbi1wYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEscURBQW9EO0FBQ3BELDZEQUE2QztBQUc3QyxvQkFBMkIsSUFBMEI7SUFFbkQsSUFBSSxJQUFJLEdBQWUsSUFBSSxDQUFDLE1BQU0sQ0FBQztJQUNuQyxJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksaUNBQWUsRUFBRSxDQUFDO0lBRTVDLElBQUksS0FBSyxHQUFHLElBQUksNEJBQUssQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUM7U0FDbkMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLEdBQUcsRUFBRSxFQUFFLElBQUksQ0FBQztTQUNwQixNQUFNLENBQUMsNEJBQUssQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQztTQUNsQyxRQUFRLENBQUMsVUFBQSxNQUFNO1FBQ2QsSUFBSSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsU0FBUyxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekQsSUFBSSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsUUFBUSxFQUFFLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUM5QyxDQUFDLENBQUM7U0FDRCxLQUFLLEVBQUUsQ0FBQztBQUNiLENBQUM7QUFiRCxnQ0FhQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIG9ic2VydmFibGUgZnJvbSAndG5zLWNvcmUtbW9kdWxlcy9kYXRhL29ic2VydmFibGUnO1xuaW1wb3J0ICogYXMgcGFnZXMgZnJvbSAndG5zLWNvcmUtbW9kdWxlcy91aS9wYWdlJztcbmltcG9ydCB7IEhlbGxvV29ybGRNb2RlbCB9IGZyb20gJy4vbWFpbi12aWV3LW1vZGVsJztcbmltcG9ydCB7IFRXRUVOIH0gZnJvbSAnbmF0aXZlc2NyaXB0LXR3ZWVuanMnO1xuXG4vLyBFdmVudCBoYW5kbGVyIGZvciBQYWdlICdsb2FkZWQnIGV2ZW50IGF0dGFjaGVkIGluIG1haW4tcGFnZS54bWxcbmV4cG9ydCBmdW5jdGlvbiBwYWdlTG9hZGVkKGFyZ3M6IG9ic2VydmFibGUuRXZlbnREYXRhKSB7XG4gIC8vIEdldCB0aGUgZXZlbnQgc2VuZGVyXG4gIGxldCBwYWdlID0gPHBhZ2VzLlBhZ2U+YXJncy5vYmplY3Q7XG4gIHBhZ2UuYmluZGluZ0NvbnRleHQgPSBuZXcgSGVsbG9Xb3JsZE1vZGVsKCk7XG5cbiAgdmFyIHR3ZWVuID0gbmV3IFRXRUVOLlR3ZWVuKHsgeDogNTAgfSlcbiAgICAudG8oeyB4OiA0MDAgfSwgNTAwMClcbiAgICAuZWFzaW5nKFRXRUVOLkVhc2luZy5FbGFzdGljLkluT3V0KVxuICAgIC5vblVwZGF0ZShvYmplY3QgPT4ge1xuICAgICAgcGFnZS5iaW5kaW5nQ29udGV4dC5zZXQoJ21lc3NhZ2UnLCBNYXRoLnJvdW5kKG9iamVjdC54KSk7XG4gICAgICBwYWdlLmJpbmRpbmdDb250ZXh0LnNldCgnYnVuZ2VlJywgb2JqZWN0LngpO1xuICAgIH0pXG4gICAgLnN0YXJ0KCk7XG59XG4iXX0=
--------------------------------------------------------------------------------
/demo/app/main-page.ts:
--------------------------------------------------------------------------------
1 | import * as observable from 'tns-core-modules/data/observable';
2 | import * as pages from 'tns-core-modules/ui/page';
3 | import { HelloWorldModel } from './main-view-model';
4 | import { TWEEN } from 'nativescript-tweenjs';
5 |
6 | // Event handler for Page 'loaded' event attached in main-page.xml
7 | export function pageLoaded(args: observable.EventData) {
8 | // Get the event sender
9 | let page = args.object;
10 | page.bindingContext = new HelloWorldModel();
11 |
12 | var tween = new TWEEN.Tween({ x: 50 })
13 | .to({ x: 400 }, 5000)
14 | .easing(TWEEN.Easing.Elastic.InOut)
15 | .onUpdate(object => {
16 | page.bindingContext.set('message', Math.round(object.x));
17 | page.bindingContext.set('bungee', object.x);
18 | })
19 | .start();
20 | }
21 |
--------------------------------------------------------------------------------
/demo/app/main-page.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/demo/app/main-view-model.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var observable_1 = require("tns-core-modules/data/observable");
4 | var nativescript_tweenjs_1 = require("nativescript-tweenjs");
5 | var HelloWorldModel = (function (_super) {
6 | __extends(HelloWorldModel, _super);
7 | function HelloWorldModel() {
8 | var _this = _super.call(this) || this;
9 | _this.message = '0';
10 | _this.bunjee = 0;
11 | return _this;
12 | }
13 | HelloWorldModel.prototype.onTap = function (args) {
14 | var _this = this;
15 | var tween = new nativescript_tweenjs_1.TWEEN.Tween({ x: 50, y: 0 })
16 | .to({ x: 400 }, 5000)
17 | .easing(nativescript_tweenjs_1.TWEEN.Easing.Elastic.InOut)
18 | .onUpdate(function (object) {
19 | _this.set('btnWidth', object.x);
20 | })
21 | .start();
22 | };
23 | return HelloWorldModel;
24 | }(observable_1.Observable));
25 | exports.HelloWorldModel = HelloWorldModel;
26 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi12aWV3LW1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibWFpbi12aWV3LW1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0RBQXlFO0FBQ3pFLDZEQUE2QztBQUU3QztJQUFxQyxtQ0FBVTtJQUk3QztRQUFBLFlBQ0UsaUJBQU8sU0FJUjtRQUZDLEtBQUksQ0FBQyxPQUFPLEdBQUcsR0FBRyxDQUFDO1FBQ25CLEtBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDOztJQUNsQixDQUFDO0lBRUQsK0JBQUssR0FBTCxVQUFNLElBQWU7UUFBckIsaUJBUUM7UUFQQyxJQUFJLEtBQUssR0FBRyxJQUFJLDRCQUFLLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUM7YUFDekMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLEdBQUcsRUFBRSxFQUFFLElBQUksQ0FBQzthQUNwQixNQUFNLENBQUMsNEJBQUssQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQzthQUNsQyxRQUFRLENBQUMsVUFBQSxNQUFNO1lBQ2QsS0FBSSxDQUFDLEdBQUcsQ0FBQyxVQUFVLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2pDLENBQUMsQ0FBQzthQUNELEtBQUssRUFBRSxDQUFDO0lBQ2IsQ0FBQztJQUNILHNCQUFDO0FBQUQsQ0FBQyxBQXBCRCxDQUFxQyx1QkFBVSxHQW9COUM7QUFwQlksMENBQWUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYnNlcnZhYmxlLCBFdmVudERhdGEgfSBmcm9tICd0bnMtY29yZS1tb2R1bGVzL2RhdGEvb2JzZXJ2YWJsZSc7XG5pbXBvcnQgeyBUV0VFTiB9IGZyb20gJ25hdGl2ZXNjcmlwdC10d2VlbmpzJztcblxuZXhwb3J0IGNsYXNzIEhlbGxvV29ybGRNb2RlbCBleHRlbmRzIE9ic2VydmFibGUge1xuICBwdWJsaWMgbWVzc2FnZTogc3RyaW5nO1xuICBwdWJsaWMgYnVuamVlOiBudW1iZXI7XG5cbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKTtcblxuICAgIHRoaXMubWVzc2FnZSA9ICcwJztcbiAgICB0aGlzLmJ1bmplZSA9IDA7XG4gIH1cblxuICBvblRhcChhcmdzOiBFdmVudERhdGEpIHtcbiAgICB2YXIgdHdlZW4gPSBuZXcgVFdFRU4uVHdlZW4oeyB4OiA1MCwgeTogMCB9KVxuICAgICAgLnRvKHsgeDogNDAwIH0sIDUwMDApXG4gICAgICAuZWFzaW5nKFRXRUVOLkVhc2luZy5FbGFzdGljLkluT3V0KVxuICAgICAgLm9uVXBkYXRlKG9iamVjdCA9PiB7XG4gICAgICAgIHRoaXMuc2V0KCdidG5XaWR0aCcsIG9iamVjdC54KTtcbiAgICAgIH0pXG4gICAgICAuc3RhcnQoKTtcbiAgfVxufVxuIl19
--------------------------------------------------------------------------------
/demo/app/main-view-model.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData } from 'tns-core-modules/data/observable';
2 | import { TWEEN } from 'nativescript-tweenjs';
3 |
4 | export class HelloWorldModel extends Observable {
5 | public message: string;
6 | public bunjee: number;
7 |
8 | constructor() {
9 | super();
10 |
11 | this.message = '0';
12 | this.bunjee = 0;
13 | }
14 |
15 | onTap(args: EventData) {
16 | var tween = new TWEEN.Tween({ x: 50, y: 0 })
17 | .to({ x: 400 }, 5000)
18 | .easing(TWEEN.Easing.Elastic.InOut)
19 | .onUpdate(object => {
20 | this.set('btnWidth', object.x);
21 | })
22 | .start();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/demo/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tns-template-hello-world-ts",
3 | "main": "app.js",
4 | "version": "1.6.0",
5 | "author": {
6 | "name": "Telerik",
7 | "email": "support@telerik.com"
8 | },
9 | "description": "Nativescript hello-world-ts project template",
10 | "license": "Apache-2.0",
11 | "keywords": [
12 | "telerik",
13 | "mobile",
14 | "nativescript",
15 | "{N}",
16 | "tns",
17 | "appbuilder",
18 | "template"
19 | ],
20 | "repository": {
21 | "type": "git",
22 | "url": "git+ssh://git@github.com/NativeScript/template-hello-world-ts.git"
23 | },
24 | "bugs": {
25 | "url": "https://github.com/NativeScript/template-hello-world-ts/issues"
26 | },
27 | "homepage": "https://github.com/NativeScript/template-hello-world-ts",
28 | "android": {
29 | "v8Flags": "--expose_gc",
30 | "requireModules": ["nativescript-tweenjs"]
31 | },
32 | "devDependencies": {
33 | "nativescript-dev-typescript": "^0.3.0"
34 | },
35 | "_id": "tns-template-hello-world-ts@1.6.0",
36 | "_shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8",
37 | "_resolved": "https://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz",
38 | "_from": "tns-template-hello-world-ts@latest",
39 | "scripts": {
40 | "build.plugin": "cd ../src && npm run build",
41 | "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'"
42 | },
43 | "_npmVersion": "2.14.7",
44 | "_nodeVersion": "4.2.2",
45 | "_npmUser": {
46 | "name": "enchev",
47 | "email": "vladimir.enchev@gmail.com"
48 | },
49 | "dist": {
50 | "shasum": "a567c2b9a56024818c06596dab9629d155c5b8a8",
51 | "tarball": "http://registry.npmjs.org/tns-template-hello-world-ts/-/tns-template-hello-world-ts-1.6.0.tgz"
52 | },
53 | "maintainers": [
54 | {
55 | "name": "enchev",
56 | "email": "vladimir.enchev@gmail.com"
57 | },
58 | {
59 | "name": "erjangavalji",
60 | "email": "erjan.gavalji@gmail.com"
61 | },
62 | {
63 | "name": "fatme",
64 | "email": "hfatme@gmail.com"
65 | },
66 | {
67 | "name": "hdeshev",
68 | "email": "hristo@deshev.com"
69 | },
70 | {
71 | "name": "kerezov",
72 | "email": "d.kerezov@gmail.com"
73 | },
74 | {
75 | "name": "ligaz",
76 | "email": "stefan.dobrev@gmail.com"
77 | },
78 | {
79 | "name": "nsndeck",
80 | "email": "nedyalko.nikolov@telerik.com"
81 | },
82 | {
83 | "name": "rosen-vladimirov",
84 | "email": "rosen.vladimirov.91@gmail.com"
85 | },
86 | {
87 | "name": "sdobrev",
88 | "email": "stefan.dobrev@gmail.com"
89 | },
90 | {
91 | "name": "tailsu",
92 | "email": "tailsu@gmail.com"
93 | },
94 | {
95 | "name": "teobugslayer",
96 | "email": "teobugslayer@gmail.com"
97 | },
98 | {
99 | "name": "valio.stoychev",
100 | "email": "valio.stoychev@gmail.com"
101 | }
102 | ],
103 | "_npmOperationalInternal": {
104 | "host": "packages-5-east.internal.npmjs.com",
105 | "tmp": "tmp/tns-template-hello-world-ts-1.6.0.tgz_1455717516189_0.6427943941671401"
106 | },
107 | "directories": {},
108 | "readme": "ERROR: No README data found!"
109 | }
110 |
--------------------------------------------------------------------------------
/demo/app/tests/tests.js:
--------------------------------------------------------------------------------
1 | var Tweenjs = require("nativescript-tweenjs").Tweenjs;
2 | var tweenjs = new Tweenjs();
3 |
4 | describe("greet function", function() {
5 | it("exists", function() {
6 | expect(tweenjs.greet).toBeDefined();
7 | });
8 |
9 | it("returns a string", function() {
10 | expect(tweenjs.greet()).toEqual("Hello, NS");
11 | });
12 | });
--------------------------------------------------------------------------------
/demo/hooks/after-prepare/nativescript-dev-webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-webpack/lib/after-prepare.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/after-prepare/nativescript-unit-test-runner.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-unit-test-runner/lib/after-prepare");
2 |
--------------------------------------------------------------------------------
/demo/hooks/after-watch/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/after-watch.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/after-watch/nativescript-dev-webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-webpack/lib/after-watch.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-cleanApp/nativescript-dev-webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-webpack/lib/before-cleanApp.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-prepare/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/before-prepare.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-prepareJSApp/nativescript-dev-webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-webpack/lib/before-prepareJS.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-shouldPrepare/nativescript-dev-webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-webpack/lib/before-shouldPrepare.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-watch/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/watch.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-watch/nativescript-dev-webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-webpack/lib/before-watch.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-watchPatterns/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/before-watchPatterns.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-watchPatterns/nativescript-dev-webpack.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-webpack/lib/before-watchPatterns.js");
2 |
--------------------------------------------------------------------------------
/demo/karma.conf.js:
--------------------------------------------------------------------------------
1 | module.exports = function(config) {
2 | config.set({
3 |
4 | // base path that will be used to resolve all patterns (eg. files, exclude)
5 | basePath: '',
6 |
7 |
8 | // frameworks to use
9 | // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
10 | frameworks: ['jasmine'],
11 |
12 |
13 | // list of files / patterns to load in the browser
14 | files: [
15 | 'app/**/*.js'
16 | ],
17 |
18 |
19 | // list of files to exclude
20 | exclude: [
21 | ],
22 |
23 |
24 | // preprocess matching files before serving them to the browser
25 | // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
26 | preprocessors: {
27 | },
28 |
29 |
30 | // test results reporter to use
31 | // possible values: 'dots', 'progress'
32 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter
33 | reporters: ['progress'],
34 |
35 |
36 | // web server port
37 | port: 9876,
38 |
39 |
40 | // enable / disable colors in the output (reporters and logs)
41 | colors: true,
42 |
43 |
44 | // level of logging
45 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
46 | logLevel: config.LOG_INFO,
47 |
48 |
49 | // enable / disable watching file and executing tests whenever any file changes
50 | autoWatch: true,
51 |
52 |
53 | // start these browsers
54 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
55 | browsers: [],
56 |
57 | customLaunchers: {
58 | android: {
59 | base: 'NS',
60 | platform: 'android'
61 | },
62 | ios: {
63 | base: 'NS',
64 | platform: 'ios'
65 | },
66 | ios_simulator: {
67 | base: 'NS',
68 | platform: 'ios',
69 | arguments: ['--emulator']
70 | }
71 | },
72 |
73 | // Continuous Integration mode
74 | // if true, Karma captures browsers, runs the tests and exits
75 | singleRun: true
76 | });
77 | };
78 |
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "nativescript": {
3 | "id": "org.nativescript.demo",
4 | "tns-android": {
5 | "version": "4.2.0"
6 | }
7 | },
8 | "dependencies": {
9 | "nativescript-theme-core": "^1.0.4",
10 | "nativescript-unit-test-runner": "^0.3.4",
11 | "nativescript-tweenjs": "file:../src",
12 | "tns-core-modules": "^4.2.0"
13 | },
14 | "devDependencies": {
15 | "@types/tween.js": "^16.9.0",
16 | "jasmine-core": "^2.5.2",
17 | "karma": "^1.3.0",
18 | "karma-jasmine": "^1.0.2",
19 | "karma-nativescript-launcher": "^0.4.0",
20 | "nativescript-css-loader": "~0.26.1",
21 | "nativescript-dev-typescript": "~0.7.2",
22 | "nativescript-dev-webpack": "~0.15.1",
23 | "tns-platform-declarations": "^4.2.0",
24 | "tslint": "~5.4.3",
25 | "typescript": "~2.8.2"
26 | },
27 | "scripts": {
28 | "build.plugin": "cd ../src && npm run build",
29 | "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'"
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 | ///
5 |
--------------------------------------------------------------------------------
/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "commonjs",
5 | "declaration": false,
6 | "removeComments": true,
7 | "noLib": false,
8 | "emitDecoratorMetadata": true,
9 | "experimentalDecorators": true,
10 | "lib": [
11 | "es6",
12 | "dom"
13 | ],
14 | "pretty": true,
15 | "allowUnreachableCode": false,
16 | "allowUnusedLabels": false,
17 | "noEmitHelpers": true,
18 | "noEmitOnError": false,
19 | "noImplicitAny": false,
20 | "noImplicitReturns": true,
21 | "noImplicitUseStrict": false,
22 | "noFallthroughCasesInSwitch": true,
23 | "baseUrl": ".",
24 | "paths": {
25 | "*": [
26 | "./node_modules/*"
27 | ],
28 | "~/*": [
29 | "app/*"
30 | ]
31 | }
32 | },
33 | "include": [
34 | "../src",
35 | "**/*"
36 | ],
37 | "exclude": [
38 | "../src/node_modules",
39 | "node_modules",
40 | "platforms"
41 | ],
42 | "compileOnSave": false
43 | }
--------------------------------------------------------------------------------
/demo/webpack.config.js:
--------------------------------------------------------------------------------
1 | const { join, relative, resolve, sep } = require("path");
2 |
3 | const webpack = require("webpack");
4 | const nsWebpack = require("nativescript-dev-webpack");
5 | const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target");
6 | const CleanWebpackPlugin = require("clean-webpack-plugin");
7 | const CopyWebpackPlugin = require("copy-webpack-plugin");
8 | const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
9 | const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin");
10 | const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
11 |
12 | module.exports = env => {
13 | // Add your custom Activities, Services and other Android app components here.
14 | const appComponents = [
15 | "tns-core-modules/ui/frame",
16 | "tns-core-modules/ui/frame/activity",
17 | ];
18 |
19 | const platform = env && (env.android && "android" || env.ios && "ios");
20 | if (!platform) {
21 | throw new Error("You need to provide a target platform!");
22 | }
23 |
24 | const platforms = ["ios", "android"];
25 | const projectRoot = __dirname;
26 |
27 | // Default destination inside platforms//...
28 | const dist = resolve(projectRoot, nsWebpack.getAppPath(platform, projectRoot));
29 | const appResourcesPlatformDir = platform === "android" ? "Android" : "iOS";
30 |
31 | const {
32 | // The 'appPath' and 'appResourcesPath' values are fetched from
33 | // the nsconfig.json configuration file
34 | // when bundling with `tns run android|ios --bundle`.
35 | appPath = "app",
36 | appResourcesPath = "app/App_Resources",
37 |
38 | // You can provide the following flags when running 'tns run android|ios'
39 | snapshot, // --env.snapshot
40 | uglify, // --env.uglify
41 | report, // --env.report
42 | sourceMap, // --env.sourceMap
43 | } = env;
44 |
45 | const appFullPath = resolve(projectRoot, appPath);
46 | const appResourcesFullPath = resolve(projectRoot, appResourcesPath);
47 |
48 | const entryModule = nsWebpack.getEntryModule(appFullPath);
49 | const entryPath = `.${sep}${entryModule}.ts`;
50 |
51 | const config = {
52 | mode: uglify ? "production" : "development",
53 | context: appFullPath,
54 | watchOptions: {
55 | ignored: [
56 | appResourcesFullPath,
57 | // Don't watch hidden files
58 | "**/.*",
59 | ]
60 | },
61 | target: nativescriptTarget,
62 | entry: {
63 | bundle: entryPath,
64 | },
65 | output: {
66 | pathinfo: false,
67 | path: dist,
68 | libraryTarget: "commonjs2",
69 | filename: "[name].js",
70 | globalObject: "global",
71 | },
72 | resolve: {
73 | extensions: [".ts", ".js", ".scss", ".css"],
74 | // Resolve {N} system modules from tns-core-modules
75 | modules: [
76 | resolve(__dirname, "node_modules/tns-core-modules"),
77 | resolve(__dirname, "node_modules"),
78 | "node_modules/tns-core-modules",
79 | "node_modules",
80 | ],
81 | alias: {
82 | '~': appFullPath
83 | },
84 | // don't resolve symlinks to symlinked modules
85 | symlinks: false
86 | },
87 | resolveLoader: {
88 | // don't resolve symlinks to symlinked loaders
89 | symlinks: false
90 | },
91 | node: {
92 | // Disable node shims that conflict with NativeScript
93 | "http": false,
94 | "timers": false,
95 | "setImmediate": false,
96 | "fs": "empty",
97 | "__dirname": false,
98 | },
99 | devtool: sourceMap ? "inline-source-map" : "none",
100 | optimization: {
101 | splitChunks: {
102 | cacheGroups: {
103 | vendor: {
104 | name: "vendor",
105 | chunks: "all",
106 | test: (module, chunks) => {
107 | const moduleName = module.nameForCondition ? module.nameForCondition() : '';
108 | return /[\\/]node_modules[\\/]/.test(moduleName) ||
109 | appComponents.some(comp => comp === moduleName);
110 |
111 | },
112 | enforce: true,
113 | },
114 | }
115 | },
116 | minimize: !!uglify,
117 | minimizer: [
118 | new UglifyJsPlugin({
119 | uglifyOptions: {
120 | parallel: true,
121 | cache: true,
122 | output: {
123 | comments: false,
124 | },
125 | compress: {
126 | // The Android SBG has problems parsing the output
127 | // when these options are enabled
128 | 'collapse_vars': platform !== "android",
129 | sequences: platform !== "android",
130 | }
131 | }
132 | })
133 | ],
134 | },
135 | module: {
136 | rules: [
137 | {
138 | test: new RegExp(entryPath),
139 | use: [
140 | // Require all Android app components
141 | platform === "android" && {
142 | loader: "nativescript-dev-webpack/android-app-components-loader",
143 | options: { modules: appComponents }
144 | },
145 |
146 | {
147 | loader: "nativescript-dev-webpack/bundle-config-loader",
148 | options: {
149 | loadCss: !snapshot, // load the application css if in debug mode
150 | }
151 | },
152 | ].filter(loader => !!loader)
153 | },
154 |
155 | { test: /\.(html|xml)$/, use: "nativescript-dev-webpack/xml-namespace-loader"},
156 |
157 | {
158 | test: /\.css$/,
159 | use: { loader: "css-loader", options: { minimize: false, url: false } }
160 | },
161 |
162 | {
163 | test: /\.scss$/,
164 | use: [
165 | { loader: "css-loader", options: { minimize: false, url: false } },
166 | "sass-loader"
167 | ]
168 | },
169 |
170 | {
171 | test: /\.ts$/,
172 | use: {
173 | loader: "awesome-typescript-loader",
174 | options: { configFileName: "tsconfig.esm.json" },
175 | }
176 | },
177 | ]
178 | },
179 | plugins: [
180 | // Define useful constants like TNS_WEBPACK
181 | new webpack.DefinePlugin({
182 | "global.TNS_WEBPACK": "true",
183 | "process": undefined,
184 | }),
185 | // Remove all files from the out dir.
186 | new CleanWebpackPlugin([ `${dist}/**/*` ]),
187 | // Copy native app resources to out dir.
188 | new CopyWebpackPlugin([
189 | {
190 | from: `${appResourcesFullPath}/${appResourcesPlatformDir}`,
191 | to: `${dist}/App_Resources/${appResourcesPlatformDir}`,
192 | context: projectRoot
193 | },
194 | ]),
195 | // Copy assets to out dir. Add your own globs as needed.
196 | new CopyWebpackPlugin([
197 | { from: "fonts/**" },
198 | { from: "**/*.jpg" },
199 | { from: "**/*.png" },
200 | ], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }),
201 | // Generate a bundle starter script and activate it in package.json
202 | new nsWebpack.GenerateBundleStarterPlugin([
203 | "./vendor",
204 | "./bundle",
205 | ]),
206 | // For instructions on how to set up workers with webpack
207 | // check out https://github.com/nativescript/worker-loader
208 | new NativeScriptWorkerPlugin(),
209 | new nsWebpack.PlatformFSPlugin({
210 | platform,
211 | platforms,
212 | }),
213 | // Does IPC communication with the {N} CLI to notify events when running in watch mode.
214 | new nsWebpack.WatchStateLoggerPlugin(),
215 | ],
216 | };
217 |
218 | if (report) {
219 | // Generate report files for bundles content
220 | config.plugins.push(new BundleAnalyzerPlugin({
221 | analyzerMode: "static",
222 | openAnalyzer: false,
223 | generateStatsFile: true,
224 | reportFilename: resolve(projectRoot, "report", `report.html`),
225 | statsFilename: resolve(projectRoot, "report", `stats.json`),
226 | }));
227 | }
228 |
229 | if (snapshot) {
230 | config.plugins.push(new nsWebpack.NativeScriptSnapshotPlugin({
231 | chunk: "vendor",
232 | requireModules: [
233 | "tns-core-modules/bundle-entry-points",
234 | ],
235 | projectRoot,
236 | webpackConfig: config,
237 | }));
238 | }
239 |
240 | return config;
241 | };
242 |
--------------------------------------------------------------------------------
/docs/tweenjs.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tralves/nativescript-tweenjs/4426c9dc62efe9d6da3d0db53b8bbcbb12a6a869/docs/tweenjs.gif
--------------------------------------------------------------------------------
/src/.npmignore:
--------------------------------------------------------------------------------
1 | *.map
2 | *.ts
3 | !*.d.ts
4 | tsconfig.json
5 | scripts/*
6 | platforms/android/*
7 | !platforms/android/include.gradle
8 | !platforms/android/*.aar
9 | !platforms/android/*.jar
10 | *.lock
--------------------------------------------------------------------------------
/src/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-tweenjs",
3 | "version": "0.9.0",
4 | "description": "A NativeScript plugin to use tween.js in NativeScript projects. ",
5 | "main": "tweenjs.js",
6 | "nativescript": {
7 | "platforms": {
8 | "android": "4.0.0",
9 | "ios": "4.0.0"
10 | },
11 | "plugin": {
12 | "pan": "true",
13 | "core3": "false",
14 | "core4": "true",
15 | "category": "Interface"
16 | }
17 | },
18 | "repository": {
19 | "type": "git",
20 | "url": "https://github.com/tralves/nativescript-tweenjs.git"
21 | },
22 | "keywords": [
23 | "NativeScript",
24 | "tween",
25 | "ui",
26 | "animations"
27 | ],
28 | "author": {
29 | "name": "Tiago Alves",
30 | "email": "tralves@gmail.com"
31 | },
32 | "license": {
33 | "type": "MIT",
34 | "url": "https://github.com/tralves/nativescript-tweenjs/blob/master/LICENSE"
35 | },
36 | "bugs": {
37 | "url": "https://github.com/tralves/nativescript-tweenjs/issues"
38 | },
39 | "homepage": "https://github.com/tralves/nativescript-tweenjs",
40 | "readmeFilename": "README.md",
41 | "dependencies": {
42 | "@tweenjs/tween.js": "^17.2.0"
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/tweenjs.js:
--------------------------------------------------------------------------------
1 | /**********************************************************************************
2 | * (c) 2018
3 | * Licensed under the MIT license
4 | * Any questions please feel free to email me or put a issue up on the github repo
5 | * Version 1.0.0 tralves@gmail.com
6 | *********************************************************************************/
7 | 'use strict';
8 |
9 | const TWEEN = require('@tweenjs/tween.js');
10 |
11 | // Workaround to make tweenjs work in an env that is
12 | // not really web and it is not really node...
13 | TWEEN.now = function() {
14 | return new Date().getTime();
15 | };
16 |
17 | //////////////////////////
18 | // requestAnimationFrame polyill
19 | let lastTime = 0;
20 |
21 | const requestAnimationFrame = function(callback, element) {
22 | var currTime = new Date().getTime();
23 | var timeToCall = Math.max(0, 16 - (currTime - lastTime));
24 | var id = setTimeout(function() {
25 | callback(currTime + timeToCall);
26 | }, timeToCall);
27 | lastTime = currTime + timeToCall;
28 | return id;
29 | };
30 | //////////////////////////
31 |
32 | const cancelAnimationFrame = function(id) {
33 | clearTimeout(id);
34 | };
35 |
36 | // ticking tween.js
37 | const tick = () => {
38 | requestAnimationFrame(tick);
39 | TWEEN.update();
40 | };
41 | requestAnimationFrame(tick);
42 |
43 | module.exports = { TWEEN };
44 |
--------------------------------------------------------------------------------
/src/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | "@tweenjs/tween.js@^17.2.0":
6 | version "17.2.0"
7 | resolved "https://registry.yarnpkg.com/@tweenjs/tween.js/-/tween.js-17.2.0.tgz#21f89b709bafc4b303adae7a83b4f35a0d9e4796"
8 | integrity sha1-IfibcJuvxLMDra56g7TzWg2eR5Y=
9 |
--------------------------------------------------------------------------------