mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-29 13:21:50 +00:00
document the circle percentage radius algorithm
This commit is contained in:
@@ -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