20 Commits

Author SHA1 Message Date
c5d34c3dd4 Image loading is done through native imageView so that once it is removed from window the bitmap is cleared. 2016-11-02 16:57:42 +02:00
cde642186b Fixed issue with image rotation. 2016-10-31 18:04:38 +02:00
644f4c2845 ImageSource was reset in CreateUI wrongly. (#2910)
TabView doesn't save/restore its visual hierarchy.
Cuteness.io source changed to use https.
2016-10-17 13:40:03 +03:00
3e3fc248c2 Move imageCache initialization in the createUI method so that it is sure that we have valid context. application.android.nativeView could be null if image module is requested before application.start (#2862) 2016-10-10 09:23:17 +03:00
98deeccb21 Change image.android to use the new image.Cache class from widgets. (#2832)
* Change image.android to use the new image.Cahce class from widgets.

* fix npm scripts

* npm tsc will compile all so no need for npm run dev-tsc-tests

* fix tslint error

* image-tests use memory only cache.

* fix exception in image.android

* Change image-tests so that Image won't be GC immediately.

* Change cacheMode to enum
2016-10-05 13:09:08 +03:00
1f84274182 Refactored image loading from camera. 2016-10-03 17:23:18 +03:00
f0374642b5 Fix tslint error & bump ios runtime version 2016-09-17 11:07:24 +03:00
a05f842a84 Non-uniform borders 2016-09-17 09:27:36 +03:00
1b568b56ca Added tintColor property in Image view. It should be used instead of color 2016-09-16 16:29:08 +03:00
465b5bfd77 fix(iOS): image._setColorTint is not a function fix
closes https://github.com/NativeScript/NativeScript/issues/2647
closes https://github.com/NativeScript/nativescript-angular/issues/422
closes https://github.com/jlooper/pocketrave/issues/2
closes https://github.com/jlooper/pocketrave/issues/3
2016-08-30 21:09:18 -07:00
afb2d1ea68 Added tintColor property in {N} ImageView 2016-08-29 18:50:44 +03:00
1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00
7e5c29a163 Fix package.json "main" settings and remove .js references. 2016-08-04 16:24:29 +03:00
8d40782191 Style perf improvements (#2342)
* Add css-perf app.

* Style properties now check only properties that are set.
Image utils module required on top (instead of in onMeasure) to improve performance.
Remove try/catch block when Style applies native property.

* fix tslint

* Fix broken merge
Update package.json version

* Failed miserably - if the try/catch around applyProperty method is removed - TextField fails big time.
TextField needs some good refactoring as well as calls to _updateTextDecoration & _updateTextTransform
utils - setTextTransform & setTextDecoration should be split, typing support should be added.
2016-07-08 14:39:43 +03:00
165a948150 Image won't require in onMeasure; global loadModule cache 2016-06-21 15:02:15 +03:00
4e678a06ff Fix: Images have margin when added to Layout
Resolves #1425
2016-06-14 10:53:07 +03:00
20dc0bd7d3 Fix setting src on async image mismatching imageSource 2016-06-10 10:32:22 +03:00
f8ee993934 Add a check so setting src on async image multiple times wont mismatch imageSource 2016-06-09 15:58:39 +03:00
717b5131b1 Add isIOS, isAndroid in platform, and fast ts watcher and transpiler
Image should not requestLayout when sized with 'exactly' spec

Update image tests

Tests will run in ios only
2016-05-27 16:57:59 +03:00
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00