Daniel Büchele
b318c4c5c9
upgrade yoga-layout
...
Summary:
- upgraded to yoga-layout@1.9.3
- set default values correctly
- catch errors
Reviewed By: emilsjolander
Differential Revision: D7001154
fbshipit-source-id: 49527576c61ce109ba0af0f50c981cf5c2c7d41a
2018-02-15 17:10:33 -08:00
Daniel Büchele
ae9703712a
v1.9.3
...
Summary:
- fixes a but where `auto` was passed to properties that don't support auto as a value
- fixes errors in flow typing
- Re-adds accidentally removed scripts to package.json
Reviewed By: emilsjolander, arcanis
Differential Revision: D6999447
fbshipit-source-id: df66976c74c4af082a1ca0527e3e1ce54bdeb732
2018-02-15 09:48:39 -08:00
Emil Sjölander
d617ab6662
Tweak footer styling
...
Reviewed By: priteshrnandgaonkar
Differential Revision: D6999652
fbshipit-source-id: 93f4e43894388bb607112691a0b97e2e12a7df23
2018-02-15 09:12:34 -08:00
Daniel Büchele
4c3eebd3e5
Remove standalone playground
...
Summary: This is an older version of the standalone playground which is outdated and not used anymore
Reviewed By: emilsjolander
Differential Revision: D6998970
fbshipit-source-id: a27bee81b6f85f70c35a8d3e7ea7b06486c52626
2018-02-15 08:36:40 -08:00
Daniel Büchele
10061af491
enum title display
...
Summary: lower case and centerd
Reviewed By: emilsjolander
Differential Revision: D6998485
fbshipit-source-id: c06472afa4ccaa25ebf7c3c791d697b1fdc7732c
2018-02-15 08:36:40 -08:00
Daniel Büchele
91621641e6
visually center root node
...
Summary: root node is now centerwed between edge and editor
Reviewed By: emilsjolander
Differential Revision: D6989159
fbshipit-source-id: ce2621402d380843125fabc43452c64ea3b563dd
2018-02-15 08:36:40 -08:00
Pritesh Nandgaonkar
35c6931ade
Remove unwanted footer items
...
Summary: Remove unwanted footer items
Reviewed By: emilsjolander
Differential Revision: D6999348
fbshipit-source-id: e1ff13b8a5a497bfc54e04294994eddef48bbf94
2018-02-15 08:13:40 -08:00
Yuichi ONO
44622912a2
Fix main size calculation from the aspect ratio
...
Summary:
When the following conditions are met, the main size become smaller by the margins in the main axis.
* The aspect ratio is defined
* The main size is not defined
* The cross size is defined
* The main margin is defined
This is because the main margin size is not included when calculating the main size from the aspect ratio.
Closes https://github.com/facebook/yoga/pull/715
Reviewed By: emilsjolander
Differential Revision: D6998988
Pulled By: priteshrnandgaonkar
fbshipit-source-id: f6f69c47ece17bd7c5e41517b96032bf0c149356
2018-02-15 07:40:34 -08:00
Pritesh Nandgaonkar
aac40cf89b
Footer implementation
...
Summary: Footer Implementation
Reviewed By: emilsjolander
Differential Revision: D6998645
fbshipit-source-id: db637f2d9fe1cdbcaa8366e0cc03f2bf67e2543a
2018-02-15 06:21:01 -08:00
Pritesh Nandgaonkar
d4b20f5793
Documentation for absolute/relative layout
...
Summary: Documentation for absolute/relative layout
Reviewed By: emilsjolander
Differential Revision: D6998594
fbshipit-source-id: 25dacbb87e067ab8abd555fd24611776b0332047
2018-02-15 06:21:01 -08:00
Pritesh Nandgaonkar
89df2d9475
Google Analytics added
...
Summary: Google analytics added
Reviewed By: emilsjolander
Differential Revision: D6998583
fbshipit-source-id: 3886964407ec32454da4770b0fe80185e8e18881
2018-02-15 06:21:01 -08:00
Pritesh Nandgaonkar
79fa6f8d58
Documentation for min/max
...
Summary: Documentation for min/max
Reviewed By: emilsjolander
Differential Revision: D6998539
fbshipit-source-id: 65a0c1713fb5a01e41e0afcfbefa1b0280c82ed5
2018-02-15 06:21:01 -08:00
Pritesh Nandgaonkar
69242938f7
Add min/max in YogaRecord
...
Summary: Add min/max in YogaRecord
Reviewed By: emilsjolander
Differential Revision: D6998533
fbshipit-source-id: 4613c99bd3a4cb3b8fbe577909157b25f3bef9c7
2018-02-15 06:21:00 -08:00
Pritesh Nandgaonkar
1b66b5d941
Documentation added for width and height
...
Summary: Width and height documentation
Reviewed By: emilsjolander
Differential Revision: D6978015
fbshipit-source-id: f62972acaf70be2b6df5056b5deed2a893c10b4c
2018-02-15 06:21:00 -08:00
Emil Sjölander
fb30f7ddcb
Responsify
...
Reviewed By: danielbuechele
Differential Revision: D6998697
fbshipit-source-id: ea15f1b1ce3f518c194dc66169413a92e0d870bc
2018-02-15 06:21:00 -08:00
David Vacca
747c2a4208
Make Java YogaNode cloneable
...
Summary:
This diff exposes the YogaNode clone operation to JNI in order to be able to clone Java YogaNode objects.
The clone method performs a shallow copy of the java YogaNode.
I made YogaNode to implement Cloneable, I know that this might not be a good idea but in this case it simplifies the cloning mechanism. I am open to suggestions.
IMPORTANT NOTES:
- The current implementation IS NOT making a deep copy of the mData instance variable.
- The mParent Java instance variable will reference the parent of the original Java YogaNode, is that ok sebmarkbage?
Reviewed By: priteshrnandgaonkar
Differential Revision: D6935971
fbshipit-source-id: a2008f1eb849b5074585b48699b7de56d5ac90d4
2018-02-14 18:12:34 -08:00
Daniel Büchele
43fda26275
add share and code buttons
...
Summary: Adds code and share buttons to the editor
Reviewed By: emilsjolander
Differential Revision: D6989097
fbshipit-source-id: 67478fe0810a0af43524f24458c520acf2999219
2018-02-14 11:03:59 -08:00
David Vacca
b1222bf83e
Expose methods of persistent yoga for Java
...
Summary: This diff extends the JNI version of yoga in order to allow Java instances of the YogaConfig class to receive a callback when a Yoga node is cloned.
Reviewed By: priteshrnandgaonkar
Differential Revision: D6918605
fbshipit-source-id: e424c78680c04e21154ebe21405671c4e90f6529
2018-02-14 09:41:52 -08:00
Emil Sjölander
3ec41b656f
Markdown redirect frontmatter
...
Reviewed By: danielbuechele
Differential Revision: D6987631
fbshipit-source-id: 8b3431fa885fb94d4a87119b5a5199db0b36b20c
2018-02-14 08:49:37 -08:00
Daniel Büchele
740ef6cd9e
flexWrap, alignContent, initialPlayground
...
Summary: Adds `initialPlayground` to the markdown header. Adds contents fro alignContent and flexWrap.
Reviewed By: emilsjolander
Differential Revision: D6987513
fbshipit-source-id: 41de309d427a9f42e09477170fb8512ce1e7a816
2018-02-14 08:17:21 -08:00
Daniel Büchele
8c5cbf698b
Inline controls for docs
...
Summary:
Adding inline controls in markdown using:
```
<controls prop="flexWrap"></controls>
```
Reviewed By: emilsjolander
Differential Revision: D6987150
fbshipit-source-id: 28def12df702ba5d5d5b6a83dd1cb907716d1b1c
2018-02-14 08:17:21 -08:00
Emil Sjölander
5f2cf6623f
Bump size of documentation sidebar
...
Reviewed By: danielbuechele
Differential Revision: D6978450
fbshipit-source-id: c82da40e2ef44b360cb98e1cc0a28b516aa2e573
2018-02-13 11:43:04 -08:00
Emil Sjölander
4b7efb73d7
Change some default playground styling
...
Reviewed By: danielbuechele
Differential Revision: D6977989
fbshipit-source-id: 64975685490b8a2230d4effc8791c028b680d2b7
2018-02-13 11:43:04 -08:00
Emil Sjölander
a6b7e34187
Go over property descriptions and add documentation links
...
Reviewed By: danielbuechele
Differential Revision: D6977090
fbshipit-source-id: cc8a6acda8b9b7f007ad0a2f83249d4e6037bb0f
2018-02-13 11:43:04 -08:00
Emil Sjölander
e50308e823
Tweak styling of list and code in docs
...
Reviewed By: danielbuechele
Differential Revision: D6976762
fbshipit-source-id: 6decc7af180773193e3811253ada7f8d543c6cc8
2018-02-13 11:43:04 -08:00
Emil Sjölander
b6a13ce43a
Mark selected page in toolbar
...
Reviewed By: danielbuechele
Differential Revision: D6976597
fbshipit-source-id: 280623b4dbf18eb008da846077fc8f5277eccc09
2018-02-13 11:43:03 -08:00
Daniel Büchele
96a87a811d
Shorten playground URL
...
Summary: Shorten URL using Google's URL shortner and display URL for copying.
Reviewed By: emilsjolander
Differential Revision: D6976973
fbshipit-source-id: cc791ffbf9e01a8dc2e0a40d05bce5022a3957bc
2018-02-13 09:45:06 -08:00
Emil Sjölander
025ee03cb1
Add copywrite headers to css files
...
Reviewed By: danielbuechele
Differential Revision: D6976529
fbshipit-source-id: 7f0c3fdd70105cbe055fa49f10eac3bdaf84b5c2
2018-02-13 09:16:03 -08:00
Emil Sjölander
c06ee92251
Add standalone docs
...
Reviewed By: danielbuechele
Differential Revision: D6976384
fbshipit-source-id: 329dd6b5997ab83d408fb330421624cf85e3f09e
2018-02-13 07:42:41 -08:00
Emil Sjölander
3aca5965dc
Fix sizing of playground in landing page
...
Reviewed By: danielbuechele
Differential Revision: D6976272
fbshipit-source-id: e9cf8582aa4f8d97190b40d5b7cf219ff1ef8ae5
2018-02-13 07:42:41 -08:00
Emil Sjölander
cac77e5ffa
Add contributing docs
...
Reviewed By: danielbuechele
Differential Revision: D6976258
fbshipit-source-id: 71b3d0ab4a071ce0c4a9c1241cd6295aa6d52b8e
2018-02-13 07:31:58 -08:00
Emil Sjölander
49f1d7b5f6
Add external doc links for Litho, ComponentKit, and React Native
...
Reviewed By: danielbuechele
Differential Revision: D6976131
fbshipit-source-id: 83f5f59cb839d0c2f291621f9f88678261077082
2018-02-13 06:55:33 -08:00
Emil Sjölander
82e44dbf04
Handle external doc links
...
Reviewed By: danielbuechele
Differential Revision: D6976132
fbshipit-source-id: 56bd33816a312af12ba9a0f088c9f49a42ef9913
2018-02-13 06:55:33 -08:00
Emil Sjölander
9b501dd9eb
Scroll doc sidebar not whole page
...
Reviewed By: danielbuechele
Differential Revision: D6976133
fbshipit-source-id: 7807aa4e2ab0ed013fbd1f4bbef2ee1b8098dff6
2018-02-13 06:55:33 -08:00
Emil Sjölander
8ba663f6f4
Document margins, paddings, and borders
...
Reviewed By: danielbuechele
Differential Revision: D6976134
fbshipit-source-id: dcf870d9a88478ed1aef68e9840e7b17467b87bb
2018-02-13 06:55:32 -08:00
Emil Sjölander
8f35484262
Document flexing
...
Reviewed By: danielbuechele
Differential Revision: D6976135
fbshipit-source-id: e9051b1e583d909aefe76f7aa9505467890a0d4c
2018-02-13 06:55:32 -08:00
Emil Sjölander
1e3143656d
Document aspect ratio
...
Reviewed By: danielbuechele
Differential Revision: D6976130
fbshipit-source-id: caf3cc1d1d1c00fee03ca26966fb57d1796e1604
2018-02-13 06:55:32 -08:00
Daniel Büchele
699b1f5012
Fixing playground editing
...
Summary: editing numerical values didn't work. this fixes it and cleans up the API of the playground
Reviewed By: emilsjolander
Differential Revision: D6976128
fbshipit-source-id: 9b1ace9d93ba8e597bdfb4842ed6adcaf8b77fd9
2018-02-13 06:16:12 -08:00
Daniel Büchele
9c877a621e
fix inserting/deleting children
...
Summary: Inserting or deleting nodes threw an error, due to some changes I made earlier. This fixes the error.
Reviewed By: emilsjolander
Differential Revision: D6975950
fbshipit-source-id: d04df08260ab8ab248726809329e69f4d264decd
2018-02-13 06:16:12 -08:00
Daniel Büchele
a3144150e0
fix Yoga imports for build script
...
Summary: The bundling of gatsby is done in node. This caused the node-libs from yoga being loaded. This directly imports the browser version.
Reviewed By: emilsjolander
Differential Revision: D6975779
fbshipit-source-id: 0257a86733c5552259b171309e59cc676786621e
2018-02-13 06:16:12 -08:00
Daniel Büchele
c830083df3
Website readme
...
Summary: Updating readme
Reviewed By: emilsjolander
Differential Revision: D6975778
fbshipit-source-id: c27a074c8d512e72de63ffa1d2f06f18a4f8e2c5
2018-02-13 06:16:12 -08:00
Emil Sjölander
9eb03b1bcd
playground doc page first draft
...
Reviewed By: danielbuechele
Differential Revision: D6968725
fbshipit-source-id: 588018a347a723b32e4dcab407c4da2db0d85130
2018-02-13 04:01:04 -08:00
Emil Sjölander
7e3136c347
non-playground doc page first draft
...
Reviewed By: danielbuechele
Differential Revision: D6968540
fbshipit-source-id: c5d408adb1d11c429d72a0f180ce3154ae0922a6
2018-02-13 04:01:04 -08:00
Emil Sjölander
c3de8016c0
Move footer to only landing page
...
Reviewed By: danielbuechele
Differential Revision: D6968277
fbshipit-source-id: ec01d6e0de6a76ab9235378a1c1a29dcf7903ae3
2018-02-13 04:01:04 -08:00
Emil Sjölander
af45863f8e
Docs page first draft
...
Reviewed By: danielbuechele
Differential Revision: D6968201
fbshipit-source-id: f08104428188b8b3225b2803c9f2165ee653a0b6
2018-02-13 04:01:04 -08:00
Emil Sjölander
08d7d1673e
Add documentation placeholders
...
Reviewed By: danielbuechele
Differential Revision: D6968199
fbshipit-source-id: 433d81b6367d1376224e0b3516be65132c091a34
2018-02-13 04:01:03 -08:00
Emil Sjölander
e7c56ccd1e
Landing page first draft
...
Reviewed By: danielbuechele
Differential Revision: D6964899
fbshipit-source-id: ea9fed66ba0376a5cd2efda4d631cc14e591e666
2018-02-12 10:46:04 -08:00
Emil Sjölander
de8cab8e60
Footer design
...
Reviewed By: danielbuechele
Differential Revision: D6964900
fbshipit-source-id: 68831f101ef2112613cd170cb90bdd9235441c9d
2018-02-12 10:46:04 -08:00
Emil Sjölander
9e0f751464
Toolbar design
...
Reviewed By: danielbuechele
Differential Revision: D6964901
fbshipit-source-id: c052449d0ae3da91bec64c8f9da867244022ccf1
2018-02-12 10:46:03 -08:00
Daniel Büchele
951a429ac5
Template for docs pages
...
Summary:
- Dynamic loading of documentation pages
- code highlighting for markdown files
- editing playground from sidebar
Reviewed By: emilsjolander
Differential Revision: D6964951
fbshipit-source-id: 1c7f36afa8d23215471d5b9a9c01bd2241c2008e
2018-02-12 10:46:03 -08:00