mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 07:59:28 +00:00
document the circle percentage radius algorithm
This commit is contained in:
@@ -43,3 +43,6 @@ ios/marry/main.jsbundle
|
|||||||
# unfinished documents
|
# unfinished documents
|
||||||
#
|
#
|
||||||
cn-doc.md
|
cn-doc.md
|
||||||
|
|
||||||
|
experimental code
|
||||||
|
experimental/
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ import createReactNativeComponentClass from 'react-native/Libraries/ReactNative/
|
|||||||
const CIRCLE = 0;
|
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'];
|
const CIRCLE_COORDS = ['cx', 'cy', 'r'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user