mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-25 12:03:27 +00:00
document the circle percentage radius algorithm
This commit is contained in:
@@ -43,3 +43,6 @@ ios/marry/main.jsbundle
|
||||
# unfinished documents
|
||||
#
|
||||
cn-doc.md
|
||||
|
||||
experimental code
|
||||
experimental/
|
||||
|
||||
@@ -13,7 +13,10 @@ import createReactNativeComponentClass from 'react-native/Libraries/ReactNative/
|
||||
const CIRCLE = 0;
|
||||
|
||||
/**
|
||||
* coord props
|
||||
*
|
||||
* algorithm for radius in percentage
|
||||
* radius = Math.sqrt(Math.pow((width*percent), 2) + Math.pow((height*percent), 2)) / Math.sqrt(2);
|
||||
*/
|
||||
const CIRCLE_COORDS = ['cx', 'cy', 'r'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user