37 Commits

Author SHA1 Message Date
dfcbe6c319 style: formatting and whitespaces (#7840) 2019-09-19 15:40:31 +03:00
4f39fb728b chore: update tslint rules (#7391) 2019-06-26 15:13:48 +03:00
34fe24732d chore: deprecate utils.ios.getter (#7054) 2019-03-22 17:33:21 +02:00
9d21a743c4 Revert 5772 revert 5534 css gradients (#5779)
* Revert "Revert "Css gradients" (#5772)"

This reverts commit 7edf56197a179b13e1afe4c706aea4a99ac62aca.

* chore(): fix LinearGradient circular dependency
2018-05-10 10:44:35 +03:00
7edf56197a Revert "Css gradients" (#5772)
This reverts commit 5a83a1c858e8095353aa50fe4ea080b07bf85813.
2018-05-03 18:17:07 +03:00
5a83a1c858 Css gradients (#5534)
* feat(ios): Added support for css gradients.

* feat(android): Added support for css gradients.

* fix: Fixed gradient borders on ios

* fix(gradient): added backgroundGradient to View and Style.

* fix(ios-gradients): fixed ios gradients covering view content.

* test(gradient): Added ui app tests for background gradients.

* test(gradient): Added a test ensuring background gradient property is applied to style.

* style(gradient): Fixed tslint errors.

* fix(gradient): Removed the background-gradient property and added the gradient to background-image.

* style: fixed a consecutive blank line tslint error.

* fix(tests): fixed the bug that was causing tests to fail.

* chore(linear-gradient): fix equality comparer

* test(gradient): add linear gradients test app

* chore(tslint): update with latest tslint rules
2018-05-03 13:24:41 +03:00
03cfc0cee3 chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00
634cf9a822 Fix background scale quality (#5113)
UIGraphicsBeginImageContextWithOptions with scale factor 0 makes sure the device scale factor is used automatically and not 1.0
2017-12-05 23:12:12 +02:00
12c0199fb5 UIScrollViews will now report 'scroll' events and the background in ios will adjust added layers (#4762) 2017-08-29 10:25:45 +03:00
0f14101238 recycling now happens only if nativeView and android properties are not accessed. (#4627)
recycleNativeView filed now accepts: "always" | "never" | "auto". Always will recycle the nativeView no matter if its nativeView or android proprties are accessed. Never will disable recycling. Auto will recycle it only if nativeView and android properties are not accessed.
2017-08-01 15:04:16 +03:00
43659799bc Implement non uniform border corner radiuses and fix blinking image-view radiuses (#4573)
* Image corners were blinking in #4322 and CSS border will now draw non uniform corner radiuses if the border color is uniform

* Implement per-side corner radiuses for iOS

* Update stretch-mode example

* Update matrix-mode example

* Update image resources

* Add clipping for non uniform radii without border width, don't throw for missing image resources in css
2017-07-27 15:36:47 +03:00
0d21f52c99 Hhristov/ios background image crash fix (#4214)
* uiColorFromImage should return if there is no image.

* added unit-test
2017-05-17 15:40:14 +03:00
9e3222781a backgroundImage property now use Fetcher & Cache as Image component (#4030)
* backgroundImage property now use Fetcher & Cache as Image component
Fix GridLayout tests on iPhone Plus - actualLength wasn’t rounded
ImageCache is closed when activity is stopped

* Fix reset of background drawable.

* additional check for drawable

* imageCache init cache on activity Started
2017-04-21 16:50:12 +03:00
120230c297 ios cornder radius is rendered as circle now (#3915)
* ios cornder radius is rendered as circle now

* fix failing test
2017-03-31 16:18:12 +03:00
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
9b47fff54a Fix clip-path for iOS (#3839) 2017-03-21 15:14:42 +02:00
fe54ac6ead Layout round instead of ceiling (#3833)
* Layout round instead of cailing
Add helper method to layout module to convert to/from dips to px and measure the native view
whiteSpace affects layout added for iOS
Fix bug in switch onMeasure implementation
Fix bug in cssValueToDevicePixels iOS implementation
ActionBar for iOS is measured with AT_MOST modifier

* Fix switch measure routine
2017-03-20 16:11:16 +02:00
629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00
4f36a07634 Fix iOS corner radiuses dip incorrectly converted 2017-03-10 11:02:01 +02:00
9f1ebc11ca Add support for 'px' on Length in iOS 2017-03-08 09:01:17 +02:00
ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +02:00
3066dbd072 Clipping is required for iOS even with uniform borders, as long as the radius is > 0 2017-02-27 16:07:21 +02:00
8a0d98e815 Inset clip path + Background circ-ref 2017-02-21 18:00:48 +02:00
531b33d02b fix background example (#3663) 2017-02-20 13:48:30 +02:00
f539dd5f95 Improve background setter in iOS (#3582)
CoercableProperty now inherits from Property
VS Code typescript sdk removed
ViewBase will no longer clear native view if recycleNativeView is false
2017-02-06 11:49:54 +02:00
25bd65d95c Make 0 test run successfuly 2016-12-21 10:40:47 +02:00
befb494a50 up to segmented-bar.ios 2016-12-13 15:51:18 +02:00
1202cb7288 almost all without layouts 2016-12-13 15:51:18 +02:00
645f428f59 alpha1 2016-12-13 15:51:18 +02:00
aa91b0eca0 Border width cannot be reset to 0 on IOS 2016-11-24 18:19:52 +02:00
9ebc01b8e9 Add inset CSS clip-path support 2016-11-10 14:41:32 +02:00
83e0ae4c85 Fix: CSS scale breaks background properties on iOS
Resolves #2911
2016-10-26 15:36:37 +03:00
071ef1607d Fix: CSS border-width causes text to overflow TextView
Resolves #2789
2016-09-27 09:47:32 +03:00
a05f842a84 Non-uniform borders 2016-09-17 09:27:36 +03:00
e895f37f0b Apply getter check to determine if API is exposed as property or as method for iOS backward compatibility 2016-09-12 14:38:54 +03:00
fc39fad959 Fix: CSS background-image on Label not loading in iOS
Resolves #2414
2016-07-21 09:45:50 +03:00
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00